More PowerEntry parsing work.

This commit is contained in:
2024-08-19 08:06:09 -04:00
parent 5860a263d9
commit 4f25e7e24f
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -250,6 +250,11 @@ public class PowersParser {
case "STICKY": case "STICKY":
powerEntry.sticky = Boolean.parseBoolean(lineValues[1].trim()); powerEntry.sticky = Boolean.parseBoolean(lineValues[1].trim());
break; break;
case "PULSEINFO":
arguments = lineValues[1].trim().split("\\s+");
powerEntry.pulseCycle = Integer.parseInt(arguments[0]);
powerEntry.pulseDuration = Integer.parseInt(arguments[1]);
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);
} }
+3
View File
@@ -54,4 +54,7 @@ public class PowerEntry {
public EnumSet<mbEnums.MonsterType> monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class); public EnumSet<mbEnums.MonsterType> monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class);
public boolean shouldCheckPath = false; public boolean shouldCheckPath = false;
public boolean sticky = false; public boolean sticky = false;
public int pulseCycle;
public int pulseDuration;
} }