ioxu / key

Key, a game made with the Godot Engine 4.
MIT License
6 stars 1 forks source link

add multiple weapon slots to weapon inventory #39

Closed ioxu closed 2 years ago

ioxu commented 2 years ago

Sort out what happens when picking up multiple weapons into inventory.

ioxu commented 2 years ago

dui_root._on_inventory_changed checks if weapon_inv_slots is different to inventory.n_weapons, adds new weapon slots? Or should it remove all and re-add the correct amount, reparenting weapons?

ioxu commented 2 years ago

Just measure difference and add more if needed. Good enough for now.