From bd59b018f5cff818d3f3726165fea9741c7ede79 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 22 Apr 2023 15:24:12 -0500 Subject: [PATCH] Gameplay bug fixes Typos in help message; fix groundball b error --- cogs/gameplay.py | 4 ++-- db_calls_gameplay.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cogs/gameplay.py b/cogs/gameplay.py index b789fd9..291052c 100644 --- a/cogs/gameplay.py +++ b/cogs/gameplay.py @@ -1321,7 +1321,7 @@ class Gameplay(commands.Cog): if r_query['count'] == 0: await interaction.edit_original_response( content=f'I don\'t see an active run for you. If you would like to start a new one, run ' - f'`/new-game gauntlet {this_event["name"]}` and we can get you started in no time!' + f'`/gauntlets start {this_event["name"]}` and we can get you started in no time!' ) return @@ -2409,7 +2409,7 @@ class Gameplay(commands.Cog): await question.delete() view = Confirm(responders=[interaction.user], timeout=60, label_type='yes') question = await interaction.channel.send( - content=f'Was {lead_runner["name"]} thrown out at {to_bases[lead_base]}?', view=view + content=f'Was {lead_runner["name"]} thrown out {at_bases[lead_base]}?', view=view ) await view.wait() diff --git a/db_calls_gameplay.py b/db_calls_gameplay.py index 53759b3..6bb0328 100644 --- a/db_calls_gameplay.py +++ b/db_calls_gameplay.py @@ -1312,12 +1312,12 @@ def advance_one_runner(play_id: int, from_base: int, num_bases: int): if num_bases > 0: this_play.on_third_final = 4 - if this_play.on_first and not this_play.on_first_final: - this_play.on_first_final = 1 - if this_play.on_second and not this_play.on_second_final: - this_play.on_second_final = 2 - if this_play.on_third and not this_play.on_third_final: - this_play.on_third_final = 3 + # if this_play.on_first and this_play.on_first_final is not None: + # this_play.on_first_final = 1 + # if this_play.on_second and this_play.on_second_final is not None: + # this_play.on_second_final = 2 + # if this_play.on_third and this_play.on_third_final is not None: + # this_play.on_third_final = 3 this_play.save() db.close()