This commit is contained in:
karan committed 2025-05-25 20:58:29 +05:30
1 parent 00b2ce7d49
commit 232c4178aa
1 file changed
+7 -7
+7 -7
View File
@@ -925,9 +925,9 @@ class Banking(commands.Cog):
else:
await ctx.send("> None of the provided nations were in the warchest refill list.")
@commands.has_any_role("The Croak Council", "Government")
@commands.command(aliases=["refill"])
async def refill(self, ctx: commands.Context, ids: commands.Greedy[int]):
@commands.has_any_role("The Croak Council", "Government")
@commands.command(aliases=["refill"])
async def refill(self, ctx: commands.Context, ids: commands.Greedy[int]):
"""
Revenue calculation from nations by fetching cities and projects.
"""
@@ -987,7 +987,7 @@ async def refill(self, ctx: commands.Context, ids: commands.Greedy[int]):
await ctx.send(f"> Error getting game data: {str(e)}")
async def revenue_calc(message: discord.Message, nation: dict, radiation: dict, treasures: dict, prices: dict, colors: dict, seasonal_mod: dict, build: str = None, single_city: bool = False, include_spies: bool = False) -> dict:
async def revenue_calc(message: discord.Message, nation: dict, radiation: dict, treasures: dict, prices: dict, colors: dict, seasonal_mod: dict, build: str = None, single_city: bool = False, include_spies: bool = False) -> dict:
max_commerce = 100
base_com = 0
hos_dis_red = 2.5
@@ -1335,7 +1335,7 @@ async def revenue_calc(message: discord.Message, nation: dict, radiation: dict,
return rev_obj
async def calculate_revenue(self, message: discord.Message, nation: dict, game_data: dict) -> dict:
async def calculate_revenue(self, message: discord.Message, nation: dict, game_data: dict) -> dict:
"""Calculate revenue for a nation."""
revenue = await revenue_calc(
message=message,
@@ -1349,7 +1349,7 @@ async def calculate_revenue(self, message: discord.Message, nation: dict, game_d
return revenue
async def get_game_data(self) -> dict:
async def get_game_data(self) -> dict:
"""
Fetch game-wide data needed for revenue calculations.
"""
@@ -1426,7 +1426,7 @@ async def get_game_data(self) -> dict:
'colors': colors
}
async def send_revenue_results(self, ctx: commands.Context, revenue_data: list):
async def send_revenue_results(self, ctx: commands.Context, revenue_data: list):
"""Format and send the revenue calculation results."""
if not revenue_data:
return await ctx.send("> No revenue data to display.")