BULLSHIT
This commit is contained in:
commit
7b31a044a9
3561 files changed
+236327
-235730
No files matched your search
@@ -4,21 +4,21 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.Buffs.Amidias
|
||||
{
|
||||
public class AmidiasBlessing : ModBuff
|
||||
{
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Amidias' Blessing");
|
||||
Description.SetDefault("You are blessed by Amidias" +
|
||||
"\nLets you breathe underwater, even in the Abyss!" +
|
||||
"\nJust don't get hit...");
|
||||
"\nLets you breathe underwater, even in the Abyss!" +
|
||||
"\nJust don't get hit...");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.buffNoSave[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().amidiasBlessing = true;
|
||||
{
|
||||
player.Calamity().amidiasBlessing = true;
|
||||
player.breath = player.breathMax + 91;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+26
-26
@@ -5,32 +5,32 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.Buffs.Amidias
|
||||
{
|
||||
public class HermitCrab : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Hermit Crab");
|
||||
Description.SetDefault("The hermit crab will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Hermit Crab");
|
||||
Description.SetDefault("The hermit crab will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("HermitCrab")] > 0)
|
||||
{
|
||||
modPlayer.hCrab = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("HermitCrab")] > 0)
|
||||
{
|
||||
modPlayer.hCrab = true;
|
||||
}
|
||||
|
||||
if (!modPlayer.hCrab)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!modPlayer.hCrab)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,23 +1,22 @@
|
||||
using CalamityMod.NPCs;
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Amidias
|
||||
{
|
||||
public class SnapClamDebuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Clammed");
|
||||
Description.SetDefault("Clam clap");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Clammed");
|
||||
Description.SetDefault("Clam clap");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).clamDebuff = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().clamDebuff = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+21
-21
@@ -6,39 +6,39 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CalamityGlobalBuff : GlobalBuff
|
||||
{
|
||||
{
|
||||
public override void Update(int type, Player player, ref int buffIndex)
|
||||
{
|
||||
if (type == BuffID.Shine)
|
||||
{
|
||||
player.GetCalamityPlayer().shine = true;
|
||||
player.Calamity().shine = true;
|
||||
}
|
||||
else if (type == BuffID.IceBarrier)
|
||||
{
|
||||
player.endurance -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.ObsidianSkin)
|
||||
{
|
||||
player.lavaMax += 420;
|
||||
}
|
||||
else if (type == BuffID.Rage)
|
||||
else if (type == BuffID.ObsidianSkin)
|
||||
{
|
||||
player.GetCalamityPlayer().throwingCrit += 10;
|
||||
player.lavaMax += 420;
|
||||
}
|
||||
else if (type == BuffID.Rage)
|
||||
{
|
||||
player.Calamity().throwingCrit += 10;
|
||||
}
|
||||
else if (type == BuffID.WellFed)
|
||||
{
|
||||
player.GetCalamityPlayer().throwingCrit += 2;
|
||||
player.Calamity().throwingCrit += 2;
|
||||
}
|
||||
else if (type >= BuffID.NebulaUpDmg1 && type <= BuffID.NebulaUpDmg3)
|
||||
{
|
||||
float nebulaDamage = 0.075f * (float)player.nebulaLevelDamage; //7.5% to 22.5%
|
||||
player.allDamage -= nebulaDamage;
|
||||
}
|
||||
else if (type >= BuffID.NebulaUpLife1 && type <= BuffID.NebulaUpLife3)
|
||||
{
|
||||
player.lifeRegen -= 5 * player.nebulaLevelLife; //10 to 30 changed to 5 to 15
|
||||
}
|
||||
else if (type == BuffID.Warmth)
|
||||
}
|
||||
else if (type >= BuffID.NebulaUpLife1 && type <= BuffID.NebulaUpLife3)
|
||||
{
|
||||
player.lifeRegen -= 5 * player.nebulaLevelLife; //10 to 30 changed to 5 to 15
|
||||
}
|
||||
else if (type == BuffID.Warmth)
|
||||
{
|
||||
player.buffImmune[mod.BuffType("GlacialState")] = true;
|
||||
player.buffImmune[BuffID.Frozen] = true;
|
||||
@@ -46,8 +46,8 @@ namespace CalamityMod.Buffs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyBuffTip(int type, ref string tip, ref int rare)
|
||||
{
|
||||
public override void ModifyBuffTip(int type, ref string tip, ref int rare)
|
||||
{
|
||||
if (type == BuffID.NebulaUpDmg1)
|
||||
tip = "7.5% increased damage";
|
||||
else if (type == BuffID.NebulaUpDmg2)
|
||||
@@ -69,8 +69,8 @@ namespace CalamityMod.Buffs
|
||||
}
|
||||
else if (type == BuffID.CursedInferno && CalamityWorld.revenge)
|
||||
tip += ". All damage taken increased by 20%";
|
||||
else if (type == BuffID.Warmth)
|
||||
tip += ". Immunity to the Chilled, Frozen, and Glacial State debuffs";
|
||||
}
|
||||
}
|
||||
else if (type == BuffID.Warmth)
|
||||
tip += ". Immunity to the Chilled, Frozen, and Glacial State debuffs";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,31 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class AbyssalFlames : ModBuff
|
||||
{
|
||||
public static int DefenseReduction = 6;
|
||||
{
|
||||
public static int DefenseReduction = 10;
|
||||
|
||||
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 = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Flames");
|
||||
Description.SetDefault("Your soul is being consumed");
|
||||
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.GetCalamityPlayer().aFlames = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().aFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).aFlames = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().aFlames = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,31 +1,30 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class AstralInfectionDebuff : ModBuff
|
||||
{
|
||||
public static int DefenseReduction = 6;
|
||||
{
|
||||
public static int DefenseReduction = 8;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Astral Infection");
|
||||
Description.SetDefault("Your flesh is melting off");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
DisplayName.SetDefault("Astral Infection");
|
||||
Description.SetDefault("Your flesh is melting off");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().astralInfection = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().astralInfection = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).astralInfection = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().astralInfection = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,30 +1,28 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
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 = false;
|
||||
}
|
||||
{
|
||||
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 = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().bFlames = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).bFlames = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().bFlames = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,30 +1,28 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
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 = false;
|
||||
}
|
||||
{
|
||||
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 = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().bBlood = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bBlood = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).bBlood = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().bBlood = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,30 +1,28 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
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 = false;
|
||||
}
|
||||
{
|
||||
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 = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().cDepth = true;
|
||||
player.Calamity().cDepth = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).cDepth = true;
|
||||
}
|
||||
}
|
||||
{
|
||||
npc.Calamity().cDepth = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
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 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;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().dFlames = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,31 +1,30 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class GodSlayerInferno : ModBuff
|
||||
{
|
||||
public static int DefenseReduction = 10;
|
||||
{
|
||||
public static int DefenseReduction = 20;
|
||||
|
||||
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 = false;
|
||||
}
|
||||
{
|
||||
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 = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().gsInferno = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().gsInferno = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).gsInferno = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().gsInferno = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class HolyInferno : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Holy Inferno");
|
||||
Description.SetDefault("You've gone too far from the Profaned Goddess!");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Holy Inferno");
|
||||
Description.SetDefault("You've gone too far from the Profaned Goddess!");
|
||||
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.GetCalamityPlayer().hInferno = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().hInferno = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,30 +1,28 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
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 = false;
|
||||
}
|
||||
{
|
||||
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 = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().hFlames = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().hFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).hFlames = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().hFlames = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class LethalLavaBurn : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Lethal Lava Burn");
|
||||
Description.SetDefault("Losing life");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Lethal Lava Burn");
|
||||
Description.SetDefault("Losing life");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().lethalLavaBurn = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().lethalLavaBurn = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class Nightwither : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Nightwither");
|
||||
Description.SetDefault("Incinerated by lunar rays");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Nightwither");
|
||||
Description.SetDefault("Incinerated by lunar rays");
|
||||
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).nightwither = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().nightwither = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+18
-19
@@ -1,31 +1,30 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class Plague : ModBuff
|
||||
{
|
||||
{
|
||||
public static int DefenseReduction = 4;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Plague");
|
||||
Description.SetDefault("Rotting from the inside");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
DisplayName.SetDefault("Plague");
|
||||
Description.SetDefault("Rotting from the inside");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().pFlames = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().pFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).pFlames = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().pFlames = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class Shadowflame : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shadowflame");
|
||||
Description.SetDefault("Losing life");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shadowflame");
|
||||
Description.SetDefault("Losing life");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().shadowflame = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().shadowflame = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
-16
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class Shred : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shred");
|
||||
Description.SetDefault("Blood");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = true;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shred");
|
||||
Description.SetDefault("Blood");
|
||||
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).pShred = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().pShred = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.DoTDebuffs
|
||||
{
|
||||
public class VulnerabilityHex : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Vulnerability Hex");
|
||||
Description.SetDefault("You are weak");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Vulnerability Hex");
|
||||
Description.SetDefault("You are weak");
|
||||
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.GetCalamityPlayer().vHex = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().vHex = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().bloodyMary = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bloodyMary = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,26 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class BlueSpeedCandle : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Limber");
|
||||
Description.SetDefault("The floating flame seems to uplift your very spirit");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Limber");
|
||||
Description.SetDefault("The floating flame seems to uplift your very spirit");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
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.GetCalamityPlayer().blueCandle = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().blueCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().caribbeanRum = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().caribbeanRum = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().cinnamonRoll = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().cinnamonRoll = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Everclear : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Everclear");
|
||||
Description.SetDefault("25% increased damage, -10 life regen and -40 defense");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Everclear");
|
||||
Description.SetDefault("25% increased damage, -10 life regen and -40 defense");
|
||||
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.GetCalamityPlayer().everclear = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().everclear = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().evergreenGin = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().evergreenGin = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().fabsolVodka = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().fabsolVodka = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().fireball = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().fireball = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class GrapeBeer : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Grape Beer");
|
||||
Description.SetDefault("Defense and movement speed reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Grape Beer");
|
||||
Description.SetDefault("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.GetCalamityPlayer().grapeBeer = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().grapeBeer = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().margarita = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().margarita = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().moonshine = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().moonshine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().moscowMule = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().moscowMule = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,26 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class PinkHealthCandle : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Vigor");
|
||||
Description.SetDefault("Its brilliant light suffuses those nearby with hope");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Vigor");
|
||||
Description.SetDefault("Its brilliant light suffuses those nearby with hope");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
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.GetCalamityPlayer().pinkCandle = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().pinkCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,26 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class PurpleDefenseCandle : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Resilience");
|
||||
Description.SetDefault("Neither rain nor wind can snuff its undying flame");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Resilience");
|
||||
Description.SetDefault("Neither rain nor wind can snuff its undying flame");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
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.GetCalamityPlayer().purpleCandle = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().purpleCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().redWine = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().redWine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().rum = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().rum = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().screwdriver = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().screwdriver = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class StarBeamRye : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Star Beam Rye");
|
||||
Description.SetDefault("Max mana and magic damage increased. Defense, mana usage, and life regen reduced");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Star Beam Rye");
|
||||
Description.SetDefault("Max mana and magic damage increased. 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.GetCalamityPlayer().starBeamRye = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().starBeamRye = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().tequila = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().tequila = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().tequilaSunrise = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().tequilaSunrise = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class Trippy : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Trippy");
|
||||
Description.SetDefault("You see the world for what it truly is...and you also have a 50% increase to all damage");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Trippy");
|
||||
Description.SetDefault("You see the world for what it truly is...and you also have a 50% increase to all damage");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().trippy = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().trippy = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().vodka = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().vodka = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().whiskey = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().whiskey = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
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;
|
||||
{
|
||||
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.GetCalamityPlayer().whiteWine = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().whiteWine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,30 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Fabsol
|
||||
{
|
||||
public class YellowDamageCandle : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Spite");
|
||||
Description.SetDefault("Its hateful glow flickers with ire");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Spite");
|
||||
Description.SetDefault("Its hateful glow flickers with ire");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
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.GetCalamityPlayer().yellowCandle = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().yellowCandle = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).yellowCandle = true;
|
||||
}
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().yellowCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.MountBuffs
|
||||
{
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.MountBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.PhuppersChair>(), player);
|
||||
player.mount.SetMount(ModContent.MountType<PhuppersChair>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.MountBuffs
|
||||
{
|
||||
@@ -16,9 +15,9 @@ namespace CalamityMod.Buffs.MountBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.Fab>(), player);
|
||||
player.mount.SetMount(ModContent.MountType<Items.Mounts.Fab>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetCalamityPlayer().fab = true;
|
||||
player.Calamity().fab = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.MountBuffs
|
||||
{
|
||||
@@ -16,9 +16,9 @@ namespace CalamityMod.Buffs.MountBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.Crysthamyr>(), player);
|
||||
player.mount.SetMount(ModContent.MountType<Crysthamyr>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetCalamityPlayer().crysthamyr = true;
|
||||
player.Calamity().crysthamyr = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.MountBuffs
|
||||
{
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.MountBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.SquishyBean>(), player);
|
||||
player.mount.SetMount(ModContent.MountType<SquishyBean>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,16 +3,16 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Permafrost
|
||||
{
|
||||
public class ConcoctionCooldown : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Concoction Cooldown");
|
||||
Description.SetDefault("Revive is recharging");
|
||||
Main.debuff[Type] = true;
|
||||
public class ConcoctionCooldown : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Concoction Cooldown");
|
||||
Description.SetDefault("Revive is recharging");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,18 +5,18 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.Buffs.Permafrost
|
||||
{
|
||||
public class Encased : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Encased");
|
||||
Description.SetDefault("30 defense and +30% damage reduction, but...");
|
||||
Main.debuff[Type] = true;
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Encased");
|
||||
Description.SetDefault("30 defense and +30% damage reduction, but...");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.statDefense += 30;
|
||||
player.endurance += 0.3f;
|
||||
@@ -36,5 +36,5 @@ namespace CalamityMod.Buffs.Permafrost
|
||||
player.immuneTime = 90;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
using Terraria;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Permafrost
|
||||
{
|
||||
public class Popo : ModBuff
|
||||
{
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Popo");
|
||||
@@ -17,8 +17,8 @@ namespace CalamityMod.Buffs.Permafrost
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>();
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (modPlayer.snowmanPrevious)
|
||||
{
|
||||
modPlayer.snowmanPower = true;
|
||||
@@ -29,5 +29,5 @@ namespace CalamityMod.Buffs.Permafrost
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
using Terraria;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Permafrost
|
||||
{
|
||||
public class PopoNoseless : ModBuff
|
||||
{
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Noseless Popo");
|
||||
@@ -16,8 +16,8 @@ namespace CalamityMod.Buffs.Permafrost
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>();
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (modPlayer.snowmanPrevious)
|
||||
{
|
||||
modPlayer.snowmanPower = true;
|
||||
@@ -29,5 +29,5 @@ namespace CalamityMod.Buffs.Permafrost
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class AkatoYharonBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Akato");
|
||||
Description.SetDefault("'Looks like you'll have to take care of it now'");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Akato");
|
||||
Description.SetDefault("'Looks like you'll have to take care of it now'");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().akato = true;
|
||||
player.Calamity().akato = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Akato")] <= 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("Akato"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
-11
@@ -1,28 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class BearBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bear");
|
||||
Description.SetDefault("A guardian angel is following you.");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bear");
|
||||
Description.SetDefault("A guardian angel is following you.");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().bearPet = true;
|
||||
player.Calamity().bearPet = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Bear")] <= 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("Bear"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,31 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class BloodBound : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blood Bound");
|
||||
Description.SetDefault("You must be desperate for company");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
public class BloodBound : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blood Bound");
|
||||
Description.SetDefault("You must be desperate for company");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().perfmini = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("PerforaMini")] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, mod.ProjectileType("PerforaMini"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.Calamity().perfmini = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("PerforaMini")] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, mod.ProjectileType("PerforaMini"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class BrimlingBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimling");
|
||||
Description.SetDefault("Protect her or suffer in agony");
|
||||
{
|
||||
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)
|
||||
{
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().brimling = true;
|
||||
player.Calamity().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,31 +1,30 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
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 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;
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
|
||||
player.GetCalamityPlayer().chibii = true;
|
||||
player.Calamity().chibii = true;
|
||||
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("ChibiiDoggo")] <= 0;
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class DannyDevito : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Danny Devito");
|
||||
Description.SetDefault("The trash man is following you.");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Danny Devito");
|
||||
Description.SetDefault("The trash man is following you.");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().trashMan = true;
|
||||
player.Calamity().trashMan = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("DannyDevito")] <= 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("DannyDevito"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
-10
@@ -1,28 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class Fox : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fox Pet");
|
||||
Description.SetDefault("Fox Pet? FOX PET");
|
||||
{
|
||||
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)
|
||||
{
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().fox = true;
|
||||
player.Calamity().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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
-11
@@ -1,28 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class Kendra : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Kendra");
|
||||
Description.SetDefault("A loyal friend accompanies you.");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Kendra");
|
||||
Description.SetDefault("A loyal friend accompanies you.");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().kendra = true;
|
||||
player.Calamity().kendra = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Kendra")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (float)(player.width / 2), (player.position.Y + (float)(player.height / 2)) - 20f, 0f, 0f, mod.ProjectileType("Kendra"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+9
-10
@@ -1,28 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class Levi : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Levi");
|
||||
Description.SetDefault("Small and cute");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Levi");
|
||||
Description.SetDefault("Small and cute");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().leviPet = true;
|
||||
player.Calamity().leviPet = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Levi")] <= 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("Levi"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +1,27 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class StrangeOrb : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Young Siren");
|
||||
Description.SetDefault("Small and cute");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Young Siren");
|
||||
Description.SetDefault("Small and cute");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.lightPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().sirenPet = true;
|
||||
player.Calamity().sirenPet = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("SirenYoung")] <= 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("SirenYoung"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
public class ThirdSageBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Third Sage");
|
||||
Description.SetDefault("Eh? No way it's an oni.");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
public class ThirdSageBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Third Sage");
|
||||
Description.SetDefault("Eh? No way it's an oni.");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetCalamityPlayer().thirdSage = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("ThirdSage")] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, mod.ProjectileType("ThirdSage"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.Calamity().thirdSage = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("ThirdSage")] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, mod.ProjectileType("ThirdSage"), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
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 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.GetCalamityPlayer().aWeapon = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().aWeapon = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
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 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.GetCalamityPlayer().anechoicCoating = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().anechoicCoating = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class ArmorCrumbling : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Armor Crumbling");
|
||||
Description.SetDefault("Melee and rogue attacks break enemy armor");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Armor Crumbling");
|
||||
Description.SetDefault("Melee and rogue attacks break enemy armor");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().armorCrumbling = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().armorCrumbling = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class ArmorShattering : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Armor Shattering");
|
||||
Description.SetDefault("Melee and rogue attacks break enemy armor");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Armor Shattering");
|
||||
Description.SetDefault("Melee and rogue attacks break enemy armor");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().armorShattering = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().armorShattering = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class AstralInjectionBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Astral Injection");
|
||||
Description.SetDefault("Extreme mana recovery");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Astral Injection");
|
||||
Description.SetDefault("Extreme mana recovery");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().astralInjection = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().astralInjection = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class BoundingBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bounding");
|
||||
Description.SetDefault("Increased jump height, jump speed, and fall damage resistance");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bounding");
|
||||
Description.SetDefault("Increased jump height, jump speed, and fall damage resistance");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().bounding = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bounding = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
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 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.GetCalamityPlayer().cadence = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().cadence = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class CalciumBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Calcium");
|
||||
Description.SetDefault("You are immune to fall damage");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Calcium");
|
||||
Description.SetDefault("You are immune to fall damage");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().calcium = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().calcium = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class CeaselessHunger : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ceaseless Hunger");
|
||||
Description.SetDefault("You are sucking up all the items");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ceaseless Hunger");
|
||||
Description.SetDefault("You are sucking up all the items");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().ceaselessHunger = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().ceaselessHunger = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class DraconicSurgeBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Draconic Surge");
|
||||
Description.SetDefault("The power of a dragon courses through your veins");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Draconic Surge");
|
||||
Description.SetDefault("The power of a dragon courses through your veins");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().draconicSurge = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().draconicSurge = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class GravityNormalizerBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Gravity Normalizer");
|
||||
Description.SetDefault("Gravity is now normal in space, immunity to distorted");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Gravity Normalizer");
|
||||
Description.SetDefault("Gravity is now normal in space, immunity to distorted");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().gravityNormalizer = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().gravityNormalizer = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class HolyWrathBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Holy Wrath");
|
||||
Description.SetDefault("Increased damage, increased movement and flight speed, and all attacks inflict holy fire");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Holy Wrath");
|
||||
Description.SetDefault("Increased damage, increased movement and flight speed, and all attacks inflict holy fire");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().holyWrath = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().holyWrath = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class Invincible : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Invincible");
|
||||
Description.SetDefault("Immune to damage and most debuffs");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Invincible");
|
||||
Description.SetDefault("Immune to damage and most debuffs");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().invincible = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().invincible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class Omniscience : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Omniscience");
|
||||
Description.SetDefault("You can see everything");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Omniscience");
|
||||
Description.SetDefault("You can see everything");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().omniscience = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().omniscience = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class PenumbraBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Penumbra");
|
||||
Description.SetDefault("Stealth regenerates at 10% speed while moving\n" +
|
||||
"The boost increases to 20% at night and 30% during an eclipse");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Penumbra");
|
||||
Description.SetDefault("Stealth regenerates at 10% speed while moving\n" +
|
||||
"The boost increases to 20% at night and 30% during an eclipse");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().penumbra = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().penumbra = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class PhotosynthesisBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Photosynthesis");
|
||||
Description.SetDefault("Life regen boosted, more during daytime, and hearts heal more HP");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Photosynthesis");
|
||||
Description.SetDefault("Life regen boosted, more during daytime, and hearts heal more HP");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().photosynthesis = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().photosynthesis = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class ProfanedRageBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Profaned Rage");
|
||||
Description.SetDefault("Increased crit chance, increased movement and flight speed, and you gain more rage when damaged");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Profaned Rage");
|
||||
Description.SetDefault("Increased crit chance, increased movement and flight speed, and you gain more rage when damaged");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().profanedRage = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().profanedRage = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class Soaring : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Soaring");
|
||||
Description.SetDefault("Increased wing flight time and speed");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Soaring");
|
||||
Description.SetDefault("Increased wing flight time and 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.GetCalamityPlayer().soaring = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().soaring = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class TitanScale : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Titan Scale");
|
||||
Description.SetDefault("You feel tanky");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Titan Scale");
|
||||
Description.SetDefault("You feel tanky");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().tScale = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().tScale = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class TriumphBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Triumph");
|
||||
Description.SetDefault("Enemy contact damage is reduced, the lower their health the greater the reduction");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Triumph");
|
||||
Description.SetDefault("Enemy contact damage is reduced, the lower their health the greater the reduction");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().triumph = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().triumph = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class YharimPower : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Yharim's Power");
|
||||
Description.SetDefault("You feel like you can break the world in two...with your bare hands!");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Yharim's Power");
|
||||
Description.SetDefault("You feel like you can break the world in two...with your bare hands!");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().yPower = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().yPower = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
-16
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class Zen : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Zen");
|
||||
Description.SetDefault("Spawn rates are reduced");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Zen");
|
||||
Description.SetDefault("Spawn rates are 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.GetCalamityPlayer().zen = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().zen = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
-16
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.PotionBuffs
|
||||
{
|
||||
public class Zerg : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Zerg");
|
||||
Description.SetDefault("Spawn rates are boosted");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Zerg");
|
||||
Description.SetDefault("Spawn rates are boosted");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().zerg = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().zerg = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
-15
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Shrines
|
||||
{
|
||||
public class ChiBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chi");
|
||||
Description.SetDefault("Your next attack is boosted and you are more resilient");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chi");
|
||||
Description.SetDefault("Your next attack is boosted and you are more resilient");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().trinketOfChiBuff = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().trinketOfChiBuff = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Shrines
|
||||
{
|
||||
public class CorruptionEffigyBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Corruption Effigy");
|
||||
Description.SetDefault("The corruption empowers you");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Corruption Effigy");
|
||||
Description.SetDefault("The corruption empowers you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().corrEffigy = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().corrEffigy = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Shrines
|
||||
{
|
||||
public class CrimsonEffigyBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Crimson Effigy");
|
||||
Description.SetDefault("The crimson empowers you");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Crimson Effigy");
|
||||
Description.SetDefault("The crimson empowers you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().crimEffigy = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().crimEffigy = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +1,35 @@
|
||||
using Terraria;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Shrines
|
||||
{
|
||||
public class GladiatorSwords : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Gladiator Swords");
|
||||
Description.SetDefault("The gladiator swords will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
public class GladiatorSwords : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Gladiator Swords");
|
||||
Description.SetDefault("The gladiator swords will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("GladiatorSword")] > 0)
|
||||
{
|
||||
modPlayer.glSword = true;
|
||||
}
|
||||
if (!modPlayer.glSword)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("GladiatorSword")] > 0)
|
||||
{
|
||||
modPlayer.glSword = true;
|
||||
}
|
||||
if (!modPlayer.glSword)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Shrines
|
||||
{
|
||||
@@ -16,9 +16,9 @@ namespace CalamityMod.Buffs.Shrines
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.OnyxExcavator>(), player);
|
||||
player.mount.SetMount(ModContent.MountType<OnyxExcavator>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetCalamityPlayer().onyxExcavator = true;
|
||||
player.Calamity().onyxExcavator = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Shrines
|
||||
{
|
||||
@@ -16,9 +16,9 @@ namespace CalamityMod.Buffs.Shrines
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.AngryDog>(), player);
|
||||
player.mount.SetMount(ModContent.MountType<AngryDog>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetCalamityPlayer().angryDog = true;
|
||||
player.Calamity().angryDog = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
using Terraria;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class AbyssalDivingSuitBuff : ModBuff
|
||||
{
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Suit");
|
||||
@@ -17,8 +17,8 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>();
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (modPlayer.abyssalDivingSuitPrevious)
|
||||
{
|
||||
player.gills = true;
|
||||
@@ -42,5 +42,5 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class AbyssalDivingSuitPlates : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Suit Plates");
|
||||
Description.SetDefault("The plates will absorb 15% damage");
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Suit Plates");
|
||||
Description.SetDefault("The plates will absorb 15% damage");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().abyssalDivingSuitPlates = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().abyssalDivingSuitPlates = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +1,34 @@
|
||||
using Terraria;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.World;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class AdrenalineMode : ModBuff
|
||||
{
|
||||
public static string RevTip = "150% damage boost. Can burnout down to 49.5%.";
|
||||
public static string DeathTip = "500% damage boost. Can burnout down to 165%.";
|
||||
{
|
||||
public static string RevTip = "150% damage boost. Can burnout down to 49.5%.";
|
||||
public static string DeathTip = "500% damage boost. Can burnout down to 165%.";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Adrenaline Mode");
|
||||
Description.SetDefault(RevTip);
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Adrenaline Mode");
|
||||
Description.SetDefault(RevTip);
|
||||
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.GetCalamityPlayer().adrenalineMode = true;
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().adrenalineMode = true;
|
||||
}
|
||||
|
||||
public override void ModifyBuffTip(ref string tip, ref int rare)
|
||||
{
|
||||
if (CalamityWorld.death)
|
||||
tip = DeathTip;
|
||||
}
|
||||
}
|
||||
public override void ModifyBuffTip(ref string tip, ref int rare)
|
||||
{
|
||||
if (CalamityWorld.death)
|
||||
tip = DeathTip;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class Afflicted : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Afflicted");
|
||||
Description.SetDefault("Empowered by otherworldly spirits");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Afflicted");
|
||||
Description.SetDefault("Empowered by otherworldly spirits");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetCalamityPlayer().afflicted = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().afflicted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,26 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class ChaosCandle : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaos Candle");
|
||||
Description.SetDefault("Spawn rates around the candle are boosted!");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Chaos Candle");
|
||||
Description.SetDefault("Spawn rates around the candle are boosted!");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
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.GetCalamityPlayer().chaosCandle = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().chaosCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
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 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.GetCalamityPlayer().cFreeze = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().cFreeze = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
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 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.GetCalamityPlayer().godSlayerCooldown = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().godSlayerCooldown = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
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 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.GetCalamityPlayer().graxDefense = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().graxDefense = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loaded 100 of 3561 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user