try to squeeze !hint feedback on one line

This commit is contained in:
Fabian Dill 2020-02-11 00:54:48 +01:00
parent 416a6e7e50
commit 696fe0d0e4
1 changed files with 2 additions and 2 deletions

View File

@ -336,8 +336,8 @@ async def process_client_cmd(ctx : Context, client : Client, cmd, args):
points_available = ctx.location_check_points * len(ctx.location_checks[client.team, client.slot]) - ctx.hint_cost*ctx.hints_used[client.team, client.slot] points_available = ctx.location_check_points * len(ctx.location_checks[client.team, client.slot]) - ctx.hint_cost*ctx.hints_used[client.team, client.slot]
itemname = args[6:] itemname = args[6:]
if not itemname: if not itemname:
notify_client(client, "Use !hint {itemname}. For example !hint Lamp. " notify_client(client, "Use !hint {itemname}, for example !hint Lamp. "
f"A hint costs {ctx.hint_cost} points.\n" f"A hint costs {ctx.hint_cost} points. "
f"You have {points_available} points.") f"You have {points_available} points.")
elif itemname in Items.item_table: elif itemname in Items.item_table:
if ctx.hint_cost: can_pay = points_available // ctx.hint_cost >= 1 if ctx.hint_cost: can_pay = points_available // ctx.hint_cost >= 1