mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 15:38:24 +00:00
Save avatar in forceConstellationLevel (closes #1881)
This commit is contained in:
parent
c331a7f288
commit
c51f7610b2
@ -809,12 +809,14 @@ public class Avatar {
|
|||||||
if (level < 0) { // Special case for resetConst to remove inactive depots too
|
if (level < 0) { // Special case for resetConst to remove inactive depots too
|
||||||
this.talentIdList.clear();
|
this.talentIdList.clear();
|
||||||
this.recalcStats();
|
this.recalcStats();
|
||||||
|
this.save();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.talentIdList.removeAll(this.getTalentIdList()); // Only remove constellations from active depot
|
this.talentIdList.removeAll(this.getTalentIdList()); // Only remove constellations from active depot
|
||||||
for (int i = 0; i < level; i++)
|
for (int i = 0; i < level; i++)
|
||||||
this.unlockConstellation(true);
|
this.unlockConstellation(true);
|
||||||
this.recalcStats();
|
this.recalcStats();
|
||||||
|
this.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean sendSkillExtraChargeMap() {
|
public boolean sendSkillExtraChargeMap() {
|
||||||
|
Loading…
Reference in New Issue
Block a user