Curation round 28 (code only): float pow, log and exp widened to double like the game, inlined HasTrinket preview handling, explicit RNG argument order, update_effects rebuilt in the original's order, weapon vtable slots, null-frame reads, and a parity audit finishing every boss, every enemy, the level and most rooms, grid entities and weapons; misnamed pill and null-item ids corrected (55 duplicates)

This commit is contained in:
shweet committed 2026-11-23 14:40:39 -05:00
1 parent e66baf4063
commit 719e5ef04d
157 files changed
+1399 -717

No files matched your search

+2 -1
View File
@@ -120,7 +120,8 @@ static void cod_worm_control_update(Entity_NPC& npc, bool isShielded)
}
float rate = npc.speedMultiplier / COD_WORM_CHARGE_FRAMES;
if (!isShielded) npc.v1.x = std::max(npc.v1.x - rate * COD_WORM_CHARGE_DRAIN, 0.0f);
if (!isShielded)
npc.v1.x = std::max(npc.v1.x - npc.speedMultiplier * COD_WORM_CHARGE_DRAIN / COD_WORM_CHARGE_FRAMES, 0.0f);
else if (npc.IsPlayerInRadius(npc.pos, COD_WORM_CHARGE_REACH)) npc.v1.x = std::max(npc.v1.x - rate, 0.0f);
else npc.v1.x = std::min(npc.v1.x + rate, 1.0f);
}