EcoArmor
EcoArmor copied to clipboard
add_stat effect improperly calculated for per-piece armor effects
Describe the bug add_stat is improperly counted for pie-piece armor effects, seemingly based on stat values after bonuses, meaning the order in which armor is put on will completely change the final value
To Reproduce Steps to reproduce the behavior:
- Create an armor set with add_stat (defense) as per-piece effects
- Equip the armor set in varying order
- Note the differences of stats applied based on the order you equip the individual armor pieces
Expected behavior The add_stat effect should be additive comparatively to the base stat values, and should take into account multiple armor pieces in the event that per-piece effects are used
Screenshots
Server Information (please complete the following information):
- Version: Purpur-1566 1.18.1
- Version of plugin: 7.74.0
- Version of Eco: 6.36.4
yes pls fix this
Same problem with bonus_health
The order of putting on the armor changes the amount granted. For me, adding the chestplate on last gives 20 more HP than it's supposed to.
Full set is supposed to give +100 hp but if the chestplate is put on last, the player gains +120.
For info: I'm only using individual armor bonuses and have no set bonus for HP.