From 840f6cead854cf294668c1f81b434f94167a50dd Mon Sep 17 00:00:00 2001 From: un1xx Date: Sun, 25 May 2025 22:51:35 +0530 Subject: [PATCH] update --- exts/banking.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/exts/banking.py b/exts/banking.py index 3c51a15..9cfd29e 100644 --- a/exts/banking.py +++ b/exts/banking.py @@ -1319,19 +1319,18 @@ class Banking(commands.Cog): alliance_treasures = 0 nation_treasure_bonus = 1 - for treasure in treasures: - await message.channel.send(treasure) - if treasure["nation"] == None: - continue - if treasure["nation"]["id"] == nation.id: - nation_treasure_bonus += treasure["bonus"] / 100 - if nation.alliance: - if treasure["nation"]["alliance_id"] == nation.alliance_id: - alliance_treasures += 1 - if alliance_treasures > 0: - nation_treasure_bonus += math.sqrt(alliance_treasures * 4) / 100 - if nation_treasure_bonus > 1: - treasure_text = f"\n\nTreasure Bonus: ${round(money_income * (nation_treasure_bonus - 1)):,}" + # for treasure in treasures: + # if treasure["nation"] == None: + # continue + # if treasure["nation"]["id"] == nation.id: + # nation_treasure_bonus += treasure["bonus"] / 100 + # if nation.alliance: + # if treasure["nation"]["alliance_id"] == nation.alliance_id: + # alliance_treasures += 1 + # if alliance_treasures > 0: + # nation_treasure_bonus += math.sqrt(alliance_treasures * 4) / 100 + # if nation_treasure_bonus > 1: + # treasure_text = f"\n\nTreasure Bonus: ${round(money_income * (nation_treasure_bonus - 1)):,}" if not single_city: color_bonus = colors[nation.color]