Curation round 20: player update, costumes and render, Missing No., the last actives and cards, familiars, Pin, the Frail, Wormwood and the Heretic, Dross to Gehenna, effects and the devil room purchase, champion colours, the quit path, save fields, shared vector helpers

This commit is contained in:
shweet committed 2026-11-22 00:33:35 -05:00
1 parent ee863e70e6
commit 8dbeb1bc4a
168 files changed
+15682 -2399

No files matched your search

+10 -3
View File
@@ -143,6 +143,8 @@ constexpr float THROWN_DAMAGE_SCALE = 3;
constexpr float THROWN_DAMAGE_BONUS = 5;
constexpr float SLOW_ON_CONTACT = 0.5f;
constexpr float ICE_KNOCKBACK_SPEED_SQUARED = 0.001f;
constexpr float ICE_SHOVE_SPEED = 18;
constexpr int ICE_SHOVE_FRAMES = 200;
// Entity::BloodExplode and gibs_spawn: the bursts' gibs and blood drops.
constexpr int EXTRA_BLOOD_GIBS = 8;
@@ -1084,15 +1086,20 @@ static float player_contact_damage(Entity_Player& player, Entity& collider, bool
return damage;
}
// Part of 0078e1f0: the player's ways of touching, Tainted Magdalene's hug, and those not written yet: shoving an iced
// enemy, Mega Mush's stomp, Tainted Soul grabbing her body and the suplex grab.
// Part of 0078e1f0: the player's ways of touching: shoving an iced enemy, Tainted Magdalene's hug, and those not
// written yet: Mega Mush's stomp, Tainted Soul grabbing her body and the suplex grab.
static void player_contact_missing_check(Entity_Player& player, Entity& collider)
{
bool isEnemyLike = Entity::is_enemy_type(collider.type) ||
(g_game->deathmatchManager.is_active() && collider.type == ENTITY_PLAYER);
bool isShoved = isEnemyLike && collider.HasEntityFlags(FLAG_ICE_FROZEN) && !collider.HasEntityFlags(FLAG_KNOCKED_BACK) &&
vector_length_squared(player.velocity) > ICE_KNOCKBACK_SPEED_SQUARED;
if (isShoved) reconstruction_missing("Entity_Player::HandleCollision 0078e1f0: shoving an iced enemy (AddKnockback)");
if (isShoved)
{
Vector toward = vector_normalized(vector_sub(collider.pos, player.pos));
Vector push = vector_normalized(vector_add(vector_normalized(player.velocity), toward));
collider.AddKnockback(EntityRef(&player), vector_scale(push, ICE_SHOVE_SPEED), ICE_SHOVE_FRAMES, true);
}
tainted_magdalene_hug(player, collider);
if (player.temporaryEffects.HasCollectibleEffect(COLLECTIBLE_MEGA_MUSH))
reconstruction_missing("Entity_Player::HandleCollision 0078e1f0: Mega Mush's stomp");