mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-10 09:05:48 +02:00
Implement rob and jail
This commit is contained in:
parent
a21eb51e6d
commit
a1345f9138
3 changed files with 102 additions and 42 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue