Restore daemon armor cell damage
This commit is contained in:
parent
b6822f8094
commit
861b82f2ff
8 changed files with 471 additions and 29 deletions
|
|
@ -725,6 +725,31 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted.
|
|||
|
||||
## Current Authority Map
|
||||
|
||||
### Daemon Damage Transaction
|
||||
|
||||
- Owner: the daemon's canonical damage transaction owns damage-layer ordering
|
||||
and mutation for direct weapons and deployables.
|
||||
- Inputs: hull and hardpoint catalog topology; initialized armor and
|
||||
maximum-armor grids; shield, equipment, and scalar hull state; deterministic
|
||||
impact position/direction; damage amount, orthogonal spread, 0.5-cell
|
||||
penetration, and typed damage type.
|
||||
- Outputs: one atomic `shield -> armor cell -> equipment -> scalar hull`
|
||||
result, mutated canonical grids/equipment/hull state, and receipts recording
|
||||
which layers were reached and how much each layer absorbed or received.
|
||||
- Derived state: aggregate armor and exact schematic armor/maximum-armor facts
|
||||
are Eve projections of canonical cell state. Scalar hull is the terminal
|
||||
remainder, not an armor surrogate. Damage type is typed/pass-through; no
|
||||
resistance authority exists because the fossil did not apply resistances.
|
||||
- Forbidden writers: direct-fire code, deployable handlers, Ymir contacts,
|
||||
Unity components, Eve lowerers, scalar-health helpers, and reconciliation
|
||||
loops cannot independently apply or repair armor, equipment, or hull damage.
|
||||
- Shared paths: direct and deployable impacts enter the same transaction after
|
||||
their respective authoritative impact facts are resolved.
|
||||
- Cut line: scalar-hull-only and caller-specific damage paths are no longer
|
||||
owners. Hull/hardpoint topology initializes armor grids; only the daemon
|
||||
transaction mutates them thereafter. Penetration always advances by a
|
||||
half-cell step, eliminating the fossil's non-advancing infinite loop.
|
||||
|
||||
- Owner: `Aetheria.State` owns the new typed state spine for durable state.
|
||||
The embedded `GameCult.Aetheria.State.Unity` package owns Unity's runtime
|
||||
typed state file path plus the boot-time state-file probe, and is the landing
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Deterministic Combat Resolution
|
||||
|
||||
Status: target authority map
|
||||
Status: daemon armor-cell damage ownership implemented; broader combat parity remains
|
||||
|
||||
## Objective
|
||||
|
||||
|
|
@ -20,6 +20,11 @@ execution path because it is human-controlled.
|
|||
The daemon combat resolver owns shot identity, solution quality, seeded outcome,
|
||||
impact distribution, damage transaction, and combat receipts.
|
||||
|
||||
For committed direct and deployable hits, the daemon damage transaction is the
|
||||
single owner of layer ordering and mutation. It applies one shared
|
||||
`shield -> armor cell -> equipment -> scalar hull` transaction; neither the
|
||||
weapon path nor the deployable path owns a second damage model.
|
||||
|
||||
### Inputs
|
||||
|
||||
The resolver may read:
|
||||
|
|
@ -35,6 +40,10 @@ The resolver may read:
|
|||
countermeasures, and only those defenses exposed by gathered information;
|
||||
- doctrine constraints and accepted semantic action parameters;
|
||||
- a deterministic entropy key derived from run seed and stable shot identity.
|
||||
- the target hull shape and hardpoint catalog topology used to initialize its
|
||||
armor and maximum-armor grids;
|
||||
- the resolved impact position and direction supplied by the direct-shot or
|
||||
deployable detonation path.
|
||||
|
||||
Missing knowledge remains uncertainty. The resolver must not replace an
|
||||
observer's weak contact with canonical target internals when constructing its
|
||||
|
|
@ -60,6 +69,11 @@ One committed shot produces an immutable receipt containing:
|
|||
Receipts are CultCache/CultMesh state. Eve projects them without becoming a
|
||||
second combat model.
|
||||
|
||||
The daemon also publishes the mutated armor and maximum-armor grids. Aggregate
|
||||
armor is derived from those cells for compact Eve status; exact cell values are
|
||||
available for the schematic. Scalar hull health is the terminal remainder of
|
||||
the transaction, not a substitute armor owner.
|
||||
|
||||
## Pipeline
|
||||
|
||||
```text
|
||||
|
|
@ -126,6 +140,43 @@ does not secretly reveal the canonical component location. The sampled impact
|
|||
then enters the target's shield, armor, hull-cell, equipment, thermal, and crew
|
||||
damage pipeline.
|
||||
|
||||
The implemented damage transaction maps the deterministic impact onto the
|
||||
target schematic. Damage spread expands through orthogonally adjacent cells.
|
||||
Penetration advances through the schematic in 0.5-cell increments, including
|
||||
the fix for the fossil path that could fail to advance and loop forever. Damage
|
||||
type remains typed and is passed through state and receipts, but does not apply
|
||||
resistance modifiers: the fossil carried damage types but never used them for
|
||||
resistance.
|
||||
|
||||
Direct hits begin at the deterministic impact cell; a hit on a hardpoint begins
|
||||
with that hardpoint's complete footprint before spread and penetration expand
|
||||
the shape. Splash payloads such as mines preserve the fossil's distinct rule:
|
||||
they select the source-facing half of the hull schematic, then enter the same
|
||||
layer transaction.
|
||||
|
||||
## Armor-Cell Authority Map
|
||||
|
||||
- Owner: the daemon's canonical damage transaction owns shield interception,
|
||||
schematic impact mapping, armor-cell mutation, equipment damage, and scalar
|
||||
hull remainder for both direct and deployable damage.
|
||||
- Inputs: hull and hardpoint catalog topology, initialized armor and
|
||||
maximum-armor grids, authoritative target state, deterministic impact and
|
||||
direction, damage amount, spread, penetration, and typed damage type.
|
||||
- Outputs: atomically mutated shield resources, armor cells, equipment state,
|
||||
scalar hull, aggregate/exact Eve armor facts, and shot/damage receipts with
|
||||
the layers reached and damage applied at each layer.
|
||||
- Derived state: aggregate armor, schematic presentation, impact effects,
|
||||
meters, and scalar summaries are views of the canonical transaction. Damage
|
||||
type is currently pass-through evidence, not a resistance table.
|
||||
- Forbidden writers: direct-weapon handlers, deployable detonation handlers,
|
||||
Ymir contacts, Unity/Eve presentation, scalar-hull helpers, and repair loops
|
||||
may not independently order layers or mutate armor/equipment/hull.
|
||||
- Shared paths: direct shots and deployable detonations submit the same damage
|
||||
transaction after producing their authoritative impact facts.
|
||||
- Cut line: the old scalar-hull-only and per-caller damage paths no longer own
|
||||
damage. Catalog topology initializes the grids once; after initialization,
|
||||
only the daemon damage transaction mutates them.
|
||||
|
||||
## Charged Weapons
|
||||
|
||||
A charged fire request commits time before it commits a shot:
|
||||
|
|
@ -182,6 +233,7 @@ Eve receives:
|
|||
|
||||
- persistent firing-solution and weapon state;
|
||||
- immutable shot and damage receipts;
|
||||
- aggregate armor status and the exact armor/maximum-armor schematic grid;
|
||||
- hit/miss, impact, malfunction, refusal, and destruction chronology;
|
||||
- derived trajectory hints such as origin, impact/miss endpoint, launch time,
|
||||
impact time, effect identity, and view channels.
|
||||
|
|
@ -199,6 +251,8 @@ drop or simplify an effect. It may not promote a visual collision into damage.
|
|||
- cognition and agents may propose shots but may not sample or apply outcomes.
|
||||
- Eve lowerers may not reconstruct hit probability from presentation props.
|
||||
- a repair loop may not reconcile client-observed impacts into daemon health.
|
||||
- direct and deployable callers may not bypass the shared layer transaction
|
||||
with scalar hull damage.
|
||||
|
||||
## Cut Line
|
||||
|
||||
|
|
@ -223,7 +277,8 @@ Required proofs:
|
|||
4. Cognition quality, range, aspect, and target motion contribute independently
|
||||
and are visible in the receipt.
|
||||
5. Hit and miss both consume the committed weapon resources.
|
||||
6. Impact distribution reaches shield, armor, hull-cell, and equipment damage.
|
||||
6. Direct and deployable impacts share the shield, armor-cell, equipment, and
|
||||
scalar-hull transaction, with layer facts preserved in receipts.
|
||||
7. Removing all projectile presentation still produces the same damage receipt.
|
||||
8. Injecting a fake visual collision cannot produce damage.
|
||||
9. Charged hold risk replays exactly and commits immediately when a valid
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ validation proves contract shape, not wiring, exclusivity, lowering, or parity.
|
|||
| Collision | Unity physics and entity handlers | Ymir | collision/result facts | visual interpolation only | Ymir.Core world stepping wired for entity bodies, radial fields and contacts; missing-owner negative proof passes | publish authoritative collision events and prove Unity cannot write transforms back |
|
||||
| Targeting/contacts | sensors + `ActionGameManager` | daemon | contact/target semantics | target HUD and indicators | simplified owner wired/projected; daemon weapon lock now acquires and decays from facing, elapsed time, and observer-local contact confidence instead of granting an immediate perfect lock | target-switch reset, angular decay, visibility/nearest/explicit cases, and runtime lock feedback |
|
||||
| Projectile flight | weapon/projectile classes | Eve presentation for ordinary tracers; Ymir for persistent physical payloads | receipt trajectory/effect facts or persistent payload state | native projectile visual | ordinary instant, charged, and constant execution creates no projectile body; each weapon state owns a stable shot sequence and receipts carry origin, endpoint, nominal duration, and effect identity for Eve presentation; `SpawnProjectile` and its alternate writer are deleted; Ymir projectile contacts are feedback-only for explicitly persisted payload rows and cannot write damage; Ymir.Core remains embedded for world integration, radial fields, circle contacts, pickups, and genuinely persistent/interceptable payloads | split/rename the remaining physical-payload interface and remove ordinary projectile terminology from runtime contracts |
|
||||
| Shield/hull damage | energy-funded shield, armor cells, equipment and hull | daemon | entity status + damage events | meters, impacts, damage VFX | equipped Shield behavior now owns the fossil all-or-nothing energy gate: funded hits consume `damage * EnergyUsage`, add `damage / Efficiency` heat, and publish shield absorption without hull loss; unfunded hits bypass the shield; shot receipts expose exact shield/hull/energy/heat quantities and `effect.impact.shield` resolves through the provider asset manifest; fake or later Ymir contacts cannot decide damage | typed armor/hull/equipment grids, penetration, spread, damage types, and generic shield-effect lifecycle parity |
|
||||
| Shield/armor/equipment/hull damage | energy-funded shield, schematic armor cells, equipment and scalar hull | daemon canonical damage transaction | aggregate/exact armor grid, entity status, and layer-aware shot/damage receipts | schematic, meters, impacts, damage VFX | owner-exists; wired; exclusive; projected: daemon initializes armor/maximum-armor grids from hull plus hardpoint catalog topology; direct and deployable damage share one `shield -> armor cell -> equipment -> scalar hull` transaction; direct impacts select a cell or complete hardpoint footprint before orthogonal spread and 0.5-cell penetration, while splash payloads select the source-facing hull half; the fossil penetration infinite-loop defect is fixed; damage type is typed/pass-through without resistances because the fossil never applied them; Eve exposes aggregate and exact armor state and receipts identify reached/applied layers; fake Ymir contacts and presentation cannot decide damage | fossil parity fixtures for topology, edge impacts, orthogonal spread, multi-cell penetration, equipment interception, and generic shield/equipment effect lifecycle |
|
||||
| Thermal/energy | cell conduction and capacitor/reactor/radiator network | daemon | ship/equipment status and warnings | schematic/post effects | cell conduction/radiation wired; energy network and medical thresholds remain reference | capacitor/reactor/radiator ordering, shared energy and medical timelines |
|
||||
| Weapons | ServerShared behaviors + Unity effects | daemon plus Ymir geometry/kinematics | action capability, weapon state, shot/damage receipts | effects/audio/HUD | instant and constant resource/timing lifecycles are daemon-owned; charged weapons accept one semantic request, spool without requiring a solution, hold at full charge, commit automatically when a solution appears, and perform deterministic once-per-second malfunction hazard checks after the authored safe hold interval with increasing persisted risk; generic Eve `weapon.state` exposes charge hold/risk and feedback exposes readiness, commit, refusal, and malfunction chronology | replace projectile-contact damage with `deterministic-combat-resolution.md`, then guided persistent payloads, visibility/wear, penetration, impact distribution, and Unity effect reconciliation |
|
||||
| Weapons | ServerShared behaviors + Unity effects | daemon plus Ymir geometry/kinematics | action capability, weapon state, shot/damage receipts | effects/audio/HUD | instant and constant resource/timing lifecycles are daemon-owned; charged weapons accept one semantic request, spool without requiring a solution, hold at full charge, commit automatically when a solution appears, and perform deterministic once-per-second malfunction hazard checks after the authored safe hold interval with increasing persisted risk; generic Eve `weapon.state` exposes charge hold/risk and feedback exposes readiness, commit, refusal, and malfunction chronology; committed direct damage now enters the shared daemon armor-cell transaction | guided persistent payloads, visibility/wear, remaining impact-distribution parity, and Unity effect reconciliation |
|
||||
| Destruction/drops | entity death and pickup paths | daemon | death/drop events and world entities | effects and pickups | fragments wired; chronology and original drop transaction absent | exactly-once drops and cleanup |
|
||||
| Tractor/scoop | analog tractor and physical timed pickups | daemon + Ymir | tractor power, pickup body and receipt | beam/interaction feedback | fossil 2/s power ramp and authored forward radius/traction/distance feed pickup bodies into the shared Ymir world; shield contact collects exactly once when capacity permits or applies the fossil 25-unit rejection kick; 30s daemon lifetime; instant cargo teleport deleted | prove generic runtime beam, contact, success and rejection feedback |
|
||||
| Dock/undock | wormhole-first interact; first eligible bay; component prerequisites | daemon + Ymir placement | dock commands/context | camera/UI transition | daemon path wired/projected; Ymir placement and parity unproven | priority, eligibility, placement and reconnect |
|
||||
|
|
|
|||
Loading…
Reference in a new issue