Curation round 10: combat, pathfinding, death and game over, items and stats, room state, Continue, Lua callbacks

Seven agents took over tear and contact collision, NPC death with blood and gibs, champions, PathFinder, the Gaper's
kin, the player's death with the game over screen, item pedestals with collectible pickup, AddCollectible and
EvaluateItems, room state save and restore, GameState::read, pressure plates, fireplaces, entity lights, ambient
sounds, and one Lua callback enum with gated runners. Integration reconstructed Room::Update's loot preview and
Entity_NPC::UpdatePickupGhosts and replaced a leftover Sacred Orb stub that stopped every pedestal roll.
Under gdb: Gapers die with blood and gibs, a cleared room opens its doors, the treasure room's item is taken (banner,
costume, stats: a Magic Mushroom gives damage 3.5 -> 6.12 and a heart), death leads to the game over diary, and a saved
run is read back on the next boot with Continue offered. 3028 functions taken over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-20 09:55:14 -05:00
1 parent 48933cd312
commit d8385e6c64
64 files changed
+8665 -3059

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include "entity.h"
// The gibs a burst throws: how many and how far apart, which kinds (the config's GibFlag bits), their color, the push
// they share and the speed they fly at.
struct GibSpawn
{
ColorMod color = COLOR_DEFAULT;
Vector position{};
Vector velocity{};
Entity* spawner = nullptr;
float speed = 1;
float spread = 0;
int amount = 0;
uint32_t gibFlags = 0;
};
void gibs_spawn(const GibSpawn& gibs);
Entity* bishop_nearest_find(const Vector& position, bool isCharmed);
uint64_t tear_damage_flags_get(const TearFlags& tearFlags, Entity* source);