diff --git a/funcs/swfuncs/swchar.py b/funcs/swfuncs/swchar.py index 2ce2792..3d758ad 100644 --- a/funcs/swfuncs/swchar.py +++ b/funcs/swfuncs/swchar.py @@ -159,6 +159,7 @@ def characterSheet(character : dict): text5 = "" text6 = "" text7 = "" + text8 = "" if bool(character["Talents"]): text5 = "**Talents**: "+",".join(list(character["Talents"]))+"\n\n" @@ -167,9 +168,12 @@ def characterSheet(character : dict): text6 = "**Force Powers**: "+",".join(list(character["Force-powers"]))+"\n\n" if bool(character["Weapons"]): - text7 = "**Weapons**: "+",".join(list(character["Weapons"]))+"\n\n" + text7 = "**Weapons**: "+",".join(list(character["Weapons"]))+"\n"+divider + + if bool(character["Obligations"]): + text8 = "**Obligations**: "+",".join(list(character["Obligations"])) - return name, text1+text2+"\n\n"+text3+divider+text4+"\n"+divider+text5+text6+text7 + return name, text1+text2+"\n\n"+text3+divider+text4+"\n"+divider+text5+text6+text7+text8 def charData(user : str,cmd : str): with open("resources/swcharacters.json", "r") as f: @@ -204,7 +208,7 @@ def charData(user : str,cmd : str): except: return "Can't do that" - if (key == "Talents" or key == "Force-powers") and "," in cmd: + if (key == "Talents" or key == "Force-powers" or key == "Obligation") and "," in cmd: cmd = cmd.split(",") while cmd[1][0] == " ": cmd[1] = cmd[1][1:]