forked from MagicBane/Server
More PowerEntry parsing work.
This commit is contained in:
@@ -255,6 +255,12 @@ public class PowersParser {
|
|||||||
powerEntry.pulseCycle = Integer.parseInt(arguments[0]);
|
powerEntry.pulseCycle = Integer.parseInt(arguments[0]);
|
||||||
powerEntry.pulseDuration = Integer.parseInt(arguments[1]);
|
powerEntry.pulseDuration = Integer.parseInt(arguments[1]);
|
||||||
break;
|
break;
|
||||||
|
case "MAXNUMMOBTARGETS":
|
||||||
|
powerEntry.maxMobTargets = Integer.parseInt(lineValues[1].trim());
|
||||||
|
break;
|
||||||
|
case "MAXNUMPLAYERTARGETS":
|
||||||
|
powerEntry.maxPlayerTargets = Integer.parseInt(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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,5 +56,8 @@ public class PowerEntry {
|
|||||||
public boolean sticky = false;
|
public boolean sticky = false;
|
||||||
public int pulseCycle;
|
public int pulseCycle;
|
||||||
public int pulseDuration;
|
public int pulseDuration;
|
||||||
|
public int maxMobTargets;
|
||||||
|
public int maxPlayerTargets;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user