Skip to content

Commit

Permalink
ignore siege space
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Dec 23, 2024
1 parent 3a75fd1 commit 5e3715e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/utility/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ async def army_embed(
else:
troops += f'{emoji}`x {str(quantity)}` {troop.name}\n'
minimum_th = max(minimum_th, troop.required_th_level[1])
troop_space += troop.housing_space * quantity
if not troop.is_siege_machine:
troop_space += troop.housing_space * quantity
troop_train_time += troop.training_time.total_seconds() * quantity

for spell, quantity in spell_list: #type: coc.Spell, int
Expand Down Expand Up @@ -137,7 +138,8 @@ async def army_embed(
spells += f'{emoji}`x {str(quantity)}` {item.name}\n'
elif item.name in coc.enums.HOME_TROOP_ORDER:
troops += f'{emoji}`x {str(quantity)}` {item.name}\n'
cc_space += item.housing_space * int(quantity)
if not item.is_siege_machine:
cc_space += item.housing_space * int(quantity)
clan_castle = troops + spells
except Exception as e:
pass
Expand Down

0 comments on commit 5e3715e

Please sign in to comment.