Curation round 19: EvaluateItems and charged shots, actives split into Rebirth and Repentance dispatches, cards and runes, champions and death effects, War, Death, Uriel and the boss sweep, Delirium, T. Lilith's Gello and familiars, effects, price sprites and the devil room
This commit is contained in:
1 parent
9dfc09518c
commit
ee863e70e6
105 files changed
+14201
-2331
No files matched your search
@@ -100,30 +100,6 @@ static void crack_update(Entity_Effect& crack)
|
||||
if (crack.sprite.IsFinished()) crack.Remove();
|
||||
}
|
||||
|
||||
// The ghostly flame the Lamb's body burns with. Fires the players set (and their familiars') are not reconstructed.
|
||||
constexpr float FLAME_FRICTION = 0.95f;
|
||||
constexpr int FLAME_HIT_RESET_FRAMES = 5;
|
||||
|
||||
// Part of 005cdb20 (Init's fire case) A flame keeps off pits, owned by whoever fired the tear or bomb that set it.
|
||||
static void flame_init(Entity_Effect& flame)
|
||||
{
|
||||
flame.entityGridCollisionClass = GRIDCOLL_NOPITS;
|
||||
Entity* spawner = flame.spawnerEntity.get();
|
||||
bool isShot = spawner && (spawner->type == ENTITY_TEAR || spawner->type == ENTITY_BOMB);
|
||||
if (isShot && spawner->spawnerEntity) flame.spawnerEntity = spawner->spawnerEntity.get();
|
||||
}
|
||||
|
||||
// 005f021a (Update's fire case) A flame slows, forgets what it burned every 5 frames, and goes once dead.
|
||||
static void flame_update(Entity_Effect& flame)
|
||||
{
|
||||
flame.friction *= FLAME_FRICTION;
|
||||
if (flame.IsFrame(FLAME_HIT_RESET_FRAMES, (int)flame.index)) flame.hitList.clear();
|
||||
if (flame.spawnerType == ENTITY_PLAYER || flame.spawnerType == ENTITY_FAMILIAR)
|
||||
reconstruction_missing("Entity_Effect::Update 005d4380: a player's fire burning what it touches");
|
||||
flame.state++;
|
||||
if (flame.isDead) flame.Remove();
|
||||
}
|
||||
|
||||
// Hush's lasers: the one hunting his target (96) every 10 frames aims 40 to one side of where its target will be in 5,
|
||||
// pushing on at the room's speed (plus 1.1 of a player target's speed) under friction 0.8. Every 2 frames it hurts
|
||||
// players (or, fired by a charmed or friendly Hush, enemies) for 2, and every 5 it leaves blue creep.
|
||||
@@ -238,7 +214,6 @@ static void hush_beam_update(Entity_Effect& beam)
|
||||
|
||||
// Hush's lasers and the poof of his shots have no Init case of their own.
|
||||
constexpr auto BOSS_EFFECT_BEHAVIOURS = std::to_array<EffectBehaviour>({
|
||||
{EFFECT_BLUE_FLAME, flame_init, effect_finishing<flame_update>, nullptr},
|
||||
{EFFECT_CRACK_THE_SKY, crack_init, effect_finishing<crack_update>, nullptr},
|
||||
{EFFECT_HUSH_LASER, nullptr, effect_finishing<hush_laser_update>, nullptr},
|
||||
{EFFECT_HUSH_LASER_UP, nullptr, effect_finishing<hush_beam_update>, nullptr},
|
||||
|
||||
Reference in new issue
Block a user