More PowerEntry parsing work.

This commit is contained in:
2024-08-19 07:56:04 -04:00
parent 0dc8eeee90
commit e6a8cdd5e2
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -239,6 +239,9 @@ public class PowersParser {
for (String restriction : arguments) for (String restriction : arguments)
powerEntry.monsterRestricts.add(mbEnums.MonsterType.valueOf(restriction.trim())); powerEntry.monsterRestricts.add(mbEnums.MonsterType.valueOf(restriction.trim()));
break; break;
case "SHOULDCHECKPATH":
powerEntry.shouldCheckPath = Boolean.parseBoolean(lineValues[1].trim());
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);
} }
+1
View File
@@ -51,4 +51,5 @@ public class PowerEntry {
public boolean bladeTrails = false; public boolean bladeTrails = false;
public EquipmentPreReq equipmentPreReq; public EquipmentPreReq equipmentPreReq;
public EnumSet<mbEnums.MonsterType> monsterRestricts; public EnumSet<mbEnums.MonsterType> monsterRestricts;
public boolean shouldCheckPath = false;
} }