forked from MagicBane/Server
PowerAction parsing work.
This commit is contained in:
@@ -164,6 +164,9 @@ public class PowerActionParser {
|
|||||||
for (String bodyPart : arguments)
|
for (String bodyPart : arguments)
|
||||||
powerActionEntry.attackAnimations.add(Integer.parseInt(bodyPart));
|
powerActionEntry.attackAnimations.add(Integer.parseInt(bodyPart));
|
||||||
break;
|
break;
|
||||||
|
case "REMOVEALL":
|
||||||
|
powerActionEntry.removeAll = Boolean.parseBoolean(lineValues[1].trim());
|
||||||
|
break;
|
||||||
case "WEAROFFEFFECTOTHER": // Keys not parsed go here.
|
case "WEAROFFEFFECTOTHER": // Keys not parsed go here.
|
||||||
case "WEAROFFEFFECTSELF":
|
case "WEAROFFEFFECTSELF":
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ public class PowerActionEntry {
|
|||||||
public mbEnums.DamageType damageType;
|
public mbEnums.DamageType damageType;
|
||||||
public boolean applyEffectBlank = false;
|
public boolean applyEffectBlank = false;
|
||||||
public boolean wearOffEffectBlank = false;
|
public boolean wearOffEffectBlank = false;
|
||||||
public int arg1;
|
public int arg1; // used in DamageOverTime, CreateMob, etc.
|
||||||
public int arg2;
|
public int arg2;
|
||||||
|
public boolean removeAll;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user