bones: bones are now holding 150 item slots and register_transfer_inventory_to_bones_on_player_death callback

This commit is contained in:
Imre Péntek 2023-05-05 07:31:06 +02:00
parent 0351c66915
commit 7ce365f4e4
2 changed files with 111 additions and 57 deletions

View file

@ -83,6 +83,16 @@ in `bones.player_inventory_lists`.
e.g. `table.insert(bones.player_inventory_lists, "backpack")`
Additionally, callbacks can be registered to transfer items into the bones on death:
`bones.public.register_transfer_inventory_to_bones_on_player_death(function(player){})`
In the above functions this routine should be used to add itmes to the bones inventory:
`bones.public.transfer_stack_to_bones(stack)`
please note that the inventory these items were taken from still need to be disposed of.
Creative API
------------