eq-p99-tools / ninjalooter

Track loot drops/bidding for raids
MIT License
5 stars 2 forks source link

GroupBuilder bug fix #4

Closed ewjax closed 2 years ago

ewjax commented 2 years ago

GroupBuilder.build_groups() was failing when it encountered Player objects who had Player.level stored in the state.json file as strings, rather than the assumed integer types.

This fix implements a @property decorator to the Player class to ensure that Player.level will always return an integer, regardless of how it is stored (string or integer).

ewjax commented 2 years ago

Moved the str2int functionality from the @property methods to the Player constructor. Passes all tox tests.