mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-06 10:06:51 +01:00
Refactor avatar skilldepot and constellation/talent changing
Ensures Traveler retains talent levels and constellations on inactive elements when switching elements. Relevant for any other skillDepot-changing activities like Windtrace too, though keeping those in the db might not be as useful. Refactor avatar talent upgrade and access Refactor skillExtraCharges
This commit is contained in:
@@ -37,9 +37,6 @@ public final class ResetConstCommand implements CommandHandler {
|
||||
}
|
||||
|
||||
private void resetConstellation(Avatar avatar) {
|
||||
avatar.getTalentIdList().clear();
|
||||
avatar.setCoreProudSkillLevel(0);
|
||||
avatar.recalcStats();
|
||||
avatar.save();
|
||||
avatar.forceConstellationLevel(-1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user