Browse Source

More powerAction work.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
547b101c60
  1. 7
      src/engine/wpak/PowersParser.java

7
src/engine/wpak/PowersParser.java

@ -114,10 +114,15 @@ public class PowersParser { @@ -114,10 +114,15 @@ public class PowersParser {
String lineValue = iterator.next();
String[] linevalues = lineValue.split("=");
String key = linevalues[0].trim();
PowerAction powerAction;
String[] arguments;
switch (key) {
case "ACTION":
PowerAction powerAction = new PowerAction();
powerAction = new PowerAction();
arguments = linevalues[1].split(" ");
powerAction.effect_id = arguments[0];
break;
default:

Loading…
Cancel
Save