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
2572d55c
Commit
2572d55c
authored
Apr 19, 2022
by
Melledy
Committed by
GitHub
Apr 19, 2022
Browse files
Merge pull request #24 from Yazawazi/main
Fix weapon refine
parents
aedfb598
3da79a1d
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/def/ItemData.java
View file @
2572d55c
...
...
@@ -48,6 +48,7 @@ public class ItemData extends GenshinResource {
private
int
WeaponBaseExp
;
private
int
StoryId
;
private
int
AvatarPromoteId
;
private
int
AwakenMaterial
;
private
int
[]
AwakenCosts
;
private
int
[]
SkillAffix
;
private
WeaponProperty
[]
WeaponProp
;
...
...
@@ -160,6 +161,10 @@ public class ItemData extends GenshinResource {
return
WeaponBaseExp
;
}
public
int
getAwakenMaterial
()
{
return
AwakenMaterial
;
}
public
int
[]
getAwakenCosts
()
{
return
AwakenCosts
;
}
...
...
src/main/java/emu/grasscutter/game/managers/InventoryManager.java
View file @
2572d55c
...
...
@@ -438,9 +438,15 @@ public class InventoryManager {
return
;
}
if
(
weapon
.
getItemData
().
getAwakenMaterial
()
==
0
)
{
if
(
weapon
.
getItemType
()
!=
ItemType
.
ITEM_WEAPON
||
weapon
.
getItemId
()
!=
feed
.
getItemId
())
{
return
;
}
}
else
{
if
(
weapon
.
getItemType
()
!=
ItemType
.
ITEM_WEAPON
||
weapon
.
getItemData
().
getAwakenMaterial
()
!=
feed
.
getItemId
())
{
return
;
}
}
if
(
weapon
.
getRefinement
()
>=
4
||
weapon
.
getAffixes
()
==
null
||
weapon
.
getAffixes
().
size
()
==
0
)
{
return
;
...
...
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