Browse Source

More PowerEntry parsing work.

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

7
src/engine/wpak/PowersParser.java

@ -254,6 +254,13 @@ public class PowersParser {
case "CASTERSPULSEPARTICLE": case "CASTERSPULSEPARTICLE":
powerEntry.casterPulseParticle = Integer.parseInt(lineValues[1].trim()); powerEntry.casterPulseParticle = Integer.parseInt(lineValues[1].trim());
break; break;
case "TARGETEFFECTPREREQS_ORED":
EffectPreReq preReq = new EffectPreReq();
arguments = lineValues[1].trim().split("\\s+");
preReq.effect_id = arguments[9];
preReq.level = Integer.parseInt(arguments[1]);
powerEntry.targetEffectPrereqs.add(preReq);
break;
case "SOUNDS": // Values not parsed case "SOUNDS": // Values not parsed
case "APPLYDAMAGECASTER": case "APPLYDAMAGECASTER":
case "APPLYDAMAGEOTHER": case "APPLYDAMAGEOTHER":

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

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

Loading…
Cancel
Save