Add weather output

This commit is contained in:
hillexed 2020-12-25 19:56:18 -05:00
parent e647a910d8
commit ad7e3ac176
2 changed files with 2 additions and 0 deletions

View file

@ -442,6 +442,7 @@ class game(object):
return f"""Last update: {updatestring}
Score: {self.teams['away'].score} - {self.teams['home'].score}.
Weather: {'None' if not self.weather else self.weather.name}.
Current inning: {inningtext} of {self.inning}. {self.outs} outs.
Pitcher: {self.get_pitcher().name}
Batter: {self.get_batter().name}

View file

@ -52,6 +52,7 @@ class NameSwappyWeather(Weather):
class Feedback(Weather):
def __init__(self):
self.name = "Feedback"
self.activation_chance = 0.01
self.swap_batter_vs_pitcher_chance = 0.8
def activate(self, game):