From ee431510fb0a4ae3381e74c51199ab90947c7ccd Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 20 Aug 2024 16:26:57 -0400 Subject: [PATCH] StatTransfer pojo created. --- src/engine/wpak/data/PowerActionEntry.java | 7 +++++-- src/engine/wpak/data/StatTransfer.java | 24 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 src/engine/wpak/data/StatTransfer.java diff --git a/src/engine/wpak/data/PowerActionEntry.java b/src/engine/wpak/data/PowerActionEntry.java index f6299ef1..fd95f82a 100644 --- a/src/engine/wpak/data/PowerActionEntry.java +++ b/src/engine/wpak/data/PowerActionEntry.java @@ -14,9 +14,14 @@ import java.util.ArrayList; public class PowerActionEntry { + // Header values + public String action_id; public String action_type; public ArrayList effects = new ArrayList<>(); + public int petLevel; + public int petRace; + public StatTransfer statTransfer; // Additional variables after header go here. @@ -32,8 +37,6 @@ public class PowerActionEntry { public mbEnums.DamageType damageType; public boolean applyEffectBlank = false; public boolean wearOffEffectBlank = false; - public int petLevel; - public int petRace; public boolean removeAll; } diff --git a/src/engine/wpak/data/StatTransfer.java b/src/engine/wpak/data/StatTransfer.java new file mode 100644 index 00000000..2499a8ae --- /dev/null +++ b/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; +}