GetCalamityPlayer usage
This commit is contained in:
1 parent
aa5265514f
commit
5fb83bc854
543 files changed
+731
-731
No files matched your search
@@ -1,6 +1,5 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Amidias
|
||||
{
|
||||
@@ -9,16 +8,16 @@ namespace CalamityMod.Buffs.Amidias
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Amidias' Blessing");
|
||||
Description.SetDefault("You are blessed by Amidias\n"
|
||||
+"Lets you breathe underwater, even in the Abyss!\n"
|
||||
+"Just don't get hit...");
|
||||
Description.SetDefault("You are blessed by Amidias" +
|
||||
"\nLets you breathe underwater, even in the Abyss!" +
|
||||
"\nJust don't get hit...");
|
||||
Main.debuff[Type] = false;
|
||||
Main.buffNoSave[Type] = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).amidiasBlessing = true;
|
||||
player.GetCalamityPlayer().amidiasBlessing = true;
|
||||
player.breath = player.breathMax + 91;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using Terraria;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Buffs.Amidias
|
||||
{
|
||||
public class HermitCrab : ModBuff
|
||||
public class HermitCrab : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -16,11 +16,12 @@ namespace CalamityMod.Buffs.Amidias
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("HermitCrab")] > 0)
|
||||
{
|
||||
modPlayer.hCrab = true;
|
||||
}
|
||||
|
||||
if (!modPlayer.hCrab)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Terraria;
|
||||
using CalamityMod.NPCs;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.NPCs;
|
||||
|
||||
namespace CalamityMod.Buffs.Amidias
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).aFlames = true;
|
||||
player.GetCalamityPlayer().aFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).astralInfection = true;
|
||||
player.GetCalamityPlayer().astralInfection = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bFlames = true;
|
||||
player.GetCalamityPlayer().bFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bBlood = true;
|
||||
player.GetCalamityPlayer().bBlood = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cDepth = true;
|
||||
player.GetCalamityPlayer().cDepth = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).gsInferno = true;
|
||||
player.GetCalamityPlayer().gsInferno = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).hInferno = true;
|
||||
player.GetCalamityPlayer().hInferno = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).hFlames = true;
|
||||
player.GetCalamityPlayer().hFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).lethalLavaBurn = true;
|
||||
player.GetCalamityPlayer().lethalLavaBurn = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).pFlames = true;
|
||||
player.GetCalamityPlayer().pFlames = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).shadowflame = true;
|
||||
player.GetCalamityPlayer().shadowflame = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.DoTDebuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).vHex = true;
|
||||
player.GetCalamityPlayer().vHex = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bloodyMary = true;
|
||||
player.GetCalamityPlayer().bloodyMary = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).blueCandle = true;
|
||||
player.GetCalamityPlayer().blueCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).caribbeanRum = true;
|
||||
player.GetCalamityPlayer().caribbeanRum = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cinnamonRoll = true;
|
||||
player.GetCalamityPlayer().cinnamonRoll = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).everclear = true;
|
||||
player.GetCalamityPlayer().everclear = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).evergreenGin = true;
|
||||
player.GetCalamityPlayer().evergreenGin = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fabsolVodka = true;
|
||||
player.GetCalamityPlayer().fabsolVodka = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fireball = true;
|
||||
player.GetCalamityPlayer().fireball = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).grapeBeer = true;
|
||||
player.GetCalamityPlayer().grapeBeer = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).margarita = true;
|
||||
player.GetCalamityPlayer().margarita = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).moonshine = true;
|
||||
player.GetCalamityPlayer().moonshine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).moscowMule = true;
|
||||
player.GetCalamityPlayer().moscowMule = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).pinkCandle = true;
|
||||
player.GetCalamityPlayer().pinkCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).purpleCandle = true;
|
||||
player.GetCalamityPlayer().purpleCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).redWine = true;
|
||||
player.GetCalamityPlayer().redWine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).rum = true;
|
||||
player.GetCalamityPlayer().rum = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).screwdriver = true;
|
||||
player.GetCalamityPlayer().screwdriver = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).starBeamRye = true;
|
||||
player.GetCalamityPlayer().starBeamRye = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).tequila = true;
|
||||
player.GetCalamityPlayer().tequila = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).tequilaSunrise = true;
|
||||
player.GetCalamityPlayer().tequilaSunrise = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).trippy = true;
|
||||
player.GetCalamityPlayer().trippy = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).vodka = true;
|
||||
player.GetCalamityPlayer().vodka = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).whiskey = true;
|
||||
player.GetCalamityPlayer().whiskey = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).whiteWine = true;
|
||||
player.GetCalamityPlayer().whiteWine = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Buffs.Fabsol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).yellowCandle = true;
|
||||
player.GetCalamityPlayer().yellowCandle = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.MountBuffs
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.Fab>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fab = true;
|
||||
player.GetCalamityPlayer().fab = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.MountBuffs
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.Crysthamyr>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).crysthamyr = true;
|
||||
player.GetCalamityPlayer().crysthamyr = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).akato = true;
|
||||
player.GetCalamityPlayer().akato = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Akato")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bearPet = true;
|
||||
player.GetCalamityPlayer().bearPet = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Bear")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).perfmini = true;
|
||||
player.GetCalamityPlayer().perfmini = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("PerforaMini")] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).brimling = true;
|
||||
player.GetCalamityPlayer().brimling = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Brimling")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
|
||||
player.GetModPlayer<CalamityPlayer>(mod).chibii = true;
|
||||
player.GetCalamityPlayer().chibii = true;
|
||||
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("ChibiiDoggo")] <= 0;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).trashMan = true;
|
||||
player.GetCalamityPlayer().trashMan = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("DannyDevito")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).fox = true;
|
||||
player.GetCalamityPlayer().fox = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Fox")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).kendra = true;
|
||||
player.GetCalamityPlayer().kendra = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Kendra")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).leviPet = true;
|
||||
player.GetCalamityPlayer().leviPet = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Levi")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).sirenPet = true;
|
||||
player.GetCalamityPlayer().sirenPet = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("SirenYoung")] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -22,14 +22,14 @@ namespace CalamityMod.Buffs.PetBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
if (modPlayer.thirdSageH && !player.dead)
|
||||
{
|
||||
player.statLife = player.statLifeMax2;
|
||||
modPlayer.thirdSageH = false;
|
||||
}
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).thirdSage = true;
|
||||
player.GetCalamityPlayer().thirdSage = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("ThirdSage")] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).aWeapon = true;
|
||||
player.GetCalamityPlayer().aWeapon = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).anechoicCoating = true;
|
||||
player.GetCalamityPlayer().anechoicCoating = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).armorCrumbling = true;
|
||||
player.GetCalamityPlayer().armorCrumbling = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).armorShattering = true;
|
||||
player.GetCalamityPlayer().armorShattering = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).astralInjection = true;
|
||||
player.GetCalamityPlayer().astralInjection = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).bounding = true;
|
||||
player.GetCalamityPlayer().bounding = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cadence = true;
|
||||
player.GetCalamityPlayer().cadence = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).calcium = true;
|
||||
player.GetCalamityPlayer().calcium = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).ceaselessHunger = true;
|
||||
player.GetCalamityPlayer().ceaselessHunger = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).draconicSurge = true;
|
||||
player.GetCalamityPlayer().draconicSurge = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).gravityNormalizer = true;
|
||||
player.GetCalamityPlayer().gravityNormalizer = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).holyWrath = true;
|
||||
player.GetCalamityPlayer().holyWrath = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).invincible = true;
|
||||
player.GetCalamityPlayer().invincible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).omniscience = true;
|
||||
player.GetCalamityPlayer().omniscience = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).penumbra = true;
|
||||
player.GetCalamityPlayer().penumbra = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).photosynthesis = true;
|
||||
player.GetCalamityPlayer().photosynthesis = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).profanedRage = true;
|
||||
player.GetCalamityPlayer().profanedRage = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).soaring = true;
|
||||
player.GetCalamityPlayer().soaring = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).tScale = true;
|
||||
player.GetCalamityPlayer().tScale = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).triumph = true;
|
||||
player.GetCalamityPlayer().triumph = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).yPower = true;
|
||||
player.GetCalamityPlayer().yPower = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).zen = true;
|
||||
player.GetCalamityPlayer().zen = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.PotionBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).zerg = true;
|
||||
player.GetCalamityPlayer().zerg = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Shrines
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).trinketOfChiBuff = true;
|
||||
player.GetCalamityPlayer().trinketOfChiBuff = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Shrines
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).corrEffigy = true;
|
||||
player.GetCalamityPlayer().corrEffigy = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Shrines
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).crimEffigy = true;
|
||||
player.GetCalamityPlayer().crimEffigy = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.Shrines
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
|
||||
CalamityPlayer modPlayer = player.GetCalamityPlayer();
|
||||
if (player.ownedProjectileCounts[mod.ProjectileType("GladiatorSword")] > 0)
|
||||
{
|
||||
modPlayer.glSword = true;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.Shrines
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.OnyxExcavator>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).onyxExcavator = true;
|
||||
player.GetCalamityPlayer().onyxExcavator = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.Shrines
|
||||
{
|
||||
player.mount.SetMount(mod.MountType<Items.Mounts.AngryDog>(), player);
|
||||
player.buffTime[buffIndex] = 10;
|
||||
player.GetModPlayer<CalamityPlayer>(mod).angryDog = true;
|
||||
player.GetCalamityPlayer().angryDog = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).abyssalDivingSuitPlates = true;
|
||||
player.GetCalamityPlayer().abyssalDivingSuitPlates = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).adrenalineMode = true;
|
||||
player.GetCalamityPlayer().adrenalineMode = true;
|
||||
}
|
||||
|
||||
public override void ModifyBuffTip(ref string tip, ref int rare)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).afflicted = true;
|
||||
player.GetCalamityPlayer().afflicted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).chaosCandle = true;
|
||||
player.GetCalamityPlayer().chaosCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).cFreeze = true;
|
||||
player.GetCalamityPlayer().cFreeze = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).godSlayerCooldown = true;
|
||||
player.GetCalamityPlayer().godSlayerCooldown = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).graxDefense = true;
|
||||
player.GetCalamityPlayer().graxDefense = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).hAttack = true;
|
||||
player.GetCalamityPlayer().hAttack = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).sirenIce = true;
|
||||
player.GetCalamityPlayer().sirenIce = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).molten = true;
|
||||
player.GetCalamityPlayer().molten = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).mushy = true;
|
||||
player.GetCalamityPlayer().mushy = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).rageMode = true;
|
||||
player.GetCalamityPlayer().rageMode = true;
|
||||
}
|
||||
|
||||
public override void ModifyBuffTip(ref string tip, ref int rare)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).rRage = true;
|
||||
player.GetCalamityPlayer().rRage = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).sMeleeBoost = true;
|
||||
player.GetCalamityPlayer().sMeleeBoost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).shellBoost = true;
|
||||
player.GetCalamityPlayer().shellBoost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).sirenWaterBuff = true;
|
||||
player.GetCalamityPlayer().sirenWaterBuff = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).tRegen = true;
|
||||
player.GetCalamityPlayer().tRegen = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.GetModPlayer<CalamityPlayer>(mod).tranquilityCandle = true;
|
||||
player.GetCalamityPlayer().tranquilityCandle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loaded 100 of 543 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user