Isle-Slingers/js/physics/damage/agents.md
Relay dff5dd5b30 Clean release scrub: remove internal fleet references
Removes internal process references so the repo is presentable to an
outside audience: dropped the internal build-retrospective doc
(process log with internal terms, not useful to an outside reader),
and reworded remaining internal references in code comments and
module docs (agents.md cards, architecture.md, MODULES.md,
index.html, package.json) to generic descriptions of what changed
and when, with no behavior change -- full 47/47 suite re-run green
after the scrub, every edit verified comment/doc-only via diff.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 14:36:52 +00:00

749 B

js/physics/damage/ — agents.md

Part of the modularization pass. Module map: MODULES.md; runtime model: architecture.md.

Installs into P: damageBlock, damageEnemy.

  • Central damage accounting: material break points (with the wood/ice/stone hp ladder from constants.MATERIALS) and enemy hp floors. Score and stats counters (stats.destroyedBlocks, stats.destroyedEnemies, scorePopups) are minted here.
  • The balance spec (test/balance.test.mjs) asserts per-material break budgets and enemy kill budgets under full-power direct hits — that spec is the contract for everything that deals damage. Falling-object impact damage) routes through these two functions so it inherits the spec.
  • Consumes: MATERIALS, ENEMY_TYPES.