mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-19 20:09:53 +08:00
fetter try
This commit is contained in:
committed by
GitHub
Unverified
parent
f248aa5e7e
commit
6b8b6b4899
@@ -55,6 +55,8 @@ public class AvatarData extends GenshinResource {
|
||||
private float[] defenseGrowthCurve;
|
||||
private AvatarSkillDepotData skillDepot;
|
||||
private IntList abilities;
|
||||
|
||||
private List<Integer> fetters;
|
||||
|
||||
@Override
|
||||
public int getId(){
|
||||
@@ -193,9 +195,16 @@ public class AvatarData extends GenshinResource {
|
||||
return abilities;
|
||||
}
|
||||
|
||||
public List<Integer> getFetters() {
|
||||
return fetters;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
this.skillDepot = GenshinData.getAvatarSkillDepotDataMap().get(this.SkillDepotId);
|
||||
|
||||
// Get fetters from GenshinData
|
||||
this.fetters = GenshinData.getFetterDataEntries().get(this.Id);
|
||||
|
||||
int size = GenshinData.getAvatarCurveDataMap().size();
|
||||
this.hpGrowthCurve = new float[size];
|
||||
|
||||
Reference in New Issue
Block a user