Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove implicit instance flags from wished items (#45558)
* Remove implicit instance flags from wished items When using the debug "spawn item" menu to wish for an item, the item instance was being assigned *all* of the flags from the item type, such as `EATEN_COLD` or `NO_REPAIR`. This made debug-spawned items behave differently from their game-world-spawned counterparts, which normally do not have these flags stored in the item instance (`item_tags`). This behavior was added in PR #44675 to support an enhancement to the "Add flags to spawned items" action (`F`), including the ability to add/edit multiple instance flags to an item before spawning it. This commit changes the behavior so item type flags are not implicitly added to every spawned item's instance flags. Instead, debug-spawned items have no instance flags unless the user explicitly adds them with "Add flags to spawned items" action (`F`). The first time using `F` on an item, you'll see the default list of item type flags, which you can edit or append. The spawned item will have all of the designated flags added to its `item_tags` (instance flags). If you add flags to an item, then switch to another item in the menu before spawning it, the flags will be reset. This is consistent with the "contained" (`f`) behavior, and prevents instance flags from carrying over to another unrelated item that may not support them.
- Loading branch information