From f6f183c2bda48cb4211f5ea0585035da3b10a05b Mon Sep 17 00:00:00 2001 From: dongfix <294904+dngfx@users.noreply.github.com> Date: Thu, 30 Aug 2018 16:03:54 +0100 Subject: [PATCH] Fix strax.py to randomise other things and fix random choice 1,2 --- modules/strax.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/strax.py b/modules/strax.py index 85abad54..ebb67a2c 100644 --- a/modules/strax.py +++ b/modules/strax.py @@ -23,11 +23,11 @@ class Module(object): "xenomorphs", "lots and lots of C4", "tactical nukes", "MacGyver", "bio-weapons", "rocket launchers", "an elephant", "a memory worm for afterwards", "this pencil"] - method_of_attack = " an " + random.choice(method_of_attack_an) if random.choice(1, - 2) == 1 else " a " + random.choice( + method_of_attack = " an " + random.choice(method_of_attack_an) if random.choice([1, + 2]) == 1 else " a " + random.choice( method_of_attack_a) suggestion = random.choice( - suggestion_greeting) + method_of_attack + " " + type_of_attack + " with " + attack_adjective + " " + attack_object + " and " + attack_object_two + "?" + suggestion_greeting) + method_of_attack + " " + random.choice(type_of_attack) + " with " + random.choice(attack_adjective) + " " + random.choice(attack_object) + " and " + random.choice(attack_object_two) + "?" event["stdout"].write(suggestion)