Skip to content

Commit

Permalink
fix hero hash
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasthaler committed Dec 18, 2023
1 parent 16528a5 commit 50c4010
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions coc/hero.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ def __init__(self, data, townhall):

self._townhall = townhall

# copies for a static hash
self.__name = data['name']
self.__level = data['level']
self.__village = data['village']
self.__is_active = data.get("superTroopIsActive")

# end of copy & pasted init

equipment = [try_enum(Equipment, equipment, townhall=townhall) for equipment in data.get('equipment', [])]
Expand Down

0 comments on commit 50c4010

Please sign in to comment.