23 lines
632 B
C#
23 lines
632 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.Potions
|
|
{
|
|
public class GravityNormalizerBuff : ModBuff
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Gravity Normalizer");
|
|
Description.SetDefault("Gravity is now normal in space, immunity to distorted");
|
|
Main.debuff[Type] = false;
|
|
Main.pvpBuff[Type] = true;
|
|
Main.buffNoSave[Type] = false;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex)
|
|
{
|
|
player.Calamity().gravityNormalizer = true;
|
|
}
|
|
}
|
|
}
|