Oprava dostávání banánu.
This commit is contained in:
parent
6ba9d5e3cb
commit
72365b6cf8
1 changed files with 4 additions and 3 deletions
|
@ -137,16 +137,17 @@ def banan(_: Doba, tym: Tym) -> None:
|
|||
if (tym.pocet_bananu == 0 and tym.ma_platnou_zadost(Zadost.TYP_BANAN)) or tym.ma_platnou_zadost(Zadost.TYP_VEGE):
|
||||
tym.pocet_bananu += 1
|
||||
tym.save()
|
||||
if tym.pocet_bananu == 1:
|
||||
print("ALERT: BANÁN!!!")
|
||||
print("ALERT: BANÁN!!!")
|
||||
return (True,)
|
||||
elif tym.pocet_bananu == 1:
|
||||
tym.vi_o_mase = True
|
||||
tym.save()
|
||||
return []
|
||||
elif tym.pocet_bananu == 0:
|
||||
tym.ovesna_kase += 1
|
||||
tym.save()
|
||||
return (True,)
|
||||
return []
|
||||
return []
|
||||
|
||||
|
||||
get_posible_choices: list[Callable[[Doba, Tym], list[str]]] = [
|
||||
|
|
Loading…
Reference in a new issue