MSUTeam / nested-tooltips

A framework that enables nested tooltips for the Battle Brothers game.
1 stars 1 forks source link

fix: ammo randomization after viewing tooltip of quiver #5

Open Darxo opened 1 month ago

Darxo commented 1 month ago

Currently whenever you view the tooltip of a quiver or powder bag, you automatically randomize the ammunition count in it. This will not be apparent immediately. But as soon as you then move that item to another slot, the ammo count will update.

This is caused because this item is being equipped to the DummyPlayer whenever you view the tooltip of it. And it is a vanilla rule that if an ammo item is equipped to anyone who is not playercontrolled, then its ammunition count is randomized.

I tested this fix ingame. After the fix I was no longer able to randomize the ammunition count of a powder bag.