Curation round 11: effects, room clears, items, Continue, bombs, active items, the boss and Basement II

This commit is contained in:
shweet committed 2026-11-20 11:54:27 -05:00
1 parent d8385e6c64
commit 698eeb74e9
74 files changed
+13965 -2078

No files matched your search

+11 -10
View File
@@ -8,12 +8,21 @@
// The effect variant that spawns a boss, which counts as the boss until it does.
constexpr int EFFECT_SPAWN_PENTAGRAM = 203;
// Whether Update goes on to its shared end (the timeout, the pause position and the Lua callback) after a variant's
// frame, or returns at once as the original does when a shrinking rock particle vanishes.
enum EffectUpdateEnd
{
EFFECT_UPDATE_FINISH,
EFFECT_UPDATE_RETURN
};
// Construction and destruction (005cd9f0, 005cd960) are the defaults, the extra data shared with its other holders.
// Field accessors (00435e60, 00435eb0, 004d7770, 005784c0, 0060ce20) are the public fields.
// An effect (Lua's EntityEffect): a visual or a hazard such as creep, a poof or a light beam, with its timeout, its
// fall, the per-variant data it keeps and the extra data some variants share.
// Only the tear poofs, the blood stains, the poofs and the tiny fly are reconstructed yet: Init stops at any other
// variant.
// Init, Update and Render run the shared parts here and hand each variant to entity_effect_ambient.h (ambient and
// environment effects, creep) or entity_effect_combat.h (blood, gibs, poofs, explosions). Any other variant stops.
struct Entity_Effect : Entity
{
// The base of the extra data some variants keep (MrMeData, PickupGhostData, SpriteTrailData).
@@ -65,12 +74,4 @@ struct Entity_Effect : Entity
void update_variant178_shooter(bool isPositionOnly);
static Entity_Effect* CreateLootPreview(void* lootlist, const Vector& pos, Entity* owner, Entity_Effect* effect);
void setup_loot_preview(void* lootQueue);
private:
void poof_init();
void tiny_fly_init();
void poof_update();
void stain_update();
void tiny_fly_update();
void tiny_fly_burst();
};