Commit Graph

99 Commits

Author SHA1 Message Date
Fabian @ Blax Software cc2acaa77d feat: a building level needs idle villagers for the workers it adds: queued orders reserve them, farms are exempt, build options and upgrade offers carry villagers and blocked villagers, lint proves one farm at max level staffs everything
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 09:58:44 +01:00
Fabian @ Blax Software 25c5007d92 feat: population counts heads, the same on every world speed: farms feed their output at speed 1, and the food rate scales farm output and upkeep alike
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 09:58:44 +01:00
Fabian @ Blax Software b3a73c647d fix: a worker that was down runs one barbarian wave for all it missed, then the next comes an interval from now
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 09:36:26 +01:00
Fabian @ Blax Software e1121056c0 docs: barbarian waves on the map, worlds.barbarians_at, their no-locks row and the roadmap line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 09:35:14 +01:00
Fabian @ Blax Software b6c570809b test: barbarian waves near active players, none for idle ones or ended worlds, the next wave planned, replays and resets
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 09:33:52 +01:00
Fabian @ Blax Software cd1160800f feat: barbarian waves: every few world days new barbarian villages settle near the active players (worlds.barbarians_at, ticked by game:events)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 09:33:52 +01:00
Fabian @ Blax Software 118104ddef feat: barbarian waves config, the pure wave rules (interval, villages per player) and their lint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 09:31:21 +01:00
Fabian @ Blax Software 4c8a002718 fix: sum an offer's reserved merchants in PHP, no raw SQL on the count column
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:08:32 +01:00
Fabian @ Blax Software 7303817911 docs: market rules, trade tables, no-locks rows for merchants and routes; market partly done on the roadmap
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:08:32 +01:00
Fabian @ Blax Software 924f2d1d8a test: market sends, offers, routes, lost villages and staying out of the rally lists
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:08:32 +01:00
Fabian @ Blax Software b79dcb81e7 feat: market: merchants carry resources between villages, offers between players, repeating trade routes
Trades are movements (trade, trade_return) that arrive by the target's
movement.arrives event; they stay out of the rally lists, the map and the
rally cancel. A trade.route event sends a route's next shipment. A village
that changes hands loses its trades under way, offers and routes.
WS: market.show|preview|send|offers|offer|cancelOffer|accept|routeCreate|routeUpdate|routeDelete;
the village payload carries market {building_id, level, merchants, free, carry}.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:08:32 +01:00
Fabian @ Blax Software b8d5983a63 feat: market building with Die Stämme's merchants table, market config and the pure trade rules
TradeRules: merchants per level, merchants a shipment needs, travel seconds,
fair offers, route intervals and route cargo scaled to the free merchants.
ConfigLint checks the merchants table, carry, pace, ratio and route bounds.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:08:32 +01:00
Fabian @ Blax Software 5a69ce561e chore: reflow the Raiders class comment
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:07:11 +01:00
Fabian @ Blax Software 09a0160db0 docs: combat volley, loss threshold and ram phases; raids in real hours, fewer rams and camps that stay home
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:07:11 +01:00
Fabian @ Blax Software 007e80b26a feat: raid camps size the village up first: a band that would lose with less than 30% of the defence's strength stays home until the next raid
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:07:11 +01:00
Fabian @ Blax Software 1780ee510a feat: raids follow real hours (every 20 to 40, three hours of warning) on every world, only the band marches at world speed; half a ram per wall level
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:07:11 +01:00
Fabian @ Blax Software 8fa72392c7 feat: rams in two phases: half fire before the melee, which is fought at the lower wall, the survivors fire the rest after a won battle
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:07:11 +01:00
Fabian @ Blax Software c344eb3a39 feat: volley before the melee: archers and catapults shoot first, from the wall or at it, and kill by what their targets eat; reports and the simulator show the volley's dead
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:07:11 +01:00
Fabian @ Blax Software d55850cec1 feat: loss threshold: a winner ten times stronger loses nobody, the loss curve rises from there to everything at even strength
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 11:07:11 +01:00
Fabian @ Blax Software 2c20fd24ea fix: copies pay by the same rank they work at: by level, so the copy that gives less pays double
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 10:58:56 +01:00
Fabian @ Blax Software 8579e5ee75 docs: one of each building is enough; copies cost double and work at a falling share
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 10:57:54 +01:00
Fabian @ Blax Software b4a7c61921 feat: ConfigLint: instance_share above 0 and at most 1, instance_cost_factor at least 1
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 10:57:54 +01:00
Fabian @ Blax Software 5b5a412d71 feat: copies of a building type work at a falling share (economy.instance_share 0.5)
Instances of a type rank by level, then id; rank n works at 0.5^n: production,
the farm's nominal food, storage, hides, hospital beds and training speed. Workers
stay full. The payload carries instance_share on every building and build option,
and effects/next_effects at the building's share.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 10:57:54 +01:00
Fabian @ Blax Software 12a994e91c feat: one farm feeds a full army: farm production factor 1.25 (level 30 about 19,400 food/h)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 10:57:54 +01:00
Fabian @ Blax Software fe46b74afa feat: copies cost double: instance_cost_factor 2.0 for every type that allows copies
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 10:57:54 +01:00
Fabian @ Blax Software 13c509f919 docs: coins pay for villages, not noblemen; a conquest without a free slot leaves loyalty at 0 (no_coins)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 10:53:30 +01:00
Fabian @ Blax Software 1c33ba117f test: noblemen train without coins; a conquest without a free slot leaves loyalty at 0 and the noblemen go home; 1 coin takes the 2nd village, 3 the 3rd
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 10:52:09 +01:00
Fabian @ Blax Software e3e8f4cf54 feat: coins pay for villages, not noblemen: training a nobleman needs no coins, and a conquest without a free slot leaves loyalty at 0 and sends the noblemen home
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-31 10:50:31 +01:00
Fabian @ Blax Software 9a8ab05437 docs: hospital rules, the wounded table and its no-locks row
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 13:45:02 +01:00
Fabian @ Blax Software 46b3c6f241 feat: Lazarett: half of the own defenders who fall come back wounded into the hospital's beds, eat meanwhile and stand again after four hours
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 13:45:02 +01:00
Fabian @ Blax Software d77c02799e perf: the village payload computes the workforce, HQ staffing and instance indexes once (2.2x faster); reads skip the locking catch-up when nothing is due
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 13:07:09 +01:00
Fabian @ Blax Software d0647a8f1e docs: the game is called Kronland; Village Politics stays the code name
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 11:31:33 +01:00
Fabian @ Blax Software 58c6cca329 feat: launch scenarios: world overview stats and settings, account password and deletion, lost villages pushed to their old owner, restarts with fresh protection, inactive players' villages turn barbarian
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 11:27:14 +01:00
Fabian @ Blax Software 54a6fc5e8c feat: map.view tells until when an own command can be called back (cancel_until), so the map can offer it
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 11:14:49 +01:00
Fabian @ Blax Software fcdcb089cc feat: registration checks name rules and uniqueness, email, password and accepted terms, and names the wrong field; players get protected_until and last_active_at
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 11:13:57 +01:00
Fabian @ Blax Software 64f0d40256 fix: a called-back command heads home from where it turned round: its return's sent_at lies as far back as it still had to go, so the map's straight line puts it in the right spot
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 11:05:20 +01:00
Fabian @ Blax Software 874cb14b81 feat: map.view tells each village's relation to the viewer and its owner's tribe, and lists the movements the player knows of with a size tier
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 11:00:51 +01:00
Fabian @ Blax Software 9f2a89b498 feat: chat on a world: world, tribe and direct channels with unread counts and live pushes
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 10:56:17 +01:00
Fabian @ Blax Software fdb31123b6 feat: tribe page knows the viewer's member row
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 10:49:48 +01:00
Fabian @ Blax Software 1a5ae64b29 feat: tribes and diplomacy: found, invite, roles, leave and kick; alliances and NAPs accepted by both and ended with notice, enmity declared alone; no attacks within a tribe or across a pact; tribe ranking
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-30 10:47:41 +01:00
Fabian @ Blax Software 21ed9de726 docs: roadmap: seasons are live, M4.6 done
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:35:15 +01:00
Fabian @ Blax Software 99d70ef10e feat: seasons: crown forts appear round 0|0, holding three of five for a week wins the world
The worker ticks seasons every loop: due crowns are placed, a holder who reached
ends_at wins, the world closes and the next one opens with the same rules. Ended
worlds refuse changes, joins and raids. Payloads carry the season, worlds their
winner, the map a crown flag.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:31:34 +01:00
Fabian @ Blax Software 594ce4dcdc docs: roadmap: ranking is live
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:27:48 +01:00
Fabian @ Blax Software dc41186b47 feat: ranking: players and villages by points, opponents defeated in attack and defence
ranking.index pages 25 rows and opens on the user's own row. Battles bump
defeated.attack and defeated.defense by the food the fallen ate; defenders share by
what they had standing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:24:57 +01:00
Fabian @ Blax Software 45eb0a8f92 docs: roadmap: scarce space and village roles are live
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:23:16 +01:00
Fabian @ Blax Software 02abcac325 feat: scarce building space (5 per headquarters level) and village roles
A village whose space is mostly camps becomes a resource village (+20% from its
camps); one mostly barracks, stable and workshop a military village (+20% training
speed, +10% defence). The payload carries the role and the space per role.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:20:52 +01:00
Fabian @ Blax Software c5286bc19a fix: a scattered raid without its camp writes no report; roadmap: raiders are live
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:17:36 +01:00
Fabian @ Blax Software 99e2b44872 fix: deploy stops the game:events worker before migrating and seeding
The old worker picked up a raid.planned event the seeder had just scheduled and
gave up on the unknown type.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:09:12 +01:00
Fabian @ Blax Software 1319276e2f feat: raiders: the nearest barbarian camp raids every player village about once a day
A raid.planned event per village picks the nearest camp in range, announces a
band sized by the village's points hours before it marches, and plans the next
one. On arrival the band is as strong as its camp; a beaten camp's band scatters.
Loot goes back to the camp, a beaten band pays a bounty.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:07:54 +01:00
Fabian @ Blax Software 71040bbef9 docs: roadmap: barbarian garrisons are live
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 16:02:53 +01:00