Skip to content

Commit

Permalink
training cost no longer exists, and training time is constant
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Dec 23, 2024
1 parent 1f7884a commit 567ad8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coc/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def _load_json_meta(cls, json_meta: dict, id, name: str, lab_to_townhall):
cls._is_home_village = False if json_meta.get("VillageType") else True
cls.village = "home" if cls._is_home_village else "builderBase"

cls.training_time = json_meta.get("TrainingTime")
cls.training_time = TimeDelta(seconds=json_meta.get("TrainingTime"))

# only heroes
cls.ability_time = try_enum(UnitStat, [json_meta.get(level).get("AbilityTime") for level in levels_available])
Expand Down

0 comments on commit 567ad8e

Please sign in to comment.