2 - Reduced how effective the new movement speed buffs are from 50% to 25%. 3 - Made the rev i-frame cap 150 i-frames instead of 120. 4 - Deific Amulet and Rampart of Deities now give Cross Necklace i-frame boost. 5 - Changed Yharon kill time for both phases to 2 minutes and 15 seconds, 4 minutes and 30 seconds in total for both.
34 lines
1001 B
C#
34 lines
1001 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.StatBuffs
|
|
{
|
|
public class Encased : ModBuff
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
DisplayName.SetDefault("Encased");
|
|
Description.SetDefault("30 defense and +30% damage reduction, but...");
|
|
Main.debuff[Type] = true;
|
|
Main.buffNoSave[Type] = true;
|
|
longerExpertDebuff = false;
|
|
canBeCleared = false;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex)
|
|
{
|
|
player.Calamity().encased = true;
|
|
if (player.buffTime[buffIndex] == 2)
|
|
{
|
|
Main.PlaySound(SoundID.Item27, player.position);
|
|
player.immune = true;
|
|
player.immuneNoBlink = false;
|
|
player.immuneTime = 90;
|
|
for (int j = 0; j < player.hurtCooldowns.Length; j++)
|
|
player.hurtCooldowns[j] = player.immuneTime;
|
|
}
|
|
}
|
|
}
|
|
}
|