Internally renamed difficulty items.

This commit is contained in:
Ozzatron committed 2022-06-11 13:27:54 -04:00
1 parent 8221df8bdb
commit c4aae14f11
9 files changed
+15 -12

No files matched your search

+1 -1
View File
@@ -368,7 +368,7 @@ namespace CalamityMod
new("ChilledWaterRework", ItemID.ArcticDivingGear),
new("ForceTownSafety", ItemID.Sunflower),
new("RipperMeterShake", ModContent.ItemType<Revenge>()),
new("RipperMeterShake", ModContent.ItemType<RevengeanceModeItem>()),
new("RageMeterPosX", ItemID.LaserRuler),
new("RageMeterPosY", ItemID.LaserRuler),
new("AdrenalineMeterPosX", ItemID.LaserRuler),
@@ -8,12 +8,13 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.DifficultyItems
{
public class Death : ModItem
[LegacyName("Death")]
public class DeathModeItem : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
DisplayName.SetDefault("Death");
DisplayName.SetDefault("Satanic Scepter of Death");
Tooltip.SetDefault("Enables/disables Death Mode, can only be used in Revengeance Mode.\n" +
// Rev Mode line
File renamed without changes.

Before

Width:  |  Height:  |  Size: 990 B

After

Width:  |  Height:  |  Size: 990 B

@@ -9,14 +9,15 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.DifficultyItems
{
public class Malice : ModItem
[LegacyName("Malice")]
public class MaliceModeItem : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
DisplayName.SetDefault("Malice");
DisplayName.SetDefault("Tormented Mind of Malice");
Tooltip.SetDefault("Enables/disables Malice Mode, can only be used in Death Mode.\n" +
// Overall description and warning lines
@@ -52,14 +53,14 @@ namespace CalamityMod.Items.DifficultyItems
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/DifficultyItems/Malice_Animated").Value;
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/DifficultyItems/MaliceModeItem_Animated").Value;
spriteBatch.Draw(texture, position, Item.GetCurrentFrame(ref frame, ref frameCounter, 8, 8), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/DifficultyItems/Malice_Animated").Value;
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/DifficultyItems/MaliceModeItem_Animated").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 8, 8), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 573 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -10,12 +10,13 @@ using System.Linq;
namespace CalamityMod.Items.DifficultyItems
{
public class Revenge : ModItem
[LegacyName("Revenge")]
public class RevengeanceModeItem : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
DisplayName.SetDefault("Revengeance");
DisplayName.SetDefault("Blood Fountain of Revengeance");
Tooltip.SetDefault("Enables/disables Revengeance Mode, can only be used in Expert Mode.\n" +
// Rage and Adrenaline lines
File renamed without changes.

Before

Width:  |  Height:  |  Size: 926 B

After

Width:  |  Height:  |  Size: 926 B

+3 -3
View File
@@ -55,9 +55,9 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.DropItem(s, player, ItemID.Chest, 3);
// Difficulty items (Revengeance, Death and Malice don't drop in Normal)
DropHelper.DropItemCondition(s, player, ModContent.ItemType<Revenge>(), Main.expertMode);
DropHelper.DropItemCondition(s, player, ModContent.ItemType<Death>(), Main.expertMode);
DropHelper.DropItemCondition(s, player, ModContent.ItemType<Malice>(), Main.expertMode);
DropHelper.DropItemCondition(s, player, ModContent.ItemType<RevengeanceModeItem>(), Main.expertMode);
DropHelper.DropItemCondition(s, player, ModContent.ItemType<DeathModeItem>(), Main.expertMode);
DropHelper.DropItemCondition(s, player, ModContent.ItemType<MaliceModeItem>(), Main.expertMode);
// The Lad
DropHelper.DropItemCondition(s, player, ModContent.ItemType<JoyfulHeart>(), player.name == "Aleksh" || player.name == "Shark Lad");