Browse Source

StatTransfer pojo created.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
ee431510fb
  1. 7
      src/engine/wpak/data/PowerActionEntry.java
  2. 24
      src/engine/wpak/data/StatTransfer.java

7
src/engine/wpak/data/PowerActionEntry.java

@ -14,9 +14,14 @@ import java.util.ArrayList;
public class PowerActionEntry { public class PowerActionEntry {
// Header values
public String action_id; public String action_id;
public String action_type; public String action_type;
public ArrayList<EffectDescription> effects = new ArrayList<>(); public ArrayList<EffectDescription> effects = new ArrayList<>();
public int petLevel;
public int petRace;
public StatTransfer statTransfer;
// Additional variables after header go here. // Additional variables after header go here.
@ -32,8 +37,6 @@ 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 petLevel;
public int petRace;
public boolean removeAll; public boolean removeAll;
} }

24
src/engine/wpak/data/StatTransfer.java

@ -0,0 +1,24 @@
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2024
// www.magicbane.com
package engine.wpak.data;
import engine.mbEnums;
public class StatTransfer {
public mbEnums.CostType fromStat;
public int fromStatValue;
public mbEnums.CompoundCurveType fromCurve;
public mbEnums.CostType toStat;
public int toStatValue;
public mbEnums.CompoundCurveType toCurve;
public boolean fromStatBool;
public boolean toStatBool;
public String transfer_action;
public int effect_duration;
}
Loading…
Cancel
Save