Browse Source

More PowerEntry parsing work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
a9b6fcb9ee
  1. 29
      src/engine/wpak/PowersParser.java

29
src/engine/wpak/PowersParser.java

@ -220,20 +220,6 @@ public class PowersParser {
effectPreReq.level = Integer.parseInt(arguments[1]); effectPreReq.level = Integer.parseInt(arguments[1]);
effectPreReq.message = arguments[2]; effectPreReq.message = arguments[2];
break; break;
case "SOUNDS": // Values not parsed
case "APPLYDAMAGECASTER":
case "APPLYDAMAGEOTHER":
case "APPLYDAMAGETARGET":
case "APPLYEFFECTSELF":
case "APPLYEFFECTOTHER":
case "FIZZLEOTHER":
case "FIZZLESELF":
case "INITSTRING":
case "SUCCESSOTHER":
case "SUCCESSSELF":
case "WEAROFFEFFECTOTHER":
case "WEAROFFEFFECTSELF":
break;
case "MONSTERTYPERESTRICTS": case "MONSTERTYPERESTRICTS":
arguments = lineValues[1].trim().split("\\s+"); arguments = lineValues[1].trim().split("\\s+");
for (String restriction : arguments) for (String restriction : arguments)
@ -267,7 +253,20 @@ public class PowersParser {
case "CASTERSPULSEPARTICLE": case "CASTERSPULSEPARTICLE":
powerEntry.casterPulseParticle = Integer.parseInt(lineValues[1].trim()); powerEntry.casterPulseParticle = Integer.parseInt(lineValues[1].trim());
break; break;
case "SOUNDS": // Values not parsed
case "APPLYDAMAGECASTER":
case "APPLYDAMAGEOTHER":
case "APPLYDAMAGETARGET":
case "APPLYEFFECTSELF":
case "APPLYEFFECTOTHER":
case "FIZZLEOTHER":
case "FIZZLESELF":
case "INITSTRING":
case "SUCCESSOTHER":
case "SUCCESSSELF":
case "WEAROFFEFFECTOTHER":
case "WEAROFFEFFECTSELF":
break;
default: default:
Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id); Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id);
} }

Loading…
Cancel
Save