mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-24 03:38:04 +00:00
Give Artifact: Clear random props first before adding all picked props
This commit is contained in:
parent
516d1f2ebf
commit
d37a326e9a
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user