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:
1 parent
e66baf4063
commit
719e5ef04d
157 files changed
+1399
-717
No files matched your search
+4
-2
@@ -99,7 +99,9 @@ static void clog_spit(Entity_NPC& npc)
|
||||
uint32_t seed = Random();
|
||||
auto* drip = static_cast<Entity_NPC*>(g_game->Spawn(
|
||||
{.position = vector_add(npc.pos, vector_scale(heading, CLOG_SPIT_REACH)), .spawner = &npc, .type = ENTITY_DRIP, .seed = seed}));
|
||||
npc_push(*drip, vector_scale(heading, random_unit() * CLOG_SPIT_SPEED_RANGE + CLOG_SPIT_SPEED));
|
||||
float speed = random_unit() * CLOG_SPIT_SPEED_RANGE + CLOG_SPIT_SPEED;
|
||||
if (drip->friction != 0)
|
||||
drip->velocity = vector_add(vector_div(vector_scale(heading, drip->speedMultiplier * speed), vector_make(drip->friction, drip->friction)), drip->velocity);
|
||||
drip->ClearEntityFlags(FLAG_APPEAR);
|
||||
drip->state = DRIP_FLUNG;
|
||||
drip->Update();
|
||||
@@ -153,7 +155,7 @@ static void clog_spin_update(Entity_NPC& npc)
|
||||
npc.sprite.Play(npc.i1 == 0 ? "SpinLoop" : "SpinLoop2");
|
||||
npc.stateFrame++;
|
||||
if (npc.stateFrame == SPIN_WATER_SOUND_FRAME)
|
||||
g_manager->sfxManager.Play(SOUND_BOSS2_WATERTHRASHING, {.frameDelay = SPIN_WATER_DELAY});
|
||||
npc_sound_play(SOUND_BOSS2_WATERTHRASHING, 1, SPIN_WATER_DELAY, 1);
|
||||
|
||||
Vector fromCenter = vector_sub(npc.pos, Room::GetCenterPos());
|
||||
if (vector_length(fromCenter) > SPIN_CENTER_SLACK)
|
||||
|
||||
Reference in new issue
Block a user