forked from MagicBane/Server
Merge branch 'feature-config-parsing2' into feature-config-usage
# Conflicts: # src/engine/powers/EffectsBase.java
This commit is contained in:
@@ -13,16 +13,25 @@ import engine.powers.effectmodifiers.AbstractEffectModifier;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
|
||||
public class EffectEntry {
|
||||
public class Effect {
|
||||
public String effect_id;
|
||||
public String effect_name;
|
||||
public int icon;
|
||||
public HashSet<String> sources = new HashSet<>();
|
||||
public ArrayList<EffectModifier> mods = new ArrayList<>();
|
||||
public ArrayList<ModifierEntry> mods = new ArrayList<>();
|
||||
public ArrayList<ConditionEntry> conditions = new ArrayList<>();
|
||||
|
||||
// Additional variables outside of tags or parsed
|
||||
// elsewhere from Effects.cfg
|
||||
|
||||
public boolean isItemEffect;
|
||||
public boolean isSpireEffect;
|
||||
public boolean ignoreNoMod;
|
||||
public boolean dontSave;
|
||||
|
||||
public String type;
|
||||
public int level;
|
||||
public String message;
|
||||
public int cycleDuration;
|
||||
public int cycleDelay;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||||
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||||
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||||
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||||
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||||
// Magicbane Emulator Project © 2013 - 2024
|
||||
// www.magicbane.com
|
||||
|
||||
package engine.wpak.data;
|
||||
|
||||
public class EffectDescription {
|
||||
public String effect_id;
|
||||
public String type;
|
||||
public int level;
|
||||
public String message;
|
||||
public int cycleDuration;
|
||||
public int cycleDelay;
|
||||
}
|
||||
@@ -10,11 +10,11 @@ package engine.wpak.data;
|
||||
|
||||
import engine.mbEnums;
|
||||
|
||||
public class EffectModifier {
|
||||
public class ModifierEntry {
|
||||
public mbEnums.ModType type;
|
||||
public float min;
|
||||
public float max;
|
||||
public float scale;
|
||||
public float value;
|
||||
public mbEnums.CompoundCurveType compoundCurveType;
|
||||
public String arg1; // ItemName "Masterwork" ""
|
||||
public String arg2; // ItemName "" "of the Defender"
|
||||
@@ -0,0 +1,69 @@
|
||||
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||||
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||||
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||||
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||||
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||||
// Magicbane Emulator Project © 2013 - 2024
|
||||
// www.magicbane.com
|
||||
|
||||
package engine.wpak.data;
|
||||
|
||||
import engine.mbEnums;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class Power {
|
||||
public String power_id;
|
||||
public String power;
|
||||
public ArrayList<PowerEntry> powers = new ArrayList<>();
|
||||
public mbEnums.PowerTargetType target_type;
|
||||
public int range;
|
||||
public mbEnums.AreaType areaType;
|
||||
public int areaRange;
|
||||
public mbEnums.ExcludeType excludeType;
|
||||
public mbEnums.CostType costType;
|
||||
public float cost;
|
||||
public float difficulty;
|
||||
public float precision;
|
||||
public float init_time;
|
||||
public float release_time;
|
||||
public float recycle_time;
|
||||
public int hitRollYN;
|
||||
public mbEnums.CastingModeType castingMode;
|
||||
public int initAmin;
|
||||
public int releaseAnim;
|
||||
public mbEnums.TargetSelectType targetSelect;
|
||||
|
||||
// Additional key/value type power entries
|
||||
|
||||
public ArrayList<ActionEntry> actionEntries = new ArrayList<>();
|
||||
public int maxLevel;
|
||||
public int hateValue;
|
||||
public mbEnums.CompoundCurveType hateCurve = mbEnums.CompoundCurveType.DefaultFlat;
|
||||
public int loopAnimID;
|
||||
public String grantOverrideVar;
|
||||
public ArrayList<String> description = new ArrayList<>();
|
||||
public HashMap<String, mbEnums.CompoundCurveType> curves = new HashMap<>();
|
||||
public String category;
|
||||
public boolean canCastWhileMoving = false;
|
||||
public boolean bladeTrails = false;
|
||||
public ArrayList<Effect> effectPreReqs = new ArrayList<>();
|
||||
public ArrayList<EquipmentPreReq> equipmentPreReq = new ArrayList<>();
|
||||
public EnumSet<mbEnums.MonsterType> monsterRestricts = EnumSet.noneOf(mbEnums.MonsterType.class);
|
||||
public EnumSet<mbEnums.MonsterType> monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class);
|
||||
public boolean shouldCheckPath = false;
|
||||
public boolean sticky = false;
|
||||
public int pulseCycle;
|
||||
public int pulseDuration;
|
||||
public int maxMobTargets;
|
||||
public int maxPlayerTargets;
|
||||
public boolean isAdminPower = false;
|
||||
public int casterPulseParticle;
|
||||
public ArrayList<Effect> targetEffectPrereqs = new ArrayList<>();
|
||||
public boolean canCastWhileFlying = false;
|
||||
public boolean isProjectile = false;
|
||||
public HashMap<String, Float> conditions = new HashMap<>();
|
||||
|
||||
}
|
||||
@@ -12,13 +12,13 @@ import engine.mbEnums;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class PowerActionEntry {
|
||||
public class PowerAction {
|
||||
|
||||
// Header values
|
||||
|
||||
public String action_id;
|
||||
public String action_type;
|
||||
public ArrayList<EffectDescription> effects = new ArrayList<>();
|
||||
public ArrayList<Effect> effects = new ArrayList<>();
|
||||
public int petLevel;
|
||||
public int petRace;
|
||||
public StatTransfer statTransfer;
|
||||
@@ -1,17 +0,0 @@
|
||||
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||||
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||||
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||||
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||||
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||||
// Magicbane Emulator Project © 2013 - 2024
|
||||
// www.magicbane.com
|
||||
|
||||
package engine.wpak.data;
|
||||
|
||||
import engine.mbEnums;
|
||||
|
||||
public class PowerData {
|
||||
public mbEnums.PowerType power_type;
|
||||
public int icon;
|
||||
public String powerBase;
|
||||
}
|
||||
@@ -10,60 +10,8 @@ package engine.wpak.data;
|
||||
|
||||
import engine.mbEnums;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class PowerEntry {
|
||||
public String power_id;
|
||||
public String power;
|
||||
public ArrayList<PowerData> powers = new ArrayList<>();
|
||||
public mbEnums.PowerTargetType target_type;
|
||||
public int range;
|
||||
public mbEnums.AreaType areaType;
|
||||
public int areaRange;
|
||||
public mbEnums.ExcludeType excludeType;
|
||||
public mbEnums.CostType costType;
|
||||
public float cost;
|
||||
public float difficulty;
|
||||
public float precision;
|
||||
public float init_time;
|
||||
public float release_time;
|
||||
public float recycle_time;
|
||||
public int hitRollYN;
|
||||
public mbEnums.CastingModeType castingMode;
|
||||
public int initAmin;
|
||||
public int releaseAnim;
|
||||
public mbEnums.TargetSelectType targetSelect;
|
||||
|
||||
// Additional key/value type power entries
|
||||
|
||||
public ArrayList<ActionEntry> actionEntries = new ArrayList<>();
|
||||
public int maxLevel;
|
||||
public int hateValue;
|
||||
public mbEnums.CompoundCurveType hateCurve = mbEnums.CompoundCurveType.DefaultFlat;
|
||||
public int loopAnimID;
|
||||
public String grantOverrideVar;
|
||||
public ArrayList<String> description = new ArrayList<>();
|
||||
public HashMap<String, mbEnums.CompoundCurveType> curves = new HashMap<>();
|
||||
public String category;
|
||||
public boolean canCastWhileMoving = false;
|
||||
public boolean bladeTrails = false;
|
||||
public ArrayList<EffectDescription> effectPreReqs = new ArrayList<>();
|
||||
public ArrayList<EquipmentPreReq> equipmentPreReq = new ArrayList<>();
|
||||
public EnumSet<mbEnums.MonsterType> monsterRestricts = EnumSet.noneOf(mbEnums.MonsterType.class);
|
||||
public EnumSet<mbEnums.MonsterType> monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class);
|
||||
public boolean shouldCheckPath = false;
|
||||
public boolean sticky = false;
|
||||
public int pulseCycle;
|
||||
public int pulseDuration;
|
||||
public int maxMobTargets;
|
||||
public int maxPlayerTargets;
|
||||
public boolean isAdminPower = false;
|
||||
public int casterPulseParticle;
|
||||
public ArrayList<EffectDescription> targetEffectPrereqs = new ArrayList<>();
|
||||
public boolean canCastWhileFlying = false;
|
||||
public boolean isProjectile = false;
|
||||
public HashMap<String, Float> conditions = new HashMap<>();
|
||||
|
||||
public mbEnums.PowerType power_type;
|
||||
public int icon;
|
||||
public String powerBase;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user