Clarify last-key house deletion and pre-death key destruction

This commit is contained in:
dingo
2026-09-08 08:59:01 -04:00
parent 8c9f17485c
commit 1ab11b64c6
2 changed files with 19 additions and 6 deletions
+15 -4
View File
@@ -329,8 +329,12 @@ and exit must not allow the character to exist in two places simultaneously.
- Additional keys can be created to share ownership. An owner cannot strip the
rights of another owner who holds a valid key. Creating a replacement key must
not silently rekey the house or invalidate another holder's key.
- Destroying a key marks the house and all its contents for deletion. With multiple
valid keys, whether this means any key or the last valid key is unresolved.
- Destroying the **last valid key** marks the house and all its contents for
deletion. Destroying one key while others exist does not mark the house for
deletion or remove the remaining key holders' owner rights.
- Players can destroy a carried key before death to deny a potential corpse looter
that key and its house ownership. This must be usable while in danger; the action
does not destroy keys held by other players or retroactively reclaim a looted key.
- After death, the original creator can create a new key linked to their created
house until the world they were in when they died is destroyed. This deadline
refers to the death world, not the permanent hub or the original construction
@@ -355,6 +359,10 @@ identified key items referencing that house, invitation/role records, death-worl
recovery eligibility, and explicit deletion state. Key creation, transfer, recovery,
and destruction need durable transactions shared with inventory and house access.
Recovery reconnects to one existing house; it must never clone its stored items.
The last-key check counts all valid keys for the house, regardless of holder or
location, rather than only keys in the acting player's inventory. Resolve key
destruction against death/looting and concurrent key creation atomically so a
destroyed key cannot also be looted or a newly issued key overlooked.
### Dungeons and later social systems
@@ -438,8 +446,8 @@ revival. Housing also needs key-deletion/recovery semantics agreed before coding
First discussion, because these affect the architecture:
1. Housing: any-key versus last-key destruction, deletion grace/cancellation,
original-creator recovery identity, eligibility, and the permission matrix?
1. Housing: deletion grace/cancellation, original-creator recovery identity,
eligibility, and the permission matrix? Last-valid-key destruction is settled.
2. Resurrection: item activation, consent, costs/pools, any extra limits, and
corpse handling during dungeon closure/reset? Corpse/world conditions are settled.
3. Combat: action aiming model, controller targeting, friendly fire, ranged projectiles?
@@ -471,6 +479,9 @@ New design examples to turn into acceptance tests when implemented:
with none. A destroyed world or replacement character makes revival ineligible.
- Looting a house key grants ownership; reviving its previous holder does not take
the key back. Additional owners cannot revoke each other's valid keys.
- Destroying one of multiple keys leaves the house active and other keys valid;
destroying the last key marks the house and contents for deletion. A key
destroyed before death does not appear on the corpse or grant a looter access.
- Creator recovery targets the same house and respects the recorded death world's
destruction deadline. Recovery versus key destruction/deletion cannot clone data.
- Correct recipes can fail with valid-recipe feedback; under-level attempts remain
+4 -2
View File
@@ -120,8 +120,10 @@ Tracked across:
- A house belongs to its key(s). Taking a key from a corpse grants owner rights;
additional keys share ownership. Owners cannot strip other valid key holders.
- Entry requires a key or invitation. Guest/co-owner permissions remain to be scoped.
- Key destruction marks the house and all contents for deletion. Whether any key
or only the last valid key triggers this, and deletion timing, remain open.
- Destroying only the last valid house key marks the house and all contents for
deletion. Destroying one of several keys preserves the other holders' ownership.
Players can destroy a carried key before death to prevent a looter taking it
and gaining house ownership. Deletion timing remains open.
- After death, the original creator may make a new key connected to their created
house until the world they were in at death is destroyed. Recovery identity and
interaction with pending deletion remain open; recovery does not revoke other keys.