mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Fix tutorial bridge room
random.random() returns a float in the [0, 1) range, meaning `random.random() < 80` will always be true.
This commit is contained in:
parent
bf0c7bc5c9
commit
e19c7b7f70
1 changed files with 1 additions and 1 deletions
|
|
@ -783,7 +783,7 @@ class BridgeRoom(WeatherRoom):
|
|||
This is called at irregular intervals and makes the passage
|
||||
over the bridge a little more interesting.
|
||||
"""
|
||||
if random.random() < 80:
|
||||
if random.random() < 0.8:
|
||||
# send a message most of the time
|
||||
self.msg_contents("|w%s|n" % random.choice(BRIDGE_WEATHER))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue