1.4.001 source update from zip
No files matched your search
|
After Width: | Height: | Size: 1.5 KiB |
@@ -1,49 +1,49 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalDivingSuitBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Suit");
|
||||
Description.SetDefault("You are made of metal");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>();
|
||||
if (modPlayer.abyssalDivingSuitPrevious)
|
||||
{
|
||||
player.gills = true;
|
||||
modPlayer.abyssalDivingSuitPower = true;
|
||||
modPlayer.depthCharm = true;
|
||||
modPlayer.jellyfishNecklace = true;
|
||||
modPlayer.anechoicPlating = true;
|
||||
modPlayer.ironBoots = true;
|
||||
player.arcticDivingGear = true;
|
||||
player.accFlipper = true;
|
||||
player.accDivingHelm = true;
|
||||
player.iceSkate = true;
|
||||
if (player.wet)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.2f, 0.8f, 0.9f);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalDivingSuitBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Suit");
|
||||
Description.SetDefault("You are made of metal");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>();
|
||||
if (modPlayer.abyssalDivingSuitPrevious)
|
||||
{
|
||||
player.gills = true;
|
||||
modPlayer.abyssalDivingSuitPower = true;
|
||||
modPlayer.depthCharm = true;
|
||||
modPlayer.jellyfishNecklace = true;
|
||||
modPlayer.anechoicPlating = true;
|
||||
modPlayer.ironBoots = true;
|
||||
player.arcticDivingGear = true;
|
||||
player.accFlipper = true;
|
||||
player.accDivingHelm = true;
|
||||
player.iceSkate = true;
|
||||
if (player.wet)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.2f, 0.8f, 0.9f);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalDivingSuitPlates : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Suit Plates");
|
||||
Description.SetDefault("The plates will absorb 25% damage");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).abyssalDivingSuitPlates = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalDivingSuitPlates : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Suit Plates");
|
||||
Description.SetDefault("The plates will absorb 25% damage");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).abyssalDivingSuitPlates = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalDivingSuitPlatesBroken : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Suit Plates Broken");
|
||||
Description.SetDefault("The plates are regenerating");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).abyssalDivingSuitCooldown = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalDivingSuitPlatesBroken : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Suit Plates Broken");
|
||||
Description.SetDefault("The plates are regenerating");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).abyssalDivingSuitCooldown = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,33 +1,33 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalFlames : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Flames");
|
||||
Description.SetDefault("Your soul is being consumed");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).aFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).aFlames = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalFlames : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Flames");
|
||||
Description.SetDefault("Your soul is being consumed");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).aFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).aFlames = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalWeapon : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Weapon");
|
||||
Description.SetDefault("Melee weapons inflict abyssal flames, 15% increased movement speed");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).aWeapon = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AbyssalWeapon : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Weapon");
|
||||
Description.SetDefault("Melee weapons inflict abyssal flames, 15% increased movement speed");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).aWeapon = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AdrenalineMode : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Adrenaline Mode");
|
||||
Description.SetDefault("250% (1000% in Death Mode) increased damage.");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).adrenalineMode = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AdrenalineMode : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Adrenaline Mode");
|
||||
Description.SetDefault("250% (1000% in Death Mode) increased damage.");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).adrenalineMode = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Afflicted : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Afflicted");
|
||||
Description.SetDefault("Rage is power");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).afflictedBuff = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Afflicted : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Afflicted");
|
||||
Description.SetDefault("Rage is power");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).afflictedBuff = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AnechoicCoating : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Anechoic Coating");
|
||||
Description.SetDefault("Abyssal creature's detection radius reduced");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).anechoicCoating = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AnechoicCoating : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Anechoic Coating");
|
||||
Description.SetDefault("Abyssal creature's detection radius reduced");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).anechoicCoating = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AngryChicken : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Son of Yharon");
|
||||
Description.SetDefault("The Son of Yharon will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("AngryChicken")] > 0)
|
||||
{
|
||||
modPlayer.aChicken = true;
|
||||
}
|
||||
if (!modPlayer.aChicken)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AngryChicken : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Son of Yharon");
|
||||
Description.SetDefault("The Son of Yharon will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("AngryChicken")] > 0)
|
||||
{
|
||||
modPlayer.aChicken = true;
|
||||
}
|
||||
if (!modPlayer.aChicken)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AquaticStar : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Aquatic Star");
|
||||
Description.SetDefault("The aquatic star will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("AquaticStar")] > 0)
|
||||
{
|
||||
modPlayer.aStar = true;
|
||||
}
|
||||
if (!modPlayer.aStar)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class AquaticStar : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Aquatic Star");
|
||||
Description.SetDefault("The aquatic star will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("AquaticStar")] > 0)
|
||||
{
|
||||
modPlayer.aStar = true;
|
||||
}
|
||||
if (!modPlayer.aStar)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ArmorCrunch : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Armor Crunch");
|
||||
Description.SetDefault("Your armor is shredded");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).aCrunch = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ArmorCrunch : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Armor Crunch");
|
||||
Description.SetDefault("Your armor is shredded");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).aCrunch = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,30 +1,30 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Backfire : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Backfire");
|
||||
Description.SetDefault("Damage, defense, and wing time drastically reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.meleeDamage -= 0.9f;
|
||||
player.magicDamage -= 0.9f;
|
||||
player.rangedDamage -= 0.9f;
|
||||
player.thrownDamage -= 0.9f;
|
||||
player.minionDamage -= 0.9f;
|
||||
player.statDefense -= 30;
|
||||
player.endurance -= 0.3f;
|
||||
player.wingTimeMax /= 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Backfire : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Backfire");
|
||||
Description.SetDefault("Damage, defense, and wing time drastically reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.meleeDamage -= 0.9f;
|
||||
player.magicDamage -= 0.9f;
|
||||
player.rangedDamage -= 0.9f;
|
||||
player.thrownDamage -= 0.9f;
|
||||
player.minionDamage -= 0.9f;
|
||||
player.statDefense -= 30;
|
||||
player.endurance -= 0.3f;
|
||||
player.wingTimeMax /= 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BloodClot : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blood Clot");
|
||||
Description.SetDefault("The blood clot will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("BloodClotMinion")] > 0)
|
||||
{
|
||||
modPlayer.bClot = true;
|
||||
}
|
||||
if (!modPlayer.bClot)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BloodClot : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blood Clot");
|
||||
Description.SetDefault("The blood clot will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("BloodClotMinion")] > 0)
|
||||
{
|
||||
modPlayer.bClot = true;
|
||||
}
|
||||
if (!modPlayer.bClot)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,30 +1,30 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BrimlingBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimling");
|
||||
Description.SetDefault("Protect her or suffer in agony");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).brimling = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Brimling")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Brimling"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BrimlingBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimling");
|
||||
Description.SetDefault("Protect her or suffer in agony");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).brimling = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Brimling")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Brimling"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,32 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BrimstoneFlames : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimstone Flames");
|
||||
Description.SetDefault("Rapid health loss");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).bFlames = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BrimstoneFlames : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimstone Flames");
|
||||
Description.SetDefault("Rapid health loss");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).bFlames = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,26 +1,26 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
class BrimstoneMount : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimrose Mount");
|
||||
Description.SetDefault("The seat is toasty. That is all");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.PhuppersChair>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
class BrimstoneMount : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimrose Mount");
|
||||
Description.SetDefault("The seat is toasty. That is all");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.PhuppersChair>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BrimstoneWaifu : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimstone Waifu");
|
||||
Description.SetDefault("The brimstone elemental will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] > 0)
|
||||
{
|
||||
modPlayer.bWaifu = true;
|
||||
}
|
||||
if (!modPlayer.bWaifu)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BrimstoneWaifu : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimstone Waifu");
|
||||
Description.SetDefault("The brimstone elemental will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] > 0)
|
||||
{
|
||||
modPlayer.bWaifu = true;
|
||||
}
|
||||
if (!modPlayer.bWaifu)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BrittleStar : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brittle Star");
|
||||
Description.SetDefault("The brittle star will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("BrittleStar")] > 0)
|
||||
{
|
||||
modPlayer.bStar = true;
|
||||
}
|
||||
if (!modPlayer.bStar)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BrittleStar : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brittle Star");
|
||||
Description.SetDefault("The brittle star will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("BrittleStar")] > 0)
|
||||
{
|
||||
modPlayer.bStar = true;
|
||||
}
|
||||
if (!modPlayer.bStar)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BurningBlood : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Burning Blood");
|
||||
Description.SetDefault("Your blood is on fire");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bBlood = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class BurningBlood : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Burning Blood");
|
||||
Description.SetDefault("Your blood is on fire");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bBlood = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Cadence : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cadance");
|
||||
Description.SetDefault("Your heart is pure");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cadence = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Cadence : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cadance");
|
||||
Description.SetDefault("Your heart is pure");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cadence = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Calamari : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Calamari");
|
||||
Description.SetDefault("The squid will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Calamari")] > 0)
|
||||
{
|
||||
modPlayer.calamari = true;
|
||||
}
|
||||
if (!modPlayer.calamari)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Calamari : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Calamari");
|
||||
Description.SetDefault("The squid will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Calamari")] > 0)
|
||||
{
|
||||
modPlayer.calamari = true;
|
||||
}
|
||||
if (!modPlayer.calamari)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CalamitasEyes : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blighted Eyes");
|
||||
Description.SetDefault("Calamitas and her brothers will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Calamitamini")] > 0)
|
||||
{
|
||||
modPlayer.cEyes = true;
|
||||
}
|
||||
if (!modPlayer.cEyes)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CalamitasEyes : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blighted Eyes");
|
||||
Description.SetDefault("Calamitas and her brothers will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Calamitamini")] > 0)
|
||||
{
|
||||
modPlayer.cEyes = true;
|
||||
}
|
||||
if (!modPlayer.cEyes)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CalamityGlobalBuff : GlobalBuff
|
||||
{
|
||||
public override void Update(int type, Player player, ref int buffIndex)
|
||||
{
|
||||
if (type == BuffID.Shine)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).shine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CalamityGlobalBuff : GlobalBuff
|
||||
{
|
||||
public override void Update(int type, Player player, ref int buffIndex)
|
||||
{
|
||||
if (type == BuffID.Shine)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).shine = true;
|
||||
}
|
||||
if (type == BuffID.IceBarrier)
|
||||
{
|
||||
player.endurance -= 0.1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ChaosSpirit : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaos Spirit");
|
||||
Description.SetDefault("The chaos spirit will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("ChaosSpirit")] > 0)
|
||||
{
|
||||
modPlayer.cSpirit = true;
|
||||
}
|
||||
if (!modPlayer.cSpirit)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ChaosSpirit : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaos Spirit");
|
||||
Description.SetDefault("The chaos spirit will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("ChaosSpirit")] > 0)
|
||||
{
|
||||
modPlayer.cSpirit = true;
|
||||
}
|
||||
if (!modPlayer.cSpirit)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,38 +1,38 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ChibiiBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chibii Devourer");
|
||||
Description.SetDefault("What? Were you expecting someone else?");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
|
||||
player.GetModPlayer<CalamityPlayer>(mod).chibii = true;
|
||||
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("ChibiiDoggo")] <= 0;
|
||||
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("ChibiiDoggo"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
|
||||
//immunizes player to red devil buff
|
||||
int devilbuff = mod.BuffType("RedDevil");
|
||||
player.buffImmune[devilbuff] = true;
|
||||
|
||||
//makes game think red devil minion is always active so it doesnt spawn one
|
||||
int devilprojectile = mod.ProjectileType("RedDevil");
|
||||
player.ownedProjectileCounts[devilprojectile] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ChibiiBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chibii Devourer");
|
||||
Description.SetDefault("What? Were you expecting someone else?");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
|
||||
player.GetModPlayer<CalamityPlayer>(mod).chibii = true;
|
||||
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("ChibiiDoggo")] <= 0;
|
||||
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("ChibiiDoggo"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
|
||||
//immunizes player to red devil buff
|
||||
int devilbuff = mod.BuffType("RedDevil");
|
||||
player.buffImmune[devilbuff] = true;
|
||||
|
||||
//makes game think red devil minion is always active so it doesnt spawn one
|
||||
int devilprojectile = mod.ProjectileType("RedDevil");
|
||||
player.ownedProjectileCounts[devilprojectile] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CloudyWaifu : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cloudy Waifu");
|
||||
Description.SetDefault("The cloud elemental will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] > 0)
|
||||
{
|
||||
modPlayer.cWaifu = true;
|
||||
}
|
||||
if (!modPlayer.cWaifu)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CloudyWaifu : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cloudy Waifu");
|
||||
Description.SetDefault("The cloud elemental will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] > 0)
|
||||
{
|
||||
modPlayer.cWaifu = true;
|
||||
}
|
||||
if (!modPlayer.cWaifu)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Corroslime : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Corroslime");
|
||||
Description.SetDefault("The corroslime will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Corroslime")] > 0)
|
||||
{
|
||||
modPlayer.cSlime = true;
|
||||
}
|
||||
if (!modPlayer.cSlime)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Corroslime : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Corroslime");
|
||||
Description.SetDefault("The corroslime will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Corroslime")] > 0)
|
||||
{
|
||||
modPlayer.cSlime = true;
|
||||
}
|
||||
if (!modPlayer.cSlime)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CosmicEnergy : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cosmic Energy");
|
||||
Description.SetDefault("The cosmic energy will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("CosmicEnergy")] > 0)
|
||||
{
|
||||
modPlayer.cEnergy = true;
|
||||
}
|
||||
if (!modPlayer.cEnergy)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CosmicEnergy : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cosmic Energy");
|
||||
Description.SetDefault("The cosmic energy will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("CosmicEnergy")] > 0)
|
||||
{
|
||||
modPlayer.cEnergy = true;
|
||||
}
|
||||
if (!modPlayer.cEnergy)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CosmicFreeze : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cosmic Freeze");
|
||||
Description.SetDefault("You feel as cold as the empty expanse of outer space");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cFreeze = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CosmicFreeze : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cosmic Freeze");
|
||||
Description.SetDefault("You feel as cold as the empty expanse of outer space");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cFreeze = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Cosmilamp : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cosmilamp");
|
||||
Description.SetDefault("The cosmilamp will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Cosmilamp")] > 0)
|
||||
{
|
||||
modPlayer.cLamp = true;
|
||||
}
|
||||
if (!modPlayer.cLamp)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Cosmilamp : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cosmilamp");
|
||||
Description.SetDefault("The cosmilamp will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Cosmilamp")] > 0)
|
||||
{
|
||||
modPlayer.cLamp = true;
|
||||
}
|
||||
if (!modPlayer.cLamp)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Crimslime : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Crimslime");
|
||||
Description.SetDefault("The crimslime will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Crimslime")] > 0)
|
||||
{
|
||||
modPlayer.cSlime2 = true;
|
||||
}
|
||||
if (!modPlayer.cSlime2)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Crimslime : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Crimslime");
|
||||
Description.SetDefault("The crimslime will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Crimslime")] > 0)
|
||||
{
|
||||
modPlayer.cSlime2 = true;
|
||||
}
|
||||
if (!modPlayer.cSlime2)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,32 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CrushDepth : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Crush Depth");
|
||||
Description.SetDefault("Aquatic pressure");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cDepth = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).cDepth = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CrushDepth : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Crush Depth");
|
||||
Description.SetDefault("Aquatic pressure");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cDepth = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).cDepth = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 658 B After Width: | Height: | Size: 632 B |
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class DaedalusCrystal : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Daedalus Crystal");
|
||||
Description.SetDefault("The daedalus crystal will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("DaedalusCrystal")] > 0)
|
||||
{
|
||||
modPlayer.dCrystal = true;
|
||||
}
|
||||
if (!modPlayer.dCrystal)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class DaedalusCrystal : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Daedalus Crystal");
|
||||
Description.SetDefault("The daedalus crystal will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("DaedalusCrystal")] > 0)
|
||||
{
|
||||
modPlayer.dCrystal = true;
|
||||
}
|
||||
if (!modPlayer.dCrystal)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class DankCreeper : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Dank Creeper");
|
||||
Description.SetDefault("The dank creeper will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("DankCreeper")] > 0)
|
||||
{
|
||||
modPlayer.dCreeper = true;
|
||||
}
|
||||
if (!modPlayer.dCreeper)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class DankCreeper : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Dank Creeper");
|
||||
Description.SetDefault("The dank creeper will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("DankCreeper")] > 0)
|
||||
{
|
||||
modPlayer.dCreeper = true;
|
||||
}
|
||||
if (!modPlayer.dCreeper)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class DemonFlames : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Demon Flames");
|
||||
Description.SetDefault("Another burning debuff");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).dFlames = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class DemonFlames : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Demon Flames");
|
||||
Description.SetDefault("Another burning debuff");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).dFlames = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class DrewsSandyWaifu : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sandy Waifu");
|
||||
Description.SetDefault("The sand elemental will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] > 0)
|
||||
{
|
||||
modPlayer.dWaifu = true;
|
||||
}
|
||||
if (!modPlayer.dWaifu)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class DrewsSandyWaifu : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sandy Waifu");
|
||||
Description.SetDefault("The sand elemental will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] > 0)
|
||||
{
|
||||
modPlayer.dWaifu = true;
|
||||
}
|
||||
if (!modPlayer.dWaifu)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ElementalAxe : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Elemental Axe");
|
||||
Description.SetDefault("The elemental axe will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("ElementalAxe")] > 0)
|
||||
{
|
||||
modPlayer.eAxe = true;
|
||||
}
|
||||
if (!modPlayer.eAxe)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ElementalAxe : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Elemental Axe");
|
||||
Description.SetDefault("The elemental axe will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("ElementalAxe")] > 0)
|
||||
{
|
||||
modPlayer.eAxe = true;
|
||||
}
|
||||
if (!modPlayer.eAxe)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,33 +1,33 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Enraged : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Enraged");
|
||||
Description.SetDefault("Enemies are enraged and do 1.5 times damage");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).enraged = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).enraged = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Enraged : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Enraged");
|
||||
Description.SetDefault("Enemies are enraged and do 1.5 times damage");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).enraged = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).enraged = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ExoFreeze : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Exo Freeze");
|
||||
Description.SetDefault("Cannot move");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).eFreeze = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ExoFreeze : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Exo Freeze");
|
||||
Description.SetDefault("Cannot move");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).eFreeze = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,29 +1,29 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ExtremeGrav : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Extreme Gravity");
|
||||
Description.SetDefault("Your wing time is reduced by 66%, infinite flight is disabled");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).eGrav = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ExtremeGrav : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Extreme Gravity");
|
||||
Description.SetDefault("Your wing time is reduced by 66%, infinite flight is disabled");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).eGrav = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 457 B |
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ExtremeGravity : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Icarus' Folly");
|
||||
Description.SetDefault("Your wing time is reduced by 75%, infinite flight is disabled");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).eGravity = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class ExtremeGravity : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Icarus' Folly");
|
||||
Description.SetDefault("Your wing time is reduced by 75%, infinite flight is disabled");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).eGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
class Fab : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Alicorn");
|
||||
Description.SetDefault("You beat DoG while drunk, you are truly fabulous!");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.Fab>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fab = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
class Fab : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Alicorn");
|
||||
Description.SetDefault("You beat DoG while drunk, you are truly fabulous!");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.Fab>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fab = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class BloodyMary : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bloody Mary");
|
||||
Description.SetDefault("Damage, critical strike chance, movement speed, and melee speed boosted during a Blood Moon, life regen and defense reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bloodyMary = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 582 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class CaribbeanRum : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Caribbean Rum");
|
||||
Description.SetDefault("Life regen, movement speed, and wing flight time boosted, you are floaty and defense is reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).caribbeanRum = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 567 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class CinnamonRoll : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cinnamon Roll");
|
||||
Description.SetDefault("Mana regen rate and fire weapon damage boosted, defense reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cinnamonRoll = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 517 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Everclear : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Everclear");
|
||||
Description.SetDefault("Damage and critical strike chance boosted, life regen and defense reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).everclear = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 633 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class EvergreenGin : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Evergreen Gin");
|
||||
Description.SetDefault("Nature-based weapon damage and damage reduction boosted, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).evergreenGin = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 524 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class FabsolVodka : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fab");
|
||||
Description.SetDefault("You feel fabulous");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fabsolVodka = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 461 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Fireball : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fireball");
|
||||
Description.SetDefault("Fire weapon damage boosted, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fireball = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 561 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class GrapeBeer : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Grape Beer");
|
||||
Description.SetDefault("Life regen, defense, and movement speed reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).grapeBeer = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 555 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Margarita : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Margarita");
|
||||
Description.SetDefault("Immunity to most debuffs, defense and life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).margarita = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 594 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Moonshine : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Moonshine");
|
||||
Description.SetDefault("Defense and damage reduction boosted, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).moonshine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 591 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class MoscowMule : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Moscow Mule");
|
||||
Description.SetDefault("Damage, critical strike chance, and knockback boosted, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).moscowMule = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 604 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class RedWine : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Red Wine");
|
||||
Description.SetDefault("Life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).redWine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 552 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Rum : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Rum");
|
||||
Description.SetDefault("Movement speed and life regen boosted, defense reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).rum = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 591 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Screwdriver : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Screwdriver");
|
||||
Description.SetDefault("Piercing projectile damage boosted, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).screwdriver = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 513 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class StarBeamRye : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Star Beam Rye");
|
||||
Description.SetDefault("Max mana, magic damage, and magic critical strike chance boosted, defense, mana usage, and life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).starBeamRye = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 608 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Tequila : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Tequila");
|
||||
Description.SetDefault("Damage, critical strike chance, damage reduction, defense, and knockback boosted during daytime, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).tequila = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 523 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class TequilaSunrise : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Tequila Sunrise");
|
||||
Description.SetDefault("Damage, critical strike chance, damage reduction, defense, and knockback boosted during daytime, life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).tequilaSunrise = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 555 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Vodka : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Vodka");
|
||||
Description.SetDefault("Damage and critical stike chance boosted, defense and life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).vodka = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 540 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Whiskey : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Whiskey");
|
||||
Description.SetDefault("Damage, critical strike chance, and knockback boosted, defense reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).whiskey = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 573 B |
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class WhiteWine : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("White Wine");
|
||||
Description.SetDefault("Magic damage boosted, life regen and defense reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).whiteWine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 562 B |
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class FishAlert : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fish Alert");
|
||||
Description.SetDefault("The abyssal creatures have spotted you!");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fishAlert = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class FishAlert : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fish Alert");
|
||||
Description.SetDefault("The abyssal creatures have spotted you!");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fishAlert = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,31 +1,31 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Fox : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fox Pet");
|
||||
Description.SetDefault("Fox Pet? FOX PET");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fox = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Fox")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Fox"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Fox : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fox Pet");
|
||||
Description.SetDefault("Fox Pet? FOX PET");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fox = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Fox")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Fox"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class FungalClump : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fungal Clump");
|
||||
Description.SetDefault("The fungal clump will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("FungalClump")] > 0)
|
||||
{
|
||||
modPlayer.fClump = true;
|
||||
}
|
||||
if (!modPlayer.fClump)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class FungalClump : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fungal Clump");
|
||||
Description.SetDefault("The fungal clump will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("FungalClump")] > 0)
|
||||
{
|
||||
modPlayer.fClump = true;
|
||||
}
|
||||
if (!modPlayer.fClump)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,32 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class GlacialState : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Glacial State");
|
||||
Description.SetDefault("Cannot move and defense is shattered");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).gState = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).gState = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class GlacialState : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Glacial State");
|
||||
Description.SetDefault("Cannot move and defense is shattered");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).gState = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).gState = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class GodSlayerCooldown : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("God Slayer Cooldown");
|
||||
Description.SetDefault("10% increase to all damage; godslayer effect is recharging");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).godSlayerCooldown = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class GodSlayerCooldown : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("God Slayer Cooldown");
|
||||
Description.SetDefault("10% increase to all damage; godslayer effect is recharging");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).godSlayerCooldown = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,32 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class GodSlayerInferno : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("God Slayer Inferno");
|
||||
Description.SetDefault("Your flesh is burning off");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).gsInferno = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).gsInferno = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class GodSlayerInferno : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("God Slayer Inferno");
|
||||
Description.SetDefault("Your flesh is burning off");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).gsInferno = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).gsInferno = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class GraxDefense : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Grax Boost");
|
||||
Description.SetDefault("Your defenses and muscles are strong");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).graxDefense = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class GraxDefense : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Grax Boost");
|
||||
Description.SetDefault("Your defenses and muscles are strong");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).graxDefense = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class HeartAttack : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Heart Attack");
|
||||
Description.SetDefault("You survived a heart attack. Boosts life regen and max life.");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).hAttack = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class HeartAttack : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Heart Attack");
|
||||
Description.SetDefault("You survived a heart attack. Boosts life regen and max life.");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).hAttack = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Herring : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Herring");
|
||||
Description.SetDefault("The herring will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Herring")] > 0)
|
||||
{
|
||||
modPlayer.herring = true;
|
||||
}
|
||||
if (!modPlayer.herring)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Herring : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Herring");
|
||||
Description.SetDefault("The herring will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("Herring")] > 0)
|
||||
{
|
||||
modPlayer.herring = true;
|
||||
}
|
||||
if (!modPlayer.herring)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,28 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class HolyInferno : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Holy Inferno");
|
||||
Description.SetDefault("You've gone too far from the Profaned God!");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).hInferno = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class HolyInferno : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Holy Inferno");
|
||||
Description.SetDefault("You've gone too far from the Profaned God!");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).hInferno = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,32 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class HolyLight : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Holy Flames");
|
||||
Description.SetDefault("Dissolving from holy light");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).hFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).hFlames = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class HolyLight : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Holy Flames");
|
||||
Description.SetDefault("Dissolving from holy light");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).hFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).hFlames = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Horror : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Horror");
|
||||
Description.SetDefault("The horror...");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).horror = true;
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class Horror : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Horror");
|
||||
Description.SetDefault("The horror...");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).horror = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class HotE : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Heart of the Elements");
|
||||
Description.SetDefault("All elementals will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
|
||||
if (!modPlayer.allWaifus)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 508 B |
@@ -1,34 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class IceClasper : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ice Clasper");
|
||||
Description.SetDefault("The ice clasper will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("IceClasper")] > 0)
|
||||
{
|
||||
modPlayer.iClasper = true;
|
||||
}
|
||||
if (!modPlayer.iClasper)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class IceClasper : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ice Clasper");
|
||||
Description.SetDefault("The ice clasper will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("IceClasper")] > 0)
|
||||
{
|
||||
modPlayer.iClasper = true;
|
||||
}
|
||||
if (!modPlayer.iClasper)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||