diff --git a/Buffs/Alcohol/FabsolVodkaBuff.cs b/Buffs/Alcohol/CirrusVodkaBuff.cs similarity index 83% rename from Buffs/Alcohol/FabsolVodkaBuff.cs rename to Buffs/Alcohol/CirrusVodkaBuff.cs index b74e8639c1..cf33f6dd41 100644 --- a/Buffs/Alcohol/FabsolVodkaBuff.cs +++ b/Buffs/Alcohol/CirrusVodkaBuff.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Buffs.Alcohol { - public class FabsolVodkaBuff : ModBuff + public class CirrusVodkaBuff : ModBuff { public override void SetStaticDefaults() { @@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.Alcohol public override void Update(Player player, ref int buffIndex) { - player.Calamity().fabsolVodka = true; + player.Calamity().cirrusVodka = true; } } } diff --git a/Buffs/Alcohol/FabsolVodkaBuff.png b/Buffs/Alcohol/CirrusVodkaBuff.png similarity index 100% rename from Buffs/Alcohol/FabsolVodkaBuff.png rename to Buffs/Alcohol/CirrusVodkaBuff.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 9e40cdbd62..b71ef315b8 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1279,7 +1279,7 @@ namespace CalamityMod.CalPlayer public bool zen = false; public bool isNearbyBoss = false; public bool flaskBrimstone = false; - public bool fabsolVodka = false; + public bool cirrusVodka = false; public bool mushy = false; public bool PinkJellyRegen = false; public bool GreenJellyRegen = false; @@ -2467,7 +2467,7 @@ namespace CalamityMod.CalPlayer trippy = false; amidiasBlessing = false; flaskBrimstone = false; - fabsolVodka = false; + cirrusVodka = false; shine = false; anechoicCoating = false; mushy = false; @@ -2959,7 +2959,7 @@ namespace CalamityMod.CalPlayer sulphurskin = false; baguette = false; flaskBrimstone = false; - fabsolVodka = false; + cirrusVodka = false; shine = false; anechoicCoating = false; mushy = false; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 85a7367b57..124fa4faef 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3300,8 +3300,8 @@ namespace CalamityMod.CalPlayer if (cirrusDress) Player.moveSpeed -= 0.2f; - if (fabsolVodka) - Player.GetDamage() += FabsolsVodka.DamageBoost; + if (cirrusVodka) + Player.GetDamage() += CirrusVodka.DamageBoost; if (vodka) { @@ -4594,10 +4594,10 @@ namespace CalamityMod.CalPlayer // Multiplicative defense reductions. // These are done last because they need to be after the defense lower cap at 0. - if (fabsolVodka) + if (cirrusVodka) { if (Player.statDefense > 0) - Player.statDefense -= (int)(Player.statDefense * FabsolsVodka.DefenseLossPercent); + Player.statDefense -= (int)(Player.statDefense * CirrusVodka.DefenseLossPercent); } if (vodka) diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index 526f103a46..982f343ba2 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -1761,8 +1761,8 @@ namespace CalamityMod.ILEditing #region Shimmer effect edits public static void ShimmerEffectEdits(Terraria.On_Item.orig_GetShimmered orig, Item self) { - // Don't keep the original stack amount when shimmering Fabsol's Vodka into Crystal Heart Vodka - if (self.type == ModContent.ItemType()) + // Don't keep the original stack amount when shimmering Cirrus' Vodka into Crystal Heart Vodka + if (self.type == ModContent.ItemType()) { self.SetDefaults(ModContent.ItemType()); self.shimmered = true; diff --git a/Items/Accessories/Vanity/CrystalHeartVodka.cs b/Items/Accessories/Vanity/CrystalHeartVodka.cs index d5c29472b1..ada7c260f7 100644 --- a/Items/Accessories/Vanity/CrystalHeartVodka.cs +++ b/Items/Accessories/Vanity/CrystalHeartVodka.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories.Vanity Item.height = 30; Item.accessory = true; - // Same as Fabsol's Vodka, due to the obtainment method being shimmering Fabsol's Vodka. + // Same as Cirrus' Vodka, due to the obtainment method being shimmering Cirrus' Vodka. Item.value = Item.sellPrice(silver: 30); Item.rare = ItemRarityID.LightRed; diff --git a/Items/Mounts/AlicornMount.cs b/Items/Mounts/AlicornMount.cs index fbb5893ba4..7b0199c8d5 100644 --- a/Items/Mounts/AlicornMount.cs +++ b/Items/Mounts/AlicornMount.cs @@ -111,7 +111,7 @@ namespace CalamityMod.Items.Mounts public override void UpdateEffects(Player player) { CalamityPlayer modPlayer = player.Calamity(); - if (modPlayer.fabsolVodka) + if (modPlayer.cirrusVodka) player.GetDamage() += 0.1f; if (player.velocity.Length() > 9f) diff --git a/Items/Mounts/Fabsol.cs b/Items/Mounts/PrincessSpiritinaBottle.cs similarity index 87% rename from Items/Mounts/Fabsol.cs rename to Items/Mounts/PrincessSpiritinaBottle.cs index 7858770328..26dec65edd 100644 --- a/Items/Mounts/Fabsol.cs +++ b/Items/Mounts/PrincessSpiritinaBottle.cs @@ -4,7 +4,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Mounts { - public class Fabsol : ModItem, ILocalizedModType + [LegacyName("Fabsol")] + public class PrincessSpiritinaBottle : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Mounts"; public override void SetDefaults() diff --git a/Items/Mounts/Fabsol.png b/Items/Mounts/PrincessSpiritinaBottle.png similarity index 100% rename from Items/Mounts/Fabsol.png rename to Items/Mounts/PrincessSpiritinaBottle.png diff --git a/Items/Potions/Alcohol/FabsolsVodka.cs b/Items/Potions/Alcohol/CirrusVodka.cs similarity index 89% rename from Items/Potions/Alcohol/FabsolsVodka.cs rename to Items/Potions/Alcohol/CirrusVodka.cs index c47a7f6660..4b59118bae 100644 --- a/Items/Potions/Alcohol/FabsolsVodka.cs +++ b/Items/Potions/Alcohol/CirrusVodka.cs @@ -9,7 +9,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Alcohol { - public class FabsolsVodka : ModItem, ILocalizedModType + [LegacyName("FabsolsVodka")] + public class CirrusVodka : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Potions"; @@ -30,7 +31,7 @@ namespace CalamityMod.Items.Potions.Alcohol public override void SetDefaults() { - Item.DefaultToFood(30, 42, ModContent.BuffType(), CalamityUtils.MinutesToFrames(15), true); + Item.DefaultToFood(30, 42, ModContent.BuffType(), CalamityUtils.MinutesToFrames(15), true); // Cirrus overcharges: 10% sell value instead of 20% Item.value = Item.sellPrice(silver: 30); Item.rare = ItemRarityID.LightRed; diff --git a/Items/Potions/Alcohol/FabsolsVodka.png b/Items/Potions/Alcohol/CirrusVodka.png similarity index 100% rename from Items/Potions/Alcohol/FabsolsVodka.png rename to Items/Potions/Alcohol/CirrusVodka.png diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index a14bf4da75..8c05baf6a7 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -19,6 +19,11 @@ CinnamonRollBuff: { Description: Mana regen rate and fire debuff damage increased, defense reduced } +CirrusVodkaBuff: { + DisplayName: Fab + Description: You feel fabulous +} + EverclearBuff: { DisplayName: Everclear Description: Damage increased, life regen and defense reduced @@ -29,11 +34,6 @@ EvergreenGinBuff: { Description: Sickness and water debuff damage increased, life regen reduced } -FabsolVodkaBuff: { - DisplayName: Fab - Description: You feel fabulous -} - FireballBuff: { DisplayName: Fireball Description: Fire debuff damage increased, life regen reduced diff --git a/Localization/en-US/Mods.CalamityMod.Items.Mounts.hjson b/Localization/en-US/Mods.CalamityMod.Items.Mounts.hjson index afffe3a8bb..609f6d8a11 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Mounts.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Mounts.hjson @@ -22,15 +22,6 @@ ExoThrone: { ''' } -Fabsol: { - DisplayName: Princess Spirit in a Bottle - Tooltip: - ''' - Summons the spirit of Cirrus, the Drunk Princess, in her alicorn form - Mounting will transform Cirrus, dismounting transforms her back - ''' -} - FollyFeed: { DisplayName: Folly Feed Tooltip: Summons a rideable monstrosity @@ -62,6 +53,15 @@ OnyxExcavatorKey: { ''' } +PrincessSpiritinaBottle: { + DisplayName: Princess Spirit in a Bottle + Tooltip: + ''' + Summons the spirit of Cirrus, the Drunk Princess, in her alicorn form + Mounting will transform Cirrus, dismounting transforms her back + ''' +} + SuspiciousLookingJellyBean: { DisplayName: Suspicious Looking Jelly Bean Tooltip: JELLY BEAN diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 2dc33bef1d..eda5f6d73f 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -192,6 +192,17 @@ CinnamonRoll: { ''' } +CirrusVodka: { + DisplayName: Cirrus' Vodka + Tooltip: + ''' + {0}% increased damage, but lowers defense by {1}% + Increases immune time after being struck + {$Common.AlcoholWarning} + This magical liquor is highly sought by those with a refined palate + ''' +} + Everclear: { DisplayName: Everclear Tooltip: @@ -215,17 +226,6 @@ EvergreenGin: { ''' } -FabsolsVodka: { - DisplayName: Fabsol's Vodka - Tooltip: - ''' - {0}% increased damage, but lowers defense by {1}% - Increases immune time after being struck - {$Common.AlcoholWarning} - This magical liquor is highly sought by those with a refined palate - ''' -} - Fireball: { DisplayName: Fireball Tooltip: diff --git a/Localization/en-US/Mods.CalamityMod.NPCs.hjson b/Localization/en-US/Mods.CalamityMod.NPCs.hjson index 89d5c32b52..645e40c537 100644 --- a/Localization/en-US/Mods.CalamityMod.NPCs.hjson +++ b/Localization/en-US/Mods.CalamityMod.NPCs.hjson @@ -343,7 +343,7 @@ DILF: { FAP: { DisplayName: Drunk Princess - Census.SpawnCondition: Have {$Items.Potions.FabsolsVodka.DisplayName} [i:CalamityMod/FabsolsVodka] in your inventory in Hardmode + Census.SpawnCondition: Have {$Items.Potions.CirrusVodka.DisplayName} [i:CalamityMod/CirrusVodka] in your inventory in Hardmode or defeat Calamitas Clone/Plantera Name.Cirrus: Cirrus Chat: { @@ -354,7 +354,7 @@ FAP: { BloodMoon2: If you're too lazy to craft potions normally, try Blood Orbs. Blood is fuel, dumbass. BloodMoon3: I'm trying to not be bitchy tonight, but it's hard when everyone else won't shut up. BloodMoonSlap1: Sorry, I have no moral compass at the moment. - BloodMoonSlap2: I could slap you... but you've done more for me than most. What do you need? + BloodMoonSlap2: I could slap you... but you've done more for me than most. What do you need? Normal1: I HATE WALMART! ...Anyway, what do you want this time? Normal2: Drink something that turns you into a magical flying unicorn so you can be just like me. Normal3: Deals so good I'll [$$!$] myself! ...Sorry, just had a minor stroke! diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index a35904f55e..40e1b12dbe 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1654,8 +1654,8 @@ DukeEditFailed: rev.Add(ItemID.FairyQueenMasterTrophy); rev.Add(ItemID.FairyQueenPetItem, 4); - // GFB Fabsol's Vodka and Terraformer drop - GFB.Add(ModContent.ItemType(), 1, 1, 9999, true); + // GFB Cirrus' Vodka and Terraformer drop + GFB.Add(ModContent.ItemType(), 1, 1, 9999, true); GFB.Add(ItemID.Clentaminator2, hideLootReport: true); // Lore diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index 8c7048a763..bae27cd57e 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -2701,8 +2701,8 @@ namespace CalamityMod.NPCs.DevourerofGods // Extraneous potions npcLoot.DefineConditionalDropSet(() => true).Add(DropHelper.PerPlayer(ModContent.ItemType(), 1, 5, 15), hideLootReport: true); // Healing Potions don't show up in the Bestiary - // Fabsol Mount - npcLoot.AddIf((info) => info.player.Calamity().fabsolVodka, ModContent.ItemType()); + // Alicorn Mount + npcLoot.AddIf((info) => info.player.Calamity().cirrusVodka, ModContent.ItemType()); // Normal drops: Everything that would otherwise be in the bag var normalOnly = npcLoot.DefineNormalOnlyDropSet(); diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 07ed357e60..73e8d2c5f5 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -3879,7 +3879,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas target.AddBuff(ModContent.BuffType(), MaxCirrusAlcoholDebuffDuration); break; case 5: - target.AddBuff(ModContent.BuffType(), MaxCirrusAlcoholDebuffDuration); + target.AddBuff(ModContent.BuffType(), MaxCirrusAlcoholDebuffDuration); break; case 6: target.AddBuff(ModContent.BuffType(), MaxCirrusAlcoholDebuffDuration); diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index 6f871a1778..59e1447c10 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -660,7 +660,7 @@ namespace CalamityMod.NPCs.TownNPCs foreach (Player player in Main.ActivePlayers) { - bool hasVodka = player.InventoryHas(ModContent.ItemType()) || player.PortableStorageHas(ModContent.ItemType()); + bool hasVodka = player.InventoryHas(ModContent.ItemType()) || player.PortableStorageHas(ModContent.ItemType()); if (hasVodka) return Main.hardMode; else @@ -802,10 +802,10 @@ namespace CalamityMod.NPCs.TownNPCs if (player.Calamity().aquaticHeart && !player.Calamity().aquaticHeartHide && ChildSafety.Disabled) dialogue.Add(this.GetLocalizedValue("Chat.HasAnahitaTrans")); - if (player.Calamity().fabsolVodka) + if (player.Calamity().cirrusVodka) dialogue.Add(this.GetLocalizedValue("Chat.HasVodka")); - if (player.HasItem(ModContent.ItemType())) + if (player.HasItem(ModContent.ItemType())) { dialogue.Add(this.GetLocalizedValue("Chat.HasAlicorn1")); dialogue.Add(this.GetLocalizedValue("Chat.HasAlicorn2")); @@ -885,7 +885,7 @@ namespace CalamityMod.NPCs.TownNPCs .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 3)) .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 3)) .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 3)) - .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 3)) + .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 3)) .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 4), Condition.DownedMechBossAll) .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 4), Condition.DownedMechBossAll) .AddWithCustomValue(ModContent.ItemType(), Item.buyPrice(gold: 4), Condition.DownedMechBossAll) diff --git a/Projectiles/Boss/CirrusVolatileVodkaBottle.cs b/Projectiles/Boss/CirrusVolatileVodkaBottle.cs index e4dc7f5c1c..753d43bf97 100644 --- a/Projectiles/Boss/CirrusVolatileVodkaBottle.cs +++ b/Projectiles/Boss/CirrusVolatileVodkaBottle.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Boss { public new string LocalizationCategory => "Projectiles.Boss"; - public override string Texture => "CalamityMod/Items/Potions/Alcohol/FabsolsVodka"; + public override string Texture => "CalamityMod/Items/Potions/Alcohol/CirrusVodka"; public override void SetDefaults() { @@ -97,7 +97,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, Player.HurtInfo info) { Projectile.Kill(); - target.AddBuff(ModContent.BuffType(), 54000); + target.AddBuff(ModContent.BuffType(), 54000); } } } diff --git a/Projectiles/Magic/FabRay.cs b/Projectiles/Magic/FabRay.cs index 48288510f6..6afbdea101 100644 --- a/Projectiles/Magic/FabRay.cs +++ b/Projectiles/Magic/FabRay.cs @@ -134,7 +134,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitPlayer(Player target, Player.HurtInfo info) { if (Projectile.hostile) - target.AddBuff(ModContent.BuffType(), 54000); + target.AddBuff(ModContent.BuffType(), 54000); } } } diff --git a/Systems/Collections/AmalgamBuffLists.cs b/Systems/Collections/AmalgamBuffLists.cs index 111cc58e73..468614edfb 100644 --- a/Systems/Collections/AmalgamBuffLists.cs +++ b/Systems/Collections/AmalgamBuffLists.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Systems.Collections BuffType(), BuffType(), BuffType(), - BuffType(), + BuffType(), BuffType(), BuffType(), BuffType(), diff --git a/Tiles/Furniture/CraftingStations/SCalAltar.cs b/Tiles/Furniture/CraftingStations/SCalAltar.cs index a6cc276be3..7ce3ad11d3 100644 --- a/Tiles/Furniture/CraftingStations/SCalAltar.cs +++ b/Tiles/Furniture/CraftingStations/SCalAltar.cs @@ -68,10 +68,10 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations public static void HoverItemIcon() { - bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && Main.zenithWorld; + bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && Main.zenithWorld; if (vodka) { - Main.LocalPlayer.cursorItemIconID = ModContent.ItemType(); + Main.LocalPlayer.cursorItemIconID = ModContent.ItemType(); } else if (Main.LocalPlayer.HasItem(ModContent.ItemType())) { @@ -94,12 +94,12 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations int top = j - tile.TileFrameY / 18; if (!Main.LocalPlayer.HasItem(ModContent.ItemType()) && - !Main.LocalPlayer.HasItem(ModContent.ItemType()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && Main.zenithWorld)) + !Main.LocalPlayer.HasItem(ModContent.ItemType()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && Main.zenithWorld)) { return true; } - bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && Main.zenithWorld; + bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && Main.zenithWorld; if (NPC.AnyNPCs(ModContent.NPCType()) || BossRushEvent.BossRushActive) return true; @@ -117,7 +117,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations if (vodka) { - Main.LocalPlayer.ConsumeItem(ModContent.ItemType(), true); + Main.LocalPlayer.ConsumeItem(ModContent.ItemType(), true); for (int f = 0; f < Main.maxNPCs; f++) { if (Main.npc[f].type == ModContent.NPCType() && Main.npc[f].active) diff --git a/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index 571acaf385..f241eb3142 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -464,7 +464,7 @@ namespace CalamityMod if (modPlayer.rampartOfDeities && hurtInfo.Damage > 200) extraIFrames += 30; - if (modPlayer.fabsolVodka) + if (modPlayer.cirrusVodka) { if (hurtInfo.Damage == 1) extraIFrames += 5;