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
28a8475c
Commit
28a8475c
authored
Jun 04, 2022
by
ImmuState
Committed by
Melledy
Jun 08, 2022
Browse files
Consume material.
parent
a668bd6e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/managers/ForgingManager/ForgingManager.java
View file @
28a8475c
...
@@ -145,7 +145,8 @@ public class ForgingManager {
...
@@ -145,7 +145,8 @@ public class ForgingManager {
continue
;
continue
;
}
}
this
.
player
.
getInventory
().
removeItem
(
material
.
getItemId
(),
material
.
getCount
()
*
req
.
getForgeCount
());
GameItem
item
=
this
.
player
.
getInventory
().
getInventoryTab
(
ItemType
.
ITEM_MATERIAL
).
getItemById
(
material
.
getItemId
());
this
.
player
.
getInventory
().
removeItem
(
item
,
material
.
getCount
()
*
req
.
getForgeCount
());
}
}
this
.
player
.
setMora
(
this
.
player
.
getMora
()
-
forgeData
.
getScoinCost
()
*
req
.
getForgeCount
());
this
.
player
.
setMora
(
this
.
player
.
getMora
()
-
forgeData
.
getScoinCost
()
*
req
.
getForgeCount
());
...
...
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