reverted recent changes (they broke warehouse)
This commit is contained in:
parent
1eb2d302f0
commit
f3b16edcd0
1 changed files with 2 additions and 4 deletions
|
@ -118,12 +118,10 @@ class Galaxy(commands.Cog):
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
await ctx.message.delete()
|
await ctx.message.delete()
|
||||||
|
|
||||||
@commands.command(aliases = ["wh"], autohelp = True)
|
@commands.command(aliases=["wh"])
|
||||||
async def warehouse(self, ctx: commands.Context, lvlfrom: int = None, lvlto: int = None):
|
async def warehouse(self, ctx: commands.Context, lvlfrom: int, lvlto: int):
|
||||||
"""Calculates the total cost to upgrade your warehouse from a level to a level."""
|
"""Calculates the total cost to upgrade your warehouse from a level to a level."""
|
||||||
warehouse_levels = {1:0, 2:1000,3:2500,4:4500,5:7500,6:12500,7:20000,8:31500,9:46500,10:65500,11:87500,12:113500,13:143500,14:178500,15:218500,16:263500,17:313500,18:373500,19:443500,20:523500,21:613500,22:713500,23:823500,24:943500,25:1073500,26:1223500,27:1398500,28:1598500,29:1823500,30:2073500,31:2353500, 32:2663500, 33:3003500, 34:3373500, 35:3773500, 36:4193500, 37:4644500, 38:5093500}
|
warehouse_levels = {1:0, 2:1000,3:2500,4:4500,5:7500,6:12500,7:20000,8:31500,9:46500,10:65500,11:87500,12:113500,13:143500,14:178500,15:218500,16:263500,17:313500,18:373500,19:443500,20:523500,21:613500,22:713500,23:823500,24:943500,25:1073500,26:1223500,27:1398500,28:1598500,29:1823500,30:2073500,31:2353500, 32:2663500, 33:3003500, 34:3373500, 35:3773500, 36:4193500, 37:4644500, 38:5093500}
|
||||||
if isinstance(lvlto, None):
|
|
||||||
lvlto = 38
|
|
||||||
total_from = (f'{warehouse_levels[lvlfrom]:,}')
|
total_from = (f'{warehouse_levels[lvlfrom]:,}')
|
||||||
total_to = (f'{warehouse_levels[lvlto]:,}')
|
total_to = (f'{warehouse_levels[lvlto]:,}')
|
||||||
output = warehouse_levels[lvlto] - warehouse_levels[lvlfrom]
|
output = warehouse_levels[lvlto] - warehouse_levels[lvlfrom]
|
||||||
|
|
Loading…
Reference in a new issue