mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-13 15:23:21 +08:00
Constellation fix
This commit is contained in:
parent
3da79a1dc1
commit
1db13a6fa9
@ -471,7 +471,7 @@ public class InventoryManager {
|
||||
}
|
||||
|
||||
// Consume weapon
|
||||
player.getInventory().removeItem(feed);
|
||||
player.getInventory().removeItem(feed, 1);
|
||||
|
||||
// Get
|
||||
weapon.setRefinement(targetRefineLevel);
|
||||
@ -804,7 +804,11 @@ public class InventoryManager {
|
||||
// Get talent
|
||||
int currentTalentLevel = avatar.getCoreProudSkillLevel();
|
||||
int nextTalentId = ((avatar.getAvatarId() % 10000000) * 10) + currentTalentLevel + 1;
|
||||
AvatarTalentData talentData = GenshinData.getAvatarTalentDataMap().get(nextTalentId);
|
||||
|
||||
if (avatar.getAvatarId() == 10000006) {
|
||||
// Lisa is special in that her talentId starts with 4 instead of 6.
|
||||
nextTalentId = 40 + currentTalentLevel + 1;
|
||||
}
|
||||
|
||||
if (talentData == null) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user