mechanic: use upstream's exponential level curve

This commit is contained in:
Dash committed 2026-10-17 15:55:43 +02:00
1 parent f03394f680
commit bec6171483
5 files changed
+3526 -3500

No files matched your search

+3 -2
View File
@@ -59,8 +59,9 @@ class SignalMixin:
def level_up_time(level: int) -> int:
# seconds
return 20 * level * 60
# seconds: 20 minutes for level 1, exponential increase after that.
# floor(x + 0.5) mirrors JS Math.round, unlike Python's round().
return math.floor((20 + 1.15**level) * 60 + 0.5)
class Bar(SignalMixin):