Code Farm economy rebalance: market saturation, infrastructure/defense/cosmetics, mastery track, secondary leaderboards, admin eras, underdog bonus and weekly contracts

Every purchase/upgrade path (new and pre-existing) is now race-safe against concurrent requests via atomic conditional SQL updates.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-22 23:55:46 +02:00
co-authored by Claude Sonnet 5
parent 024edb5291
commit 34f76aad65
54 changed files with 3886 additions and 164 deletions
+4
View File
@@ -191,6 +191,10 @@ ACHIEVEMENTS = {
"water": [(1, "Good Neighbor")],
"harvest_stolen": [(1, "Cat Burglar")],
"got_stolen_from": [(1, "Robbed")],
"infra_bought": [(1, "Enterprise Ready")],
"defense_upgraded": [(1, "Fort Knox")],
"cosmetic_bought": [(1, "Style Points")],
"underdog_raid": [(1, "David vs Goliath")],
}
UNIQUE_ACTIONS = {"docs.read"}