Closed LeeWannacott closed 3 months ago
Thank you for making this. I also support this function. My use case is that I have a custom equipment slot and I want to create a new item at the start of the game and put it in my custom slot instead of an inventory.
Can you please also update docs/inventory.md?
Done.
I don't know why its saying I added protoset_changed() to the last line of the docs though? Weird, I used the online editor.
Adds a method to create_item(protoset_id) with protoset_id, but NOT add the item to inventory;
Use case: I want to create the item for a loot drop (which might have some unique properties set), but only add the item to inventory when the user presses a key/interacts with the loot drop.
Note: I also use loot drop for the player dropping their own inventory on the ground which sets inventory_item_drop; in which case I just add_item back if they interact with it...
Example: