PowerAction work started.

This commit is contained in:
2024-08-19 13:13:31 -04:00
parent e83e0def2e
commit fab77a0dbb
4 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -216,7 +216,7 @@ public class PowersParser {
powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim()); powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim());
break; break;
case "EFFECTPREREQ": case "EFFECTPREREQ":
EffectPreReq effectPreReq = new EffectPreReq(); effectDescription effectPreReq = new effectDescription();
arguments = lineValues[1].trim().split("\\s+"); arguments = lineValues[1].trim().split("\\s+");
effectPreReq.effect_id = arguments[9]; effectPreReq.effect_id = arguments[9];
effectPreReq.level = Integer.parseInt(arguments[1]); effectPreReq.level = Integer.parseInt(arguments[1]);
@@ -260,7 +260,7 @@ public class PowersParser {
powerEntry.casterPulseParticle = Integer.parseInt(lineValues[1].trim()); powerEntry.casterPulseParticle = Integer.parseInt(lineValues[1].trim());
break; break;
case "TARGETEFFECTPREREQS_ORED": case "TARGETEFFECTPREREQS_ORED":
EffectPreReq preReq = new EffectPreReq(); effectDescription preReq = new effectDescription();
arguments = lineValues[1].trim().split("\\s+"); arguments = lineValues[1].trim().split("\\s+");
preReq.effect_id = arguments[0]; preReq.effect_id = arguments[0];
preReq.level = Integer.parseInt(arguments[1]); preReq.level = Integer.parseInt(arguments[1]);
@@ -8,5 +8,11 @@
package engine.wpak.data; package engine.wpak.data;
import java.util.ArrayList;
public class PowerActionEntry { public class PowerActionEntry {
public String action_id;
public String action_type;
public ArrayList<effectDescription> effects;
} }
+2 -2
View File
@@ -50,7 +50,7 @@ public class PowerEntry {
public String category; public String category;
public boolean canCastWhileMoving = false; public boolean canCastWhileMoving = false;
public boolean bladeTrails = false; public boolean bladeTrails = false;
public ArrayList<EffectPreReq> effectPreReqs = new ArrayList<>(); public ArrayList<effectDescription> effectPreReqs = new ArrayList<>();
public EquipmentPreReq equipmentPreReq; public EquipmentPreReq equipmentPreReq;
public EnumSet<mbEnums.MonsterType> monsterRestricts = EnumSet.noneOf(mbEnums.MonsterType.class); public EnumSet<mbEnums.MonsterType> monsterRestricts = EnumSet.noneOf(mbEnums.MonsterType.class);
public EnumSet<mbEnums.MonsterType> monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class); public EnumSet<mbEnums.MonsterType> monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class);
@@ -62,7 +62,7 @@ public class PowerEntry {
public int maxPlayerTargets; public int maxPlayerTargets;
public boolean isAdminPower = false; public boolean isAdminPower = false;
public int casterPulseParticle; public int casterPulseParticle;
public ArrayList<EffectPreReq> targetEffectPrereqs = new ArrayList<>(); public ArrayList<effectDescription> targetEffectPrereqs = new ArrayList<>();
public boolean canCastWhileFlying = false; public boolean canCastWhileFlying = false;
public boolean isProjectile = false; public boolean isProjectile = false;
public HashMap<String, Float> conditions = new HashMap<>(); public HashMap<String, Float> conditions = new HashMap<>();
@@ -8,7 +8,7 @@
package engine.wpak.data; package engine.wpak.data;
public class EffectPreReq { public class effectDescription {
public String effect_id; public String effect_id;
public int level; public int level;
public String message; public String message;