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:
Spyros Roum 2025-03-20 22:18:58 +02:00 committed by GitHub
parent bf0c7bc5c9
commit e19c7b7f70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))