Browse Source

More PowerEntry parsing work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
c35e689d1b
  1. 1
      src/engine/wpak/PowersParser.java
  2. 1
      src/engine/wpak/data/PowerEntry.java

1
src/engine/wpak/PowersParser.java

@ -219,6 +219,7 @@ public class PowersParser { @@ -219,6 +219,7 @@ public class PowersParser {
effectPreReq.effect_id = arguments[9];
effectPreReq.level = Integer.parseInt(arguments[1]);
effectPreReq.message = arguments[2];
powerEntry.effectPreReqs.add(effectPreReq);
break;
case "MONSTERTYPERESTRICTS":
arguments = lineValues[1].trim().split("\\s+");

1
src/engine/wpak/data/PowerEntry.java

@ -49,6 +49,7 @@ public class PowerEntry { @@ -49,6 +49,7 @@ public class PowerEntry {
public String category;
public boolean canCastWhileMoving = false;
public boolean bladeTrails = false;
public ArrayList<EffectPreReq> effectPreReqs = new ArrayList<>();
public EquipmentPreReq equipmentPreReq;
public EnumSet<mbEnums.MonsterType> monsterRestricts = EnumSet.noneOf(mbEnums.MonsterType.class);
public EnumSet<mbEnums.MonsterType> monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class);

Loading…
Cancel
Save