Browse Source

More PowerEntry parsing work.

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

3
src/engine/wpak/PowersParser.java

@ -210,6 +210,9 @@ public class PowersParser {
case "CANCASTWHILEMOVING": case "CANCASTWHILEMOVING":
powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues[1].trim()); powerEntry.canCastWhileMoving = Boolean.parseBoolean(lineValues[1].trim());
break; break;
case "CANCASTWHILEFLYING":
powerEntry.canCastWhileFlying = Boolean.parseBoolean(lineValues[1].trim());
break;
case "BLADETRAILS": case "BLADETRAILS":
powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim()); powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim());
break; break;

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

@ -62,5 +62,6 @@ public class PowerEntry {
public boolean isAdminPower = false; public boolean isAdminPower = false;
public int casterPulseParticle; public int casterPulseParticle;
public ArrayList<EffectPreReq> targetEffectPrereqs = new ArrayList<>(); public ArrayList<EffectPreReq> targetEffectPrereqs = new ArrayList<>();
public boolean canCastWhileFlying = false;
} }

Loading…
Cancel
Save