Curation round 16: Mom's Knife and the bone club, sin minibosses and death rewards, slots and beggars, NPC rendering and twelve bosses, alt path visuals, the Forgotten's flight and tainted HUDs, Sheol and the Cathedral to the credits, familiars and transformations
This commit is contained in:
1 parent
76c594f9a0
commit
e9de039d0f
151 files changed
+14996
-5208
No files matched your search
+3
-2
@@ -448,8 +448,9 @@ static void maggot_charge_try(Entity_NPC& npc, MaggotFrame& frame)
|
||||
{
|
||||
if (std::abs(delta.x) >= CHARGE_AXIS && std::abs(delta.y) >= CHARGE_AXIS) return;
|
||||
if (vector_length_squared(delta) >= CHARGE_RANGE_SQUARED && npc.type != ENTITY_LEECH) return;
|
||||
if (npc.type == ENTITY_LEECH) reconstruction_missing("Room::CheckLine 007f0df0: the leech's mode 2 line");
|
||||
if (!room_check_line(cell, spot, LINE_MODE_GROUND, 0)) return;
|
||||
bool isClear = npc.type == ENTITY_LEECH ? explosion_line_clear(cell, spot, false)
|
||||
: room_check_line(cell, spot, LINE_MODE_GROUND, 0);
|
||||
if (!isClear) return;
|
||||
}
|
||||
|
||||
if (npc.type == ENTITY_LEECH) npc.PlaySound(SOUND_LEECH, 1, MAGGOT_CHARGE_SOUND_DELAY, false, 1);
|
||||
|
||||
Reference in new issue
Block a user