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

@@ -25,7 +25,7 @@ import provider.MapleData;
import provider.MapleDataProvider;
import provider.MapleDataProviderFactory;
import provider.MapleDataTool;
import provider.wz.MapleDataType;
import provider.wz.DataType;
import provider.wz.WZFiles;
import tools.Pair;
import tools.StringUtil;
@@ -149,7 +149,7 @@ public class MapleLifeFactory {
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);