From 76f27ca7fddce1b139b809788d43016b5df8c260 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 30 Jan 2020 23:03:54 +0100 Subject: [PATCH] naming fixes --- Mystery.py | 2 ++ Text.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Mystery.py b/Mystery.py index a5fa811d..39a7f001 100644 --- a/Mystery.py +++ b/Mystery.py @@ -138,6 +138,8 @@ def roll_settings(weights): ret = argparse.Namespace() ret.name = get_choice('name') + if ret.name: + ret.name = ret.name.replace(" ", "-").replace("_", "-") glitches_required = get_choice('glitches_required') if glitches_required not in ['none', 'no_logic']: print("Only NMG and No Logic supported") diff --git a/Text.py b/Text.py index ac254287..4678411b 100644 --- a/Text.py +++ b/Text.py @@ -427,7 +427,6 @@ class CreditLine(object): @property def x(self): - x = 0 if self.align == 'left': x = 0 elif self.align == 'right':