Browse Source

PowerActionEntry parsing work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
6c29321581
  1. 6
      src/engine/wpak/PowerActionParser.java

6
src/engine/wpak/PowerActionParser.java

@ -109,6 +109,12 @@ public class PowerActionParser { @@ -109,6 +109,12 @@ public class PowerActionParser {
for (String bodyPart : arguments)
powerActionEntry.femaleBodyParts.add(Integer.parseInt(bodyPart));
break;
case "SCALEFACTOR":
arguments = lineValues[1].trim().split("\\s+");
for (String bodyPart : arguments)
powerActionEntry.scaleFactor.add(Float.parseFloat(bodyPart));
break;
case "ISRESISTABLE":
powerActionEntry.isResistable = Boolean.parseBoolean(lineValues[1].trim());
break;

Loading…
Cancel
Save