From 892529cc4d00c9410c81d0f2abbe39447ccc2aca Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Sun, 29 Mar 2020 15:53:50 +0200 Subject: [PATCH] Fixed some things --- funcs/swfuncs/swchar.py | 2 +- resources/swcharacters.json | 71 ------------------------------------- resources/swtemplates.json | 12 +++---- 3 files changed, 7 insertions(+), 78 deletions(-) diff --git a/funcs/swfuncs/swchar.py b/funcs/swfuncs/swchar.py index 331bc65..cfc7d42 100644 --- a/funcs/swfuncs/swchar.py +++ b/funcs/swfuncs/swchar.py @@ -168,7 +168,7 @@ def parseChar(user : str, cmd : str): json.dump(data,f,indent = 4) return "", "Character for " + user + " created" else: - if cmd == "purge": + if cmd == "Purge": del data[user] with open("resources/swcharacters.json", "w") as f: json.dump(data,f,indent = 4) diff --git a/resources/swcharacters.json b/resources/swcharacters.json index 49edd62..10800a1 100644 --- a/resources/swcharacters.json +++ b/resources/swcharacters.json @@ -1,75 +1,4 @@ { - "Nikolaj": { - "Name": "Jared", - "Species": "", - "Career": "", - "Specialization Trees": [], - "Soak": 0, - "Wound Threshold": 0, - "Wounds": 0, - "Strain Threshold": 0, - "Strain": 0, - "Defense, Ranged": 0, - "Defense, Melee": 0, - "Force Rating": 0, - "Characteristics": { - "Brawn": 5, - "Agility": 0, - "Intellect": 0, - "Cunning": 0, - "Willpower": 0, - "Presence": 0 - }, - "Skills": { - "Astrogation": 0, - "Athletics": 0, - "Brawl": 1, - "Charm": 0, - "Coercion": 0, - "Computers": 0, - "Cool": 0, - "Coordination": 0, - "Core Worlds": 0, - "Discipline": 0, - "Gunnery": 0, - "Leadership": 0, - "Lightsaber": 0, - "Lore": 0, - "Mechanics": 0, - "Medicine": 0, - "Melee": 0, - "Negotiation": 0, - "Outer Rim": 0, - "Perception": 0, - "Piloting - Planetary": 0, - "Piloting - Space": 0, - "Ranged - Heavy": 0, - "Ranged - Light": 0, - "Resilience": 0, - "Skullduggery": 0, - "Stealth": 0, - "Streetwise": 0, - "Survival": 0, - "Underworld": 0, - "Vigilance": 0, - "Xenology": 0 - }, - "Lightsaber Characteristic": "Brawn", - "Obligations": {}, - "Morality": { - "Emotional Weakness": "", - "Emotional Strength": "", - "Conflict": "", - "Morality": "" - }, - "Credits": 0, - "Equipment": [], - "Armor": "", - "Critical Injuries": {}, - "Weapons": {}, - "Talents": {}, - "Force Powers": {} - }, "TestUser": { "Name": "New Character", "Species": "", diff --git a/resources/swtemplates.json b/resources/swtemplates.json index 8143ae8..07b6a58 100644 --- a/resources/swtemplates.json +++ b/resources/swtemplates.json @@ -13,12 +13,12 @@ "Defense, Melee": 0, "Force Rating": 0, "Characteristics": { - "Brawn": 0, - "Agility": 0, - "Intellect": 0, - "Cunning": 0, - "Willpower": 0, - "Presence": 0 + "Brawn": 2, + "Agility": 2, + "Intellect": 2, + "Cunning": 2, + "Willpower": 2, + "Presence": 2 }, "Skills": { "Astrogation": 0,