From cc9fe171e52cfd899bbb9142c01fea6eb7f4e467 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 10 Jun 2024 11:40:08 -0400 Subject: [PATCH] Sulphur Meter fills 3x slower in Abyss layer 1 --- CalPlayer/CalamityPlayerLifeRegen.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index a532d58b22..4bf96ac65b 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -123,7 +123,7 @@ namespace CalamityMod.CalPlayer ApplyDoTDebuff(auricRebuke, rebukeDoT); ApplyDoTDebuff(miracleBlight, 80); - // Slowly increase the sulphuric water poisoning effect. Once it's high enough, the player starts taking damage over time. + // Slowly increase the sulphuric water poisoning effect. Once it's high enough, the player takes damage and the meter resets. bool nearSafeZone = false; if (SulphuricWaterSafeZoneSystem.NearbySafeTiles.Count >= 1) { @@ -142,7 +142,7 @@ namespace CalamityMod.CalPlayer } bool ASPoisoning = ASPoisonLevel > 0f; - if (ASPoisoning || ((ZoneSulphur || Player.Calamity().ZoneAbyssLayer1) && !Player.creativeGodMode && Player.IsUnderwater() && !decayEffigy && !abyssalDivingSuit && !Player.lavaWet && !Player.honeyWet && !nearSafeZone)) + if (ASPoisoning || ((ZoneSulphur || ZoneAbyssLayer1) && !Player.creativeGodMode && Player.IsUnderwater() && !decayEffigy && !abyssalDivingSuit && !Player.lavaWet && !Player.honeyWet && !nearSafeZone)) { float increment = 1f / SulphSeaWaterSafetyTime; //No way to mitigate AS Poisoning @@ -152,6 +152,8 @@ namespace CalamityMod.CalPlayer increment *= 0.5f; if (sulphurSet && !ASPoisoning) increment *= 0.5f; + if (ZoneAbyssLayer1 && !ASPoisoning) + increment *= 0.33f; SulphWaterPoisoningLevel = MathHelper.Clamp(SulphWaterPoisoningLevel + increment, 0f, 1f); if (SulphWaterPoisoningLevel >= 1f)