Add spells, weapon abilities, and durable corpse resurrection

This commit is contained in:
dingo
2026-09-09 18:15:23 -04:00
parent b3c5482558
commit 897c5745bc
49 changed files with 2277 additions and 137 deletions
+18 -3
View File
@@ -35,9 +35,9 @@ The highest-risk requirements are:
Planning update: the vision now includes corpse-based item/spell resurrection,
key-owned hub housing, crafting rolls/provenance, and portal dungeon instances.
These are design requirements, not implemented behavior. This document's terminal
death and current-world boundaries describe the running implementation; see
`planning/SYSTEMS-ROADMAP.md` for the future lifecycle rules and unresolved details.
Milestone 7 now implements corpse resurrection for new deaths. Key-owned housing
and portal dungeon instances remain design requirements. See
`planning/SYSTEMS-ROADMAP.md` for future lifecycle rules and unresolved details.
The milestone 1 [lifecycle and ownership contract](LIFECYCLE-OWNERSHIP.md) maps the
current code to proposed states, transaction boundaries, and migration steps.
Its later lifecycle systems remain specifications. [Milestone 5](MILESTONE-5.md)
@@ -89,6 +89,21 @@ versioned title/equipment/stat catalog that world owners apply and checkpoint.
## Durability and ownership
Milestone 7 adds copied character-owned spells/ranks/cooldowns and weapon XP,
preserved by travel and revival and absent from replacement characters. Go owns
learning, unlocks, cast release, useful-hit XP, and moving aura effects. Pending
casts cancel across restart/travel. See [milestone 7](MILESTONE-7.md) for scope.
Resurrection stages consent-checked corpse revival and resource costs before an
owner/revision-fenced transaction. `account_lives` records the latest character
ever created, including after death; replacement permanently invalidates older
revival eligibility. `character_deaths` archives distinct death occurrences and
atomically claims revival once. A new-life insert trigger maintains the pointer
for older writers during deployment. Corpse loot, restored character, costs, and
death claim commit together. Old deaths without a revival identity remain final;
world destruction still prevents revival. Daily limits and transfer ownership
continue to apply.
Development uses SQLite WAL. Production requires PostgreSQL with TLS certificate
verification. Both use the same storage tests and transaction behavior.