AbilityModifier.java 868 Bytes
Newer Older
Melledy's avatar
Melledy committed
1
package emu.grasscutter.data.binout;
Melledy's avatar
Melledy committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

import java.util.Map;

public class AbilityModifier {
	public AbilityModifierAction[] onAdded;
	public AbilityModifierAction[] onThinkInterval;
	public AbilityModifierAction[] onRemoved;

	public static class AbilityConfigData {
		public AbilityData Default;
	}
	
	public static class AbilityData {
		public String abilityName;
		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;
	}
}