From b87af113a3cae5bf944ed3b77bc330e2f7c5ebff Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 12 Jun 2022 00:30:54 -0400 Subject: [PATCH] Renamed Cirrus candle buffs --- .../{BlueSpeedCandle.cs => CirrusBlueCandleBuff.cs} | 4 ++-- ...BlueSpeedCandle.png => CirrusBlueCandleBuff.png} | Bin ...{PinkHealthCandle.cs => CirrusPinkCandleBuff.cs} | 2 +- ...inkHealthCandle.png => CirrusPinkCandleBuff.png} | Bin ...leDefenseCandle.cs => CirrusPurpleCandleBuff.cs} | 2 +- ...DefenseCandle.png => CirrusPurpleCandleBuff.png} | Bin ...lowDamageCandle.cs => CirrusYellowCandleBuff.cs} | 2 +- ...wDamageCandle.png => CirrusYellowCandleBuff.png} | Bin Tiles/Furniture/BlueCandle.cs | 2 +- Tiles/Furniture/PinkCandle.cs | 2 +- Tiles/Furniture/PurpleCandle.cs | 2 +- Tiles/Furniture/YellowCandle.cs | 8 ++++---- 12 files changed, 12 insertions(+), 12 deletions(-) rename Buffs/Placeables/{BlueSpeedCandle.cs => CirrusBlueCandleBuff.cs} (91%) rename Buffs/Placeables/{BlueSpeedCandle.png => CirrusBlueCandleBuff.png} (100%) rename Buffs/Placeables/{PinkHealthCandle.cs => CirrusPinkCandleBuff.cs} (93%) rename Buffs/Placeables/{PinkHealthCandle.png => CirrusPinkCandleBuff.png} (100%) rename Buffs/Placeables/{PurpleDefenseCandle.cs => CirrusPurpleCandleBuff.cs} (93%) rename Buffs/Placeables/{PurpleDefenseCandle.png => CirrusPurpleCandleBuff.png} (100%) rename Buffs/Placeables/{YellowDamageCandle.cs => CirrusYellowCandleBuff.cs} (95%) rename Buffs/Placeables/{YellowDamageCandle.png => CirrusYellowCandleBuff.png} (100%) diff --git a/Buffs/Placeables/BlueSpeedCandle.cs b/Buffs/Placeables/CirrusBlueCandleBuff.cs similarity index 91% rename from Buffs/Placeables/BlueSpeedCandle.cs rename to Buffs/Placeables/CirrusBlueCandleBuff.cs index 23db14b115..d3d141d068 100644 --- a/Buffs/Placeables/BlueSpeedCandle.cs +++ b/Buffs/Placeables/CirrusBlueCandleBuff.cs @@ -1,10 +1,10 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables { - public class BlueSpeedCandle : ModBuff + public class CirrusBlueCandleBuff : ModBuff { public override void SetStaticDefaults() { diff --git a/Buffs/Placeables/BlueSpeedCandle.png b/Buffs/Placeables/CirrusBlueCandleBuff.png similarity index 100% rename from Buffs/Placeables/BlueSpeedCandle.png rename to Buffs/Placeables/CirrusBlueCandleBuff.png diff --git a/Buffs/Placeables/PinkHealthCandle.cs b/Buffs/Placeables/CirrusPinkCandleBuff.cs similarity index 93% rename from Buffs/Placeables/PinkHealthCandle.cs rename to Buffs/Placeables/CirrusPinkCandleBuff.cs index d08088bd03..3acaf03243 100644 --- a/Buffs/Placeables/PinkHealthCandle.cs +++ b/Buffs/Placeables/CirrusPinkCandleBuff.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables { - public class PinkHealthCandle : ModBuff + public class CirrusPinkCandleBuff : ModBuff { public override void SetStaticDefaults() { diff --git a/Buffs/Placeables/PinkHealthCandle.png b/Buffs/Placeables/CirrusPinkCandleBuff.png similarity index 100% rename from Buffs/Placeables/PinkHealthCandle.png rename to Buffs/Placeables/CirrusPinkCandleBuff.png diff --git a/Buffs/Placeables/PurpleDefenseCandle.cs b/Buffs/Placeables/CirrusPurpleCandleBuff.cs similarity index 93% rename from Buffs/Placeables/PurpleDefenseCandle.cs rename to Buffs/Placeables/CirrusPurpleCandleBuff.cs index cdf04c79fb..c09beaa29f 100644 --- a/Buffs/Placeables/PurpleDefenseCandle.cs +++ b/Buffs/Placeables/CirrusPurpleCandleBuff.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables { - public class PurpleDefenseCandle : ModBuff + public class CirrusPurpleCandleBuff : ModBuff { public override void SetStaticDefaults() { diff --git a/Buffs/Placeables/PurpleDefenseCandle.png b/Buffs/Placeables/CirrusPurpleCandleBuff.png similarity index 100% rename from Buffs/Placeables/PurpleDefenseCandle.png rename to Buffs/Placeables/CirrusPurpleCandleBuff.png diff --git a/Buffs/Placeables/YellowDamageCandle.cs b/Buffs/Placeables/CirrusYellowCandleBuff.cs similarity index 95% rename from Buffs/Placeables/YellowDamageCandle.cs rename to Buffs/Placeables/CirrusYellowCandleBuff.cs index b7992069ab..c21982673d 100644 --- a/Buffs/Placeables/YellowDamageCandle.cs +++ b/Buffs/Placeables/CirrusYellowCandleBuff.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Buffs.Placeables { - public class YellowDamageCandle : ModBuff + public class CirrusYellowCandleBuff : ModBuff { public override void SetStaticDefaults() { diff --git a/Buffs/Placeables/YellowDamageCandle.png b/Buffs/Placeables/CirrusYellowCandleBuff.png similarity index 100% rename from Buffs/Placeables/YellowDamageCandle.png rename to Buffs/Placeables/CirrusYellowCandleBuff.png diff --git a/Tiles/Furniture/BlueCandle.cs b/Tiles/Furniture/BlueCandle.cs index edc5b6a257..ef259ea12b 100644 --- a/Tiles/Furniture/BlueCandle.cs +++ b/Tiles/Furniture/BlueCandle.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.Furniture if (player is null) return; if (!player.dead && player.active) - player.AddBuff(ModContent.BuffType(), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/Furniture/PinkCandle.cs b/Tiles/Furniture/PinkCandle.cs index f3549a1940..92fb97abfe 100644 --- a/Tiles/Furniture/PinkCandle.cs +++ b/Tiles/Furniture/PinkCandle.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.Furniture if (player is null) return; if (!player.dead && player.active) - player.AddBuff(ModContent.BuffType(), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/Furniture/PurpleCandle.cs b/Tiles/Furniture/PurpleCandle.cs index d033588282..92f5aa25df 100644 --- a/Tiles/Furniture/PurpleCandle.cs +++ b/Tiles/Furniture/PurpleCandle.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Tiles.Furniture if (player is null) return; if (!player.dead && player.active) - player.AddBuff(ModContent.BuffType(), 20); + player.AddBuff(ModContent.BuffType(), 20); } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) diff --git a/Tiles/Furniture/YellowCandle.cs b/Tiles/Furniture/YellowCandle.cs index a1b486ce01..6022f1032f 100644 --- a/Tiles/Furniture/YellowCandle.cs +++ b/Tiles/Furniture/YellowCandle.cs @@ -40,19 +40,19 @@ namespace CalamityMod.Tiles.Furniture Player player = Main.LocalPlayer; if (player == null || !player.active || player.dead) return; - player.AddBuff(ModContent.BuffType(), 20); + player.AddBuff(ModContent.BuffType(), 20); if (Main.netMode != NetmodeID.MultiplayerClient) { for (int m = 0; m < Main.maxNPCs; m++) { if (Main.npc[m].active && !Main.npc[m].friendly) { - Main.npc[m].buffImmune[ModContent.BuffType()] = false; + Main.npc[m].buffImmune[ModContent.BuffType()] = false; if (Main.npc[m].Calamity().DR >= 0.99f) { - Main.npc[m].buffImmune[ModContent.BuffType()] = true; + Main.npc[m].buffImmune[ModContent.BuffType()] = true; } - Main.npc[m].AddBuff(ModContent.BuffType(), 20, false); + Main.npc[m].AddBuff(ModContent.BuffType(), 20, false); } } }