fixed the default game strings to work with new format
This commit is contained in:
parent
e146c758cf
commit
ead2d9b6a0
30
gametext.py
30
gametext.py
|
@ -25,24 +25,24 @@ class game_strings_base(object):
|
||||||
intro_formats = []
|
intro_formats = []
|
||||||
intro = [("🎆", "Play ball!")]
|
intro = [("🎆", "Play ball!")]
|
||||||
|
|
||||||
strikeoutlooking = "strikes out looking."
|
strikeoutlooking = ["strikes out looking."]
|
||||||
strikeoutswinging = "strikes out swinging."
|
strikeoutswinging = ["strikes out swinging."]
|
||||||
groundout = "grounds out to {}."
|
groundout = ["grounds out to {}."]
|
||||||
flyout = "flies out to {}."
|
flyout = ["flies out to {}."]
|
||||||
fielderschoice = "reaches on fielder's choice. {} is out at {} base." #requires .format(player, base_string)
|
fielderschoice = ["reaches on fielder's choice. {} is out at {} base."] #requires .format(player, base_string)
|
||||||
doubleplay = "grounds into a double play!"
|
doubleplay = ["grounds into a double play!"]
|
||||||
sacrifice = "hits a sacrifice fly towards {}."
|
sacrifice = ["hits a sacrifice fly towards {}."]
|
||||||
walk = "draws a walk."
|
walk = ["draws a walk."]
|
||||||
single = "hits a single!"
|
single = ["hits a single!"]
|
||||||
double = "hits a double!"
|
double = ["hits a double!"]
|
||||||
triple = "hits a triple!"
|
triple = ["hits a triple!"]
|
||||||
homerun = "hits a dinger!"
|
homerun = ["hits a dinger!"]
|
||||||
grandslam = "hits a grand slam!"
|
grandslam = ["hits a grand slam!"]
|
||||||
|
|
||||||
twoparts = []
|
twoparts = []
|
||||||
|
|
||||||
diff_formats = {fielderschoice: ("defender", "base_string")}
|
diff_formats = {fielderschoice[0]: ("defender", "base_string")}
|
||||||
no_formats = [strikeoutlooking, strikeoutswinging, doubleplay, walk, single, double, triple, homerun, grandslam]
|
no_formats = strikeoutlooking + strikeoutswinging + doubleplay + walk + single + double + triple + homerun + grandslam
|
||||||
|
|
||||||
def activate(self, lastupdate, currentupdate, game):
|
def activate(self, lastupdate, currentupdate, game):
|
||||||
if "twopart" in lastupdate:
|
if "twopart" in lastupdate:
|
||||||
|
|
Loading…
Reference in a new issue