5. Balance definitions & constants
Kind-specific server balance lives in server/crates/rules/src/defs.rs; faction availability,
buildables, trainables, upgrade ids, and ability carriers live in
server/crates/rules/src/faction.rs; terrain movement/cover/concealment hooks live in
server/crates/rules/src/terrain.rs. Grass, gravel A/B/C, dirt A/B/C, mud A/B/C, frosted ground,
bare road, and all four marked road tiles share open-ground passability, cover, concealment, and
line-of-sight behavior. The visual open-ground variants retain grass’s 1.0x movement speed; road
alone applies a 1.5x movement-speed multiplier. Independent authored slow-movement tiles apply a
0.75x multiplier, while authored damage-reduction tiles reduce incoming damage by 25% after existing damage
policy; both sample the entity-centre tile and may overlap any base terrain or other overlay.
Authored elevation grants ordinary units and sight-granting buildings one additional fog-of-war
sight tile per two absolute levels (0–1 +0, 2–3 +1, 4–5 +2, 6–7 +3, 8–9 +4). The
bonus caps at four tiles; zero-sight buildings remain visionless, low elevation never reduces base
sight, elevation does not occlude sight, and Scout Plane aerial sight remains unchanged.
server/crates/rules/src/balance.rs is the stable public re-export surface for timings, tile size,
starting resources, supply caps, mining amounts, support-weapon constants, body dimensions, upgrade
and ability scalars, and stat helpers. Its internal server/crates/rules/src/balance/*.rs modules
group those Rust-owned values by domain, and its unit_stats(kind) and building_stats(kind)
helpers read the defs table.
balance::TREE_TRUNK_RADIUS_PX is the existing 4.5 px native vehicle/tree collision radius,
shared with SDK known-world route planning; the simulation map module retains its compatibility
alias. Moving its ownership into rules does not change collision or rendering behavior.
Default attack range, damage, cooldown, weapon class, and weapon-policy metadata are exposed through
server/crates/rules/src/combat.rs weapon profiles; current profile values mirror the defs records
so legacy attack_profile(kind) and weapon_class(kind) callers remain behavior-compatible.
All repeating unit attack cooldowns are at least doubled from the original cadence, including melee,
tank coax, mortar/artillery fire, and Ekat Line Shot. Rocket Truck barrage reload is 30 seconds. Damage,
first-shot readiness, windups, projectile travel, and barrage unload duration are unchanged.
The disposable Panzerfaust rocket has no repeat cooldown; its rifle follows the doubled cadence.
The infantry Machine Gunner fires 20% faster than that cadence: 10 ticks instead of 12.
Scout Car MG and Tank coax retain 12-tick cooldowns.
Mortar Fire has a further 50% cooldown increase to 180 ticks (6 seconds).
Novice and all Dao Adept/Master ordinary attack rates are reduced a further 30%,
using whole-tick cooldowns: 91 ticks for Novice/War/Magic and 61 for Wind.
Each committed repeating unit attack adds an OpenBW-style pseudorandom offset of -1, 0, +1,
or +2 simulation ticks to the final modified reload (minimum one tick). This includes melee,
arrows/orbs, rifles/MGs, both Tank weapons, Mortar Fire, artillery and the Rocket Truck barrage
reload. Ekat, buildings, one-shot weapon windups, burst spacing and non-attack ability timers
are excluded. First-shot readiness is unchanged; subsequent volleys drift apart. The offset
averages +0.5 tick, so sustained attack rates are slightly lower than the listed base cadence.
Offsets are a stable integer hash of entity id, weapon/attack id and firing tick, so replay and
checkpoint continuation reproduce them without adding state or consuming the damage RNG stream.
Mortar manual-ability and weapon reload gates use the same offset; artillery command-phase
cooldown compensation is applied afterward. Failed/unaffordable attacks do not randomize reload. Rocket rack ammunition follows the existing
unload clock independently of the randomized reload, keeping each visible round aligned with launch.
Attack-speed multipliers are unchanged.
Base weapon ranges use fractional tiles (f32) throughout stat records and attack profiles.
Magic Adept orb attacks have 7 tiles of base range, matching the Scout Car machine gun.
Master rank retains this base range.
The Machine Gunner has 6.1 tiles of base range (7.1 while entrenched), giving an approaching
attack-moving MG a small standoff margin against a stationary entrenched Rifleman’s 6 tiles.
Direct-fire damage and tank-facing modifiers consume the
selected weapon profile instead of inferring those behaviors only from the firing entity kind.
The Panzerfausts Training Centre upgrade unlocks a separate Barracks-trained Panzerfaust unit. It
inherits Rifleman combat and movement but carries one disposable anti-armor shot that deals 100
base damage with 50% armor penetration and no tank-facing modifier. The shot is detached at launch;
the same Panzerfaust immediately returns to normal movement and rifle combat while the projectile
travels, preserving its kind, orders, HP, control-group identity, and trench.
Tank Plus (tank_plus) is researched at the Engineering Complex after Tank Production for
150 steel and 150 oil over 20 seconds. It applies to existing and future owned Tanks: hull and
turret turn rates multiply by 1.5, top movement speed multiplies by 1.1 (including other speed
effects), sight increases from 9 to 11 tiles, and stationary cannon range ramps from 5 to 14 tiles
in 45 ticks (1.5 seconds) instead of 90 ticks. Movement still resets the range ramp; maximum range,
attack cooldowns, and damage are unchanged. Existing research hotkeys are preserved.
Tanks also have a live secondary tank_coax profile owned by combat rules: 6-tile range, 4 small-arms
damage, 12-tick cooldown, no Tank armor-facing multiplier, and single-target direct fire. The
commander roof MG acquires and aims independently through 360 degrees, including while moving.
Its right-offset mount follows the main turret; tank_coax remains its internal weapon id.
Tank HE: cannon shots aimed at infantry (Workers, Golems, Disciples,
Riflemen, Panzerfausts, and Machine Gunners) retain the normal immediate 60-damage direct hit.
On a successful resolved infantry hit, every other eligible entity within 1.4 tiles of the
impact takes 30 base splash damage, including friendlies, using mortar armor scaling but
direct entrenchment protection (50% reduction). There is no inner circle, falloff, double
hit on the primary, or shell travel delay. Terrain damage reduction applies afterward.
Vehicle/support-weapon/building-targeted cannon shots and the coax remain unchanged.
The existing fog-filtered mortar impact effect carries the 1.4-tile radius; no wire shape changes.
The shared mortar impact animation (including tank HE) lasts 500 ms, including its dust fade.
client/src/config.js is the stable public facade for the subset the UI/render/fog needs (costs,
supply, sight, sizes, colors, and command-card descriptors). Its internal
client/src/config/timing.js, client/src/config/rules_mirror.js, and
client/src/config/factions.js modules hold Rust-owned mirror data and helpers; its
client/src/config/presentation.js module holds client-owned presentation data. Keep both sides in
sync; run
node scripts/check-faction-catalog-parity.mjs to mechanically compare the Rust-authoritative
default faction catalog to the client descriptors.
The server wiki’s /wiki/stats page is generated from the same Rust definitions and faction
catalogs. Its unit/building damage, range, cooldown, and weapon columns intentionally show
primary/default weapon stats only; secondary weapons such as the Tank coax are documented here until
generated secondary-weapon rows exist. For changes that affect visible stats, faction availability,
upgrades, or ability metadata, run node scripts/check-wiki.mjs; it includes the wiki route/table
checks, the player wiki generator tests and the client catalog parity check.
The player wiki at /wiki/ (server/crates/wiki) is generated from the same compiled definitions
plus the sim research table (rts_sim::game::upgrade::definition). Its build script indexes where
each pub const scalar and definition field is set and used, so pages link numbers to code lines at
the running commit. Hand-written notes in docs/wiki/content/ reference numbers only through
{{CONSTANT}}-style templates, never literal copies, so a balance change needs no wiki edit unless
it renames something a note references (the rts-wiki tests catch that).
The player presentation applies server/crates/wiki/src/visibility.rs to hide archived or
playtest-hidden factions, entities, research and abilities, and weapons without current users.
The filter runs before page, table, navigation and search generation, including nested catalog
relations. Raw snapshots and recorded changelog history remain intact; historical entries for
hidden content have no link to a current entity page. This is a wiki presentation policy, not a
change to simulation legality or the developer /wiki/stats reference.
server/src/config.rs and server/crates/sim/src/config.rs are compatibility shims for
Rust-owned balance exports while call sites are migrated. They should not accumulate server-shell
or sim-only implementation constants. Those values belong beside the module that owns the behavior.
Final source-of-truth map and guardrails
Use server/crates/rules/src/defs.rs for unit/building stat records, costs, supply, sight, ranges,
footprints, body dimensions, and build/train timing. Use server/crates/rules/src/faction.rs for
faction catalogs: buildables, trainables, research rows, ability carriers, command-card descriptors,
and ability/upgrade metadata exported by Rust. Use server/crates/rules/src/balance.rs as the
stable public balance surface; the internal balance/timing.rs, balance/map.rs,
balance/economy.rs, balance/supply.rs, balance/bodies.rs, balance/support_weapons.rs,
balance/upgrades.rs, balance/abilities.rs, and balance/stats.rs files group shared scalar
constants and helper definitions without changing ownership or exported names. Sim-only behavior
constants belong beside the sim module that owns the behavior rather than in the compatibility
config shims.
Phase 4 left the movement/arrival recovery constants (STUCK_EPS_PX,
STUCK_ARRIVAL_TICKS, TOLERANT_ARRIVAL_RADIUS_PX, SIDESTEP_*,
STATIC_BLOCKED_REPATH_TICKS, ARRIVE_RADIUS_INTERMEDIATE_PX,
VEHICLE_WAYPOINT_ACCEPTANCE_RADIUS_PX, SCOUT_CAR_FINAL_GOAL_TOLERANCE_PX,
SCOUT_CAR_STUCK_RECOVERY_TRIGGER_TICKS, SCOUT_CAR_REVERSE_RECOVERY_DISTANCE_PX, and
SCOUT_CAR_RECOVERY_COOLDOWN_TICKS) on the rts_rules::balance::* surface as explicit
compatibility exports. They are sim-movement policy, not client-mirrored balance values; moving
them beside rts-sim movement should be a later API/design migration rather than a silent Phase 4
source shuffle.
client/src/config.js mirrors only the subset needed by UI, rendering, fog previews, and command
cards while preserving the historical public import path. Rust-owned mirrored values live behind
client/src/config/timing.js, client/src/config/rules_mirror.js, and
client/src/config/factions.js; they include gameplay-visible costs, supply, sight, footprints,
body dimensions, client-visible timing/range/duration constants, faction legality, upgrade
metadata, ability descriptors exported by the Rust faction catalog, ability effect fields exported
in the rules dump—including Smoke Plus cloud radius and duration—and resource starting amounts. Client-owned values live in
client/src/config/presentation.js and client/src/config/carried_items.js and include render colors, carried-item silhouettes/private projected-inventory helpers, camera defaults, fog overlay alpha,
command-card layout hints, local presentation labels/icons that are not exported by Rust, and
resource render labels/sizes.
Run node scripts/check-faction-catalog-parity.mjs after changing Rust-owned values that are
mirrored into client/src/config.js. The check runs the Rust rts-rules faction catalog dump,
including the clientConfig parity payload, and compares the client mirror for catalogs, stat
fields, body dimensions, resource amounts, upgrade metadata, ability compact/order-stage codes, and
Rust-owned ability descriptors/effect fields. Run node scripts/check-wiki.mjs as well when a
change affects visible stats, faction availability, upgrades, or ability metadata that appears on
the generated /wiki/stats page.
| Constant | Before cleanup | After cleanup | Mirror impact |
|---|---|---|---|
MORTAR_FIRE_TOLERANCE_RAD | Sim-only mortar aim tolerance exported from server/crates/sim/src/config.rs beside mirrored balance constants | Sim-local server/crates/sim/src/game/mortar.rs FIRE_TOLERANCE_RAD, owned by mortar firing behavior | None; it is not mirrored into client/src/config.js and does not change wire shape or balance values |
The single-unit selection panel displays Armored or Unarmored beneath the kill count.
STATS[kind].armored mirrors each Rust UnitDef.armor_class through the checked
clientConfig.unitStats dump. Its hover explanation describes the 75% HP damage reduction
against non-piercing attacks and partial/full armor penetration. Artillery is Small/unarmored
and receives no armor damage reduction. Buildings and resource nodes omit this unit-only row.
Shield grants a separate 100% armor layer against attacks entering its field, using ordinary armor penetration after existing target defenses. Its 150 HP durability pays each hit’s full pre-reduction damage, including fully piercing hits. See Dao insight for breaking-hit, overlap, and area-damage rules.
Client mirror boundary inventory
Phase 1 records the current source-of-truth map before later phases add broader mechanical checks.
The faction parity check guards the current structured clientConfig payload shape for constants,
unit/building stat fields, vehicle bodies, resource amounts, upgrades, ability effect fields,
catalog ids, fixture-only catalog presence, and playable faction exposure. This is an inventory
only; it does not change balance, gameplay, or client rendering. The remaining split-blocking
structured parity gap was command budget, which remains sim command-service policy mirrored by the
client outside the Rust rules dump. Phase 2 keeps client/src/config.js hand-authored and guarded
by validation-only checks rather than generating client config from Rust; generation would blur the
current Rust-owned mirror/client-owned presentation boundary and make future config splits harder to
review.
| Value/path | Rust owner | JS mirror path | Category | Current checker | Proposed future checker | Client-only exclusion reason | Compact version impact |
|---|---|---|---|---|---|---|---|
TICK_HZ, TICK_MS, TILE_SIZE, simulation timing scalars | server/crates/rules/src/balance.rs, re-exported by server/src/config.rs and server/crates/sim/src/config.rs | client/src/config.js TICK_HZ, SNAPSHOT_MS, interpolation delay constants | balance scalar | scripts/check-faction-catalog-parity.mjs checks TICK_HZ and client-visible duration constants against the Rust rules dump | Extend the structured dump if another timing scalar becomes client-visible | Interpolation delay is client-only smoothing; TICK_HZ is mirrored | No compact impact unless snapshot cadence or compact fields change |
| Unit and building costs, supply, sight, footprint/radius, train/build times, and command-card stat rows | server/crates/rules/src/defs.rs and server/crates/rules/src/balance.rs; faction legality in server/crates/rules/src/faction.rs | client/src/config.js STATS, WORKER_BUILDABLE, FACTION_CATALOGS | balance scalar / faction catalog fact | scripts/check-faction-catalog-parity.mjs checks catalog legality, costs, supply, sight, ranges, build ticks, building footprints, requirements, train lists, research lists, and non-body unit render radius; node scripts/check-wiki.mjs covers generated wiki stats when run | Future work can move client-only labels/icons into Rust catalogs if they should become authoritative | Client-only labels/icons in STATS are presentation unless the Rust catalog exports them; STATS.size for body-driven vehicles is presentation because the Rust-owned body dimensions are checked separately | No compact impact |
| Vehicle/body dimensions | server/crates/rules/src/balance.rs *_BODY_* constants | client/src/config.js TANK_BODY, ANTI_TANK_GUN_BODY, ARTILLERY_BODY, SCOUT_CAR_BODY, SCOUT_PLANE_BODY, COMMAND_CAR_BODY | balance scalar | scripts/check-faction-catalog-parity.mjs checks every client body length, width, and clearance against the Rust rules dump | Keep adding new body records to the dump/check when body-driven units are added | None; client uses these for art, selection, and advisory placement previews, including Tank Trap preview rejection for vehicle-body units, while Rust collision is authoritative; Scout Plane body dimensions are render/selection metadata only and do not create a ground collision body | No compact impact |
| Ability descriptors, carrier lists, target mode, range, cooldown, cost, queueability, autocast, command-card label/icon/hotkey/title | server/crates/rules/src/faction.rs plus scalar constants in server/crates/rules/src/balance.rs | client/src/config.js ABILITIES and imported ABILITY ids | faction catalog fact / balance scalar | scripts/check-faction-catalog-parity.mjs checks exported command-card descriptors, carriers, target mode, range, cooldown, cost, queueability, autocast, compact codes, and Rust-owned effect fields present on descriptors such as radius, delay, duration, pull multipliers, speed, and damage; protocol parity checks ability compact codes | Future effect fields should be added to the Rust dump and descriptor assertion when they become client-visible | Not UI-only when the field is exported by Rust faction catalogs or balance constants; purely local affordance copy belongs in the documented exclusion list | Code changes may affect compact ability/order-stage codes; descriptor-only changes do not |
| Upgrade descriptors, research building, prerequisites, cost, and research time | server/crates/rules/src/faction.rs plus server/crates/rules/src/balance.rs upgrade constants | client/src/config.js UPGRADES and imported UPGRADE ids | faction catalog fact / balance scalar | scripts/check-faction-catalog-parity.mjs checks research building, list membership, upgrade costs, research ticks, and prerequisite upgrade ids | Labels/icons/descriptions can be moved into Rust catalogs later if they should become authoritative | Labels/icons/descriptions are client-only today unless moved into the Rust catalog | No compact impact unless upgrade ids/codes change |
| Entrenchment dig-in/combat/trench-footprint constants | server/crates/rules/src/balance/entrenchment.rs | client/src/config.js ENTRENCHMENT_* exports | balance scalar | scripts/check-faction-catalog-parity.mjs checks dig-in ticks, range bonus, direct-damage reduction, area-damage reduction, and trench radius against the Rust rules dump | Keep future client-visible entrenchment scalars in the structured dump | Not client-only because these constants describe authoritative trench timing/combat/footprint rules, even before all phases consume them | No compact impact unless the trench snapshot shape changes |
| Resource node starting amounts and economy resource names | server/crates/rules/src/balance.rs STEEL_PATCH_AMOUNT, OIL_GEYSER_AMOUNT; fixed Steel/Oil economy fields in sim/protocol | client/src/config.js RESOURCE_AMOUNTS, KIND.STEEL, KIND.OIL, HUD/resource render helpers | balance scalar / wire DTO | scripts/check-faction-catalog-parity.mjs checks node starting amounts; protocol parity checks resource kind codes | Add future client-visible resource amounts to the rules dump/check | Resource render labels and sizes are client presentation; amounts affect minimap/tooltips/render assumptions | Resource kind/code changes affect protocol/compact; amount changes do not |
Human command budget values BASE_COMMAND_SUPPLY_CAP, COMMAND_CAR_SUPPLY_CAP_BONUS | server/crates/sim/src/command_budget.rs, applied by server/crates/sim/src/game/services/commands.rs as command admission policy | client/src/config.js exports consumed by client/src/command_budget.js, selection, control groups, and HUD budget display | sim command-service policy mirrored by client | scripts/check-faction-catalog-parity.mjs compares the sim-owned command-budget dump with the client exports; server command-budget tests and client contract tests exercise each side; node tests/client_contracts.mjs snapshots public client/src/config.js export names for split safety | Keep command budget in the sim-owned dump/check unless a future design intentionally moves ownership into rts-rules::balance; keep public config export snapshots current when adding or removing exports | Not client-only because the client mirror previews the server’s command acceptance cap; not Rust rules-owned unless a later design explicitly moves ownership | No compact impact |
PLAYER_PALETTE | server/src/lobby/mod.rs | client/src/config.js PLAYER_PALETTE | server-owned presentation data mirrored by client | tests/protocol_parity.mjs source-scrapes the lobby palette | Structured lobby/config dump | Not client-only because server assigns lobby/start colors and sends them on the wire | No compact impact |
| Terrain, health, selection, placement, and drag colors | None in Rust; rendering-only choices | client/src/config.js COLORS except resource identity colors that should stay consistent with Steel/Oil presentation | UI-only presentation data | None | Exclusion list in future config parity check | Client owns visual palette; it does not affect simulation, wire DTO shape, or authoritative fog | No compact impact |
| Fog overlay alpha | Authoritative fog visibility is in sim snapshots; alpha is not a Rust value | client/src/config.js MAIN_MAP_FOG_* (0.30 explored, 0.60 unexplored) and MINIMAP_FOG_* (0.48 explored, 0.80 unexplored) | UI-only presentation data | Client config contracts pin the separate viewport/minimap values | Exclusion list in future config parity check | Client owns opacity; Rust owns which tiles/entities are visible. Main-map fog is intentionally lighter so terrain and roads remain legible, while minimap tuning remains unchanged. | No compact impact |
| Camera defaults | None in Rust | client/src/config.js CAMERA | UI-only presentation data | None | Exclusion list in future config parity check | Client-only input/render affordance | No compact impact |
| Anti-tank gun field-of-fire preview | server/crates/rules/src/balance.rs ANTI_TANK_GUN_FIELD_OF_FIRE_RAD is authoritative at 40 degrees total | client/src/config.js ANTI_TANK_GUN_FIELD_OF_FIRE_RAD | balance scalar / advisory UI mirror | scripts/check-faction-catalog-parity.mjs checks the client preview against the Rust field-of-fire constant | Keep the preview Rust-owned because it represents the authoritative deployed firing arc | Not client-only: the client preview represents an authoritative firing arc | No compact impact |
Parity exclusions after the split
The structured rules dump intentionally excludes client-owned presentation values that do not have
Rust catalog or balance ownership: global terrain and selection colors, fog overlay alpha, camera
defaults, command-card layout hints, and resource render labels/sizes. STATS labels and icons
remain client-owned until they are exported by a Rust catalog. STATS.size for units with a
Rust-owned body record is also presentation-only; the parity check enforces those units through
their *_BODY_* length, width, and clearance values instead.
5.0 Faction economy contract
Depot-built extractors
The Kriegsia economy replaces transferable Engineer mining with base-local extractor growth. Engineers remain 50-Steel, 1-Supply construction units trained by the Resource Depot, but they cannot gather resources. Engineers can manually place Pump Jacks on live Oil patches for 150 Steel, taking 10 seconds (half the former 20-second manual build time). The standard start contains one completed Engineer and six completed Steel Mines attached to six of the home base’s live Steel patches, plus one completed Pump Jack attached to one home-base Oil patch.
Steel Mine uses placeholder presentation. It is a 1x1 completed-capable
building with 37 HP, Small/unarmored combat classification, 1-tile sight, no weapon, no supply,
and no survival-building contribution. It must be centered on one live Steel patch within the
existing MINING_ANCHOR_RANGE_TILES = 11 coverage of the producing Resource Depot. It extracts
STEEL_LOAD = 2 Steel every HARVEST_TICKS = 40 ticks and disappears when its bound patch is
depleted. It is free and takes 24 seconds to produce.
Pump Jack keeps its existing 1x1 footprint, 56 HP, Small/unarmored classification, 1-tile sight,
and OIL_LOAD = 2 payout every 40 ticks. Depot production remains free and takes 36 seconds,
independently of the 150-Steel, 10-second manual construction stats. Engineers cannot assist
depot-owned scaffolds; manual scaffolds reserve their patch against automatic production.
Every completed Resource Depot permanently runs one Steel Mine job and one Pump Jack job in the
background. The two jobs progress concurrently with each other and independently of the Depot’s
ordinary Engineer FIFO. Each job chooses the nearest deterministic live, unoccupied matching patch
within that specific depot’s 11-tile coverage and creates an under-construction scaffold there. If
no eligible patch exists, only that resource job pauses without creating a scaffold. It resumes
automatically when depletion or destruction makes another patch eligible. If an in-progress
scaffold is destroyed or cancelled, its free job restarts from zero. Players cannot queue, disable,
or cancel the permanent automatic jobs through production commands. When an extractor or its
in-progress scaffold is killed, only that depot’s matching resource job waits five seconds before
creating its replacement scaffold. Normal patch depletion does not apply this combat restart delay.
Neither extractor accepts a rally order, consumes supply, grants supply, or provides production,
research, attacks, wreckage, refunds on death, or special death effects. Both remain ordinary
fog-gated, targetable buildings and can be spawned in Lab. Their Engineers remain
construction-only; built-in AIs need no extractor-production action because every Depot owns the
same permanent jobs.
The faction rollout keeps Steel, Oil, and Supply as the global economy contract. Faction catalogs
decide which global units, buildings, upgrades, and abilities are legal for a player and define
starting Steel/Oil values plus starting entity loadouts, but they still use fixed steel, oil,
supplyUsed, and supplyCap fields. Unknown non-empty faction ids do not fall back to the
Kriegsia catalog in lower-level economy queries: catalog-gated build/train/research/gather,
production-anchor, and supply checks return empty or false. Start-map resource nodes remain Steel
and Oil nodes. Score values, replay analysis values, command-card costs, affordability checks,
refunds, and supply reservation are intentionally Steel/Oil/Supply-shaped.
Catalog existence is not lifecycle admission. server/crates/rules/src/faction.rs may contain
playable catalogs, explicit fixture catalogs, and future catalog data, but
server/src/lobby/faction_validation.rs decides which ids can enter normal lobby, AI, replay,
branch, self-play, dev, match-history, and post-match paths. Fixture-only and
reserved/future ids must not inherit Kriegsia economy behavior or appear in product selectors just
because their catalog rows are dumpable.
The playable cultivators catalog reuses Resource Depot (displayed as Nexus), Worker (displayed as Serf),
Steel Mine and Oil Pumpjack, with Nexus, Pump Jack, Portal, Three Dao Pavilion, Tournament Grounds,
and Shop available for Serf construction. Serfs construct Pump Jacks on Oil patches
for 150 Steel in 300 ticks (10 seconds), using the existing extractor placement and mining rules. Its
cultivators.standard loadout matches Kriegsia’s starting economy and replaces the starting Riflemen with two completed Novices.
Cultivator Serfs can also construct the faction-specific Portal for 150 Steel: it has a 3x3
footprint, 123 HP, one tile of sight, a five-second construction time, no prerequisite, and no
research. A completed Portal trains the Cultivator Novice for 50 Steel and 2 Supply in 300 ticks.
The Novice is a 58-HP, 26-pixel-radius ground melee unit moving at 2.0 pixels per tick.
Wind independently uses 1.15 times Scout Car speed (2.7025 pixels per tick). War and Magic
use 1.05 times base Disciple speed (2.1 pixels per tick). War has 176 maximum HP;
Wind and Magic have 150 maximum HP. Novice cost is halved from 100 steel, and HP is
scaled from 115 to 57.5, rounded to 58; Adept and Master stats are unchanged. Its
23-damage sword has 0.75-tile reach, a 91-tick cooldown, and 50% armor penetration.
Disciples have a separate five-tile engagement range for Idle and Attack Move: they approach
visible legal enemies to sword reach, then resume their original Attack Move destination when
the target dies, becomes hidden/illegal, or leaves engagement range. Hold Position and Point
do not approach, and plain Move keeps its route. Other units default engagement range to their
current attack range, preserving existing behavior. The engagement override is server-only
(DISCIPLE_ENGAGEMENT_RANGE_TILES); client attack-range metadata is unchanged. See
Cultivators specification.
Approved direct Steel/Oil/Supply modules for this plan are:
server/crates/rules/src/defs.rs,server/crates/rules/src/economy.rs, andserver/crates/rules/src/balance.rsfor authoritative costs, node amounts, and supply values.server/crates/sim/src/game/player_state.rs,services/commands.rs,services/construction.rs,services/economy.rs,services/supply.rs,scoring.rs,analysis.rs,snapshot.rs,replay.rs, andsetup.rsfor fixed-field simulation, score/replay analysis, and start/loadout compatibility shims. New lifecycle/replay starts should prefer per-playerPlayerStartingLoadoutrecords over global starting Steel/Oil overrides.server/crates/protocol/src/lib.rs,server/src/protocol.rs,server/crates/sim/src/protocol.rs, andclient/src/protocol.jsfor the mirrored wire and compact transport fields.client/src/config.js,client/src/hud.js,client/src/hud_command_card.js,client/src/observer_analysis_overlay.js,client/src/scoreboard.js, and resource rendering helpers for current HUD, command-card, replay-analysis, score, and map-resource display.
Generic resources are deferred. If a future faction needs a non-Steel/Oil resource, that work must be a separate migration across player state, snapshots, compact transport, replay artifacts, observer analysis, scoring, HUD rows, command-card costs, protocol parity, and prediction/WASM compatibility.
5.1 Target theme and MVP combat loop
The target gameplay direction is a simplified World War II-inspired battlefield with fictional, faction-agnostic sides. This is not a historical simulation. The theme should support readable gameplay, clear unit roles, and strong terrain identity without national or regime-specific iconography.
MVP scope:
- No combat air forces.
scout_planeis non-combat reconnaissance launched by the Command Car Scout Plane ability. Each sortie has a 30-second total lifetime from launch, flies to a targeted orbit, provides vision throughout transit and any remaining orbit time, and then disappears. - Late-game Artillery is implemented as the Superior Firepower capstone; Mortar Teams remain the early delayed-area fire tool.
- No mines, morale, logistics, suppression-depth model, or detailed tank armor model yet. Tanks do have a simple hull-facing armor rule for anti-tank damage.
Core unit roles:
- Rifleman is the baseline combat unit: cheap, flexible, useful for capturing and holding ground, and the primary answer to enemy infantry in forests.
- Machine gun is the defensive escalation unit: it takes one second
(
MACHINE_GUNNER_SETUP_TICKS) to set up after stopping, then fires at a very high rate. Once deployed it must spend the same one-second interval tearing down before it can move. Machine-gun nests are the main base-defense tool and should dominate open-ground infantry combat in the second stage of the game. - Scout Car is the Mobile Warfare path-entry unit from Vehicle Works: fast, unarmored, high-vision, and useful for raiding, scouting, and smoke-enabled attacks before heavier armor arrives.
- Tank is the machine-gun breaker and open-ground power unit: immune to rifle and machine-gun small-arms fire, strong against static defenses and exposed infantry, but vulnerable to other tanks and anti-tank infantry.
- Panzerfaust is a Barracks-trained Rifleman variant unlocked by Panzerfausts research. It carries one disposable 5-tile, 50%-armor-penetrating shot while ordinary Riflemen remain unchanged and oil-free. Automatic use is limited to visible Scout Cars, Tanks, and Command Cars already in range; Mortar Teams, Artillery, infantry, buildings, and obstacles are not launcher targets. Explicit Attack orders remain stationary, so the vehicle must already be within launcher range. There is no salvo coordination or overkill suppression.
- Anti-tank gun team is the ambush counter to tanks: it must manually set up into a longer-ranged fixed field of fire before firing. Deployed guns are dangerous from the side or rear, but weak or inefficient against regular infantry and cannot fire outside their emplacement arc.
- Mortar Team is the Superior Firepower path-entry pressure unit from Gun Works: it has no setup/teardown state, cannot shoot while moving, and lands delayed area shells that punish static positions and clumped units.
- Artillery is the Superior Firepower late capstone from Gun Works: it uses a tank-sized gameplay footprint but renders at 75% of its prior authored size as an exposed field piece, must deploy into a narrow firing arc, cannot shoot inside its minimum range, and spends steel on each long-range Fire shell.
Terrain rules:
- Open ground favors machine guns and tanks.
- Forests are passable by infantry, impassable to tanks, and unavailable for building placement.
- Infantry in forests gets defensive and concealment bonuses.
- Forests are intentionally “infantry country”: the main way to clear infantry from a forest is to send in your own infantry.
- Tanks and machine guns can contain forests by covering exits, clearings, and forest edges, but they should not reliably clear forest infantry from outside.
Intended progression:
- Early game: riflemen fight for map control.
- Midgame: machine guns lock down open lanes and bases.
- Armor phase: tanks break machine-gun-heavy defensive lines in open terrain.
- Counter-armor phase: anti-tank infantry, forest ambushes, and other tanks punish unsupported tanks.
- Forest fights remain infantry-led so tanks and machine guns never become universal answers.
5.2 Current implementation constants
The current implementation uses the themed unit/building names below. Combat is handled by the
shared attack model plus the support-weapon setup/teardown state, tank turret aim gates, and
tank hull-facing damage modifiers for anti-tank hits against tank victims. Tanks keep their active
movement path while firing on either Move or AttackMove orders and keep their base 5-tile
weapon range while moving. After a tank has spent three seconds (90 ticks) without path-driven
translation or hull rotation, its range has linearly expanded to 14 tiles; any later path-driven
movement or hull rotation resets it to the base range. A stationary Tank that survives enemy direct
AP damage autonomously turns its hull toward the damage source without changing its order, target,
path, turret aim, or stationary range. The first Tank cannon, Anti-Tank Gun, or Panzerfaust hit locks
its source for three seconds. Hits during that window neither redirect the hull nor extend the lock;
after it expires, the next qualifying hit may establish a new lock. Active movement paths and zero
oil prevent this response, while Hold Position explicitly allows it. Riflemen take full incoming
damage while moving. Riflemen upgraded with Methamphetamines gain permanent moving fire, pause path movement after each shot for 150 ms rounded up to five simulation ticks
(~167 ms), retain their movement orders, fire with normal accuracy, move at tank speed,
and use a 24-tick rifle cooldown. This pause applies to Riflemen only.
Panzerfausts upgraded with Methamphetamines receive the normal Rifleman moving fire, tank-speed
movement, and the same 24-tick rifle cooldown plus the Panzerfaust windup boost. Machine Gunners upgraded with
Methamphetamines move at unupgraded Rifleman speed and use half-length setup/teardown timers; other
mobile combat units still hold position once a target is in weapon range. Scout cars also fire while
moving using an independent rear machine-gun facing. They are unarmored light vehicles and do not
receive armored damage reduction; Anti-Tank Guns deal their full damage to them.
Plain Move tanks, scout cars, and Methamphetamines-upgraded Riflemen and Panzerfausts only fire at enemies already in
weapon range. Their active AttackMove orders use the same moving-fire policy while they are still
following the player-issued path: auto-acquisition can aim and fire only at targets that are
currently inside weapon range and pass hostile, visibility, smoke, line-of-sight, and blocker
checks, but it cannot replace the commanded destination with an enemy-directed path. Non-moving-fire
AttackMove units pause for fireable in-range targets and then resume the original destination.
Direct Attack orders and post-arrival behavior remain stationary. Tank auto-targeting first checks
in-range Anti-Tank Guns, Tanks, and Mortar Teams, in that order, before generic
acquisition. This priority applies when the tank acquires after firing or when its committed target
stops being fireable; a still-fireable target prepared during reload is not reranked on the ready
tick. Priority never considers out-of-range targets or overrides explicit player attack orders.
Forest-specific rules are future work.
The unit, building, and resource-node tables below are the human-readable form of the authoritative
rules::defs records.
Default auto-acquisition groups already-legal targets before applying weapon fit or distance:
unit attackers prefer non-economy combat units, then economy workers (Worker and Golem),
then buildings and other non-unit cleanup targets. Small-arms default weapons prefer soft targets
(ArmorClass::Small) over armored targets within the same target group, but they
still fire at armor or buildings when no better legal target exists. Completed Tank Traps are
excluded from ordinary automatic acquisition for every unit and weapon, including ground Attack
Move and route obstruction. A contextual A-click on a visible or remembered completed Tank Trap
creates a four-tile clear-area objective: units retain normal Attack Move engagement against enemies
on the approach, but currently actionable traps inside that objective preempt ordinary targets.
Hidden traps remain ineligible until revealed, while vehicle pathfinding continues routing around
the obstacles. Anti-armor default weapons
prefer anti-armor threats and armored units over ordinary soft units. Anti-Tank Guns cannot
auto-acquire or accept direct Attack orders against Workers, Golems, Novices,
Riflemen, Panzerfausts, and Machine Gunners. Crewed support weapons, including Mortar Teams,
remain legal targets and take full damage. AT Guns automatically prefer a fireable Tank over a
nearer Mortar Team; an explicit Attack order may select the mortar instead. Tanks keep a narrower
immediate-threat override for targets already in relevant range: Anti-Tank Guns are first, then
other anti-armor threats, armored obstacles, support weapons, and only then ordinary soft targets.
The rules-owned TargetFacts surface records the current target-policy facts for every
EntityKind, including the Tank coax infantry-priority group. The commander MG ranks Panzerfausts first, Anti-Tank Guns second, combat infantry
(Disciple, Rifleman, Machine Gunner) third, Mortar Teams fourth, and
Scout Cars fifth. All remaining legal targets use the default weapon group/material order,
then distance/id ties; resource nodes are not legal MG targets.
Default weapons perform a full acquisition pass when ready and targetless, immediately after each
shot to prepare the next engagement during reload, or when the prepared target is no longer
fireable on the ready tick. Tanks additionally rerank automatic targets every five ticks, staggered
by entity id, so a newly relevant higher-priority threat can replace a still-legal reload target
within one-sixth of a second. Other reload, setup, and aiming ticks revalidate only the committed
target. A Tank on unfinished Attack Move may scan during reload even when its path is empty
after an engagement; other units retain the travelling and targetless exception. Attack Move uses
the acquired target to stop a non-Mortar unit at the first in-range engagement. A charged Tank
also checks before movement would reset its stationary range.
Ordinary travelling Tanks rely on the post-movement pass. An ordinary Move uses the reload scan
only for moving-fire units and keeps following its commanded path. Both movement orders then follow
the same committed-target rule. Except for the Tank’s five-tick rerank, a
still-fireable prepared target receives the next shot even if a higher-priority threat appeared
during reload. The post-shot pass may then select that higher-priority threat for the following
cycle. Tank commander MG acquisition and rotation run every tick, including during reload.
Its secondary target is independent of the cannon target and never requests movement. This cadence is
limited to default attacks; future grenades, satchels, or demolition attacks need separate attack
profiles and explicit activation/autocast policy instead of being folded into default targeting.
TICK_HZ = 30,SNAPSHOT_EVERY_N_TICKS = 1.ROAD_MOVEMENT_SPEED_MULTIPLIER = 1.5. Bare road plus horizontal, vertical, NW-SE diagonal, and NE-SW diagonal marked road tiles share this rule. A moving unit samples the terrain under its center at the start of each authoritative movement tick; roads otherwise behave like grass, including passability, construction, cover, concealment, and line of sight.- Elevation changes movement directionally. A moving unit compares its current elevation with the elevation up to one tile ahead toward its next local waypoint. Any uphill difference uses 0.80x speed and any downhill difference uses 1.30x speed, regardless of the number of elevation levels; level movement remains 1.0x. Elevation does not change passability or create cliffs.
SLOW_MOVEMENT_TILE_SPEED_MULTIPLIER = 0.75andDAMAGE_REDUCTION_TILE_DAMAGE_MULTIPLIER = 0.75. These independent sparse authored overlays sample the entity-centre tile. Slow movement multiplies the movement budget after the base-terrain modifier (so a slowed road is 1.125x base speed). Infantry-like A* routing converts that same 0.75x ratio into deterministic cardinal/diagonal tile costs and declines the clear-segment shortcut when its sampled centerline crosses slow terrain. Forest tiles do not add the slow movement effect; authored slow tiles remain independent. Damage reduction applies after weapon armor, facing, falloff, and entrenchment calculations to direct fire, Mortar, Artillery, loaded Panzerfaust, and damaging ability projectiles; fractional non-zero damage rounds up.- Gravel A/B/C, Dirt A/B/C, Mud A/B/C, and Frosted Ground are visual Open-terrain variants. They use grass-equivalent 1.0x movement, construction, cover, concealment, and line-of-sight rules.
MACHINE_GUNNER_SETUP_TICKS = 30(~1s setup or teardown for support weapons), halved toMETHAMPHETAMINES_MACHINE_GUNNER_SETUP_TICKS = 15after Methamphetamines research.- Anti-Tank Guns use
ANTI_TANK_GUN_SETUP_TICKS = 120(4s) andANTI_TANK_GUN_TEARDOWN_TICKS = 30(1s). The client mirrors these ticks for matching world and minimap trail animation. - Mortar Teams use a bulkier white-painted sprite with team-tinted barrels and fixed dark wheels. The whole rig renders at 1.2x scale, including shadow, recoil, baseplate and anchors. Selection/placement radius is 21.6 px (formerly 18); circular collision radius is 15.6 px (formerly 13), derived from a dedicated 28.8 px body width and 1.2 px clearance. Mirrored body dimensions are 50.4×28.8 px; Anti-Tank Gun dimensions remain unchanged.
- Mortar Teams move at 1.6 px/tick and have no setup, teardown, or stationary range-ramp timing. They use
MORTAR_MIN_RANGE_TILES = 5,MORTAR_RANGE_TILES = 17, andMORTAR_FIELD_OF_FIRE_RAD = 360 degrees total,MORTAR_FIRE_COOLDOWN_TICKS = 180(6s between shells),MORTAR_MANUAL_SHELL_DELAY_TICKS = 47(~1.57s manual travel, increased by 0.5s),MORTAR_OUTER_RADIUS_TILES = 2.0,MORTAR_OUTER_DAMAGE = 10, andMORTAR_INNER_DAMAGE = 100(peak at impact). Base splash damage uses rounded inverse-square falloff,100 / (1 + 2.25 * r²), whereris the impact-to-target-center distance in tiles. Round to nearest whole damage before armor, entrenchment, and terrain reductions: 100 at impact, 64 at 0.5 tiles, 31 at 1 tile, and 10 at exactly 2 tiles; beyond 2 tiles damage is zero.MORTAR_INNER_RADIUS_TILES = 0.5remains a cosmetic blast-core size, not a damage band. Mortar facing uses sim-localmortar::TURN_RATE_RAD_PER_TICK = PI / 6, so a 180-degree turn takes 6 ticks (~200ms at 30 Hz) instead of snapping instantly. Launch events carry the manual shell delay so the client projectile animation stays synchronized with the authoritative impact. Mortars have no armor penetration: armored targets take the standard non-piercing reduction after falloff (integer division by four), from 25 damage at impact to 2 at the outer edge before other modifiers. Entrenched eligible infantry retain their 25% area-damage reduction. Manual Fire uses hotkeyXand is the only way to fire; it must land in the 5-to-17-tile range band. Mortar Teams never acquire or fire at targets through Idle, Hold Position, Attack, or Attack Move; every shell requires an explicit Mortar Fire command. Manual shots always land exactly on the clicked point, including in fog. Mortar impacts apply the same damage to friendly and enemy units/buildings, and manual fire remains unrestricted even when the selected impact point would hit same-team units or buildings. - anti-tank guns fire only while deployed, with
ANTI_TANK_GUN_DEPLOYED_RANGE_TILES = 20andANTI_TANK_GUN_FIELD_OF_FIRE_RAD = 40 degrees total; packed, setting-up, and tearing-down guns cannot fire. AT guns cannot target Workers, Golems, Novices, Riflemen, Panzerfausts, or Machine Gunners, either automatically or through direct Attack orders. Adepts, Masters, crewed support weapons, vehicles, Ekat, and buildings remain legal targets. A deployed gun’s setup cone remains fixed while its body and barrel turn together atANTI_TANK_GUN_TURN_RATE_RAD_PER_TICK = 0.070to track targets inside that cone; targets outside the cone are ignored until teardown and redeployment. While packed and mobile, an Anti-Tank Gun moves at 1.7556 px/tick and turns its body atANTI_TANK_GUN_BODY_TURN_RATE_DEGREES_PER_SECOND = 110; sharp heading changes still reduce throttle until the gun pivots in place. - Panzerfaust units carry a one-shot 5-tile loaded weapon that targets only visible
Scout Cars, Tanks, Command Cars, Rocket Trucks, War Adepts, and War Masters with
PANZERFAUST_DAMAGE = 100,PANZERFAUST_ARMOR_PENETRATION = 0.5,PANZERFAUST_WINDUP_TICKS = 15, andPANZERFAUST_TRAVEL_TICKS = 15. The Panzerfaust becomes spent immediately at launch and can move and use its rifle while the detached projectile travels. Against Armored Tanks, the 50% penetration lands as 63 effective damage; unarmored Scout Cars take the full 100 damage. Methamphetamines reduces the windup constant to 12 ticks; travel stays 15 ticks. The dedicated runtime owns only the one-shot launcher, exact target whitelist, and disposable state; the entity remains a Panzerfaust throughout. - Tank hull-facing damage modifiers for tank and anti-tank gun hits are 1.0x front, 1.5x side, and 1.7x rear.
- Tanks turn their hulls at
TANK_BODY_TURN_RATE_RAD_PER_TICK = 0.04375, 25% faster than the0.035pivot-drive rate retained by Artillery. Scout Cars and Command Cars continue to use their curvature-based car movement. Tank turret traverse remains independently governed byTANK_TURRET_TURN_RATE_RAD_PER_TICK = 0.070. - Artillery uses
ARTILLERY_MIN_RANGE_TILES = 10,ARTILLERY_MAX_RANGE_TILES = 35,ARTILLERY_FIELD_OF_FIRE_RAD = 30 degrees total,ARTILLERY_RELOAD_TICKS = 90(~3s),ARTILLERY_SETUP_TICKS = 180(~6s setup or teardown),ARTILLERY_SHELL_DELAY_TICKS = 150(~5s), andARTILLERY_AMMO_COST_STEEL = 0(firing is free). It moves at 1.6 px/tick, slightly slower than the Anti-Tank Gun’s 1.7556 px/tick speed. Unified Fire uses a player-selected radius clamped betweenARTILLERY_MIN_FIRE_RADIUS_TILES = 4andARTILLERY_BLANKET_RADIUS_TILES = 15around the stored locked center. Every shell lands at a point sampled uniformly by area inside that circle. There is no separate range-based error, accuracy sequence, or repeated-shot tightening. Artillery Fire Control costs 100 steel and 150 oil, takes 20 seconds, requires Artillery, and reduces the minimum selected radius toARTILLERY_FIRE_CONTROL_MIN_FIRE_RADIUS_TILES = 1. Artillery Fire also works autonomously during Attack Move. A travelling gun stops for currently team-visible enemy units in its firing band, falling back to buildings only when no unit is eligible, and ranks exposed unarmored targets such as support weapons and light cars first, combat infantry second, and armored units last. Within each tier it scores aim points by the summed purchase value inside its minimum dispersion circle. It sets up without abandoning the commanded route, prefers targets inside its deployed field before redeploying, fires without spending steel, retains friendly fire, and resumes movement after a one-second no-target grace. Separate guns make independent choices, so overkill is valid. Its body length, width, clearance, and selection radius are scaled to 75% of the Tank, matching its rendered rig and shrinking both its visual and authoritative gameplay footprint. It costs 150 steel / 50 oil to train. Impacts deal 75 armor-piercing damage within 2/3 tile and non-armor-piercing falloff down to 20 damage at 2 tiles, including friendly fire. - Tanks, Scout Cars, and Command Cars do not consume oil while moving. Zero oil does not pause their path movement or prevent a stationary Tank from turning its hull toward an anti-armor hit.
- Scout Plane sorties cost no Steel or Oil from either Resource Depots or Command Cars.
The spawned unit definition and base ability cost also use zero resource cost.
The remaining Scout Plane constants are
SCOUT_PLANE_HP = 40,SCOUT_PLANE_SIGHT_TILES = 19,SCOUT_PLANE_SPEED_PX_PER_TICK = 2.6,SCOUT_PLANE_SUPPLY = 0,SCOUT_PLANE_ORBIT_RADIUS_TILES = 2,SCOUT_PLANE_LIFETIME_TICKS = 900, andSCOUT_PLANE_ABILITY_COOLDOWN_TICKS = 900. It has no default weapon and a zero-radius authoritative movement/collision body, so it neither reserves nor blocks ground pathing. The client mirror uses a 48x34 px body and 17 px render size. Command Cars keep Breakthrough, while both Command Cars and Resource Depots expose Scout Plane on theCgrid slot after Scout Plane research completes. The ability launches instantly from the selected carrier. Each carrier tracks its own 30-second cooldown; active sorties are otherwise independent and every plane contributes aerial sight. - Tank stationary range ramps from the base 5-tile weapon range to 14 tiles over
TICK_HZ * 3ticks. Movement-path translation or hull rotation resets the ramp; autonomous armor reaction, turret aiming, collision shoves, and external pulls do not. Direct Attack orders hold position for targets inside the maximum stationary range while the ramp builds only when the intended shot is legal (including terrain and smoke visibility). Blocked Tanks keep approaching even inside their current weapon range; targets beyond the maximum range are also pursued. Shots still require the current ramped range. - Human selection and command bandwidth is supply-based:
BASE_COMMAND_SUPPLY_CAP = 25command supply. Units use their mirrored supply as command weight, except Command Cars have zero command weight and add no capacity (COMMAND_CAR_SUPPLY_CAP_BONUS = 0). Tanks consume 5 command supply, so five Tanks fill the budget. A Command Car still uses 4 production supply. - Methamphetamines (Training Centre research): costs 100 steel / 200 oil and takes 1200 ticks (~40s). Once complete, all current and future Riflemen for that player gain permanent moving rifle fire, 1.25x movement speed (matching tank speed at 2.0 px/tick), no extra movement miss chance, and a shared Rifleman/Panzerfaust rifle cooldown of 24 ticks instead of 32 (25% shorter cooldown, or 33⅓% more shots per second). It also increases that player’s Machine Gunners from 1.28 px/tick to unupgraded Rifleman speed (1.6 px/tick) and halves their setup and teardown timers from 30 ticks to 15. Panzerfausts also use the reduced 12-tick Panzerfaust windup.
- Panzerfausts (Training Centre research, protocol id
panzerfausts): costs 100 steel / 100 oil and takes 600 ticks (~20s). Completion unlocks Panzerfaust training at the Barracks. Riflemen are never automatically armed or rearmed. - Entrenchment (Training Centre research, protocol id
entrenchment): costs 100 steel / 0 oil and takes 600 ticks (~20s). The rules surface defines Riflemen, Panzerfausts, and Machine Gunners as eligible entrenchment infantry; Engineers/Workers, Mortar Teams, Ekat, Golems, Ekat-faction units, vehicles, buildings, support weapons other than Machine Gunners, and non-infantry entities are excluded. Eligible infantry owned by a player with completed Entrenchment create neutral trenches after holding ground on untrenched terrain for 90 ticks (~3s), and any eligible infantry can occupy an existing empty trench while stopped in its footprint. A trench can actively hold only one infantry unit, so nearby eligible infantry dig their own adjacent trenches instead of sharing one. Leaving an occupied trench has no delay: movement orders release occupation immediately, and Machine Gunners skip weapon pack-up when leaving a trench, including Attack-order pursuit. Attacking a target in range preserves trench occupation and weapon deployment. Active occupation grants immunity to Vector Field displacement, +1 tile weapon range, reduces incoming direct damage by 50% after normal weapon/armor/facing calculations, reduces incoming area damage by 25% after existing falloff/armor rules. Entrenchment does not add a direct-shot miss chance. Tank cannon direct shots have no intrinsic infantry dodge chance. Anti-Tank Guns cannot target Novices, economy bodies, or Kriegsia rifle infantry. Adepts and Masters are legal targets. Direct shots damage only their resolved victim. The trench radius is 0.375 tile. The client renders neutral trench terrain as brown ground and marks occupied eligible infantry with a small brown rim. The selected-unit panel reports existing-trench reuse, researched dig-in availability, and occupied benefits as a player-facing status only; the server remains authoritative for actual occupation and combat modifiers. - Artillery (Engineering Complex research, protocol id
artillery_unlock): costs 200 steel / 100 oil and takes 750 ticks (~25s). It has its own permanent Engineering Complex slot and can be researched independently. The former AT Guns slot before it remains empty so all other research hotkeys retain their established positions. Once complete, that player can train Artillery from Gun Works. - Rockets (Engineering Complex research, protocol id
rockets): costs 75 steel / 125 oil and takes 750 ticks (~25s). Once complete, that player can train Rocket Trucks from Gun Works. No Vehicle Works is required. - Tank Production (Engineering Complex research, protocol id
tank_unlock): costs 150 steel / 100 oil and takes 600 ticks (~20s). Once complete, that player can train Tanks from Vehicle Works. Scout Cars remain immediately trainable from Vehicle Works; Command Cars require only a completed Engineering Complex and do not require Tank Production. - Smoke Plus (Engineering Complex research, protocol id
smoke_plus): costs 150 steel / 150 oil and takes 600 ticks (~20s). Once complete, future Scout Car Smoke casts by that player use a 4-tile cloud radius and last 10 seconds instead of the base 2.25-tile radius and 5-second duration. - Scout Plane (Engineering Complex research, protocol id
scout_plane_unlock): costs 100 steel / 200 oil and takes 600 ticks (~20s). Once complete, Command Cars owned by that player can use their C-slot Scout Plane ability for free. - Ability metadata is Rust-authoritative in
server/crates/rules/src/faction.rs. The faction catalog records carriers, target mode, ranges, cooldowns, charges, base and carrier-specific Steel/Oil costs, building and upgrade requirements, queueability, autocast support, and command-card affordances;client/src/config.jsis mechanically checked against that registry for client-visible ability descriptors. Server execution maps those registry rows to a small set of sim-local effect hooks: legacy no-op, owned area status, delayed world effect, dash return, line projectile, Magic Anchor placement, Golem consumption, and the artillery fire path. The visiblepointFirecatalog row supplies the unified Fire button, while the hiddenblanketFirerow backs the radius-bearing server order. Both retain the same range band, ammunition cost, and reload cadence. The legacychargeability id remains registry-backed only for old command/replay decoding and has no carriers, cooldown, command-card entry, or runtime status. - Ekat is the first playable one-hero faction unit. The
ekatcatalog starts with one Ekat and one Zamok, no workers, no buildable menu, no research, and no other controllable combat units besides Golems produced from Zamok. Ekat has 150 HP, no passive regeneration, 1.6 px/tick speed, 12-tile sight, no default attack, and no Steel/Oil/Supply cost. Her Dash ability targets up to 5 tiles, has no resource cost, has an 8s cooldown, requires a statically standable landing point, and leaves a four-second return marker that can be recast after one tick if the marker destination remains standable. Her Line Shot ability targets up to 6 tiles, has no resource cost, has a 20s cooldown, and launches an 8 px/tick out-and-back projectile that deals 40 damage to enemy targetable entities intersecting each 0.6-tile-wide swept leg once per leg; if her Magic Anchor is active, the same activation also launches a second projectile from the anchor toward the cursor. Her Magic Anchor ability targets up to 7.5 tiles, has no resource cost, places one replacement-style non-blocking, non-attackable 10-second pull field with a 3-tile radius. Every tick, affected enemies receive an inward displacement vector in addition to normal movement, whether moving or stationary. Its magnitude is 2.4 times the unit’s movement speed, multiplied by linear radial falloff (zero at the edge, full strength toward the center) and divided by the square root of footing resistance, with a minimum resistance of 1.0 so working workers are still pulled. The strongest overlapping field applies; displacement cannot overshoot its center or cross blocking bodies or impassable terrain. This replaces directional speed multipliers and the separate idle rule. Her Consume ability is self-targeted, has no resource cost or cooldown, consumes the nearest owned living Golem within 2 tiles, and heals Ekat to full HP. Existing prototype combat abilities remain directly available until the Ekat tech-unlock building slice replaces them. - Scout Car Smoke (hotkey
D): Scout cars have a targeted smoke-grenade ability once their player completes an Engineering Complex; no completed Gun Works is required. Each scout car holds up to 2 Smoke charges and has unlimited lifetime uses. Smoke has no steel or oil cost and no activation cooldown, so both stored charges can be cast back-to-back. Spending the first charge starts a sequential recharge queue: one missing charge returns after 15 seconds, and a second missing charge returns after another 15 seconds. Target range: 14 tiles from the caster. Launch delay: up to 100 ms at max range, scaling down for closer targets. Cloud radius: 2.25 tiles. Cloud duration: 5 seconds. After Smoke Plus research, future casts by that player use a 4-tile radius and 10-second duration. Expected role: an offensive tool for closing on long-range defenses; push a scout car forward, place smoke between the advance and the anti-tank gun / machine-gun nest, then move mobile units through the resulting dead zone. Active smoke is neutral world state: it blocks authoritative fog and combat LOS, prevents units inside smoke from contributing vision, hides enemies inside smoke, and does not participate in pathing, collision, scoring, supply, or targeting as an entity. The concealment has a unit-to-unit close-quarters exception: two living units both inside smoke gain mutual actionable visibility when the gap between their body edges is at most 1 tile, allowing ordinary direct attacks while terrain and longer-range contacts remain obscured. Units inside a cloud still receive that cloud in their own snapshot so the obscuring effect remains visible to the player occupying it. The command card shows the selected Scout Car’s remaining charges as2,1, or0. While a missing charge regenerates, the ability’s existing clock animation shows progress toward the next charge; recharge does not disable a stored charge that is still available. - Command Car aura and Breakthrough! (hotkey
E): Each completed Command Car continuously gives owned units within 9 tiles a 1.3x speed multiplier. This passive aura has no smoke interaction, and overlapping Command Cars do not stack. Breakthrough is the self-targeted instant active version: it applies the full 1.6x speed status to owned units currently within that same radius for 180 ticks (~6s), with a 750-tick (~25s) per-caster cooldown, no resource cost, queueability, and movement during casting. While an affected unit is actually moving, Breakthrough lets it fire without stopping and halves the cooldown of each weapon fired on that tick. Stationary attacks retain their normal cooldown, and setup weapons still obey their setup requirements. The active status uses the 1.9x multiplier while the affected unit is inside smoke or during the 60-tick (~2s) recent-smoke grace window after leaving it; it overrides the passive aura. Multiple active Breakthrough effects do not stack; a shorter refresh cannot reduce an active buff. Enemies see the active status only when the affected unit is otherwise visible through authoritative fog. The client draws the permanent radius faintly for each visible Command Car and brightens it while the active aura is running. Fake Army and allied-unit support are deferred. - Map:
TILE_SIZE = 32px. New normal lobbies default to the imported 126×126 two-player map atserver/assets/maps/1v1.json(ten permanent resource base locations), served for tooling at/maps/1v1.json. The Classic terrain includes authored roads connecting the starts and central approaches. The four-startDefaultmap remains the hardcoded asset atserver/assets/maps/default-handcrafted.jsonfor generic simulation setup, Labs, and replay compatibility; it is the original 96×96 handcrafted map padded with 15 passable grass tiles on every edge. Both map JSON assets use terrain row strings, flatstartLocations, and flatbaseSites. - Start:
STARTING_STEEL = 25,STARTING_OIL = 0,STARTING_WORKERS = 1, andSTARTING_RIFLEMEN = 4: one Engineer, four Riflemen, one Resource Depot, one completed Pump Jack on a home Oil patch, and six completed Steel Mines at the player’s start, with 12 steel patches holding 625 steel each split into two six-wide fields four tiles out on opposite sides of the base + 3 oil patches with 962 oil each nearby. Each base therefore holds 7,500 steel and 2,886 oil, a 2.599:1 Steel/Oil ratio (the nearest whole-unit node capacity to the 2.6:1 target). - Supply: every active player has an intrinsic
300supply allowance, which is also the hard cap. Buildings do not provide supply: Resource Depots, Zamoks, and legacy fixture/replay Depots all grant+0. Supply remains an army-size limit without forcing expansion or supply-building chores. - Attached steel mining: gatherers walk to a steel patch, latch onto it, and mine in place.
Every
HARVEST_TICKS = 40the base load (STEEL_LOAD = 2) is deposited directly into the player’s economy only if the resource node is withinMINING_ANCHOR_RANGE_TILES = 11.0tiles of a completed home-base mining anchor owned by that player: Resource Depot for Kriegsia, or Zamok for Ekat. Workers deposit the base load; Golems deposit four times the base load. Starting resources are placed withinSTART_RESOURCE_MAX_DIST_TILES = 7.0, giving Resource Depots a four-tile mining buffer around the authored/base resource cluster. If no completed mining anchor is close enough, gatherers ignore new gather orders for that steel patch and active miners scatter roughly one tile away from the patch. When a patch empties the gatherer goes idle (no automatic retarget). - Oil extraction: workers do not directly mine oil. Every completed Resource Depot automatically
builds free Pump Jacks on its in-range oil patches, concurrently with its free Steel Mine job.
The starting Resource Depot begins with one completed Pump Jack; later Resource Depots retain
the ordinary automatic construction behavior.
Completed Pump Jacks mine
OIL_LOAD = 2everyHARVEST_TICKS = 40, matching one worker’s former oil rate, and deplete the underlying oil node. When that final load empties the patch, its Pump Jack disappears with it and the permanent Depot job moves to the next eligible patch. - Unsupported extractors: completed Steel Mines and Pump Jacks without a living, completed
friendly Resource Depot or Zamok within the existing 11-tile mining-anchor range lose 4% of
maximum HP per second (
EXTRACTOR_DECAY_TICKS = 750). A full-health extractor dies after exactly 25 seconds without support; damaged extractors die sooner. Allied bases count. Restoring support stops decay and clears fractional damage without healing lost HP. Extractors under construction do not decay. Decay uses ordinary unattributed damage/death handling; the underlying resource patch remains available. - One gatherer per direct-mined patch: each direct-mined node has a single harvest slot
(
Entity::miner). A patch is occupied only after the gatherer reachesGatherPhase::Harvesting; right-clicking a patch does not reserve it. Extra gatherers that arrive while the slot is taken go idle. The slot is advisory and self-heals — it’s only honored while the recorded gatherer is alive and actively harvesting that node, so death / re-order / retarget free it automatically. - Starting and expansion resources: every authored base site gets 12 steel patches and 3 oil
patches. Map schema v3 stores flat
startLocationsandbaseSites: the number of start locations limits player count, while every base site remains present in every match. A player receives a Resource Depot, workers, and the normal resource cluster at an assigned start; unclaimed starts and all other base sites keep their resource clusters as neutral expansion locations. Steel fields use a 4.5-tile lateral offset, increased to five tiles for multi-row fields so dense resource clusters clear the Resource Depot’s 4x4 footprint. The map editor mirrors this placement. Starting extractors skip already occupied tiles and units when selecting their resource patches. Tile-centered Oil patches stay at least four tiles from the base anchor to clear the enlarged depot footprint too. The seed only determines player-to-start assignment, never which base sites exist. This lets a map have any safe bounded number of base locations without assigning natural sites to players or maintaining multiple player-count layouts.
Unit stats (hp, dmg, range[tiles], cooldown[ticks], speed[px/tick], sight[tiles], cost, supply, buildTicks):
| kind | hp | dmg | range | cd | speed | sight | steel | oil | sup | buildTicks |
|---|---|---|---|---|---|---|---|---|---|---|
| worker | 40 | 4 | 1 | 48 | 2.0 | 10 | 50 | 0 | 1 | 150 (5s) |
| golem | 160 | 16 | 1 | 48 | 2.0 | 10 | 0 | 0 | 4 | 396 (~13.2s); provisional free Ekat worker-like economy body trained at Zamok; mines at 4x worker load; can be consumed by Ekat for full heal |
| warrior | 58 | 23 | 0.75 | 91 | 2.0 | 11 | 50 | 0 | 2 | 300 (~10s); Cultivator Portal-trained melee bruiser; 50% armor penetration; no projectile or tracer |
| bow_novice | 48 | 5 | 5 | 32 | 2.0 | 11 | 50 | 0 | 2 | 300 (10s); Portal-trained immediately; no research; earns insight and evolves to any Dao at 60; zero penetration; stops to shoot with a five-tick post-shot movement pause; no Charge |
| rifleman | 45 | 5 | 5 | 32 | 1.6 | 11 | 35 | 0 | 1 | 300 (~10s) |
| panzerfaust | 45 | 5 rifle / 100 launcher | 5 | 32 rifle / one lifetime launcher | 1.6 | 11 | 55 | 10 | 1 | 300 (~10s); requires completed Panzerfausts research |
| machine_gunner | 55 | 4 | 6.1 | 10 | 1.28 | 11 | 75 | 10 | 2 | 400 (~13s) |
| mortar_team | 75 | 100→10 rounded inverse-square AOE over 0–2 tiles | 5-17 | 180 | 1.6 | 10 | 150 | 40 | 3 | 460 (~15s); trained at Gun Works (steelworks kind) |
| anti_tank_gun | 45 | 100 deployed; cannot target infantry | 20 deployed | 144 | 1.7556 | 9 | 150 | 40 | 3 | 440 (~15s); cannot fire while packed or transitioning; requires a completed owned Gun Works (steelworks kind) and past ownership of a completed Engineering Complex; no research required (temporary hack; remove later) |
| artillery | 200 | 75 AP inner / 75-20 outer AOE | 10-35 artillery fire | 180 | 1.6 | 7 | 150 | 50 | 4 | 600 (~20s); requires Gun Works (steelworks kind) and Artillery (artillery_unlock) researched in Engineering Complex; rendered at 75% of its prior size with a matching 75%-of-Tank gameplay footprint; 2/3-tile inner and 2-tile outer blast radii; soft target with no armor damage reduction |
| rocket_launcher (Rocket Truck) | 150 | 18 rockets, each dealing 70 armor-piercing damage within 0.5 tile, 53 non-piercing damage beyond 0.5 through 1 tile, and 21 non-piercing damage beyond 1 through 2 tiles, measured from impact to target centre; all resulting damage is reduced to 25% against buildings | 10-44 Barrage | 900-tick (~30s) cooldown from activation | 2.0 | 8 | 225 | 100 | 3 | 600 (~20s); requires Gun Works (steelworks kind) and Rockets (rockets) researched in Engineering Complex; vehicle movement; must stop to launch; one manual command unloads exactly 18 rockets over 120 ticks (~4s) into a 6-tile scatter radius and then stops; its team-tinted rack carries 18 rounds, empties one slot per launch, and refills at cooldown completion; the PNG and collision footprint are enlarged by 20% (48×26.4 px body, 1.2 px clearance, 21.6 px selection radius); Barrage accepts in-range world points without requiring current vision; first barrage is free and later barrages cost 150 oil |
| scout_car | 100 | 6 | 7 | 12 | 2.35 | 15 | 125 | 60 | 3 | 480 (~16s) |
| scout_plane | 40 | 0 | 0 | 0 | 2.6 | 19 | 0 | 0 | 0 | 0; instant sorties are free from a Command Car; uses the C slot after research; unlimited independent active sorties; non-combat recon with 2-tile orbit radius and a 30-second total lifetime from launch, including transit, followed by despawn; 30-second carrier-local cooldown, no ground collision reservation, and 48x34 px client render body |
| tank | 292 | 60 cannon; 4 coax | 5 moving / 14 fully stationary cannon; 6 coax | 144 cannon; 12 coax | 2.0 | 9 | 350 | 145 | 5 | 750 (~25s); requires Vehicle Works (factory kind) and Tank Production (tank_unlock) researched in Engineering Complex; coax is a secondary small-arms weapon that aims independently in all directions |
| command_car | 150 | 0 | 0 | 0 | 2.35 | 8 | 150 | 85 | 4 | 450 (~15s); trained at Vehicle Works (factory kind) and requires a completed Engineering Complex, but no Tank Production research; no weapon; Scout Car-style movement with a smaller jeep-sized body |
| ekat | 150 | 0 | 0 | 0 | 1.6 | 12 | 0 | 0 | 0 | 0; Ekat faction hero; no default attack; no passive regeneration; consumes nearby Golems for recovery |
Building HP is reduced by a further 20% from the previous values, rounding down to whole HP, except Steel Mines (37 HP) and Pump Jacks (56 HP), which are unchanged. This includes legacy Portal (98 HP) and Supply Depot (65 HP) buildings and Tank Traps (72 HP).
Building stats (hp, sight, cost, footprint tiles wxh, buildTicks, extra). Building sight is measured outward from the footprint edge, not from only the building center, so sight 1 reveals the full footprint plus a one-tile perimeter around it. Sight 0 buildings do not reveal fog tiles:
| kind | player-facing name | hp | sight | cost | foot | buildTicks | notes |
|---|---|---|---|---|---|---|---|
| resource_depot | Resource Depot | 180 | 1 | 600 steel + 135 oil | 4x4 | 150 | trains workers and permanently auto-builds free Steel Mines and Pump Jacks concurrently; no supply; players start with one free |
| zamok | Zamok | 360 | 1 | 0 | 3x3 | 0 | Ekat start building; no supply; trains Golem; no research in first playable slice |
| depot | Supply Depot | 65 | 1 | 100 | 2x2 | 300 | disabled in the current experiment (not buildable and no command-card button); retained for replay and fixture compatibility; no supply |
| barracks | Barracks | 98 | 1 | 150 | 3x2 | 200 | trains rifleman, machine_gunner, and panzerfaust; Machine Gunner requires a completed Training Centre and Panzerfaust requires completed Panzerfausts research; requires a Resource Depot |
| training_centre | Training Centre | 120 | 1 | 100 steel + 25 oil | 3x2 | 560 | shared prerequisite before either advanced path; unlocks machine_gunner training at barracks and researches Methamphetamines, Panzerfausts, and Entrenchment; requires a Resource Depot and Barracks |
| engineering_complex | Engineering Complex | 98 | 1 | 100 steel + 100 oil | 3x3 | 450 | research-only building for Artillery, Rockets, Tank Production, Tank Plus, Smoke Plus, and Scout Plane; its first command-card slot remains empty to preserve existing research hotkeys; requires a Resource Depot and Training Centre |
| factory | Vehicle Works | 120 | 1 | 125 steel + 125 oil | 3x3 | 749 | Mobile Warfare path building; trains scout_car immediately, command_car after a completed Engineering Complex, and tank after Tank Production research; requires a Resource Depot and Training Centre |
| steelworks | Gun Works | 120 | 1 | 150 steel + 100 oil | 3x3 | 599 | Superior Firepower path building; trains mortar_team immediately, Anti-Tank Guns after ever owning a completed Engineering Complex (temporary hack), Artillery after Artillery research, and Rocket Trucks after Rockets research; requires a Resource Depot and Training Centre |
| tank_trap | Tank Trap | 72 | 0 | 15 steel + 0 oil | 1x1 | 120 | engineer-built vehicle obstacle available from the worker build card after a completed Training Centre; A-clicking a visible or remembered completed trap creates a four-tile clear-area Attack Move objective whose actionable traps outrank ordinary enemies; workers deconstruct completed traps in 60 ticks and refund the cost to the deconstructing player; sparse orthogonal pairs close the single tile between them for vehicle movement only; armored, no trains, no supply, no weapon, no fog reveal, not an elimination building |
| steel_mine | Steel Mine | 37 | 1 | 0 | 1x1 | 720 | free permanent Resource Depot background job on in-range Steel patches; mines 2 steel per 40 ticks; unarmored, immobile, no trains, no supply, and no weapon |
| pump_jack | Pump Jack | 56 | 1 | 150 steel | 1x1 | 300 | manual Engineer or Serf construction; also a free 1080-tick permanent Resource Depot background job on in-range Oil patches; mines 2 oil per 40 ticks; unarmored, immobile, no trains, no supply, no weapon, and does not block shots or line of sight |
Win: a player is eliminated when they own zero elimination-counting buildings; units and
Tank Traps alone do not keep them alive. Last player standing wins; a 1-player match never ends
(sandbox/exploration mode). In a
3-4 player match, a connected human who is eliminated receives a one-time gameOver score
snapshot immediately while the remaining players keep playing; final match resolution sends
gameOver only to players who have not already received one.
Machine-gun cone
The infantry Machine Gunner has a 10-tick firing cycle (20% faster than 12 ticks); Scout Car MG and Tank coax retain their 12-tick cycles. Acquisition ranges are unchanged. Each cycle emits three simultaneous server rays. The first is aimed at the selected target (the nearest footprint surface for buildings); the other two are uniformly random over a 20-degree full cone centered on that target. Each bullet contributes 60% of the profile damage (2.4 MG/coax, 3.6 Scout Car), a 20% increase from the previous half-damage rays. Damage sums per victim and rounds to the nearest whole point once per burst before protection reductions. The nominal maximum emitted DPS is 21.6/27/18 for Machine Gunner/Scout Car MG/Tank coax respectively; actual HP damage reflects integer rounding. A clear center ray hits the selected target; terrain, smoke, or another body can still intercept it. Spread rays may hit that target, another target, or nothing.
The nearest targetable enemy body or building absorbs each bullet. Friendly infantry is transparent; friendly Tanks and sight-blocking buildings absorb without damage, except an explicitly commanded self-attack. Neutral obstacles intercept when explicitly targeted. Rays stop at opaque terrain, smoke, or weapon range. Damage sums per victim within a simultaneous burst before existing integer armor, cover, and entrenchment reductions, with a minimum of 1 damage for a burst that hits an eligible victim; lethal overkill stays on that victim. Misses and friendly blockers take no damage. Existing non-MG damage is unchanged. The three cosmetic yellow tracers launch 20 ms apart, with 2,700 world pixels/second travel, a 7.5-pixel tail, and a 1.1-pixel stroke. Server damage is immediate.
Temporary AT Gun tech hack: owning a living, completed Engineering Complex permanently grants
that player the retired anti_tank_gun_unlock marker for the match, without research or cost.
Losing the complex does not relock manual or repeat AT Gun production. Unfinished, dead, enemy,
and allied complexes do not grant it; the producing Gun Works must still exist and be complete.
The marker uses existing upgrade snapshot/checkpoint persistence. TODO: remove this hack when
tech requirements are revisited, including the marker grant and server/client/AI exceptions.
Other units retain their current prerequisites.
Barbed Wire: Engineer-built, completed Training Centre required; 4 steel, 90 ticks per 1×1 segment, 2 crossing HP, no sight/supply or blocking. Untargetable and immune to weapon damage. Tank entry immediately destroys the segment; other ground unit entries consume one HP. Infantry and mortar teams additionally take 10 direct HP damage and move at 70% speed on a live completed segment. See rules.
Three Dao Pavilion prototype
Cultivator Serfs can construct the Three Dao Pavilion after a completed Nexus and Portal. It inherits the Training Centre baseline: 100 Steel, 25 Oil, 560 ticks construction, 120 HP, armored, one tile sight, no weapon, no supply or production. Its approved art uses a 3x3 placement and collision footprint. Its three independent, permanent researches (Dao of Wind, Dao of War, and Dao of Magic) share a player-wide escalating price, in any order: the first costs 50 Steel / 100 Oil and takes 600 ticks (20 seconds), the second costs 100 Steel / 200 Oil and takes 1200 ticks (40 seconds), and the third costs 200 Steel / 400 Oil and takes 2400 ticks (80 seconds). The rules/client catalog retains the second-tier baseline; runtime pricing applies ½×, 1×, or 2× to costs and duration. Completed researches and paid active Dao researches across all owned pavilions reserve tiers. Unpaid entries select their tier when payment starts; a paid entry keeps its duration and refund value even if another research is cancelled or its pavilion destroyed. Each unlocks its corresponding 150-steel / 60-oil Adept production at Portals. Existing research queue, cancellation, refund, completion, and destruction rules apply; completed research persists. See Cultivators for the approved brief.
Disciple insight and Dao specializations
Player-facing base units are Sword Disciple (warrior) and Bow Novice (bow_novice), which can permanently evolve into Wind Adept,
War Adept, or Magic Adept. Each base and Adept is a distinct authoritative unit kind.
See Dao evolution playtest. Entity-owned insight and authoritative unit kind persist
through checkpoints. Evolution changes Novice warrior (29) to wind_adept (35),
war_adept (36), or magic_adept (37), preserving the entity id and orders.
Permanent Dao identity is derived from kind; the engine stores no separate mutable dao. Visible Disciple snapshots append insight (compact slot 45) and
dao (slot 46: wind/war/magic). Evolution buttons set replaceable, entity-owned chosenDao intent (team-private compact slot 49), independent of orders. Codes 14–16 and order stages 22–24 retain their positions.
Evolution automatically occurs once 60 insight is ready, without research or a Pavilion.
Cultivators gain no passive insight from time alive.
Evolution clears all insight and raises the cap to 200. Wind and War Adepts continue earning
insight from actual hostile HP damage (one insight per unit HP removed, quarter-rate building damage, with exact fractional carry; Wind earns full one-per-HP insight from Pumpjacks and Steel Mines; War Adepts earn double insight from actual Tank HP removed; both legs of Throw Sword earn Insight at these rates). Magic Adepts earn the same combat insight, plus 20 per enemy unit death inside their active Vector Field; Shield grants no insight; reaching 200 automatically advances a living Adept to its matching Master. Research ids are
dao_wind, dao_of_heaviness (War), dao_of_magic (Magic).
DISCIPLE_SHIELD_CAPACITY (150), DISCIPLE_SHIELD_RADIUS_TILES (2.1), and DISCIPLE_SHIELD_DURATION_TICKS are mirrored for the Shield HP and lifetime bars and checked by faction catalog parity. DISCIPLE_EVOLVED_INSIGHT_CAP (200) is also parity-checked. Master Shield capacity and duration are sent as public cast-time maxima with each visible field for accurate bars.
Dao presentation and support Shield follow Disciple insight and Dao evolution. Wind Adepts and Masters have 14 tiles of base sight, one less than the Scout Car’s 15 (Novices, War, and Magic retain 11). Wind uses the base Disciple’s 0.75-tile sword reach, retaining 23 damage, 25% penetration (50% at Master rank), 61-tick cooldown, moving attacks, 2.7025 px/tick movement, and Blink. Its five-tile automatic engagement closes to melee reach. Magic uses a five-tile orb primary, retaining 23 damage, 25% penetration (50% at Master rank), and 91-tick cooldown, and stops to fire. Novices retain automatic Charge at 1.5× speed for one second. War Adepts and Masters charge at 2× speed for up to four seconds, ending on their first committed primary attack (including a miss), loss of a legal target, or replacement of the engagement order. Both use the existing 15-second cooldown from activation against a hostile unit within five tiles (center distance), at least two tiles away or moving away; Charge has no selectable command and does not grant moving attacks. Wind Blink reaches twelve tiles with no return recast, while Ekat retains its five-tile Dash and return. Wind Adepts hold one Blink charge; Masters hold two. Each spent charge recharges sequentially in eighteen seconds, and promotion grants the additional ready charge without resetting an existing recharge. War uses 1.75-tile spear reach (DAO_WAR_RANGE_TILES) and 100% primary armor penetration at both ranks, with 35 primary damage at Adept rank and 63 at Master rank (the ordinary rounded 42 multiplied by 1.5). Its cooldown, defensive armor and HP bonuses remain unchanged. Novice primary penetration remains 50%; ability weapons retain their own penetration. Its sprite scale remains 0.56. The Novice collision/interaction radius is 17 world pixels; Wind and Magic retain independent 26-pixel radii, while War retains 18.2 pixels (26 × DAO_WAR_BODY_SCALE, 0.7). Master body scaling is unchanged. Proving/Tournament Grounds choose spawn exits using the finished Adept’s body before materializing and evolving the queued Novice, so a smaller entrant cannot create an overlapping larger exit body. Novice artwork is unchanged, and its direct/outer click radius remains 19.5 pixels independently of the smaller collision/marquee footprint. The two starting Novices stand five tiles toward the enemy from the Nexus to clear the base with its larger body. These footprints cover the rendered torsos instead of allowing tightly stacked bodies. Sprite origins center each torso on the authoritative position, including the War atlas’s forward-offset torso. Weapons, scarves, and the presentation-only 11.2-pixel War lunge may extend outside the body footprint. DAO_WAR_BODY_SCALE remains mirrored for artwork, selection, and collision geometry. DAO_WAR_RANGE_TILES and DAO_RANGED_RANGE_TILES are mirrored in client config and range overlays.
War Adepts can cast Throw Sword with a 40-second cooldown; War Masters retain the normal 20-second cooldown. Advancement preserves a cooldown already in progress. It uses fractional ability range metadata: 7.5 tiles, 100/11 px/tick, and a 0.9-tile damage width and zero armor penetration (5/10 damage against armored targets, 20/40 against unarmored targets before other protection); see Dao evolution. Ability catalog ranges support fractional tiles and remain mirrored in client descriptors.
Tournament Grounds
Cultivator Engineer building: 100 steel, no oil, completed Portal prerequisite, 4×4, 120 HP armored, sight 1, 200-tick construction. Four base Disciples are consumed for a free 150-tick tournament producing one full-health Disciple rolling an existing first Dao specialization uniformly. Three supply reserve the winner. See Tournament Grounds rules.
Portal first-stage rallies to the exact owned completed Grounds center automatically issue entry movement to newly trained base Disciples. Busy grounds retain waiting entry intents.
Portal Adept production
A completed Cultivator Portal trains Novices and, after matching Pavilion research, Wind, War and Magic Adepts. Each Adept costs 150 steel, 55 oil, three supply and takes 300 ticks (ten seconds), without a Novice input. Use normal train/repeat commands, queue payment/refunds, legal spawn exits and rally behavior. An unresearched Dao cannot be trained. Combat-earned evolution and Tournament Grounds are unchanged.
Proving Grounds
Retired from the playable Cultivator catalog: Serfs cannot construct it, it is not a production anchor, and the build menu no longer offers it. Its gate artwork is reused by the Portal’s Jade Silk Gate effect. Direct researched Adept production remains at Portals. The internal kind and training machinery below remain for authored fixtures; they are not an available progression path in normal matches.
The retained proven_grounds fixture has the former construction baseline: 100 steel, zero oil,
200-tick construction, 3×3 tiles, 120 HP, armored, one-tile sight, no weapon or supply.
Select the building to queue a mix of researched Dao training plans (maximum 64). Right-click
base Disciples inside or rally a Portal there. Each admission consumes one base Disciple and
100 oil, reserving three supply for its Adept replacement. One full-health chosen
Dao specialist emerges after 300 ticks (10 seconds), using legal exits and the full rally plan.
Blocked exits retry; destruction loses the trainee and oil. Unpaid plans can be canceled; active
training cannot. Combat-earned 60-insight evolution requires no research.
See Proving Grounds brief and rules for details and deferred audio/AI work.
Cultivator Shop
Cultivator Serfs can construct the Shop for 100 steel and 100 oil in 600 ticks (20 seconds). It has 200 HP, armored status, a 3×4 footprint and one-tile sight. No prerequisites, attack, production, research, supply or rally point. Targeted goods are listed below. Normal building placement, cancellation, damage, fog and destruction apply. See Shop for the brief.
Dao Master advancement
At 200 insight, each living Adept automatically becomes its matching Master and fully heals. Relative to that path’s Adept, size/collision ×1.2, movement ×1.1, ordinary attack damage ×1.2 (nearest integer), maximum HP ×1.4. No resource or supply cost, research or attack-rate change; War Masters halve Throw Sword cooldown to 20 seconds and increase their otherwise rank-scaled primary damage by 50%, from 42 to 63; both War ranks share the four-second, 2× Charge; Magic Masters double Shield capacity to 300 HP and extend lifetime to fifteen seconds; Wind Masters gain a second Blink charge; no repeat advancement. Adept maximum HP is 150 (Wind/Magic) or 176 (War), a 30% increase rounded to whole HP; Novices have 58 HP. Master HP follows the existing ×1.4 advancement multiplier after Adept rounding: 210 (Wind/Magic) or 246 (War). See Master rules and review.
Shop goods
The Regen command subtitle is +3 HP per second and Armor Treasure is +50% armor (American spelling). These summarize the existing effects; the full descriptions retain permanent delivery semantics and Armor Treasure’s percentage-point/cap details.
Completed Shops offer Regen (35 oil, permanent 3 HP/s regeneration after delivery, one carried slot) and Escape Treasure (70 oil, one lethal-damage escape to the supplying Shop at 1 HP). Both target visible friendly units at unlimited range and travel at 7.5 tiles/second without a flight timeout. All flying goods have 10 HP and can be destroyed by enemy weapons. Destroyed goods and dead targets cancel delivery without a refund. The R Buy menu purchases one item at a time for selected fighters, prioritizing rank, Insight and existing carried/reserved items. See Shop.
Healing Seal
Healing Seal is no longer sold by Cultivator Shops. Authored and checkpointed fields retain the following behavior. Each seal is a walk-through 3×3-tile field (circular radius 1.5 tiles) with 400 HP of shared healing capacity. Every 10 simulation ticks, each wounded living friendly ground unit whose center is inside the circle recovers 1 HP (3 HP per second); only actual HP restored consumes capacity. Stable seal/unit id order resolves the last points. Overlapping seals stack. Full-health units, enemies, buildings and air sorties consume nothing. The seal expires on depletion, persists after its Shop dies, has no combat HP, sight, supply, weapon, repair/refund, or survival-building status, and costs no construction time. The reserved ability has no live carriers or command-card entry. See Healing Seal.
Cultivator Novices carry one item, Adepts carry up to three, and Masters carry up to six, with no category cap and no carried-item hotkeys. Distinct effects coexist; duplicate copies do not stack. Haste costs 70 oil, Double Damage 105 oil, Armor Treasure 70 oil; Haste, Double Damage, Armor, and Vitality are permanent passives applied on delivery. Haste grants 15% movement speed, 25% primary weapon attack speed (reload / 1.25, rounded upward to a whole tick), and attacks while moving, Double Damage doubles primary weapon damage, Armor Treasure adds 50 percentage points to native/War Dao armor, capped at 100% before penetration; it no longer halves final damage. Escape’s 70-oil purchase starts a 60-second per-player cooldown shared across all owned Shops. See Shop item rules.
Vitality Treasure costs 70 oil and can coexist with all other distinct carried items. Delivery permanently adds 150 maximum HP and 150 current HP. The item remains carried and passive, without activation or expiry. See Vitality rules.
Vector Field
Vector Field is a separate ability (vectorField) replacing Anchor for Magic Adepts and Magic Masters only. Ekat retains her original Magic Anchor and radial pull. The centered square is 4 by 4 tiles for Magic Adepts and 5 by 5 tiles for Magic Masters, oriented along the selected arrow, lasts ten seconds, and has a 10.5-tile cast range. Successful placement starts a 30-second cooldown for Magic Adepts and a 20-second cooldown for Magic Masters. Promotion preserves a cooldown already in progress. Every ground unit in it, allied or enemy, except actively entrenched infantry, receives an additive displacement along the arrow equal to half its own effective movement speed, including movement upgrades and active speed/terrain modifiers, independent of mass/footing resistance. Overlapping fields sum their vectors without normalization; one opposing field halves forward speed on uniform terrain, and two cancel it for Scout Cars, Tanks, Riflemen, and meth-boosted Riflemen alike. Inward/outward movement resistance and spiral forces are not applied by this ability. Terrain and hostile-body admission remain. Magic Dao death Insight is preserved for hostile unit deaths inside the rectangle.
See Vector Field for placement, rank geometry, force, and presentation rules.
Building repair and AT gun Dao targets
Right-clicking a damaged owned completed building, Tank, Scout Car, Rocket Truck, Mortar Team, or AT Gun
with Engineers or Serfs assigns repairs at
2 HP per second per worker; multiple repairers add their rates. Healing Seals retain their
non-repairable consumable capacity, and neutral field obstacles remain outside owned-building
repair. Each resource is charged in
proportion to HP restored at 25% of the target’s original steel/oil price for a full HP bar
(SC2 reference). Because resources are integers, billing
precharges the ceiling of the cumulative repair cost and keeps fractional prepaid steel/oil
credit on the repair target. Each HP consumes original price / (4 × max HP) from that credit.
This bounds rounding to less than one resource over the target’s lifetime and remains
identical across damage cycles, replacement orders, additional repairers, and checkpoint restores. Work pauses when its next HP charge is unaffordable.
balance/economy.rs owns the server-only rate and cost divisor; the client consumes authoritative
HP/resources and adds only the right-click command affordance. The rules-owned mobile target list
is mirrored in client config and checked by faction catalog parity. Workers follow moving targets
and pause work whenever the target leaves interaction range; ordinary infantry and unlisted
vehicles remain ineligible.
AT guns may target Wind, War, and Magic Adepts and Masters (all three Adept kinds at either rank). Novices (Warrior), workers, and Kriegsia rifle infantry remain excluded. The existing 30% infantry damage multiplier on Dao Adept bodies is unchanged.
2X XP
The Shop sells a permanent utility item with glyph 2X, subtitle 2X XP, hotkey W, and cost 35 oil (no steel). After delivery it doubles all Insight gain, including combat, fractional building damage, War-versus-Tank bonuses, and Magic Vector Field death rewards. It uses one carried slot, does not stack, survives supplying-Shop destruction after delivery, and follows existing delivery, reservation, visibility, checkpoint, and rank-cap rules. Multiplication applies to new rewards before fractional carry and the existing Insight caps.
Cosmic Energy
Each player starts with zero Cosmic Energy, displayed with the ✨ sparkle icon. Every whole point of insight actually gained by an owned Cultivator also grants one Cosmic Energy. This includes hostile damage (with existing unit/building ratios and fractional carry), Throw Sword, Magic field death rewards, and insight granted by training or tournament promotion. Existing insight caps apply, so over-cap rewards and terminal Masters grant none. Spending/resetting insight on evolution does not remove Cosmic Energy. It accumulates with saturating u32 arithmetic, survives checkpoints/replays, and has no spending action or effect yet. Lab-authored initial insight does not generate income.
Breakthrough utility item
Breakthrough costs 70 oil, occupies the Shop’s E utility slot, and permanently grants its carrier and living friendly units within 3 tiles (inclusive center distance) 25% movement speed. Friendly includes allies. The carried item uses one normal slot and ordinary targeted delivery; no activation, cooldown, or expiry. Aura membership is sampled simultaneously before movement each tick. Identical auras do not stack; the multiplier combines with Haste, Charge, Master rank and other movement modifiers. Leaving range or losing the carrier removes the aura on the next movement tick. It grants no attack speed or moving attacks. Constants are owned by Rust balance; the client catalog mirrors the price and description.
Technique Library
See Technique Library specification. The Serf-built 3×3 Library matches the Pavilion: 100 steel / 25 oil, 560 build ticks, 120 HP. Charge, Shield and Throw Sword are permanent independent unlocks at 100 steel / 100 oil each and take 20 seconds. Novice/War Charge, Magic Shield and War Throw Sword are gated at both ranks. Wind Blink and Magic Vector Field need no research.
Bow Novice approved brief and complete rules: Bow Novice. Both base kinds
share the existing insight, shop inventory, tournament/training and Dao evolution rules.
Bow Novice uses the preserved Wind archer strip and disciple_arrow profile (5 damage,
5 tiles, 32 ticks, zero penetration). Sword Disciple retains its existing melee rules.