Add Nullified debuff, add Transcendent weapons and tool
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Buffs.Debuffs
|
||||
{
|
||||
public class TypeNull : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
// Debuff endurance, wing time, life regen and mana regen, but double speed
|
||||
player.endurance -= 0.20f;
|
||||
player.wingTimeMax = (int)(player.wingTimeMax * 0.2f);
|
||||
player.lifeRegen -= 10;
|
||||
player.manaRegenBonus -= 20;
|
||||
player.moveSpeed += 0.20f;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
Reference in New Issue
Block a user