Implement rob and jail

This commit is contained in:
stijndcl 2024-02-20 18:20:41 +01:00
parent a21eb51e6d
commit a1345f9138
3 changed files with 102 additions and 42 deletions

View file

@ -40,7 +40,7 @@ def jail_chance(level: int) -> float:
base_chance = 0.35
growth_rate = 1.15
return max(0.0, base_chance - (growth_rate**level))
return min(0.1, max(0.0, base_chance - (growth_rate**level)))
def jail_time(level: int) -> int: