30 lines
832 B
C#
30 lines
832 B
C#
using CalamityMod.DataStructures;
|
|
using CalamityMod.Items.Potions.Alcohol;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.Alcohol
|
|
{
|
|
public class ManhattanBuff : ModBuff
|
|
{
|
|
public static DebuffData debuffData = new DebuffData()
|
|
{
|
|
AlcoholLevel = 1
|
|
};
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Main.debuff[Type] = true;
|
|
Main.pvpBuff[Type] = true;
|
|
Main.buffNoSave[Type] = false;
|
|
Main.persistentBuff[Type] = true;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex)
|
|
{
|
|
var cplayer = player.Calamity();
|
|
cplayer.ColdDebuffMultiplier += Manhattan.DebuffBoost;
|
|
cplayer.WaterDebuffMultiplier -= Manhattan.DebuffLoss;
|
|
}
|
|
}
|
|
}
|