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
|
This is called at irregular intervals and makes the passage
|
||||||
over the bridge a little more interesting.
|
over the bridge a little more interesting.
|
||||||
"""
|
"""
|
||||||
if random.random() < 80:
|
if random.random() < 0.8:
|
||||||
# send a message most of the time
|
# send a message most of the time
|
||||||
self.msg_contents("|w%s|n" % random.choice(BRIDGE_WEATHER))
|
self.msg_contents("|w%s|n" % random.choice(BRIDGE_WEATHER))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue