Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
c72891ff
Commit
c72891ff
authored
Apr 19, 2022
by
Melledy
Committed by
GitHub
Apr 19, 2022
Browse files
Merge pull request #26 from Yazawazi/main
unlockAvatarConstellation fix
parents
5bc1448d
5fcecfc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/managers/InventoryManager.java
View file @
c72891ff
...
...
@@ -471,7 +471,7 @@ public class InventoryManager {
}
// Consume weapon
player
.
getInventory
().
removeItem
(
feed
);
player
.
getInventory
().
removeItem
(
feed
,
1
);
// Get
weapon
.
setRefinement
(
targetRefineLevel
);
...
...
@@ -804,6 +804,12 @@ public class InventoryManager {
// Get talent
int
currentTalentLevel
=
avatar
.
getCoreProudSkillLevel
();
int
nextTalentId
=
((
avatar
.
getAvatarId
()
%
10000000
)
*
10
)
+
currentTalentLevel
+
1
;
if
(
avatar
.
getAvatarId
()
==
10000006
)
{
// Lisa is special in that her talentId starts with 4 instead of 6.
nextTalentId
=
40
+
currentTalentLevel
+
1
;
}
AvatarTalentData
talentData
=
GenshinData
.
getAvatarTalentDataMap
().
get
(
nextTalentId
);
if
(
talentData
==
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment