mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-12 14:06:55 +00:00
23 lines
601 B
C#
23 lines
601 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using YHTMod.Projectiles.Weapons;
|
|
|
|
namespace YHTMod.Buffs;
|
|
|
|
public class ToclafaneMinionBuff : ModBuff {
|
|
public override void SetStaticDefaults() {
|
|
Main.buffNoSave[Type] = true;
|
|
Main.buffNoTimeDisplay[Type] = true;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex) {
|
|
if (player.ownedProjectileCounts[ModContent.ProjectileType<ToclafaneMinion>()] > 0) {
|
|
player.buffTime[buffIndex] = 18000;
|
|
}
|
|
else {
|
|
player.DelBuff(buffIndex);
|
|
buffIndex--;
|
|
}
|
|
}
|
|
}
|