Curation round 25 (code only): the ultra horsemen and the Beast's background, the Scourge and Polty, the player's last gaps with the frame gate removed, game core, debug and daily, local co-op and player-controlled enemies, TMTRAINER, local versus, the vanilla Lua API, the special-daily fix, shared constants folded (60 duplicates, 10 offline gaps)
This commit is contained in:
1 parent
534339a496
commit
5c89798773
280 files changed
+14904
-5309
No files matched your search
@@ -47,7 +47,6 @@ constexpr ColorMod FOOT_POOF_COLOR = {{0.62f, 0.62f, 0.62f, 0.8f}, {0, 0, 0, 0},
|
||||
constexpr float FIRE_FRICTION = 0.95f;
|
||||
constexpr int FIRE_HIT_RESET_FRAMES = 5;
|
||||
constexpr int FIRE_LIFESPAN = 300;
|
||||
constexpr int FIRE_HIT_COUNTDOWN = 30;
|
||||
constexpr float FIRE_SHRINK = 0.25f;
|
||||
constexpr float FIRE_MIN_DAMAGE_SCALE = 0.5f;
|
||||
constexpr float FIRE_ENEMY_REACH = 5;
|
||||
@@ -73,9 +72,6 @@ constexpr float FIRE_JET_PLAYER_THRESHOLD = 30;
|
||||
constexpr float DEATH_SKULL_HEIGHT = -30;
|
||||
constexpr int DEATH_SKULL_LINGER = 2;
|
||||
|
||||
// Mom's hand from Emergency Contact lands on its target for its damage.
|
||||
constexpr int MOMS_HAND_HIT_COUNTDOWN = 30;
|
||||
|
||||
// The Ultra Death scythe falls 0.7 faster each frame and goes 120 below the room.
|
||||
constexpr float SCYTHE_FALL = 0.7f;
|
||||
constexpr float SCYTHE_FALL_MARGIN = 120;
|
||||
@@ -256,7 +252,7 @@ static bool fire_hit(Entity_Effect& fire, Entity& entity, float damage, uint64_t
|
||||
if (EntityList::HitListContains(fire.hitList, entity)) return false;
|
||||
|
||||
hit_list_insert(fire.hitList, entity);
|
||||
return entity.TakeDamage(damage, damageFlags, EntityRef(&fire), FIRE_HIT_COUNTDOWN);
|
||||
return entity.TakeDamage(damage, damageFlags, EntityRef(&fire), HIT_COUNTDOWN);
|
||||
}
|
||||
|
||||
// Whether a burnable entity is one a fire may hurt now: alive, collidable, not friendly and, for an item fire, no
|
||||
@@ -647,7 +643,7 @@ static void moms_hand_update(Entity_Effect& hand)
|
||||
{
|
||||
if (hand.sprite.IsEventTriggered("Land") && hand.target && hand.target->isExists)
|
||||
{
|
||||
hand.target->TakeDamage(hand.collisionDamage, 0, EntityRef(&hand), MOMS_HAND_HIT_COUNTDOWN);
|
||||
hand.target->TakeDamage(hand.collisionDamage, 0, EntityRef(&hand), HIT_COUNTDOWN);
|
||||
effect_sound_play(SOUND_FORESTBOSS_STOMPS);
|
||||
}
|
||||
if (hand.sprite.IsFinished("JumpDown")) hand.sprite.Play("Grab");
|
||||
@@ -1082,7 +1078,7 @@ static void spear_update(Entity_Effect& spear)
|
||||
if (!isHittable || EntityList::HitListContains(spear.hitList, *entity)) continue;
|
||||
|
||||
float damage = params.tearDamage * (isGuardian ? 1 : SPEAR_DAMAGE_SCALE);
|
||||
entity->TakeDamage(damage, 0, EntityRef(&spear), FIRE_HIT_COUNTDOWN);
|
||||
entity->TakeDamage(damage, 0, EntityRef(&spear), HIT_COUNTDOWN);
|
||||
if (entity->IsBoss()) entity->AddFear(EntityRef(spear.parent.get()), SPEAR_FEAR_FRAMES, false);
|
||||
hit_list_insert(spear.hitList, *entity);
|
||||
}
|
||||
@@ -1121,7 +1117,7 @@ static void brown_cloud_sting(Entity_Effect& cloud)
|
||||
{
|
||||
if (!entity->IsVulnerableEnemy(nullptr) || cloud.IsDescendantOf(entity)) continue;
|
||||
if (EntityList::HitListContains(cloud.hitList, *entity)) continue;
|
||||
entity->TakeDamage(damage, 0, EntityRef(&cloud), FIRE_HIT_COUNTDOWN);
|
||||
entity->TakeDamage(damage, 0, EntityRef(&cloud), HIT_COUNTDOWN);
|
||||
hit_list_insert(cloud.hitList, *entity);
|
||||
}
|
||||
for (Entity* tear : entity_query_radius(cloud.pos, reach, QUERY_TEARS))
|
||||
@@ -1200,7 +1196,7 @@ static void boomerang_update(Entity_Effect& boomerang)
|
||||
if (entity->isDead || entity->entityCollisionClass == ENTCOLL_NONE) continue;
|
||||
if (EntityList::HitListContains(boomerang.hitList, *entity)) continue;
|
||||
|
||||
entity->TakeDamage(boomerang.collisionDamage, 0, EntityRef(&boomerang), FIRE_HIT_COUNTDOWN);
|
||||
entity->TakeDamage(boomerang.collisionDamage, 0, EntityRef(&boomerang), HIT_COUNTDOWN);
|
||||
entity->AddFreeze(EntityRef(&boomerang), BOOMERANG_FREEZE, false);
|
||||
entity->AddVelocity(boomerang.velocity, false);
|
||||
hit_list_insert(boomerang.hitList, *entity);
|
||||
|
||||
Reference in new issue
Block a user