Browse Source

More PowerEntry parsing work.

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

4
src/engine/wpak/PowersParser.java

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

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

@ -59,7 +59,6 @@ public class PowerEntry { @@ -59,7 +59,6 @@ public class PowerEntry {
public int maxMobTargets;
public int maxPlayerTargets;
public boolean isAdminPower = false;
public int casterPulseParticle;
}

Loading…
Cancel
Save