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:
1 parent
cc77c923e8
commit
e66baf4063
215 files changed
+2046
-1093
No files matched your search
@@ -296,7 +296,7 @@ static void crackwave_rocks_throw(Entity_Effect& wave)
|
||||
}
|
||||
|
||||
// A crackwave's step: it crawls on from its last crack, gone once it leaves the room or meets a pit, a wall or a
|
||||
// solid cell, cracking and crushing where it lands.
|
||||
// solid cell, cracking where it lands. It crushes there even when a solid cell stops it.
|
||||
static void crackwave_step(Entity_Effect& wave, int frame)
|
||||
{
|
||||
bool isBeast = wave.subtype == CRACKWAVE_BEAST;
|
||||
@@ -323,8 +323,8 @@ static void crackwave_step(Entity_Effect& wave, int frame)
|
||||
}
|
||||
else
|
||||
{
|
||||
Entity* rock = floor_crack(wave.targetPosition, wave.spawnerEntity, CRACK_DAMAGE,
|
||||
wave.sprite.scale.x * CRACK_RADIUS);
|
||||
Entity* rock = g_game->Spawn(
|
||||
{.position = wave.targetPosition, .type = ENTITY_EFFECT, .variant = EFFECT_ROCK_EXPLOSION, .seed = Random()});
|
||||
rock->sprite.scale = wave.sprite.scale;
|
||||
}
|
||||
if (isBeast)
|
||||
@@ -334,6 +334,13 @@ static void crackwave_step(Entity_Effect& wave, int frame)
|
||||
.playerDamageThreshold = CRACKWAVE_BEAST_STRONG,
|
||||
.radius = CRACKWAVE_BEAST_RADIUS,
|
||||
.isHitAll = true});
|
||||
else
|
||||
explosion_damage({.position = wave.targetPosition,
|
||||
.source = wave.spawnerEntity,
|
||||
.damageFlags = DAMAGE_CRUSH,
|
||||
.damage = CRACK_DAMAGE,
|
||||
.radius = wave.sprite.scale.x * CRACK_RADIUS,
|
||||
.isLineCheck = false});
|
||||
|
||||
if (wave.HasEntityFlags(FLAG_SPAWN_STICKY_SPIDERS) && random_below(CRACKWAVE_ROCK_ODDS) == 0)
|
||||
crackwave_rocks_throw(wave);
|
||||
|
||||
Reference in new issue
Block a user