diff options
| author | 2018-08-30 16:05:29 +0100 | |
|---|---|---|
| committer | 2018-08-30 16:05:29 +0100 | |
| commit | 5052cddf79fd6216294e8adf4d7fa5ada943cb8e (patch) | |
| tree | bc8d114e85b4c1e324644a6abd4b7ddb62a6ec57 /modules | |
| parent | Merge pull request #3 from dngfx/master (diff) | |
| parent | Fix strax.py to randomise other things and fix random choice 1,2 (diff) | |
Merge pull request #4 from dngfx/master
Fix strax.py to randomise other things and fix random choice 1,2
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/strax.py | 6 |
1 files 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) |
