Untitled
unknown
csharp
2 years ago
625 B
2
Indexable
Never
using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; using System; namespace WithBroomBetter.Buffs { public class WitchBroom2Buff : ModBuff { public override void SetStaticDefaults() { DisplayName.SetDefault("Witch's Broom Improved"); Main.buffNoTimeDisplay[Type] = true; Main.buffNoSave[Type] = true; } public override void Update(Player player, ref int buffIndex) { player.mount.SetMount(ModContent.MountType<Mounts.WitchBroom2Mount>(), player); player.buffTime[buffIndex] = 10; // reset buff time } } }