chrisesharp / roguelike

MIT License
0 stars 4 forks source link

Wield an object, and it is marked as (wielding) forever. #27

Closed techcobweb closed 3 years ago

techcobweb commented 3 years ago

Pick up a dagger, look in your inventory Dagger Wield the dagger, look in your inventory Dagger (wielding) OK so far.

Now the fun bit.

Un-wield the dagger, to just put it back in the inventory. Look in your inventory: Dagger (wielding) huh ? Im not wielding it any longer.

So drop it. Then pick it up again. Look in your inventory: Dagger (wielding)

So it seems the item is never un-marked as being wielded.

chrisesharp commented 3 years ago

Fixed...needed to make the deserialization of Entities always update the state of currentWeapon and currentArmour.