FireControl publishes every landed impact on the receiver's Capabilities; Feedback.Cue and DrawAhead.Carried

AbsorbEvent gains AbsorbLayer. Entity.Capabilities, four publish sites in ApplyDirectHit and Detonate (each before the damage it reports), Feedback.Cue, DrawAhead.Carried (Impact delegates), PlayerGraphicsSettings.ScreenShake. Not yet built or tested; tests follow in the next commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-12 03:58:34 +02:00
commit 8adda0b3de
10 changed files with 116 additions and 22 deletions

View file

@ -173,6 +173,8 @@ public abstract class Entity
VisibilitySources.Values.Where(s => s.Channel == channel).Sum(s => s.Strength);
public Subject<Entity> IncomingHit = new Subject<Entity>();
// One per entity, created with it, never replaced: FireControl publishes each landed impact on it (Absorb).
public readonly CapabilityEvents Capabilities = new CapabilityEvents();
public Subject<(int2 pos, float damage)> ArmorDamage = new Subject<(int2, float)>();
public Subject<(EquippedItem item, float damage)> ItemDamage = new Subject<(EquippedItem, float)>();
// public Subject<EquippedItem> ItemOffline = new Subject<EquippedItem>();