This commit is contained in:
2026-07-23 01:14:10 +02:00
parent 64c3983c9f
commit 582e37d176
24 changed files with 549 additions and 36 deletions
@@ -3,7 +3,7 @@
from __future__ import annotations
from ..spec import Action, Param
from ._shared import body, path, query
from ._shared import body, confirm, path, query
GAME_ACTIONS: tuple[Action, ...] = (
@@ -160,7 +160,25 @@ GAME_ACTIONS: tuple[Action, ...] = (
name="game_prestige",
method="POST",
path="/game/prestige",
summary="Refactor (prestige) your Code Farm for a permanent coin bonus and Stars (requires level 10)",
summary=(
"Refactor (prestige) your Code Farm for a permanent coin bonus and Stars. "
"Requires level 10 AND a coin fee that scales with prestige and wealth "
"(shown as refactor_cost in game_state); the fee funds the community "
"treasury and a fraction of the remaining coins carries over. "
"Irreversible, confirmation required"
),
handler="http",
requires_auth=True,
params=(confirm(),),
),
Action(
name="game_claim_grant",
method="POST",
path="/game/grant",
summary=(
"Claim the weekly Code Farm community grant, paid from the treasury of "
"refactor fees (active low-balance, low-prestige farms only)"
),
handler="http",
requires_auth=True,
),
@@ -168,13 +186,13 @@ GAME_ACTIONS: tuple[Action, ...] = (
name="game_upgrade_legacy",
method="POST",
path="/game/legacy",
summary="Spend Stars on a permanent Legacy upgrade that survives refactor (autoharvest, multiplier, speed, plots, defense)",
summary="Spend Stars on a permanent Legacy upgrade that survives refactor (autoharvest, multiplier, speed, plots, defense, carryover)",
handler="http",
requires_auth=True,
params=(
body(
"key",
"Legacy key: autoharvest, multiplier, speed, plots, or defense.",
"Legacy key: autoharvest, multiplier, speed, plots, defense, or carryover.",
required=True,
),
),
@@ -61,6 +61,7 @@ CONFIRM_REQUIRED = {
"gateway_quota_rule_delete",
"email_account_delete",
"email_delete_message",
"game_prestige",
}
CONDITIONAL_CONFIRM = {