diff --git a/Items/Potions/Food/DeliciousMeat.cs b/Items/Potions/Food/DivineMeat.cs similarity index 98% rename from Items/Potions/Food/DeliciousMeat.cs rename to Items/Potions/Food/DivineMeat.cs index 1dec5c6c86..1970dce0b5 100644 --- a/Items/Potions/Food/DeliciousMeat.cs +++ b/Items/Potions/Food/DivineMeat.cs @@ -15,7 +15,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions.Food { - public class DeliciousMeat : ModItem, ILocalizedModType + [LegacyName("DeliciousMeat")] + public class DivineMeat : ModItem, ILocalizedModType { private static Asset FadedStarRing; private static Asset BloomFlare; diff --git a/Items/Potions/Food/DeliciousMeat.png b/Items/Potions/Food/DivineMeat.png similarity index 100% rename from Items/Potions/Food/DeliciousMeat.png rename to Items/Potions/Food/DivineMeat.png diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index 68c663ac6f..064be5b7fe 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -60,8 +60,8 @@ CeaselessHungerPotion: { Tooltip: Causes you to suck up all items in the world } -DeliciousMeat: { - DisplayName: Delicious Meat +DivineMeat: { + DisplayName: Divine Meat Tooltip: ''' {$CommonItemTooltip.MediumStats} diff --git a/NPCs/NormalNPCs/DivineSwine.cs b/NPCs/NormalNPCs/DivineSwine.cs index e0c79ae7ef..c161fd7aca 100644 --- a/NPCs/NormalNPCs/DivineSwine.cs +++ b/NPCs/NormalNPCs/DivineSwine.cs @@ -48,7 +48,7 @@ namespace CalamityMod.NPCs.NormalNPCs private static Asset MagicStarCircle; private static Asset FadedStarRing; private static Asset DistortionTexture; - private static Asset DeliciousMeatTexture; + private static Asset DivineMeatTexture; private static SoundStyle IdleSound = new("CalamityMod/Sounds/Custom/DivineSwine/DivineSwineIdle", 4); private static SoundStyle CoinFailSound = new("CalamityMod/Sounds/Custom/DivineSwine/DivineSwineCoinFail", 3); @@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.NormalNPCs MagicStarCircle = ModContent.Request("CalamityMod/ExtraTextures/MagicStarCircle"); FadedStarRing = ModContent.Request("CalamityMod/ExtraTextures/FadedStarRing"); DistortionTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Smudges"); - DeliciousMeatTexture = ModContent.Request("CalamityMod/Items/Potions/Food/DeliciousMeat"); + DivineMeatTexture = ModContent.Request("CalamityMod/Items/Potions/Food/DivineMeat"); } } @@ -403,12 +403,12 @@ namespace CalamityMod.NPCs.NormalNPCs } } - // Delicious meat granted + // Divine meat granted if (Timer == 210f) { if (Main.netMode != NetmodeID.MultiplayerClient) { - int meat = Item.NewItem(NPC.GetSource_GiftOrReward(), NPC.Center, ModContent.ItemType()); + int meat = Item.NewItem(NPC.GetSource_GiftOrReward(), NPC.Center, ModContent.ItemType()); Main.item[meat].velocity = Vector2.UnitY * -3f; } @@ -879,7 +879,7 @@ namespace CalamityMod.NPCs.NormalNPCs { float rotation = (float)(Main.timeForVisualEffects / MathHelper.Pi * 0.08f) + NPC.whoAmI; Vector2 backglowDrawPosition = drawPosition + Vector2.UnitX.RotatedBy(i * MathHelper.TwoPi / backShadowCount + rotation) * backShadowDistance; - spriteBatch.Draw(DeliciousMeatTexture.Value, backglowDrawPosition, DeliciousMeatTexture.Value.Frame(1, 3), NPC.GetAlpha(Color.White) * backShadowInterpolant, NPC.rotation, DeliciousMeatTexture.Value.Frame(1, 3).Size() * 0.5f, 1f, 0, 0f); + spriteBatch.Draw(DivineMeatTexture.Value, backglowDrawPosition, DivineMeatTexture.Value.Frame(1, 3), NPC.GetAlpha(Color.White) * backShadowInterpolant, NPC.rotation, DivineMeatTexture.Value.Frame(1, 3).Size() * 0.5f, 1f, 0, 0f); } spriteBatch.SetBlendState(BlendState.AlphaBlend); diff --git a/NPCs/Other/THELORDE.cs b/NPCs/Other/THELORDE.cs index 3db309786d..8124cd8d6a 100644 --- a/NPCs/Other/THELORDE.cs +++ b/NPCs/Other/THELORDE.cs @@ -584,7 +584,7 @@ namespace CalamityMod.NPCs.Other { double pisquaredover6 = Math.Pow(MathHelper.Pi, 2) / 6; npcLoot.Add(ModContent.ItemType()); - npcLoot.Add(ModContent.ItemType(), 1, 22, (int)(pisquaredover6 * 100)); + npcLoot.Add(ModContent.ItemType(), 1, 22, (int)(pisquaredover6 * 100)); } } } diff --git a/Tiles/Furniture/CraftingStations/SCalAltar.cs b/Tiles/Furniture/CraftingStations/SCalAltar.cs index 3155bbb446..b527d468e6 100644 --- a/Tiles/Furniture/CraftingStations/SCalAltar.cs +++ b/Tiles/Furniture/CraftingStations/SCalAltar.cs @@ -79,9 +79,9 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations public static void HoverItemIcon(int i, int j) { - 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())) Main.LocalPlayer.cursorItemIconID = ModContent.ItemType(); else @@ -108,12 +108,12 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations public static bool AttemptToSummonSCal(int i, int j) { 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 meat = Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && Main.zenithWorld; + bool meat = Main.LocalPlayer.HeldItem.type == ModContent.ItemType() && Main.zenithWorld; if (NPC.AnyNPCs(ModContent.NPCType()) || BossRushEvent.BossRushActive) return true; @@ -134,7 +134,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations if (meat) { - Main.LocalPlayer.ConsumeItem(ModContent.ItemType(), true); + Main.LocalPlayer.ConsumeItem(ModContent.ItemType(), true); foreach (NPC n in Main.ActiveNPCs) { if (n.type == ModContent.NPCType()) diff --git a/World/UndergroundShrines.cs b/World/UndergroundShrines.cs index 9d02088c97..92f106df70 100644 --- a/World/UndergroundShrines.cs +++ b/World/UndergroundShrines.cs @@ -451,7 +451,6 @@ namespace CalamityMod.World new ChestItem(ItemID.IceTorch, WorldGen.genRand.Next(100, 110 + 1)), new ChestItem(ItemID.GoldCoin, WorldGen.genRand.Next(8, 10 + 1)), new ChestItem(ItemID.Eggnog, WorldGen.genRand.Next(10, 12 + 1)), - new ChestItem(ItemType(), WorldGen.genRand.Next(200, 349 + 1)), new ChestItem(Main.rand.NextBool() ? ItemID.GasTrap : ItemID.Marshmallow, 1) }; }