diff --git a/resources/dicts/events/new_cat/general.json b/resources/dicts/events/new_cat/general.json index b066ca6fb2..2d69c9ab01 100644 --- a/resources/dicts/events/new_cat/general.json +++ b/resources/dicts/events/new_cat/general.json @@ -597,7 +597,7 @@ "old_name", "clancat", "status:warrior", - "backstory:former_clancat_backstories" + "backstory:refugee1,guided4,retired_leader,ostracized_warrior,disgraced1,disgraced2,disgraced3,otherclan1,otherclan2,otherclan3,otherclan4" ] ], "other_clan": { @@ -619,7 +619,7 @@ "old_name", "clancat", "status:warrior", - "backstory:former_clancat_backstories" + "backstory:refugee1,guided4,retired_leader,ostracized_warrior,disgraced1,disgraced2,disgraced3,otherclan1,otherclan2,otherclan3,otherclan4" ] ], "injury": [ diff --git a/scripts/utility.py b/scripts/utility.py index 4b23472768..c392df4e3d 100644 --- a/scripts/utility.py +++ b/scripts/utility.py @@ -501,11 +501,14 @@ def create_new_cat_block( for _tag in attribute_list: match = re.match(r"backstory:(.+)", _tag) if match: - stor = [ - x for x in match.group(1).split(",") if x in BACKSTORIES["backstories"] - ] + bs_list = [x for x in match.group(1).split(",")] + stor = [] + for story in bs_list: + if story in BACKSTORIES["backstories"]: + stor.append(story) + elif story in BACKSTORIES["backstory_categories"]: + stor.extend(BACKSTORIES["backstory_categories"][story]) bs_override = True - chosen_backstory = choice(stor) break # KITTEN THOUGHT