modify wc

This commit is contained in:
un1xx committed 2025-05-11 17:41:57 +05:30
1 parent cdb764e586
commit 7e3ad49a0d
1 file changed
+9 -5
+9 -5
View File
@@ -194,18 +194,22 @@ class Banking(commands.Cog):
resource_delta = []
kit = self.dkit
gator = await kit.query(
dilf = await kit.query(
"nations",
{"id": 103764, "first": 1},
{"alliance_id": 10198},
"id, nation_name, discord, money, food, steel, gasoline, munitions, aluminum, uranium, cities {name}",
)
gator = gator.nations[0]
nations.append(gator)
nations.extend(dilf.nations)
if ids:
notinalliance = [n for n in ids if n not in [n.id for n in nations]]
nations = [n for n in nations if n.id in ids]
if not nations:
return await ctx.send(f"> {ids} not in MILF or DILF")
if notinalliance:
await ctx.send(f"> {ids} not in MILF or DILF")
for nation in nations:
if nation.id not in self.WARCHEST_IDS:
if (nation.id not in self.WARCHEST_IDS) and (not ids):
continue
cities = len(nation.cities)
delta = BaseMul.calc(cities, nation)