ProudSkillData.java 2.16 KB
Newer Older
Melledy's avatar
Melledy committed
1
2
3
4
5
package emu.grasscutter.data.def;

import java.util.ArrayList;
import java.util.List;

6
import emu.grasscutter.data.GameResource;
Melledy's avatar
Melledy committed
7
8
9
10
11
import emu.grasscutter.data.ResourceType;
import emu.grasscutter.data.common.FightPropData;
import emu.grasscutter.data.common.ItemParamData;

@ResourceType(name = "ProudSkillExcelConfigData.json")
12
public class ProudSkillData extends GameResource {
Melledy's avatar
Melledy committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
	
	private int ProudSkillId;
    private int ProudSkillGroupId;
    private int Level;
    private int CoinCost;
    private int BreakLevel;
    private int ProudSkillType;
    private String OpenConfig;
    private List<ItemParamData> CostItems;
    private List<String> FilterConds;
    private List<String> LifeEffectParams;
    private FightPropData[] AddProps;
    private float[] ParamList;
    private long[] ParamDescList;
    private long NameTextMapHash;
	
	@Override
	public int getId() {
		return ProudSkillId;
	}

	public int getProudSkillGroupId() {
		return ProudSkillGroupId;
	}

	public int getLevel() {
		return Level;
	}

	public int getCoinCost() {
		return CoinCost;
	}

	public int getBreakLevel() {
		return BreakLevel;
	}

	public int getProudSkillType() {
		return ProudSkillType;
	}

	public String getOpenConfig() {
		return OpenConfig;
	}

	public List<ItemParamData> getCostItems() {
		return CostItems;
	}

	public List<String> getFilterConds() {
		return FilterConds;
	}

	public List<String> getLifeEffectParams() {
		return LifeEffectParams;
	}

	public FightPropData[] getAddProps() {
		return AddProps;
	}

	public float[] getParamList() {
		return ParamList;
	}

	public long[] getParamDescList() {
		return ParamDescList;
	}

	public long getNameTextMapHash() {
		return NameTextMapHash;
	}

	@Override
	public void onLoad() {
		if (this.getOpenConfig() != null & this.getOpenConfig().length() > 0) {
			this.OpenConfig = "Avatar_" + this.getOpenConfig();
		}
		// Fight props
		ArrayList<FightPropData> parsed = new ArrayList<FightPropData>(getAddProps().length);
		for (FightPropData prop : getAddProps()) {
			if (prop.getPropType() != null && prop.getValue() != 0f) {
				prop.onLoad();
				parsed.add(prop);
			}
		}
		this.AddProps = parsed.toArray(new FightPropData[parsed.size()]);
	}
}