Curation round 17: Theora and Vorbis cutscene videos, Ludovico, Epic and Dr. Fetus, Tractor Beam and Eye of the Occult, familiars and blue spiders, fortune teller and restock, the Bag of Crafting and four tainted characters, ten enemies, water and the ultra secret door, Isaac, ???, the Lamb and Hush
This commit is contained in:
1 parent
e9de039d0f
commit
024cb12016
133 files changed
+13325
-2520
No files matched your search
@@ -73,6 +73,8 @@ constexpr int SOUND_FRAME_DELAY = 2;
|
||||
constexpr uint64_t DAMAGE_INVINCIBLE_IGNORED = 1ull << 13;
|
||||
constexpr uint64_t DAMAGE_FAKE = 1ull << 21;
|
||||
constexpr uint64_t DAMAGE_IGNORED = 1ull << 34;
|
||||
// Tainted Jacob turned ghost by Dark Esau cannot be hurt for 90 frames.
|
||||
constexpr int JACOB_GHOST_COOLDOWN = 90;
|
||||
constexpr uint64_t DAMAGE_NO_HURT_EFFECTS = 0x100d0400;
|
||||
constexpr uint64_t DAMAGE_ISAACS_HEART_PIERCE = 0x2820;
|
||||
constexpr uint64_t DAMAGE_UNPENALIZED = DAMAGE_NO_PENALTIES | DAMAGE_RED_HEARTS;
|
||||
@@ -347,9 +349,9 @@ static int red_hearts_remove(Entity_Player& player, int amount, bool isRedFirst,
|
||||
player.AddHearts(-amount, false, false);
|
||||
|
||||
bool isKeeper = player.playerType == PLAYER_KEEPER || player.playerType == PLAYER_KEEPER_B;
|
||||
if (player.playerType == PLAYER_MAGDALENE_B)
|
||||
reconstruction_missing("Entity_Player::TakeDamage 007729d0 (Tainted Magdalene's red heart damage)");
|
||||
if (isRedLost && !isKeeper && !player.parent && isPenalized && amount > 0 && player.redHearts < player.maxHearts)
|
||||
bool isTemporaryRed = player.playerType == PLAYER_MAGDALENE_B && player.redHearts >= maggy_heart_limit(player);
|
||||
if (isRedLost && !isKeeper && !player.parent && isPenalized && amount > 0 && player.redHearts < player.maxHearts &&
|
||||
!isTemporaryRed)
|
||||
{
|
||||
int multiplier = player.GetTrinketMultiplier(TRINKET_CROW_HEART);
|
||||
uint32_t keptChance = multiplier == 2 ? CROW_HEART_KEEP_2 : multiplier >= 3 ? CROW_HEART_KEEP_3 : 0;
|
||||
@@ -495,7 +497,12 @@ bool Entity_Player::TakeDamage(float damage, uint64_t damageFlags, const EntityR
|
||||
if (!lua_engine_get().EntityTakeDamage(this, (float)amount, damageFlags, source, damageCountdown)) return false;
|
||||
if (try_end_astral_projection()) return false;
|
||||
if (playerType == PLAYER_JACOB_B && source.type == ENTITY_DARK_ESAU)
|
||||
reconstruction_missing("Entity_Player::TakeDamage 007729d0 (Tainted Jacob's ghost form)");
|
||||
{
|
||||
spawn_ghost_corpse();
|
||||
ChangePlayerType(PLAYER_JACOB2_B, false);
|
||||
SetMinDamageCooldown(JACOB_GHOST_COOLDOWN);
|
||||
return false;
|
||||
}
|
||||
|
||||
Entity* attacker = source.entity ? source.entity->GetPlayerAncestor() : nullptr;
|
||||
if (attacker) Player_stats_add(game.onlinePlayerStats, ONLINE_STAT_PLAYER_DAMAGE_DEALT, (Entity_Player*)attacker, amount);
|
||||
@@ -509,9 +516,7 @@ bool Entity_Player::TakeDamage(float damage, uint64_t damageFlags, const EntityR
|
||||
if (isPenalized)
|
||||
{
|
||||
roomDamageTaken += amount;
|
||||
if (playerType == PLAYER_MAGDALENE_B)
|
||||
reconstruction_missing("Entity_Player::TakeDamage 007729d0 (Tainted Magdalene's damage taken)");
|
||||
totalDamageTaken += amount;
|
||||
if (playerType != PLAYER_MAGDALENE_B || !is_maggy_draining(*this)) totalDamageTaken += amount;
|
||||
}
|
||||
if (source.type >= ENTITY_FIRST_ENEMY && source.type <= ENEMY_TYPE_LAST)
|
||||
bestiary_count_add(g_manager->persistentGameData.bestiary.hits, source.type, source.variant);
|
||||
@@ -789,6 +794,16 @@ bool Entity_Player::IsBoneHeart(int heart)
|
||||
return boneHearts > 0 && (boneHeartsMask & 1 << heart);
|
||||
}
|
||||
|
||||
// 007591e0 Turns the black heart holding a soul heart, counted in halves from 0, back into a soul heart.
|
||||
void Entity_Player::RemoveBlackHeart(int soulHeartIndex)
|
||||
{
|
||||
if (soulHeartIndex > soulHearts || soulHeartIndex < 0) return;
|
||||
|
||||
blackHearts &= ~(1u << (soulHeartIndex >> 1 & 31));
|
||||
ClampGoldenHearts(false);
|
||||
update_bone_hearts();
|
||||
}
|
||||
|
||||
// 00759220 Whether a soul heart, counted in halves from 1, is the first half of a black heart.
|
||||
bool Entity_Player::IsBlackHeart(int heart)
|
||||
{
|
||||
@@ -889,6 +904,13 @@ void Entity_Player::PlayExtraAnimation(std::string_view animName)
|
||||
isPlayingExtraAnimation = true;
|
||||
}
|
||||
|
||||
// 007abcc0 Plays the teleport out (up, with the portal's sound) or in.
|
||||
void Entity_Player::AnimateTeleport(bool isUp)
|
||||
{
|
||||
PlayExtraAnimation(isUp ? "TeleportUp" : "TeleportDown");
|
||||
if (isUp) sound_play(SOUND_HELL_PORTAL2);
|
||||
}
|
||||
|
||||
// 007abe90 Plays an animation of the player's sprite on its body sprite, as picking items up does.
|
||||
void Entity_Player::PlayExtraAnimation(std::string_view animation, bool)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user