More PowerEntry parsing work.
This commit is contained in:
@@ -250,6 +250,11 @@ public class PowersParser {
|
||||
case "STICKY":
|
||||
powerEntry.sticky = Boolean.parseBoolean(lineValues[1].trim());
|
||||
break;
|
||||
case "PULSEINFO":
|
||||
arguments = lineValues[1].trim().split("\\s+");
|
||||
powerEntry.pulseCycle = Integer.parseInt(arguments[0]);
|
||||
powerEntry.pulseDuration = Integer.parseInt(arguments[1]);
|
||||
break;
|
||||
default:
|
||||
Logger.error("Unhandled variable type:" + key + " for power: " + powerEntry.power_id);
|
||||
}
|
||||
|
||||
@@ -54,4 +54,7 @@ public class PowerEntry {
|
||||
public EnumSet<mbEnums.MonsterType> monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class);
|
||||
public boolean shouldCheckPath = false;
|
||||
public boolean sticky = false;
|
||||
public int pulseCycle;
|
||||
public int pulseDuration;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user