Change champion stats structure. All stats have same name defined in glossary.
self.orig_base_stats --> for basic champion stats
self.item_stats --> for item stats
self.orig_bonus_stat --> for bonus stats (item + runes)
Can init a champion with a list of items defined in ALL_ITEM_STATS
can equip dynamically an item with equip_item
I tested ahri lvl 4 with cloth armor, pick axe, long sword, bf autoattack a dummy (see tests/test_champion.py)
I believe we can improve this solution by creating a Stat class and creating a magic method add so we could add stat class between them like self.bonus_stats = self.item_stats + self.rune_stats
Still need to test auto attack with a setup with armor pen, letha etc
My proposal for item handling
equip_item
I believe we can improve this solution by creating a Stat class and creating a magic method add so we could add stat class between them like
self.bonus_stats = self.item_stats + self.rune_stats
Still need to test auto attack with a setup with armor pen, letha etc