mbkarle / mind-the-fog

Roguelike JavaScript game--mind the fog!
2 stars 1 forks source link

Equip one, equip all #45

Closed akarle closed 7 years ago

akarle commented 7 years ago

If you equip one item, it equips all of that type.

It should be a pass by reference issue.

mbkarle commented 7 years ago

The sell page's quirky functions make this fix very important. At the moment if a second copy is reading equipped all of the items below it in the array will be offset on their sell_ids and therefore the wrong item will sell on click.