diff --git a/cogs/dice.py b/cogs/dice.py index 242b05c..08e6c93 100644 --- a/cogs/dice.py +++ b/cogs/dice.py @@ -466,8 +466,7 @@ class Dice(commands.Cog): '#heading=h.7oj0v3t1kc6o' if args: - if args[0][:2].upper() == '1B' or args[0][:2].upper() == '2B' or args[0][:2].upper() == '3B' \ - or args[0][:2].upper() == 'SS': + if args[0][:2].upper() in ['1B', '2B', '3B', 'SS']: x_chart = 'https://sombaseball.ddns.net/static/images/season04/range-infield.png' # Build range note @@ -735,7 +734,7 @@ class Dice(commands.Cog): error_note = '2-base error for e10, e12, e28 -> e32, e48, e84\n' \ '1-base error for e2, e5, e7, e23, e27' - elif args[0][:2].upper() == 'LF' or args[0][:2].upper() == 'RF' or args[0][:2].upper() == 'CF': + elif args[0][:2].upper() in ['LF', 'CF', 'RF']: x_chart = 'https://sombaseball.ddns.net/static/images/season04/range-outfield.png' # Build range note @@ -810,7 +809,7 @@ class Dice(commands.Cog): '--------F3---------\n' \ '```\n\n' - if args[0][:2].upper() == 'LF' or args[0][:2].upper() == 'RF': + if args[0][:2].upper() in ['LF', 'RF']: error_chart += 'corner-outfield.png' if error_dice == 18: @@ -854,7 +853,7 @@ class Dice(commands.Cog): f'**DO3**: {OUTFIELD_X_CHART["do3"]["rp"]}\n' \ f'**TR3**: {OUTFIELD_X_CHART["tr3"]["rp"]}\n' elif error_dice == 4: - error_note = '2-base error for e13, e16, e20, e23 -> e25\n' \ + error_note = '2-base error for e13, e15, e20, e23 -> e25\n' \ '1-base error for e4 -> e6, e10 -> 12, e16 -> e18' elif error_dice == 3: error_note = '3-base error for e8 -> e12, e24, e25\n' \