parent
cd4127cba8
commit
a136a940bd
2
games.py
2
games.py
|
@ -550,7 +550,7 @@ class game(object):
|
|||
else:
|
||||
result = {}
|
||||
|
||||
self.voice.activate(self.last_update[0], result, self)
|
||||
result = self.voice.activate(self.last_update[0], result, self)
|
||||
|
||||
if "twopart" not in result:
|
||||
self.weather.activate(self, result) # possibly modify result in-place
|
||||
|
|
|
@ -66,6 +66,7 @@ class game_strings_base(object):
|
|||
})
|
||||
else:
|
||||
currentupdate["displaytext"] = f"{currentupdate['batter']} {self.format_gamestring(getattr(self, currentupdate['outcome'].name)[currentupdate['voiceindex']], currentupdate)}"
|
||||
return currentupdate
|
||||
except:
|
||||
game_strings_base().activate(lastupdate, currentupdate, game)
|
||||
|
||||
|
|
|
@ -256,4 +256,4 @@ def update_loop():
|
|||
socket_thread = threading.Thread(target=socketio.emit, args=("states_update", game_states))
|
||||
socket_thread.start()
|
||||
#socketio.emit("states_update", game_states)
|
||||
time.sleep(3)
|
||||
time.sleep(8)
|
|
@ -147,7 +147,7 @@ class StartGameCommand(Command):
|
|||
weather_name = flag[1]
|
||||
if weather_name not in weather.all_weathers():
|
||||
raise CommandError("We can't find that weather, chief. Try again.")
|
||||
elif flag[0] == "v":
|
||||
elif flag[0] == "v" or flag[0] == "a":
|
||||
if flag[1] in gametext.all_voices():
|
||||
voice = gametext.all_voices()[flag[1]]
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue