Browse Source

More PowerEntry parsing work.

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

3
src/engine/wpak/PowersParser.java

@ -239,6 +239,9 @@ public class PowersParser { @@ -239,6 +239,9 @@ public class PowersParser {
for (String restriction : arguments)
powerEntry.monsterRestricts.add(mbEnums.MonsterType.valueOf(restriction.trim()));
break;
case "SHOULDCHECKPATH":
powerEntry.shouldCheckPath = Boolean.parseBoolean(lineValues[1].trim());
break;
default:
Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id);
}

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

@ -51,4 +51,5 @@ public class PowerEntry { @@ -51,4 +51,5 @@ public class PowerEntry {
public boolean bladeTrails = false;
public EquipmentPreReq equipmentPreReq;
public EnumSet<mbEnums.MonsterType> monsterRestricts;
public boolean shouldCheckPath = false;
}

Loading…
Cancel
Save