Rename and clean up MapleDataType

This commit is contained in:
P0nk
2021-09-09 21:47:26 +02:00
parent 63a2aeee10
commit 48f2647742
6 changed files with 43 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
package tools.mapletools;
import provider.*;
import provider.wz.MapleDataType;
import provider.wz.DataType;
import provider.wz.WZFiles;
import server.life.Element;
import server.life.ElementalEffectiveness;
@@ -75,7 +75,7 @@ public class MonsterStatFetcher {
MapleData firstAttackData = monsterInfoData.getChildByPath("firstAttack");
int firstAttack = 0;
if (firstAttackData != null) {
if (firstAttackData.getType() == MapleDataType.FLOAT) {
if (firstAttackData.getType() == DataType.FLOAT) {
firstAttack = Math.round(MapleDataTool.getFloat(firstAttackData));
} else {
firstAttack = MapleDataTool.getInt(firstAttackData);