Curation round 16: Mom's Knife and the bone club, sin minibosses and death rewards, slots and beggars, NPC rendering and twelve bosses, alt path visuals, the Forgotten's flight and tainted HUDs, Sheol and the Cathedral to the credits, familiars and transformations
This commit is contained in:
1 parent
76c594f9a0
commit
e9de039d0f
151 files changed
+14996
-5208
No files matched your search
+2
-12
@@ -61,10 +61,8 @@ constexpr int STATIC_OBSTACLE_EXTRA = 202;
|
||||
|
||||
// The items, trinkets and player kinds the combat code reads (Lua's ids).
|
||||
constexpr int COLLECTIBLE_MOMS_HEELS = 30;
|
||||
constexpr int COLLECTIBLE_MULLIGAN = 151;
|
||||
constexpr int COLLECTIBLE_ARIES = 300;
|
||||
constexpr int NULLITEM_TOOTH_AND_NAIL = 59;
|
||||
constexpr int PLAYER_FORM_GUPPY = 0;
|
||||
constexpr int PLAYER_FORM_COUNT_NEEDED = 3;
|
||||
constexpr int BABY_CROW = 12;
|
||||
constexpr int BLUE_FLY_MAX = 30;
|
||||
@@ -193,14 +191,6 @@ constexpr KColor BLOOD_BASE_COLOR = kcolor_rgba(0.61960787f, 0.043137256f, 0.058
|
||||
constexpr ColorMod POISON_GIB_TINT = {{1, 1, 1, 1}, {0.3f, 1.6f, 0, 1}, {0, 0, 0}};
|
||||
constexpr ColorMod TOOTH_COLOR = {{0.54902f, 0.482353f, 0.482353f, 1}, {0, 0, 0, 0}, {0, 0, 0}};
|
||||
|
||||
// Sorted insertion into a hit list, as the entities keep them.
|
||||
static void hit_list_add(std::vector<uint32_t>& hitList, Entity& entity)
|
||||
{
|
||||
uint32_t index = entity.GetHitListIndex();
|
||||
auto at = std::lower_bound(hitList.begin(), hitList.end(), index);
|
||||
if (at == hitList.end() || *at != index) hitList.insert(at, index);
|
||||
}
|
||||
|
||||
// Spawns an effect with a seed drawn by the caller.
|
||||
static Entity_Effect* effect_spawn(int variant, int subType, Vector position, Vector velocity, Entity* spawner,
|
||||
uint32_t seed)
|
||||
@@ -803,7 +793,7 @@ static TearContact tear_contact_get(Entity_Tear& tear, Entity& collider, Entity*
|
||||
{
|
||||
if (!EntityList::HitListContains(tear.hitList, collider))
|
||||
{
|
||||
hit_list_add(tear.hitList, collider);
|
||||
hit_list_insert(tear.hitList, collider);
|
||||
tear_push(tear, collider, TEAR_DEFLECTOR_MASS_SCALE);
|
||||
}
|
||||
return TEAR_CONTACT_PASS;
|
||||
@@ -953,7 +943,7 @@ bool Entity_Tear::HandleCollision(Entity* collider, bool isLow)
|
||||
tearFlags[TEAR_BOUNCE] || tearFlags[TEAR_LUDOVICO] || tearFlags[TEAR_BOOGER_FLAG] ||
|
||||
tearFlags[TEAR_STICKY] || tearFlags[TEAR_SPORE_FLAG] || tearFlags[TEAR_FETUS_FLAG];
|
||||
if (EntityList::HitListContains(hitList, *collider) && isPassing) return true;
|
||||
hit_list_add(hitList, *collider);
|
||||
hit_list_insert(hitList, *collider);
|
||||
bool isSticking = tearFlags[TEAR_STICKY] || tearFlags[TEAR_BOOGER_FLAG] || tearFlags[TEAR_SPORE_FLAG];
|
||||
if (collider->IsActiveEnemy(DEAD_EXCLUDED) && isSticking)
|
||||
reconstruction_missing("Entity_Tear::HandleCollision 00673660: a sticky tear sticking to an enemy");
|
||||
|
||||
Reference in new issue
Block a user