From 6c2932158104b64e96c1866a20fd2ab1e90082c9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 12:07:56 -0400 Subject: [PATCH] PowerActionEntry parsing work. --- src/engine/wpak/PowerActionParser.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/wpak/PowerActionParser.java b/src/engine/wpak/PowerActionParser.java index 0a3858ac..fc819d70 100644 --- a/src/engine/wpak/PowerActionParser.java +++ b/src/engine/wpak/PowerActionParser.java @@ -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;