Curation round 21: rock drops, Boss Rush and room setup, Dross, Ashpit and Gehenna enemies, Book of Virtues wisps and Dream Catcher, the last familiars and effects, player damage branches, a Corpse floor and Abyss crash fix, shared constants (186 duplicates)
This commit is contained in:
1 parent
8dbeb1bc4a
commit
6a11163842
184 files changed
+16980
-1419
No files matched your search
+20
-2
@@ -259,8 +259,8 @@ enum EffectVariant : int
|
||||
// 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.
|
||||
// Init, Update and Render run the shared parts here and hand each variant to its group's behaviour table (the ambient,
|
||||
// hazard, floor, beam, item, portal, blast, soul, Mother and shot files, and a few the player's and weapons' files
|
||||
// hold) or to entity_effect_combat.h (blood, gibs, poofs, explosions). Any other variant stops.
|
||||
// hazard, floor, beam, item, portal, blast, soul, Mother, shot, vortex, helper and Dogma files, and a few the player's
|
||||
// and weapons' files hold) or to entity_effect_combat.h (blood, gibs, poofs, explosions). Any other variant stops.
|
||||
|
||||
struct Entity_Effect : Entity
|
||||
{
|
||||
@@ -274,6 +274,8 @@ struct Entity_Effect : Entity
|
||||
std::array<uint32_t, 4> varData{};
|
||||
std::vector<uint32_t> hitList;
|
||||
Vector parentOffset{};
|
||||
float baseDamage = 0;
|
||||
float baseScale = 0;
|
||||
float fallingAcceleration = 0;
|
||||
float fallingSpeed = 0;
|
||||
float height = 0;
|
||||
@@ -325,6 +327,19 @@ struct PickupGhostData : Entity_Effect::ExtraData
|
||||
int count = 0;
|
||||
};
|
||||
|
||||
// Construction (005cd850) and destruction are the defaults.
|
||||
// What Mr. ME! is doing: its job, the cell it works on, the pickup it carries (drawn on it) with the collision it
|
||||
// took from it, its frames of work, and whether a Glitched Crown pedestal is about.
|
||||
struct MrMeData : Entity_Effect::ExtraData
|
||||
{
|
||||
ANM2 carried;
|
||||
int frames = 0;
|
||||
int gridIndex = -1;
|
||||
int job = 0;
|
||||
int savedCollisionClass = 0;
|
||||
bool isGlitchedCrown = false;
|
||||
};
|
||||
|
||||
// The groups of variants Entity_Effect hands out by table (entity_effect_<group>.cpp).
|
||||
std::span<const EffectBehaviour> ambient_effect_behaviours();
|
||||
std::span<const EffectBehaviour> hazard_effect_behaviours();
|
||||
@@ -339,6 +354,9 @@ std::span<const EffectBehaviour> blast_effect_behaviours();
|
||||
std::span<const EffectBehaviour> soul_effect_behaviours();
|
||||
std::span<const EffectBehaviour> mother_effect_behaviours();
|
||||
std::span<const EffectBehaviour> shot_effect_behaviours();
|
||||
std::span<const EffectBehaviour> vortex_effect_behaviours();
|
||||
std::span<const EffectBehaviour> helper_effect_behaviours();
|
||||
std::span<const EffectBehaviour> dogma_effect_behaviours();
|
||||
|
||||
// The frame the plain poofs share: the sprite turned by the effect's rotation (mirrored unless flipped), the effect
|
||||
// gone once its animation ends.
|
||||
|
||||
Reference in new issue
Block a user