Client clean-up + PiratePQ Implementation
Major update on client packets, now properly making unseen killed monsters not appear as residual on a player's client. Many updates revolving the PiratePQ environment as well.
This commit is contained in:
@@ -82,7 +82,7 @@ public class MapleMonster extends AbstractLoadedMapleLife {
|
||||
private int team;
|
||||
private final HashMap<Integer, AtomicInteger> takenDamage = new HashMap<>();
|
||||
|
||||
public ReentrantLock monsterLock = new ReentrantLock();
|
||||
private ReentrantLock monsterLock = new ReentrantLock();
|
||||
|
||||
public MapleMonster(int id, MapleMonsterStats stats) {
|
||||
super(id);
|
||||
@@ -93,6 +93,14 @@ public class MapleMonster extends AbstractLoadedMapleLife {
|
||||
super(monster);
|
||||
initWithStats(monster.stats);
|
||||
}
|
||||
|
||||
public void lockMonster() {
|
||||
monsterLock.lock();
|
||||
}
|
||||
|
||||
public void unlockMonster() {
|
||||
monsterLock.unlock();
|
||||
}
|
||||
|
||||
private void initWithStats(MapleMonsterStats stats) {
|
||||
setStance(5);
|
||||
@@ -994,7 +1002,7 @@ public class MapleMonster extends AbstractLoadedMapleLife {
|
||||
return(1.0f);
|
||||
}
|
||||
|
||||
public final void changeLevelByDifficulty(final int difficulty, boolean pqMob) {
|
||||
private final void changeLevelByDifficulty(final int difficulty, boolean pqMob) {
|
||||
changeLevel((int)(this.getLevel() * getDifficultyRate(difficulty)), pqMob);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user