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

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

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

Loading…
Cancel
Save