Big Sightseer -> Sightseer Spitter Small Sightseer -> Sightseer Collider Cultist Assassin -> Renegade Warlock (also renamed banners for the above) Crimulan Slime God -> Crimulan Paladin Ebonian Slime God -> Ebonian Paladin Cold Divinity -> Glacial Embrace Caustic Edge -> Tainted Blade True Caustic Edge -> Caustic Edge Tyrant Yharim's Ultisword -> Blighted Cleaver True Tyrant's Ultisword -> Defiled Greatsword Fixed Atlas Banner tooltip saying "Grants bonus to Atlas Banner"
32 lines
811 B
C#
32 lines
811 B
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.Summon
|
|
{
|
|
public class GlacialEmbraceBuff : ModBuff
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Main.buffNoTimeDisplay[Type] = true;
|
|
Main.buffNoSave[Type] = true;
|
|
//Main.persistentBuff[Type] = true;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.GlacialEmbrace = true;
|
|
if (!modPlayer.GlacialEmbrace)
|
|
{
|
|
player.DelBuff(buffIndex);
|
|
buffIndex--;
|
|
}
|
|
else
|
|
{
|
|
player.buffTime[buffIndex] = 18000;
|
|
}
|
|
}
|
|
}
|
|
}
|