I am not smart

This commit is contained in:
Kevin Rode 2021-01-03 22:12:01 -05:00
parent 3cc53d453b
commit 22751876b9

View File

@ -211,9 +211,11 @@ class game(object):
randomchance = random.gauss(0,1) randomchance = random.gauss(0,1)
print(randomchance) print(randomchance)
if randomchance < -1.5 and randomchance > 1.5: if randomchance < -1.5 and randomchance > 1.5:
outcome["ishit"] = False
fc_flag = False
outcome["text"] = appearance_outcomes.crows outcome["text"] = appearance_outcomes.crows
crow = True crow = True
elif pb_system_stat <= 0 and crow == False: if pb_system_stat <= 0 and crow == False:
outcome["ishit"] = False outcome["ishit"] = False
fc_flag = False fc_flag = False
if hitnum < -1.5: if hitnum < -1.5:
@ -255,7 +257,7 @@ class game(object):
if 2.5 <= hitnum and self.outs < 2: #well hit flyouts can lead to sacrifice flies/advanced runners if 2.5 <= hitnum and self.outs < 2: #well hit flyouts can lead to sacrifice flies/advanced runners
if self.bases[2] is not None or self.bases[3] is not None: if self.bases[2] is not None or self.bases[3] is not None:
outcome["advance"] = True outcome["advance"] = True
elif crow == False: if crow == False:
outcome["ishit"] = True outcome["ishit"] = True
if hitnum < 1: if hitnum < 1:
outcome["text"] = appearance_outcomes.single outcome["text"] = appearance_outcomes.single