Browse Source

PowerActionEntry parsing work.

feature-config-parsing2
MagicBot 4 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 {
for (String bodyPart : arguments) for (String bodyPart : arguments)
powerActionEntry.femaleBodyParts.add(Integer.parseInt(bodyPart)); powerActionEntry.femaleBodyParts.add(Integer.parseInt(bodyPart));
break; break;
case "SCALEFACTOR":
arguments = lineValues[1].trim().split("\\s+");
for (String bodyPart : arguments)
powerActionEntry.scaleFactor.add(Float.parseFloat(bodyPart));
break;
case "ISRESISTABLE": case "ISRESISTABLE":
powerActionEntry.isResistable = Boolean.parseBoolean(lineValues[1].trim()); powerActionEntry.isResistable = Boolean.parseBoolean(lineValues[1].trim());
break; break;

Loading…
Cancel
Save