blanchon commited on
Commit
9d3dfa1
·
1 Parent(s): 1632a07

Player grid: gate skull on availability, not on round-final survival

Browse files

The skull icon was shown whenever the POV's chunks-preview row had
survived_chunk=false — i.e. for any player who died at any point in the
round. But that summary doesn't move with playback time, so at the start
of a round non-survivors got a skull while still being alive on video
and with their button still enabled. Now the skull only fires once the
player has actually died by the current virtualTime (mirroring grid-tile
which already did this). Survivors still get the shield.

src/lib/components/player-grid.svelte CHANGED
@@ -102,7 +102,7 @@
102
  </div>
103
  {#if p.survived}
104
  <ShieldIcon size={14} weight="duotone" class="text-emerald-500" />
105
- {:else}
106
  <SkullIcon size={14} weight="duotone" class="text-rose-500" />
107
  {/if}
108
  </ToggleGroup.Item>
 
102
  </div>
103
  {#if p.survived}
104
  <ShieldIcon size={14} weight="duotone" class="text-emerald-500" />
105
+ {:else if !available}
106
  <SkullIcon size={14} weight="duotone" class="text-rose-500" />
107
  {/if}
108
  </ToggleGroup.Item>