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
8a9dab7d
Commit
8a9dab7d
authored
Apr 30, 2022
by
muhammadeko
Committed by
Melledy
Apr 29, 2022
Browse files
Give Artifact: Clear random props first before adding all picked props
parent
090f4bb3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/GiveArtifactCommand.java
View file @
8a9dab7d
...
@@ -79,6 +79,7 @@ public final class GiveArtifactCommand implements CommandHandler {
...
@@ -79,6 +79,7 @@ public final class GiveArtifactCommand implements CommandHandler {
GameItem
item
=
new
GameItem
(
itemData
);
GameItem
item
=
new
GameItem
(
itemData
);
item
.
setLevel
(
level
);
item
.
setLevel
(
level
);
item
.
setMainPropId
(
mainPropId
);
item
.
setMainPropId
(
mainPropId
);
item
.
getAppendPropIdList
().
clear
();
//Clear default random props first
item
.
getAppendPropIdList
().
addAll
(
appendPropIdList
);
item
.
getAppendPropIdList
().
addAll
(
appendPropIdList
);
targetPlayer
.
getInventory
().
addItem
(
item
,
ActionReason
.
SubfieldDrop
);
targetPlayer
.
getInventory
().
addItem
(
item
,
ActionReason
.
SubfieldDrop
);
...
...
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