DeliciousMeat rerename to Divine Meat
This commit is contained in:
1 parent
ad43446fa4
commit
d17545f35f
7 files changed
+15
-15
No files matched your search
@@ -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<Texture2D> FadedStarRing;
|
||||
private static Asset<Texture2D> BloomFlare;
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 748 B After Width: | Height: | Size: 748 B |
@@ -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}
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
private static Asset<Texture2D> MagicStarCircle;
|
||||
private static Asset<Texture2D> FadedStarRing;
|
||||
private static Asset<Texture2D> DistortionTexture;
|
||||
private static Asset<Texture2D> DeliciousMeatTexture;
|
||||
private static Asset<Texture2D> 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<Texture2D>("CalamityMod/ExtraTextures/MagicStarCircle");
|
||||
FadedStarRing = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/FadedStarRing");
|
||||
DistortionTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Smudges");
|
||||
DeliciousMeatTexture = ModContent.Request<Texture2D>("CalamityMod/Items/Potions/Food/DeliciousMeat");
|
||||
DivineMeatTexture = ModContent.Request<Texture2D>("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<DeliciousMeat>());
|
||||
int meat = Item.NewItem(NPC.GetSource_GiftOrReward(), NPC.Center, ModContent.ItemType<DivineMeat>());
|
||||
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);
|
||||
|
||||
@@ -584,7 +584,7 @@ namespace CalamityMod.NPCs.Other
|
||||
{
|
||||
double pisquaredover6 = Math.Pow(MathHelper.Pi, 2) / 6;
|
||||
npcLoot.Add(ModContent.ItemType<SuspiciousLookingNOU>());
|
||||
npcLoot.Add(ModContent.ItemType<DeliciousMeat>(), 1, 22, (int)(pisquaredover6 * 100));
|
||||
npcLoot.Add(ModContent.ItemType<DivineMeat>(), 1, 22, (int)(pisquaredover6 * 100));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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<DeliciousMeat>() && Main.zenithWorld;
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<DivineMeat>() && Main.zenithWorld;
|
||||
if (vodka)
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<DeliciousMeat>();
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<DivineMeat>();
|
||||
else if (Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()))
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<CeremonialUrn>();
|
||||
else
|
||||
@@ -108,12 +108,12 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
public static bool AttemptToSummonSCal(int i, int j)
|
||||
{
|
||||
if (!Main.LocalPlayer.HasItem(ModContent.ItemType<AshesofCalamity>()) &&
|
||||
!Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType<DeliciousMeat>() && Main.zenithWorld))
|
||||
!Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType<DivineMeat>() && Main.zenithWorld))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool meat = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<DeliciousMeat>() && Main.zenithWorld;
|
||||
bool meat = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<DivineMeat>() && Main.zenithWorld;
|
||||
|
||||
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) || BossRushEvent.BossRushActive)
|
||||
return true;
|
||||
@@ -134,7 +134,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
|
||||
if (meat)
|
||||
{
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<DeliciousMeat>(), true);
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<DivineMeat>(), true);
|
||||
foreach (NPC n in Main.ActiveNPCs)
|
||||
{
|
||||
if (n.type == ModContent.NPCType<Archmage>())
|
||||
|
||||
@@ -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<DeliciousMeat>(), WorldGen.genRand.Next(200, 349 + 1)),
|
||||
new ChestItem(Main.rand.NextBool() ? ItemID.GasTrap : ItemID.Marshmallow, 1)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user