From c0795671ceed942987906743f42c7ef791462eaf Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Fri, 3 Apr 2020 16:04:36 +0200 Subject: [PATCH] Fixed a thing! --- funcs/swfuncs/swchar.py | 2 +- funcs/swfuncs/swroll.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/funcs/swfuncs/swchar.py b/funcs/swfuncs/swchar.py index ebcf426..377318b 100644 --- a/funcs/swfuncs/swchar.py +++ b/funcs/swfuncs/swchar.py @@ -465,7 +465,7 @@ def charData(user : str,cmd : str): return "You don't have a character. You can make one with !swchar" def replaceSpaces(cmd : str): - withSpaces = ["Specialization Trees","Wound Threshold","Strain Threshold","Defense - Ranged","Defense - Melee","Force Rating","Core Worlds","Outer Rim","Piloting - Planetary","Piloting - Space","Ranged - Heavy","Ranged - light","Lightsaber Characteristic","Critical Injuries","Force Powers"] + withSpaces = ["Specialization Trees","Wound Threshold","Strain Threshold","Defense - Ranged","Defense - Melee","Force Rating","Core Worlds","Outer Rim","Piloting - Planetary","Piloting - Space","Ranged - Heavy","Ranged - Light","Lightsaber Characteristic","Critical Injuries","Force Powers"] withoutSpaces = ["Specialization-trees","Wound-threshold","Strain-threshold","Defense-ranged","Defense-melee","Force-rating","Core-worlds","Outer-rim","Piloting-planetary","Piloting-space","Ranged-heavy","Ranged-light","Lightsaber-characteristic","Critical-injuries","Force-powers"] for x in range(len(withoutSpaces)): diff --git a/funcs/swfuncs/swroll.py b/funcs/swfuncs/swroll.py index ad0db07..6a0ed22 100644 --- a/funcs/swfuncs/swroll.py +++ b/funcs/swfuncs/swroll.py @@ -236,7 +236,7 @@ def parseRoll(user : str,cmd : str = ""): cmd = re.sub(' +',' ',cmd.upper()) + " " if cmd[0] == " ": cmd = cmd[1:] - cmd = swchar.replaceSpaces(cmd.capitalize()) + cmd = swchar.replaceSpaces(string.capwords(cmd)) commands = cmd.split(" ") if commands[0] == "": rollParameters = [1,0,3,0,0,0,0]