Browse Source

EffectPreReq pojo created

feature-config-parsing2
MagicBot 4 months ago
parent
commit
177917a8c8
  1. 12
      src/engine/wpak/PowersParser.java

12
src/engine/wpak/PowersParser.java

@ -10,10 +10,7 @@ package engine.wpak; @@ -10,10 +10,7 @@ package engine.wpak;
import engine.gameManager.ConfigManager;
import engine.mbEnums;
import engine.wpak.data.EquipmentPreReq;
import engine.wpak.data.PowerAction;
import engine.wpak.data.PowerData;
import engine.wpak.data.PowerEntry;
import engine.wpak.data.*;
import org.pmw.tinylog.Logger;
import java.io.IOException;
@ -216,6 +213,13 @@ public class PowersParser { @@ -216,6 +213,13 @@ public class PowersParser {
case "BLADETRAILS":
powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim());
break;
case "EFFECTPREREQ":
EffectPreReq effectPreReq = new EffectPreReq();
arguments = lineValues[1].trim().split("\\s+");
effectPreReq.effect_id = arguments[9];
effectPreReq.level = Integer.parseInt(arguments[1]);
effectPreReq.message = arguments[2];
break;
case "SOUNDS": // Values not parsed
case "APPLYDAMAGECASTER":
case "APPLYDAMAGEOTHER":

Loading…
Cancel
Save