MinetestForFun / server-minetestforfun

Repository of the subgame and mods of "MinetestForFun" server
https://www.xorhub.com
The Unlicense
27 stars 10 forks source link

improve pclasses to fix class stats don't change on equip/unequip/destroy armor #531

Closed ghost closed 7 years ago

ghost commented 7 years ago

player class stats are updated only on switch class or join server, if hunter have reinforced armor at the time of switch he win 10 stamina, but if he unequip this armor after he don't loose 10 stamina. this fix add ability to update stats on armor change or others.

Lymkwi commented 7 years ago

OK by me. Merging. I was too much in a hurry, we may have another solution. Working on that. Nevermind.

Lymkwi commented 7 years ago

https://github.com/MinetestForFun/server-minetestforfun/commit/ee58c4930fa75f0bbaeb8a8b3374855bba9fd625 https://github.com/MinetestForFun/server-minetestforfun/commit/126ce0d7e421307cb2eb35eccf78bc622aeca268 Working on further improvements.