mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
update to newest tmodloader version
This commit is contained in:
@@ -2,23 +2,26 @@ using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using YHTMod.Projectiles.Weapons;
|
||||
|
||||
namespace YHTMod.Buffs;
|
||||
namespace YHTMod.Buffs;
|
||||
|
||||
public class ToclafaneMinionBuff : ModBuff {
|
||||
|
||||
public override void SetStaticDefaults() {
|
||||
DisplayName.SetDefault("Summon Toclafane");
|
||||
Description.SetDefault("It came from a parallel world to fight for its Master.");
|
||||
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) {
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<ToclafaneMinion>()] > 0)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user