Curation round 18: tears and four weapons, passive item and trinket sweeps, pills and most cards, alt path and main path enemies, Hush and the Blue Womb, Mega Satan, the Void, Tainted ???, Forgotten, Lilith and Eden, wisps
This commit is contained in:
1 parent
024cb12016
commit
9dfc09518c
157 files changed
+24212
-6106
No files matched your search
+28
-17
@@ -29,8 +29,6 @@ constexpr float HALF_F = 0.5f;
|
||||
// The entities the combat code tells apart (Lua's EntityType).
|
||||
constexpr int ENTITY_SINS_FIRST = 46;
|
||||
constexpr int ENTITY_SINS_LAST = 52;
|
||||
constexpr int ENTITY_SELFLESS_KNIGHT = 254;
|
||||
constexpr int ENTITY_FLOATING_KNIGHT = 283;
|
||||
constexpr int ENTITY_IGNORED_BY_TEARS = 291;
|
||||
constexpr int ENTITY_REFLECTING_ENEMY = 822;
|
||||
constexpr int ENTITY_SHIELDED_SPAWN = 832;
|
||||
@@ -85,7 +83,6 @@ constexpr float FROZEN_SHARD_SPEED = 5;
|
||||
|
||||
// The sounds the combat code plays (Lua's SoundEffect).
|
||||
constexpr int SOUND_DEATH_BURST_BONE = 27;
|
||||
constexpr int SOUND_ROCKET_BLAST_DEATH = 141;
|
||||
constexpr int SOUND_GOODEATH = 207;
|
||||
constexpr int SOUND_BONE_BREAK = 500;
|
||||
constexpr int SOUND_BISHOP_HIT = 501;
|
||||
@@ -130,6 +127,12 @@ constexpr float VIRUS_DAMAGE = 12;
|
||||
constexpr float VIRUS_DAMAGE_VERSUS = 1;
|
||||
constexpr float BABY_CONTACT_DAMAGE = 10;
|
||||
constexpr float HORN_DAMAGE = 3.5f;
|
||||
constexpr float RAM_DAMAGE = 20;
|
||||
constexpr float RAM_FINISH_HEALTH = 40;
|
||||
constexpr int MIDAS_CONTACT_FREEZE = 90;
|
||||
constexpr int MIDAS_CONTACT_FREEZE_VERSUS = 45;
|
||||
constexpr float MIDAS_CONTACT_DAMAGE = 3.5f;
|
||||
constexpr float MIDAS_COIN_DAMAGE = 0.2f;
|
||||
constexpr float ARIES_DAMAGE = 25;
|
||||
constexpr float ARIES_DAMAGE_VERSUS = 10;
|
||||
constexpr float ARIES_SPEED = 4;
|
||||
@@ -836,8 +839,7 @@ static bool tear_damage_deal(Entity_Tear& tear, Entity& collider, bool& isHit)
|
||||
|
||||
isHit = true;
|
||||
collider.TakeDamage(damage, damageFlags, EntityRef(&tear), TEAR_HIT_COUNTDOWN);
|
||||
if (tear.tearFlags[TEAR_FETUS_FLAG] && !isObstacle)
|
||||
reconstruction_missing("Entity_Tear::HandleCollision 00673660: a fetus tear's bounce and bomber");
|
||||
if (tear.tearFlags[TEAR_FETUS_FLAG] && !isObstacle) tear.fetus_hit(collider);
|
||||
if (collider.IsEnemy()) tear.isCanTriggerStreakEnd = false;
|
||||
return collider.IsEnemy() && (tear.tearFlags[TEAR_BOOGER_FLAG] || tear.tearFlags[TEAR_STICKY] || tear.tearFlags[TEAR_SPORE_FLAG]);
|
||||
}
|
||||
@@ -943,8 +945,7 @@ bool Entity_Tear::HandleCollision(Entity* collider, bool isLow)
|
||||
if (EntityList::HitListContains(hitList, *collider) && isPassing) return true;
|
||||
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");
|
||||
if (collider->IsActiveEnemy(DEAD_EXCLUDED) && isSticking && stick(*collider)) return true;
|
||||
|
||||
if (!isExplosive)
|
||||
{
|
||||
@@ -969,7 +970,7 @@ bool Entity_Tear::HandleCollision(Entity* collider, bool isLow)
|
||||
else
|
||||
{
|
||||
apply_death_flag_effects(collider);
|
||||
if (tearFlags[TEAR_BELIAL_FLAG]) reconstruction_missing("Entity_Tear::HandleCollision 00673660: Belial's homing");
|
||||
if (tearFlags[TEAR_BELIAL_FLAG]) belial_turn();
|
||||
if (g_game->deathmatchManager.is_active() && collider->type == ENTITY_FAMILIAR)
|
||||
reconstruction_missing("Entity_Tear::HandleCollision 00673660: a versus familiar's block");
|
||||
if (tear_flies_on(*this, *collider)) return true;
|
||||
@@ -1002,7 +1003,7 @@ static bool is_charger_hit_from_behind(Entity_NPC& npc, Vector hitVelocity)
|
||||
bool Entity_NPC::CanBeDamagedFromVelocity(Vector hitVelocity)
|
||||
{
|
||||
int facing = DIRECTION_DOWN;
|
||||
if (type == ENTITY_KNIGHT || type == ENTITY_SELFLESS_KNIGHT || type == ENTITY_FLOATING_KNIGHT)
|
||||
if (type == ENTITY_KNIGHT || type == ENTITY_FLOATING_KNIGHT || type == ENTITY_BONE_KNIGHT)
|
||||
{
|
||||
const std::string& animation = sprite.animState.GetAnimation();
|
||||
if (animation == "Up") facing = DIRECTION_UP;
|
||||
@@ -1037,8 +1038,8 @@ void Entity_NPC::on_player_damaged()
|
||||
}
|
||||
}
|
||||
|
||||
// Part of 0078e1f0: the damage a player's touch deals: Mom's Heels, The Virus and Serpent's Kiss, Isaac's Heart's
|
||||
// melee, the crow baby, Little Horn, Breath of Life, Aries at speed (which makes the player heavy and briefly unhurt),
|
||||
// Part of 0078e1f0: the damage a player's touch deals: the ramming items (more against the weak), Mom's Heels, The
|
||||
// Virus and Serpent's Kiss, Isaac's Heart's melee, Midas' Touch's gold freeze, the crow baby, Little Horn, Breath of Life, Aries at speed (which makes the player heavy and briefly unhurt),
|
||||
// Tooth and Nail, all tripled when thrown. Whether Breath of Life adds to it goes back through isBreath.
|
||||
static float player_contact_damage(Entity_Player& player, Entity& collider, bool& isBreath)
|
||||
{
|
||||
@@ -1052,7 +1053,8 @@ static float player_contact_damage(Entity_Player& player, Entity& collider, bool
|
||||
bool isRamming = effects.HasCollectibleEffect(COLLECTIBLE_MY_LITTLE_UNICORN) ||
|
||||
effects.HasCollectibleEffect(COLLECTIBLE_GAMEKID) || effects.HasCollectibleEffect(COLLECTIBLE_THE_NAIL) ||
|
||||
(taurus && taurus->cooldown != 0);
|
||||
if (isRamming) reconstruction_missing("Entity_Player::HandleCollision 0078e1f0: the ramming items' contact damage");
|
||||
if (isRamming && isVersus) reconstruction_missing("Entity_Player::HandleCollision 0078e1f0: the versus ramming cooldown");
|
||||
if (isRamming) damage += collider.health <= RAM_FINISH_HEALTH ? RAM_DAMAGE + RAM_DAMAGE : RAM_DAMAGE;
|
||||
if (player.HasCollectible(COLLECTIBLE_MOMS_HEELS)) damage += isVersus ? HEELS_DAMAGE_VERSUS : HEELS_DAMAGE;
|
||||
if (player.HasCollectible(COLLECTIBLE_VIRUS)) damage += isVersus ? VIRUS_DAMAGE_VERSUS : VIRUS_DAMAGE;
|
||||
if (player.HasCollectible(COLLECTIBLE_SERPENTS_KISS)) damage += isVersus ? VIRUS_DAMAGE_VERSUS : VIRUS_DAMAGE;
|
||||
@@ -1061,7 +1063,10 @@ static float player_contact_damage(Entity_Player& player, Entity& collider, bool
|
||||
Entity_Player& heartOwner = player.playerType == PLAYER_THESOUL_B && twin ? *twin : player;
|
||||
if (heartOwner.HasCollectible(COLLECTIBLE_ISAACS_HEART)) damage = player.meleeDamage + player.meleeDamage + damage;
|
||||
if (player.HasCollectible(COLLECTIBLE_MIDAS_TOUCH))
|
||||
reconstruction_missing("Entity_Player::HandleCollision 0078e1f0: Midas' Touch (Entity::AddMidasFreeze)");
|
||||
{
|
||||
collider.AddMidasFreeze(EntityRef(&player), isVersus ? MIDAS_CONTACT_FREEZE_VERSUS : MIDAS_CONTACT_FREEZE, false);
|
||||
damage = (float)player.numCoins * MIDAS_COIN_DAMAGE + MIDAS_CONTACT_DAMAGE + damage;
|
||||
}
|
||||
if (player.variant == PLAYER_VARIANT_COOP_BABY && player.babySkin == BABY_CROW) damage += BABY_CONTACT_DAMAGE;
|
||||
if (player.HasCollectible(COLLECTIBLE_LITTLE_HORN)) damage += HORN_DAMAGE;
|
||||
isBreath = effects.HasCollectibleEffect(COLLECTIBLE_BREATH_OF_LIFE);
|
||||
@@ -1092,15 +1097,12 @@ static void player_contact_missing_check(Entity_Player& player, Entity& collider
|
||||
tainted_magdalene_hug(player, collider);
|
||||
if (player.temporaryEffects.HasCollectibleEffect(COLLECTIBLE_MEGA_MUSH))
|
||||
reconstruction_missing("Entity_Player::HandleCollision 0078e1f0: Mega Mush's stomp");
|
||||
if (player.playerType == PLAYER_THESOUL_B && collider.type == ENTITY_PLAYER &&
|
||||
static_cast<Entity_Player&>(collider).playerType == PLAYER_THEFORGOTTEN_B)
|
||||
reconstruction_missing("Entity_Player::HandleCollision 0078e1f0: Tainted Soul holding her body");
|
||||
if (player.suplexState == 1) reconstruction_missing("Entity_Player::HandleCollision 0078e1f0: the suplex grab");
|
||||
}
|
||||
|
||||
// 0078e1f0 Touches another entity, after a mod's MC_PRE_PLAYER_COLLISION: mid-suplex it passes enemies and shots,
|
||||
// it hurts a vulnerable enemy by its items' contact damage, poisons with The Virus or Serpent's Kiss, and a thrown
|
||||
// Tainted Forgotten slows on enemies. Whether the collision is ignored, which a pony's dash makes it.
|
||||
// Tainted Forgotten slows on enemies. Tainted Forgotten's soul picks the body up. Whether the collision is ignored, which a pony's dash makes it.
|
||||
bool Entity_Player::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
LuaResult lua = lua_engine_get().PrePlayerCollide(this, collider, isLow);
|
||||
@@ -1108,6 +1110,15 @@ bool Entity_Player::HandleCollision(Entity* collider, bool isLow)
|
||||
if (lua == LUA_RESULT_FALSE) return false;
|
||||
|
||||
player_contact_missing_check(*this, *collider);
|
||||
if (playerType == PLAYER_THESOUL_B && collider->type == ENTITY_PLAYER &&
|
||||
static_cast<Entity_Player*>(collider)->playerType == PLAYER_THEFORGOTTEN_B)
|
||||
{
|
||||
Room& room = *g_game->room;
|
||||
if (collider->HasEntityFlags(FLAG_HELD | FLAG_THROWN) || !room.isInitialized ||
|
||||
g_game->frameCount - room.enterFrame < 2)
|
||||
return true;
|
||||
TryHoldEntity(collider);
|
||||
}
|
||||
if (suplexState >= SUPLEX_STATE_PASSING && (collider->IsEnemy() || collider->type == ENTITY_PROJECTILE)) return true;
|
||||
|
||||
bool isIgnored = false;
|
||||
|
||||
Reference in new issue
Block a user