Files
prestonbane/src/engine/wpak/data/PowerAction.java
T

69 lines
2.6 KiB
Java
Raw Normal View History

2024-08-19 13:05:32 -04:00
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2024
// www.magicbane.com
package engine.wpak.data;
2024-08-20 11:58:53 -04:00
import engine.mbEnums;
2024-08-19 13:13:31 -04:00
import java.util.ArrayList;
2025-02-19 12:37:04 -05:00
import java.util.Objects;
2024-08-19 13:13:31 -04:00
2024-08-22 16:21:13 -04:00
public class PowerAction {
2024-08-19 13:17:44 -04:00
2024-08-20 16:26:57 -04:00
// Header values
2024-08-19 13:13:31 -04:00
public String action_id;
public String action_type;
2024-08-22 16:21:13 -04:00
public ArrayList<Effect> effects = new ArrayList<>();
2024-08-20 16:26:57 -04:00
public int petLevel;
public int petRace;
public StatTransfer statTransfer;
2024-11-30 09:57:04 -05:00
public int ramp;
public mbEnums.CompoundCurveType rampCurve;
2024-08-20 18:49:03 -04:00
public TrackEntry trackEntry;
2024-08-20 11:58:53 -04:00
// Additional variables after header go here.
2024-09-07 12:10:55 -04:00
public ArrayList<Integer> bodyParts = new ArrayList<>();
2024-08-20 12:05:03 -04:00
public ArrayList<Integer> femaleBodyParts = new ArrayList<>();
2024-08-20 11:58:53 -04:00
public boolean shouldShowWeapons = false;
public boolean shouldShowArmor = false;
public boolean bladeTrails = false;
2024-08-20 15:41:26 -04:00
public boolean isResistible = false;
2024-08-20 11:58:53 -04:00
public ArrayList<Float> scaleFactor = new ArrayList<>();
public ArrayList<Integer> attackAnimations = new ArrayList<>();
public boolean isAggressive;
public mbEnums.DamageType damageType;
public boolean applyEffectBlank = false;
public boolean wearOffEffectBlank = false;
2024-08-20 17:08:59 -04:00
public boolean removeAll = false;
public boolean clearAggro = false;
2024-08-20 17:10:56 -04:00
public boolean targetBecomesPet = false;
2024-08-20 17:34:15 -04:00
public boolean destroyOldPet = false;
2024-08-20 17:37:17 -04:00
public mbEnums.ItemFlags itemFlag;
2024-08-20 18:35:34 -04:00
public mbEnums.MobBehaviourType rootFsmID;
2024-08-20 19:16:11 -04:00
public int splashDamageMin;
public int splashDamageMax;
2024-09-07 15:16:05 -04:00
public boolean ignoreNoTeleSpire = false;
2024-08-20 19:16:11 -04:00
2025-02-19 12:37:04 -05:00
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
2024-08-20 11:58:53 -04:00
2025-02-19 12:37:04 -05:00
PowerAction powerAction = (PowerAction) o;
return Objects.equals(action_id, powerAction.action_id);
}
@Override
public int hashCode() {
return action_id.hashCode(); // Use only the id field for hashCode
}
2024-08-19 13:05:32 -04:00
}