Byrth / Lua-Byrth

Lua Addons and Scripts
3 stars 2 forks source link

Gearswap - player.equipment.sub Issues. #458

Open Selindrile opened 5 years ago

Selindrile commented 5 years ago

When changing your sub item via the ingame menu from an item to empty player.equipment.sub "breaks" and stops updating until you change it through a gearswap command, then it starts updating again.

Selindrile commented 5 years ago

Upon further testing it seems to be specific to situations where you're dual wielding two weapons with the same name, tested with Malevolences and Vampirisms, possibly only augmented items?

Selindrile commented 5 years ago

More testing, can't seem to make it happen with any items other than 2 identically augmented items from Sinister Reign.

Selindrile commented 5 years ago

And only if Gearswap itself equipped those two weapons, so, if you have

sets.Vampirisms = {main="Vampirism",sub="Vampirism"} and equip(sets.Vampirisms)

unequip the sub, player.equipment.sub will stop updating and stay as "Vampirism" until you reequip the sub with a gearswap equip(), at which point it will "fix"

Selindrile commented 5 years ago

There do seem to be other times where sub breaks even with other items but I can't seem to nail them down to specifics, but possibly narrowing down this instance will help find the issue with others as well?