Curation round 27 (code only): Weapon_Bone::Fire and the fetus tear (no offline gaps left), TakeDamage's interleaved hit order, 74 SetAnimation reset flags corrected, and a parity audit of every boss, every enemy, the rest of the player and tears, effects and familiars; one normalize_angle_degrees, IsTargetInAttackRange defaults (59 duplicates)

This commit is contained in:
shweet committed 2026-11-23 12:08:14 -05:00
1 parent cc77c923e8
commit e66baf4063
215 files changed
+2046 -1093

No files matched your search

+6 -9
View File
@@ -125,8 +125,8 @@ constexpr int RAGE_LOOSE_FLASH_FRAMES = 15;
constexpr int LEAD_EVERY = 15;
constexpr uint32_t LEAD_CROWD_ODDS = 100;
// At a fifth of her health she bursts (a Fistula 40 out at 2 to 4, see below) and turns into a three-part Chub at a
// fifth of her health, her parts at her full health, in front of her.
// At a fifth of her health she bursts (a medium and two small Fistulas 40 out at 2 to 4) and turns into a three-part
// Chub at a fifth of her health, her parts at her full health, in front of her.
constexpr float DEATH_HEALTH = 0.2f;
constexpr int DEATH_BURST_FISTULAS = 3;
constexpr int CHUB_SUBTYPE = 1000;
@@ -276,7 +276,7 @@ static Vector matriarch_shot_aim(Entity_NPC& npc)
{
Entity* target = npc.GetPlayerTarget();
float distance = vector_distance(npc.pos, target->pos);
Vector aim = vector_add(target->pos, vector_scale(target->velocity, MATRIARCH_SHOT_LEAD * distance));
Vector aim = vector_add(vector_scale(vector_scale(target->velocity, MATRIARCH_SHOT_LEAD), distance), target->pos);
return g_game->room->GetClampedPositionImpl(aim, SHOT_MARGIN, SHOT_MARGIN, SHOT_MARGIN, SHOT_MARGIN);
}
@@ -409,12 +409,9 @@ static void matriarch_rage_update(Entity_NPC& npc)
static void matriarch_burst(Entity_NPC& npc)
{
npc_sound_play(SOUND_ROCKET_BLAST_DEATH, 1, 2, 1);
uint32_t burst = Random();
g_game->Spawn({.position = npc.pos, .spawner = &npc, .type = ENTITY_EFFECT, .variant = EFFECT_LARGE_BLOOD_EXPLOSION, .seed = burst});
// The original counts its Fistulas on from the burst's seed, so all but one seed in a billion throw one small Fistula.
uint32_t thrown = burst;
do matriarch_fistula_throw(npc, thrown != 0 ? ENTITY_FISTULA_SMALL : ENTITY_FISTULA_MEDIUM, random_direction());
while (++thrown < DEATH_BURST_FISTULAS);
g_game->Spawn({.position = npc.pos, .spawner = &npc, .type = ENTITY_EFFECT, .variant = EFFECT_LARGE_BLOOD_EXPLOSION, .seed = Random()});
for (int i = 0; i < DEATH_BURST_FISTULAS; i++)
matriarch_fistula_throw(npc, i != 0 ? ENTITY_FISTULA_SMALL : ENTITY_FISTULA_MEDIUM, random_direction());
if (Entity* led = npc.child.get())
{