HT spawn sequence + Banner length

Improved the Horntail spawn sequence to better fit the end of the animation with the HT parts assembly. Thanks to Arnah and Zenns.
Improved the usage of visual space by the "hint banners" throughout the source.
This commit is contained in:
ronancpl
2018-03-15 10:52:42 -03:00
parent 67ab83a09b
commit ae147a5a9f
8 changed files with 107 additions and 65 deletions

View File

@@ -84,6 +84,7 @@ public class MapleMonster extends AbstractLoadedMapleLife {
private Map<Pair<Integer, Integer>, Integer> skillsUsed = new HashMap<>();
private List<Integer> stolenItems = new ArrayList<>();
private int team;
private int parentMobOid = 0;
private final HashMap<Integer, AtomicInteger> takenDamage = new HashMap<>();
private Lock externalLock = new MonitoredReentrantLock(MonitoredLockType.MOB_EXT);
@@ -128,6 +129,14 @@ public class MapleMonster extends AbstractLoadedMapleLife {
public void setMap(MapleMap map) {
this.map = map;
}
public int getParentMobOid() {
return parentMobOid;
}
public void setParentMobOid(int parentMobId) {
this.parentMobOid = parentMobId;
}
public int getHp() {
return hp.get();
@@ -497,6 +506,9 @@ public class MapleMonster extends AbstractLoadedMapleLife {
for (Integer mid : toSpawn) {
final MapleMonster mob = MapleLifeFactory.getMonster(mid);
mob.setPosition(getPosition());
mob.setFh(getFh());
mob.setParentMobOid(getObjectId());
if (dropsDisabled()) {
mob.disableDrops();
}