Replaced all tabs with spaces everywhere
This commit is contained in:
1 parent
a6d9bb54b9
commit
1cded2a64a
3137 files changed
+113067
-113067
No files matched your search
@@ -19,7 +19,7 @@ using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Balancing
|
||||
{
|
||||
public static class BalancingChangesManager
|
||||
public static class BalancingChangesManager
|
||||
{
|
||||
internal static List<IBalancingRule[]> UniversalBalancingChanges = null;
|
||||
internal static List<NPCBalancingChange> NPCSpecificBalancingChanges = null;
|
||||
|
||||
@@ -9,11 +9,11 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
{
|
||||
DisplayName.SetDefault("Alcohol Poisoning");
|
||||
Description.SetDefault("You drank too much and you are now dying");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
+61
-61
@@ -6,31 +6,31 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs
|
||||
{
|
||||
public class CalamityGlobalBuff : GlobalBuff
|
||||
public class CalamityGlobalBuff : GlobalBuff
|
||||
{
|
||||
public override void Update(int type, Player player, ref int buffIndex)
|
||||
{
|
||||
if (type == BuffID.Endurance)
|
||||
{
|
||||
player.endurance -= 0.05f;
|
||||
}
|
||||
else if (type == BuffID.MagicPower)
|
||||
{
|
||||
player.magicDamage -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.Panic)
|
||||
{
|
||||
player.moveSpeed -= 0.5f;
|
||||
}
|
||||
else if (type == BuffID.SugarRush)
|
||||
{
|
||||
player.moveSpeed -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.Swiftness)
|
||||
{
|
||||
player.moveSpeed -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.Shine)
|
||||
if (type == BuffID.Endurance)
|
||||
{
|
||||
player.endurance -= 0.05f;
|
||||
}
|
||||
else if (type == BuffID.MagicPower)
|
||||
{
|
||||
player.magicDamage -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.Panic)
|
||||
{
|
||||
player.moveSpeed -= 0.5f;
|
||||
}
|
||||
else if (type == BuffID.SugarRush)
|
||||
{
|
||||
player.moveSpeed -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.Swiftness)
|
||||
{
|
||||
player.moveSpeed -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.Shine)
|
||||
{
|
||||
player.Calamity().shine = true;
|
||||
}
|
||||
@@ -57,22 +57,22 @@ namespace CalamityMod.Buffs
|
||||
|
||||
public override void Update(int type, NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (type == BuffID.Webbed)
|
||||
{
|
||||
if (npc.Calamity().webbed < npc.buffTime[buffIndex])
|
||||
npc.Calamity().webbed = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().webbed;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
if (type == BuffID.Webbed)
|
||||
{
|
||||
if (npc.Calamity().webbed < npc.buffTime[buffIndex])
|
||||
npc.Calamity().webbed = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().webbed;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else if (type == BuffID.Slow)
|
||||
{
|
||||
if (npc.Calamity().slowed < npc.buffTime[buffIndex])
|
||||
npc.Calamity().slowed = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().slowed;
|
||||
npc.DelBuff(buffIndex);
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().slowed;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
if (type == BuffID.Electrified)
|
||||
@@ -88,28 +88,28 @@ namespace CalamityMod.Buffs
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
|
||||
// Vanilla buffs
|
||||
// Vanilla buffs
|
||||
switch (type)
|
||||
{
|
||||
case BuffID.Endurance:
|
||||
tip = "5% reduced damage";
|
||||
break;
|
||||
case BuffID.Endurance:
|
||||
tip = "5% reduced damage";
|
||||
break;
|
||||
|
||||
case BuffID.MagicPower:
|
||||
tip = "10% increased magic damage";
|
||||
break;
|
||||
case BuffID.MagicPower:
|
||||
tip = "10% increased magic damage";
|
||||
break;
|
||||
|
||||
case BuffID.Archery:
|
||||
tip = "20% increased arrow speed and 1.05x arrow damage";
|
||||
break;
|
||||
case BuffID.Archery:
|
||||
tip = "20% increased arrow speed and 1.05x arrow damage";
|
||||
break;
|
||||
|
||||
case BuffID.Swiftness:
|
||||
tip = "15% increased movement speed";
|
||||
break;
|
||||
case BuffID.Swiftness:
|
||||
tip = "15% increased movement speed";
|
||||
break;
|
||||
|
||||
case BuffID.SugarRush:
|
||||
tip = "10% increased movement speed and 20% increased mining speed";
|
||||
break;
|
||||
case BuffID.SugarRush:
|
||||
tip = "10% increased movement speed and 20% increased mining speed";
|
||||
break;
|
||||
|
||||
case BuffID.NebulaUpDmg1:
|
||||
tip = "7.5% increased damage";
|
||||
@@ -123,19 +123,19 @@ namespace CalamityMod.Buffs
|
||||
tip = "22.5% increased damage";
|
||||
break;
|
||||
|
||||
case BuffID.BeetleMight1:
|
||||
tip = "Melee damage increased by 10%";
|
||||
break;
|
||||
case BuffID.BeetleMight1:
|
||||
tip = "Melee damage increased by 10%";
|
||||
break;
|
||||
|
||||
case BuffID.BeetleMight2:
|
||||
tip = "Melee damage increased by 20%";
|
||||
break;
|
||||
case BuffID.BeetleMight2:
|
||||
tip = "Melee damage increased by 20%";
|
||||
break;
|
||||
|
||||
case BuffID.BeetleMight3:
|
||||
tip = "Melee damage increased by 30%";
|
||||
break;
|
||||
case BuffID.BeetleMight3:
|
||||
tip = "Melee damage increased by 30%";
|
||||
break;
|
||||
|
||||
case BuffID.BeetleEndurance1:
|
||||
case BuffID.BeetleEndurance1:
|
||||
tip = "Damage taken reduced by 10%";
|
||||
break;
|
||||
|
||||
@@ -170,7 +170,7 @@ namespace CalamityMod.Buffs
|
||||
break;
|
||||
|
||||
case BuffID.CursedInferno:
|
||||
tip += ". All damage taken increased by 20%";
|
||||
tip += ". All damage taken increased by 20%";
|
||||
break;
|
||||
|
||||
case BuffID.Warmth:
|
||||
|
||||
@@ -23,10 +23,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().aFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().aFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().aFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().aFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().astralInfection < npc.buffTime[buffIndex])
|
||||
npc.Calamity().astralInfection = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().astralInfection < npc.buffTime[buffIndex])
|
||||
npc.Calamity().astralInfection = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().banishingFire < npc.buffTime[buffIndex])
|
||||
npc.Calamity().banishingFire = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().banishingFire < npc.buffTime[buffIndex])
|
||||
npc.Calamity().banishingFire = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().bFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().bFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().bFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().bFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().bBlood < npc.buffTime[buffIndex])
|
||||
npc.Calamity().bBlood = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().bBlood < npc.buffTime[buffIndex])
|
||||
npc.Calamity().bBlood = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().cDepth < npc.buffTime[buffIndex])
|
||||
npc.Calamity().cDepth = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().cDepth < npc.buffTime[buffIndex])
|
||||
npc.Calamity().cDepth = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().dFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().dFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().dFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().dFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().gsInferno < npc.buffTime[buffIndex])
|
||||
npc.Calamity().gsInferno = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().gsInferno < npc.buffTime[buffIndex])
|
||||
npc.Calamity().gsInferno = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().hFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().hFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().hFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().hFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,10 +17,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().nightwither < npc.buffTime[buffIndex])
|
||||
npc.Calamity().nightwither = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().nightwither < npc.buffTime[buffIndex])
|
||||
npc.Calamity().nightwither = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().pFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().pFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().pFlames < npc.buffTime[buffIndex])
|
||||
npc.Calamity().pFlames = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,10 +16,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().shellfishVore < npc.buffTime[buffIndex])
|
||||
npc.Calamity().shellfishVore = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().shellfishVore < npc.buffTime[buffIndex])
|
||||
npc.Calamity().shellfishVore = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,10 +16,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().clamDebuff < npc.buffTime[buffIndex])
|
||||
npc.Calamity().clamDebuff = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().clamDebuff < npc.buffTime[buffIndex])
|
||||
npc.Calamity().clamDebuff = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().sulphurPoison < npc.buffTime[buffIndex])
|
||||
npc.Calamity().sulphurPoison = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().sulphurPoison < npc.buffTime[buffIndex])
|
||||
npc.Calamity().sulphurPoison = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,13 +18,13 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().vaporfied < npc.buffTime[buffIndex])
|
||||
npc.Calamity().vaporfied = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().vaporfied;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
if (npc.Calamity().vaporfied < npc.buffTime[buffIndex])
|
||||
npc.Calamity().vaporfied = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().vaporfied;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Mounts
|
||||
{
|
||||
public class AndromedaSmallBuff : ModBuff
|
||||
public class AndromedaSmallBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Mounts
|
||||
{
|
||||
public class DoGCartBuff : ModBuff
|
||||
public class DoGCartBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
+20
-20
@@ -5,25 +5,25 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Pets
|
||||
{
|
||||
public class PineappleBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Pineapple");
|
||||
Description.SetDefault("It smells like pizza...");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
public class PineappleBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Pineapple");
|
||||
Description.SetDefault("It smells like pizza...");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.Calamity().pineapplePet = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<PineapplePetProj>()] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<PineapplePetProj>(), 0, 0f, player.whoAmI);
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.Calamity().pineapplePet = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<PineapplePetProj>()] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<PineapplePetProj>(), 0, 0f, player.whoAmI);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Buffs.Pets
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
int bee = Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType<PlaguebringerBab>(), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[bee].frame = 2;
|
||||
Main.projectile[bee].frame = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Pets
|
||||
Description.SetDefault("The reaver orb will light your way");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
+20
-20
@@ -5,25 +5,25 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Pets
|
||||
{
|
||||
public class RotomBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Electric Troublemaker");
|
||||
Description.SetDefault("Lightning never strikes the same place twice");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
public class RotomBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Electric Troublemaker");
|
||||
Description.SetDefault("Lightning never strikes the same place twice");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.Calamity().rotomPet = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<RotomPet>()] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<RotomPet>(), 0, 0f, player.whoAmI);
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.Calamity().rotomPet = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<RotomPet>()] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<RotomPet>(), 0, 0f, player.whoAmI);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,10 +24,10 @@ namespace CalamityMod.Buffs.Placeables
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().yellowCandle < npc.buffTime[buffIndex])
|
||||
npc.Calamity().yellowCandle = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().yellowCandle < npc.buffTime[buffIndex])
|
||||
npc.Calamity().yellowCandle = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Buffs.Potions
|
||||
DisplayName.SetDefault("Penumbra");
|
||||
Description.SetDefault("Stealth regenerates 15% faster while moving\n" +
|
||||
"At night, stealth additionally regenerates 15% faster while standing still\n" +
|
||||
"Both boosts increase to 20% during a solar eclipse");
|
||||
"Both boosts increase to 20% during a solar eclipse");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.Potions
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.invis = true;
|
||||
player.invis = true;
|
||||
player.Calamity().shadow = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.Potions
|
||||
{
|
||||
DisplayName.SetDefault("Soaring");
|
||||
Description.SetDefault("Increased wing flight time and speed\n" +
|
||||
"True melee hits restore wing flight time");
|
||||
"True melee hits restore wing flight time");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
|
||||
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Potions
|
||||
{
|
||||
public class TeslaBuff : ModBuff
|
||||
public class TeslaBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -16,9 +16,9 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().omegaBlueHentai = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().omegaBlueHentai = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class AdrenalineMode : ModBuff
|
||||
public class AdrenalineMode : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().adrenalineModeActive = true;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().avertorBonus = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().avertorBonus = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,9 +16,9 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bloodflareFrenzy = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bloodflareFrenzy = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,16 +9,16 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
DisplayName.SetDefault("Bloody Boost");
|
||||
Description.SetDefault("Increased offensive and defensive stats\n" +
|
||||
"Healing potions grant more health");
|
||||
"Healing potions grant more health");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bloodPactBoost = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bloodPactBoost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
-13
@@ -10,23 +10,23 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
DisplayName.SetDefault("Boss Effects");
|
||||
Description.SetDefault("This tooltip is edited in the function below");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bossZen = true;
|
||||
}
|
||||
|
||||
public override void ModifyBuffTip(ref string tip, ref int rare)
|
||||
{
|
||||
tip = "The nearby boss is:\n" +
|
||||
"Greatly reducing enemy spawn rates\n" +
|
||||
"Disabling teleportation effects\n" +
|
||||
"Increasing Nurse healing cost by 400%\n" +
|
||||
"Disabling Target and Super Dummy hitboxes";
|
||||
}
|
||||
}
|
||||
public override void ModifyBuffTip(ref string tip, ref int rare)
|
||||
{
|
||||
tip = "The nearby boss is:\n" +
|
||||
"Greatly reducing enemy spawn rates\n" +
|
||||
"Disabling teleportation effects\n" +
|
||||
"Increasing Nurse healing cost by 400%\n" +
|
||||
"Disabling Target and Super Dummy hitboxes";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class BrimflameFrenzyBuff : ModBuff
|
||||
public class BrimflameFrenzyBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -12,9 +12,9 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,14 +12,14 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().hallowedPower = true;
|
||||
player.minionDamage += 0.1f;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().hallowedPower = true;
|
||||
player.minionDamage += 0.1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,14 +12,14 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.statDefense += 8;
|
||||
player.endurance += 0.04f;
|
||||
}
|
||||
player.statDefense += 8;
|
||||
player.endurance += 0.04f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().kamiBoost = true;
|
||||
if (player.buffTime[buffIndex] == 1)
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YanmeiKnifeExpire"), player.Center);
|
||||
if (player.buffTime[buffIndex] == 1)
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YanmeiKnifeExpire"), player.Center);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class Molten : ModBuff
|
||||
public class Molten : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
class PhantomicArmourBuff : ModBuff
|
||||
class PhantomicArmourBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
class PhantomicEmpowermentBuff : ModBuff
|
||||
class PhantomicEmpowermentBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,34 +27,34 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
public override void ModifyBuffTip(ref string tip, ref int rare)
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
if (player.Calamity().profanedCrystalBuffs)
|
||||
{
|
||||
if (player.Calamity().endoCooper)
|
||||
{
|
||||
tip = "An ascended ice construct is suppressing your true potential..";
|
||||
}
|
||||
else if (player.Calamity().magicHat)
|
||||
{
|
||||
tip = "A magical hat overwhelms your senses, squandering your true potential..";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool offense = (Main.dayTime && !player.wet) || player.lavaWet;
|
||||
bool enrage = player.statLife <= (int)(player.statLifeMax2 * 0.5);
|
||||
tip = "You are an emissary of the profaned goddess now!\n" +
|
||||
(offense ? "The " + (Main.dayTime ? "light of the sun" : "heat of the lava") + " empowers your offensive capabilities" :
|
||||
"The " + (player.wet ? (player.honeyWet ? "honey cools" : "water douses") : "darkness of night cools") + " your flames, empowering your defensive capabilities") +
|
||||
(enrage ? "\nYour weakened life force fuels your desperate attacks" : "");
|
||||
}
|
||||
}
|
||||
else if (CalamityWorld.downedSCal && CalamityWorld.downedExoMechs)
|
||||
{
|
||||
tip = "Your profaned soul is constrained by your insufficient summoning powers";
|
||||
}
|
||||
else
|
||||
{
|
||||
tip = !CalamityWorld.downedExoMechs ? "The soul within this crystal has been defiled by overwhelming energy waves from dangerous mechanations" : "The profaned soul within has been defiled by the powerful magic of a supreme witch";
|
||||
}
|
||||
}
|
||||
if (player.Calamity().profanedCrystalBuffs)
|
||||
{
|
||||
if (player.Calamity().endoCooper)
|
||||
{
|
||||
tip = "An ascended ice construct is suppressing your true potential..";
|
||||
}
|
||||
else if (player.Calamity().magicHat)
|
||||
{
|
||||
tip = "A magical hat overwhelms your senses, squandering your true potential..";
|
||||
}
|
||||
else
|
||||
{
|
||||
bool offense = (Main.dayTime && !player.wet) || player.lavaWet;
|
||||
bool enrage = player.statLife <= (int)(player.statLifeMax2 * 0.5);
|
||||
tip = "You are an emissary of the profaned goddess now!\n" +
|
||||
(offense ? "The " + (Main.dayTime ? "light of the sun" : "heat of the lava") + " empowers your offensive capabilities" :
|
||||
"The " + (player.wet ? (player.honeyWet ? "honey cools" : "water douses") : "darkness of night cools") + " your flames, empowering your defensive capabilities") +
|
||||
(enrage ? "\nYour weakened life force fuels your desperate attacks" : "");
|
||||
}
|
||||
}
|
||||
else if (CalamityWorld.downedSCal && CalamityWorld.downedExoMechs)
|
||||
{
|
||||
tip = "Your profaned soul is constrained by your insufficient summoning powers";
|
||||
}
|
||||
else
|
||||
{
|
||||
tip = !CalamityWorld.downedExoMechs ? "The soul within this crystal has been defiled by overwhelming energy waves from dangerous mechanations" : "The profaned soul within has been defiled by the powerful magic of a supreme witch";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
// Otherwise, Rage Mode ends instantly.
|
||||
else
|
||||
{
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/RageEnd"), player.position);
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AbilitySounds/RageEnd"), player.position);
|
||||
player.DelBuff(buffIndex--); // TML documentation requires you to decrement buffIndex if deleting the buff during Update.
|
||||
mp.rageModeActive = false;
|
||||
mp.rage = 0f;
|
||||
|
||||
@@ -12,13 +12,13 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.minionDamage += 0.1f;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.minionDamage += 0.1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,14 +12,14 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.statDefense += 6;
|
||||
player.endurance += 0.03f;
|
||||
}
|
||||
player.statDefense += 6;
|
||||
player.endurance += 0.03f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().tarragonCloak = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().tarragonCloak = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,9 +16,9 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().tarragonImmunity = true;
|
||||
}
|
||||
}
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().tarragonImmunity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,10 +20,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().aCrunch < npc.buffTime[buffIndex])
|
||||
npc.Calamity().aCrunch = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().aCrunch < npc.buffTime[buffIndex])
|
||||
npc.Calamity().aCrunch = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -23,10 +23,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().enraged < npc.buffTime[buffIndex])
|
||||
npc.Calamity().enraged = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().enraged < npc.buffTime[buffIndex])
|
||||
npc.Calamity().enraged = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,12 +18,12 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().eutrophication < npc.buffTime[buffIndex])
|
||||
npc.Calamity().eutrophication = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().eutrophication;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().eutrophication < npc.buffTime[buffIndex])
|
||||
npc.Calamity().eutrophication = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().eutrophication;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -18,12 +18,12 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().eFreeze < npc.buffTime[buffIndex])
|
||||
npc.Calamity().eFreeze = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().eFreeze;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().eFreeze < npc.buffTime[buffIndex])
|
||||
npc.Calamity().eFreeze = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().eFreeze;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -23,12 +23,12 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().gState < npc.buffTime[buffIndex])
|
||||
npc.Calamity().gState = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().gState;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().gState < npc.buffTime[buffIndex])
|
||||
npc.Calamity().gState = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().gState;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -23,10 +23,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().irradiated < npc.buffTime[buffIndex])
|
||||
npc.Calamity().irradiated = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().irradiated < npc.buffTime[buffIndex])
|
||||
npc.Calamity().irradiated = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
public class KamiDebuff : ModBuff
|
||||
public class KamiDebuff : ModBuff
|
||||
{
|
||||
public const float MultiplicativeDamageReduction = 0.8f;
|
||||
// Hard-cap for npc speed when afflicted with this debuff. Does not affect certain NPCs and does not affect any bosses (Basically only works on boss minions).
|
||||
@@ -22,12 +22,12 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().kamiFlu < npc.buffTime[buffIndex])
|
||||
npc.Calamity().kamiFlu = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().kamiFlu;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().kamiFlu < npc.buffTime[buffIndex])
|
||||
npc.Calamity().kamiFlu = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().kamiFlu;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -19,10 +19,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().marked < npc.buffTime[buffIndex])
|
||||
npc.Calamity().marked = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().marked < npc.buffTime[buffIndex])
|
||||
npc.Calamity().marked = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,10 +16,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().pearlAura < npc.buffTime[buffIndex])
|
||||
npc.Calamity().pearlAura = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().pearlAura < npc.buffTime[buffIndex])
|
||||
npc.Calamity().pearlAura = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,12 +18,12 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().tSad < npc.buffTime[buffIndex])
|
||||
npc.Calamity().tSad = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().tSad;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().tSad < npc.buffTime[buffIndex])
|
||||
npc.Calamity().tSad = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().tSad;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
public class TeslaFreeze : ModBuff
|
||||
public class TeslaFreeze : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -18,12 +18,12 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().tesla < npc.buffTime[buffIndex])
|
||||
npc.Calamity().tesla = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().tesla;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().tesla < npc.buffTime[buffIndex])
|
||||
npc.Calamity().tesla = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().tesla;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -19,12 +19,12 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().timeSlow < npc.buffTime[buffIndex])
|
||||
npc.Calamity().timeSlow = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().timeSlow;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().timeSlow < npc.buffTime[buffIndex])
|
||||
npc.Calamity().timeSlow = npc.buffTime[buffIndex];
|
||||
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().timeSlow;
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
/*public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -19,10 +19,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().wCleave < npc.buffTime[buffIndex])
|
||||
npc.Calamity().wCleave = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().wCleave < npc.buffTime[buffIndex])
|
||||
npc.Calamity().wCleave = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -22,10 +22,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().wDeath < npc.buffTime[buffIndex])
|
||||
npc.Calamity().wDeath = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().wDeath < npc.buffTime[buffIndex])
|
||||
npc.Calamity().wDeath = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
DisplayName.SetDefault("Wither");
|
||||
Description.SetDefault("Withered...\n" +
|
||||
"Defense reduced by 20"); // Literally Ichor but patron. Also not to be confused with Withered Armor/Weapons
|
||||
"Defense reduced by 20"); // Literally Ichor but patron. Also not to be confused with Withered Armor/Weapons
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
@@ -20,10 +20,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().wither < npc.buffTime[buffIndex])
|
||||
npc.Calamity().wither = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
if (npc.Calamity().wither < npc.buffTime[buffIndex])
|
||||
npc.Calamity().wither = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The valkyrie will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("Ancient yet so dangerous");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The aquatic star will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The mini astrageldon slime will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The astral probe will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The hydrothermic vent will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("A cute forest spirit is following you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The fighter jet will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The blood clot will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("Big happy family");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The brimstone elemental will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The brittle star will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -12,8 +12,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The squid will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("Calamitas and her brothers will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("A mini jungle dragon is following you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("A hot, searing flower is floating uncomfortably close to you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The cloud elemental will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class ColdDivinityBuff : ModBuff
|
||||
public class ColdDivinityBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -12,8 +12,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The magic of the ancient ice castle will aid you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The corroslime will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The powerful raven will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The cosmic energy will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The cosmic gunship will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The cosmilamp will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The crimslime will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The daedalus crystal will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The dank creeper will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("En garde");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The red devil will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("Does it want something from you?");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The elemental axe will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("The ascened Cooper will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
|
||||
Loaded 100 of 3137 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user