Fixed Ultrabright Helmet not giving extra light in the Abyss
This commit is contained in:
1 parent
55d052ee46
commit
fab52d478e
2 files changed
+3
-2
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user