Browse Source

More PowerEntry parsing work.

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

3
src/engine/wpak/PowersParser.java

@ -261,6 +261,9 @@ public class PowersParser { @@ -261,6 +261,9 @@ public class PowersParser {
case "MAXNUMPLAYERTARGETS":
powerEntry.maxPlayerTargets = Integer.parseInt(lineValues[1].trim());
break;
case "ISADMINPOWER":
powerEntry.isAdminPower = Boolean.parseBoolean(lineValues[1].trim());
break;
default:
Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id);
}

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

@ -58,6 +58,8 @@ public class PowerEntry { @@ -58,6 +58,8 @@ public class PowerEntry {
public int pulseDuration;
public int maxMobTargets;
public int maxPlayerTargets;
public boolean isAdminPower = false;
}

Loading…
Cancel
Save