Auric Toilet rejection no longer triggers if you are immune to rejection

This commit is contained in:
CongratsIsTrash committed 2026-05-17 00:26:57 -04:00
1 parent 3606e32fe3
commit e7498b8eb3
2 files changed
+8 -8

No files matched your search

+6 -6
View File
@@ -908,6 +908,11 @@ namespace CalamityMod.CalPlayer
int scoriaOreID = ModContent.TileType<ScoriaOre>();
int abyssKelpID = ModContent.TileType<AbyssKelp>();
// Auric Ore causes an Auric Rejection unless you are wearing Auric Armor or have God Mode
// Auric Rejection causes an electrical explosion that yeets the player a considerable distance
// CIT 17AUG2024: Despite providing full invulnerability, Silva armor revive intentionally does not prevent Auric rejection's yeeting.
// 25FEB2025 Ozzatron: Added external bool to control Auric Rejection immunity from the ore.
bool rejectionImmunity = auricSet || seraphTracers || Player.creativeGodMode || externalAuricRejectionImmunity;
int auricRejectionDamage = 300;
float auricRejectionKB = Player.noKnockback ? 20f : 40f;
@@ -944,11 +949,6 @@ namespace CalamityMod.CalPlayer
Player.AddBuff(BuffID.Burning, 2);
}
// Auric Ore causes an Auric Rejection unless you are wearing Auric Armor or have God Mode
// Auric Rejection causes an electrical explosion that yeets the player a considerable distance
// CIT 17AUG2024: Despite providing full invulnerability, Silva armor revive intentionally does not prevent Auric rejection's yeeting.
// 25FEB2025 Ozzatron: Added external bool to control Auric Rejection immunity from the ore.
bool rejectionImmunity = auricSet || seraphTracers || Player.creativeGodMode || externalAuricRejectionImmunity;
bool oreRejection = (tile.TileType == auricOreID) && !rejectionImmunity;
// Repulsers always perform this effect because they are player-placed tiles made for this exact purpose
@@ -976,7 +976,7 @@ namespace CalamityMod.CalPlayer
}
}
if (Player.sitting.TryGetSittingBlock(Player, out Tile AuricToiletTile))
if (Player.sitting.TryGetSittingBlock(Player, out Tile AuricToiletTile) && !rejectionImmunity)
{
Player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AuricRejection").ToNetworkText(Player.name)), auricRejectionDamage, 0);
Player.AddBuff(ModContent.BuffType<AuricRebuke>(), 120);
@@ -173,8 +173,8 @@ EditedTooltip: {
MoltenQuiver: Lights wooden arrows ablaze and all arrows inflict Hellfire
RifleScope1: Increase view range for guns (<right> to zoom out)
RifleScope2: The scope effect can be toggled with visibility
ReconScope1: 15% increased ranged damage
ReconScope2: 5% increased ranged critical strike chance
ReconScope1: 15% increased ranged damage
ReconScope2: 5% increased ranged critical strike chance
SniperScope: 12% increased ranged critical strike chance
Magiluminescence:
'''