Fixed Ultrabright Helmet not giving extra light in the Abyss

This commit is contained in:
ben-tk authored and Cameron Ewell committed 2022-09-12 20:45:14 -04:00
1 parent 55d052ee46
commit fab52d478e
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -485,7 +485,8 @@ namespace CalamityMod.Items
// +1 to Abyss light level
string abyssSmallLightLine = "\nProvides a small amount of light in the abyss";
if (item.type == ItemID.CrimsonHeart || item.type == ItemID.ShadowOrb || item.type == ItemID.MagicLantern || item.type == ItemID.JellyfishNecklace || item.type == ItemID.MiningHelmet)
if (item.type == ItemID.CrimsonHeart || item.type == ItemID.ShadowOrb || item.type == ItemID.MagicLantern || item.type == ItemID.JellyfishNecklace ||
item.type == ItemID.MiningHelmet || item.type == ItemID.UltrabrightHelmet)
EditTooltipByNum(0, (line) => line.Text += abyssSmallLightLine);
if (item.type == ItemID.JellyfishDivingGear)
EditTooltipByNum(1, (line) => line.Text += abyssSmallLightLine);
+1 -1
View File
@@ -98,7 +98,7 @@ namespace CalamityMod
CalamityPlayer mp = player.Calamity();
int light = mp.externalAbyssLight;
bool underwater = player.IsUnderwater();
bool miningHelmet = player.head == ArmorIDs.Head.MiningHelmet;
bool miningHelmet = player.head == ArmorIDs.Head.MiningHelmet || player.head == ArmorIDs.Head.UltraBrightHelmet;
// The campfire bonus does not apply while in the Abyss.
if (!mp.ZoneAbyss && (player.HasBuff(BuffID.Campfire) || Main.SceneMetrics.HasCampfire))