forked from MagicBane/Server
More enum work.
This commit is contained in:
@@ -3052,7 +3052,22 @@ public class mbEnums {
|
||||
PLAYERS,
|
||||
ALLBUTGROUP,
|
||||
ALLBUTPETS;
|
||||
}
|
||||
|
||||
public enum CastingModeType {
|
||||
NONE,
|
||||
COMBAT,
|
||||
NONCOMBAT,
|
||||
BOTH;
|
||||
}
|
||||
|
||||
public enum TargetSelectType {
|
||||
NONE,
|
||||
CLICK,
|
||||
GROUP,
|
||||
GUILD,
|
||||
NEARBYMOBS,
|
||||
NAME;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ public class PowerEntry {
|
||||
public float release_time;
|
||||
public float recycle_time;
|
||||
public int hitRollYN;
|
||||
public String castingMode;
|
||||
public mbEnums.CastingModeType castingMode;
|
||||
public int initAmin;
|
||||
public int releaseAnim;
|
||||
public String targetSelect;
|
||||
public mbEnums.TargetSelectType targetSelect;
|
||||
}
|
||||
|
||||
@@ -99,10 +99,10 @@ public class PowersParser {
|
||||
powerEntry.release_time = Float.parseFloat(iterator.next());
|
||||
powerEntry.recycle_time = Float.parseFloat(iterator.next());
|
||||
powerEntry.hitRollYN = Integer.parseInt(iterator.next());
|
||||
powerEntry.castingMode = iterator.next();
|
||||
powerEntry.castingMode = mbEnums.CastingModeType.valueOf(iterator.next());
|
||||
powerEntry.initAmin = Integer.parseInt(iterator.next());
|
||||
powerEntry.releaseAnim = Integer.parseInt(iterator.next());
|
||||
powerEntry.targetSelect = iterator.next();
|
||||
powerEntry.targetSelect = mbEnums.TargetSelectType.valueOf(iterator.next());
|
||||
|
||||
|
||||
for (int x = 2; x < powerEntries.length; x++) {
|
||||
|
||||
Reference in New Issue
Block a user