|
@ -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): |
|
|
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.pocet_bananu += 1 |
|
|
tym.save() |
|
|
tym.save() |
|
|
if tym.pocet_bananu == 1: |
|
|
|
|
|
print("ALERT: BANÁN!!!") |
|
|
print("ALERT: BANÁN!!!") |
|
|
return (True,) |
|
|
return (True,) |
|
|
elif tym.pocet_bananu == 1: |
|
|
elif tym.pocet_bananu == 1: |
|
|
tym.vi_o_mase = True |
|
|
tym.vi_o_mase = True |
|
|
tym.save() |
|
|
tym.save() |
|
|
|
|
|
return [] |
|
|
elif tym.pocet_bananu == 0: |
|
|
elif tym.pocet_bananu == 0: |
|
|
tym.ovesna_kase += 1 |
|
|
tym.ovesna_kase += 1 |
|
|
tym.save() |
|
|
tym.save() |
|
|
return (True,) |
|
|
return [] |
|
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_posible_choices: list[Callable[[Doba, Tym], list[str]]] = [ |
|
|
get_posible_choices: list[Callable[[Doba, Tym], list[str]]] = [ |
|
|