mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-10 18:02:52 +08:00
Give Artifact: Clear random props first before adding all picked props
This commit is contained in:
parent
090f4bb38c
commit
8a9dab7d74
@ -79,6 +79,7 @@ public final class GiveArtifactCommand implements CommandHandler {
|
||||
GameItem item = new GameItem(itemData);
|
||||
item.setLevel(level);
|
||||
item.setMainPropId(mainPropId);
|
||||
item.getAppendPropIdList().clear();//Clear default random props first
|
||||
item.getAppendPropIdList().addAll(appendPropIdList);
|
||||
targetPlayer.getInventory().addItem(item, ActionReason.SubfieldDrop);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user