Rename and clean up MapleMonsterInformationProvider
This commit is contained in:
@@ -314,9 +314,9 @@ public class Monster extends AbstractLoadedLife {
|
||||
long animationTime;
|
||||
|
||||
if (skill == null) {
|
||||
animationTime = MapleMonsterInformationProvider.getInstance().getMobAttackAnimationTime(this.getId(), attackPos);
|
||||
animationTime = MonsterInformationProvider.getInstance().getMobAttackAnimationTime(this.getId(), attackPos);
|
||||
} else {
|
||||
animationTime = MapleMonsterInformationProvider.getInstance().getMobSkillAnimationTime(skill);
|
||||
animationTime = MonsterInformationProvider.getInstance().getMobSkillAnimationTime(skill);
|
||||
}
|
||||
|
||||
if (animationTime > 0) {
|
||||
@@ -738,7 +738,7 @@ public class Monster extends AbstractLoadedLife {
|
||||
|
||||
public List<MonsterDropEntry> retrieveRelevantDrops() {
|
||||
if (this.getStats().isFriendly()) { // thanks Conrad for noticing friendly mobs not spawning loots after a recent update
|
||||
return MapleMonsterInformationProvider.getInstance().retrieveEffectiveDrop(this.getId());
|
||||
return MonsterInformationProvider.getInstance().retrieveEffectiveDrop(this.getId());
|
||||
}
|
||||
|
||||
Map<Integer, Character> pchars = map.getMapAllPlayers();
|
||||
@@ -1542,7 +1542,7 @@ public class Monster extends AbstractLoadedLife {
|
||||
}
|
||||
*/
|
||||
|
||||
Pair<Integer, Integer> attackInfo = MapleMonsterInformationProvider.getInstance().getMobAttackInfo(this.getId(), attackPos);
|
||||
Pair<Integer, Integer> attackInfo = MonsterInformationProvider.getInstance().getMobAttackInfo(this.getId(), attackPos);
|
||||
if (attackInfo == null) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user