mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-12 17:25:36 +08:00
458aadc2ff
* fix healing ability of some characters to some extent * using SerialName to replace replaceAll in avatar ability files reading * add class HealAbilityManager * move codes in onAbilityInvoke of class AbilityManager to class HealAbilityManager
45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
package emu.grasscutter.data.binout;
|
|
|
|
import java.util.Map;
|
|
import java.io.Serializable;
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
public class AbilityModifier implements Serializable {
|
|
private static final long serialVersionUID = -2001232313615923575L;
|
|
|
|
@SerializedName(value="onAdded", alternate={"KCICDEJLIJD"})
|
|
public AbilityModifierAction[] onAdded;
|
|
@SerializedName(value="onThinkInterval", alternate={"PBDDACFFPOE"})
|
|
public AbilityModifierAction[] onThinkInterval;
|
|
public AbilityModifierAction[] onRemoved;
|
|
|
|
public static class AbilityConfigData {
|
|
public AbilityData Default;
|
|
}
|
|
|
|
public static class AbilityData {
|
|
public String abilityName;
|
|
@SerializedName(value="modifiers", alternate={"HNEIEGHMLKH"})
|
|
public Map<String, AbilityModifier> modifiers;
|
|
}
|
|
|
|
public static class AbilityModifierAction {
|
|
public String $type;
|
|
public AbilityModifierActionType type;
|
|
public String target;
|
|
public AbilityModifierValue amount;
|
|
public AbilityModifierValue amountByTargetCurrentHPRatio;
|
|
}
|
|
|
|
public static class AbilityModifierValue {
|
|
public boolean isFormula;
|
|
public boolean isDynamic;
|
|
public String dynamicKey;
|
|
}
|
|
|
|
public enum AbilityModifierActionType {
|
|
HealHP, ApplyModifier, LoseHP;
|
|
}
|
|
}
|