diff --git a/CalPlayer/DrawLayers/HatExtensionLayer.cs b/CalPlayer/DrawLayers/HatExtensionLayer.cs
index 0aa9992ebf..9fc472b4b1 100644
--- a/CalPlayer/DrawLayers/HatExtensionLayer.cs
+++ b/CalPlayer/DrawLayers/HatExtensionLayer.cs
@@ -15,14 +15,19 @@ namespace CalamityMod.CalPlayer.DrawLayers
protected override void Draw(ref PlayerDrawSet drawInfo)
{
+ //Todo : Make this work even for accessories by somehow checking for the players.head equipslot's item instead of the head item.
Player drawPlayer = drawInfo.drawPlayer;
- int headItemType = drawPlayer.armor[0].type;
- if (drawPlayer.armor[10].type > ItemID.None)
- headItemType = drawPlayer.armor[10].type;
+ Item headItem = drawPlayer.armor[0];
- if (ModContent.GetModItem(headItemType) is IExtendedHat extendedHatDrawer)
+ if (drawPlayer.armor[10].type > ItemID.None)
+ headItem = drawPlayer.armor[10];
+
+ if (ModContent.GetModItem(headItem.type) is IExtendedHat extendedHatDrawer)
{
- if (extendedHatDrawer.PreDrawExtension(drawInfo) && !drawInfo.drawPlayer.dead)
+ string equipSlotName = extendedHatDrawer.EquipSlotName(drawPlayer) != "" ? extendedHatDrawer.EquipSlotName(drawPlayer) : headItem.Name;
+ int equipSlot = EquipLoader.GetEquipSlot(Mod, equipSlotName, EquipType.Head);
+
+ if (extendedHatDrawer.PreDrawExtension(drawInfo) && !drawInfo.drawPlayer.dead && equipSlot == drawPlayer.head)
{
int dyeShader = drawPlayer.dye?[0].dye ?? 0;
diff --git a/CalPlayer/DrawLayers/IExtendedHat.cs b/CalPlayer/DrawLayers/IExtendedHat.cs
index 40a569380c..499f7415e5 100644
--- a/CalPlayer/DrawLayers/IExtendedHat.cs
+++ b/CalPlayer/DrawLayers/IExtendedHat.cs
@@ -1,5 +1,6 @@
using Microsoft.Xna.Framework;
using Terraria.DataStructures;
+using Terraria;
public interface IExtendedHat
{
@@ -15,4 +16,10 @@ public interface IExtendedHat
///Return true to make the extension get drawn automatically from the texture and offsets provided. Return false if you want to draw it yourself
///
bool PreDrawExtension(PlayerDrawSet drawInfo) => true;
+
+ ///
+ /// The name of the equip slot for the item. If left empty, the equip slot that is looked for will use the name of the item.
+ /// Useful if you have multiple head textures you need to extend.
+ ///
+ string EquipSlotName(Player drawPlayer) => "";
}
diff --git a/Items/Accessories/Vanity/AbandonnedWulfrumHelmet.cs b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet.cs
new file mode 100644
index 0000000000..17d86e6eca
--- /dev/null
+++ b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet.cs
@@ -0,0 +1,107 @@
+using CalamityMod.CalPlayer;
+using Terraria;
+using Terraria.DataStructures;
+using Terraria.ID;
+using Terraria.ModLoader;
+using Terraria.Audio;
+
+namespace CalamityMod.Items.Accessories.Vanity
+{
+ [AutoloadEquip(EquipType.Head)]
+ public class AbandonnedWulfrumHelmet : ModItem
+ {
+ public override void Load()
+ {
+ if (Main.netMode != NetmodeID.Server)
+ {
+ EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_HeadSet", EquipType.Head, name: "WulfrumOldSetHead");
+ EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Body", EquipType.Body, this);
+ EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Legs", EquipType.Legs, this);
+ }
+ }
+
+ public override void SetStaticDefaults()
+ {
+ SacrificeTotal = 1;
+ DisplayName.SetDefault("Abandonned Wulfrum Helmet");
+ Tooltip.SetDefault("A worn and rusty helmet ressembling older models of wulfrum armor\n" +
+ //Could include lore about how X kind of people used to wear it. Like "Streets used to be filled with people of The Resistance wearing this cheap yet effective armor.
+ "Transforms the holder into a wulfrum robot\n" +
+ "Can also be worn in the helmet slot as a regular helm");
+
+ if (Main.netMode == NetmodeID.Server)
+ return;
+
+ int equipSlotHead = EquipLoader.GetEquipSlot(Mod, "WulfrumOldSetHead", EquipType.Head);
+ ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
+
+ int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
+ ArmorIDs.Body.Sets.HidesTopSkin[equipSlotBody] = true;
+ ArmorIDs.Body.Sets.HidesArms[equipSlotBody] = true;
+
+ int equipSlotLegs = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs);
+ ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true;
+ }
+
+ public override void SetDefaults()
+ {
+ Item.width = 26;
+ Item.height = 30;
+ Item.accessory = true;
+ Item.value = CalamityGlobalItem.Rarity1BuyPrice;
+ Item.rare = ItemRarityID.Green;
+ Item.vanity = true;
+ }
+
+ public override void UpdateVanity(Player player)
+ {
+ player.GetModPlayer().vanityEquiped = true;
+ }
+
+ public override void UpdateAccessory(Player player, bool hideVisual)
+ {
+ if (!hideVisual)
+ player.GetModPlayer().vanityEquiped = true;
+ }
+ }
+
+ public class WulfrumTransformationPlayer : ModPlayer
+ {
+ public bool vanityEquiped = false;
+ public int hurtSoundTimer;
+
+ public override void ResetEffects()
+ {
+ vanityEquiped = false;
+ }
+
+ public override void FrameEffects()
+ {
+ if (vanityEquiped)
+ {
+ Player.legs = EquipLoader.GetEquipSlot(Mod, "AbandonnedWulfrumHelmet", EquipType.Legs);
+ Player.body = EquipLoader.GetEquipSlot(Mod, "AbandonnedWulfrumHelmet", EquipType.Body);
+ Player.head = EquipLoader.GetEquipSlot(Mod, "WulfrumOldSetHead", EquipType.Head);
+ Player.face = -1;
+ }
+ }
+
+ public override void PostUpdateMiscEffects()
+ {
+ if (hurtSoundTimer > 0)
+ hurtSoundTimer--;
+ }
+
+ public override bool PreHurt(bool pvp, bool quiet, ref int damage, ref int hitDirection, ref bool crit, ref bool customDamage, ref bool playSound, ref bool genGore, ref PlayerDeathReason damageSource)
+ {
+ if (vanityEquiped && hurtSoundTimer == 0)
+ {
+ playSound = false;
+ SoundEngine.PlaySound(SoundID.NPCHit4, Player.position);
+ hurtSoundTimer = 10;
+ }
+
+ return base.PreHurt(pvp, quiet, ref damage, ref hitDirection, ref crit, ref customDamage, ref playSound, ref genGore, ref damageSource);
+ }
+ }
+}
diff --git a/Items/Accessories/Vanity/AbandonnedWulfrumHelmet.png b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet.png
new file mode 100644
index 0000000000..35e1b18178
Binary files /dev/null and b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet.png differ
diff --git a/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Body.png b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Body.png
new file mode 100644
index 0000000000..a03c783ea9
Binary files /dev/null and b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Body.png differ
diff --git a/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Head.png b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Head.png
new file mode 100644
index 0000000000..e6ad485960
Binary files /dev/null and b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Head.png differ
diff --git a/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_HeadSet.png b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_HeadSet.png
new file mode 100644
index 0000000000..ecafe90f05
Binary files /dev/null and b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_HeadSet.png differ
diff --git a/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Legs.png b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Legs.png
new file mode 100644
index 0000000000..8583861f46
Binary files /dev/null and b/Items/Accessories/Vanity/AbandonnedWulfrumHelmet_Legs.png differ
diff --git a/Items/Accessories/WulfrumAcrobaticsPack.cs b/Items/Accessories/WulfrumAcrobaticsPack.cs
index 4fef27897f..5acdda656a 100644
--- a/Items/Accessories/WulfrumAcrobaticsPack.cs
+++ b/Items/Accessories/WulfrumAcrobaticsPack.cs
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient(ItemID.Chain, 2).
- AddIngredient(6).
+ AddIngredient(6).
AddIngredient(1).
AddTile(TileID.Anvils).
Register();
diff --git a/Items/Armor/Wulfrum/WulfrumHat.cs b/Items/Armor/Wulfrum/WulfrumHat.cs
index 325266f1b6..d9217bdd55 100644
--- a/Items/Armor/Wulfrum/WulfrumHat.cs
+++ b/Items/Armor/Wulfrum/WulfrumHat.cs
@@ -24,6 +24,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
{
public string ExtensionTexture => "CalamityMod/Items/Armor/Wulfrum/WulfrumHat_HeadExtension";
public Vector2 ExtensionSpriteOffset(PlayerDrawSet drawInfo) => -Vector2.UnitY * 2f;
+ public string EquipSlotName(Player drawPlayer) => drawPlayer.Male ? Name : "WulfrumHatFemale";
public override void Load()
{
@@ -77,7 +78,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(5).
+ AddIngredient(5).
AddIngredient().
AddTile(TileID.Anvils).
Register();
diff --git a/Items/Armor/Wulfrum/WulfrumJacket.cs b/Items/Armor/Wulfrum/WulfrumJacket.cs
index 1cc1107102..67452a8c7d 100644
--- a/Items/Armor/Wulfrum/WulfrumJacket.cs
+++ b/Items/Armor/Wulfrum/WulfrumJacket.cs
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(12).
+ AddIngredient(12).
AddIngredient().
AddTile(TileID.Anvils).
Register();
diff --git a/Items/Armor/Wulfrum/WulfrumOveralls.cs b/Items/Armor/Wulfrum/WulfrumOveralls.cs
index 57d9d31583..9131801b0e 100644
--- a/Items/Armor/Wulfrum/WulfrumOveralls.cs
+++ b/Items/Armor/Wulfrum/WulfrumOveralls.cs
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(8).
+ AddIngredient(8).
AddIngredient().
AddTile(TileID.Anvils).
Register();
diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs
index 177b0e516e..b600276188 100644
--- a/Items/CalamityGlobalItemLoot.cs
+++ b/Items/CalamityGlobalItemLoot.cs
@@ -257,13 +257,13 @@ namespace CalamityMod.Items
case ItemID.WoodenCrate:
case ItemID.WoodenCrateHard:
BlockCrateDrops();
- DropHelper.DropItemChance(s, player, ModContent.ItemType(), 0.25f, 3, 5);
+ DropHelper.DropItemChance(s, player, ModContent.ItemType(), 0.25f, 3, 5);
break;
case ItemID.IronCrate:
case ItemID.IronCrateHard:
BlockCrateDrops();
- DropHelper.DropItemChance(s, player, ModContent.ItemType(), 0.25f, 5, 8);
+ DropHelper.DropItemChance(s, player, ModContent.ItemType(), 0.25f, 5, 8);
DropHelper.DropItemChance(s, player, ModContent.ItemType(), 0.25f, 5, 8);
break;
diff --git a/Items/Fishing/FishingRods/WulfrumRod.cs b/Items/Fishing/FishingRods/WulfrumRod.cs
index ed4c1d1979..e0fce5c5a9 100644
--- a/Items/Fishing/FishingRods/WulfrumRod.cs
+++ b/Items/Fishing/FishingRods/WulfrumRod.cs
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(9).
+ AddIngredient(9).
AddTile(TileID.Anvils).
Register();
}
diff --git a/Items/Materials/WulfrumMetalScrap.cs b/Items/Materials/WulfrumMetalScrap.cs
index 7567c3dd3d..ce5ed90a9b 100644
--- a/Items/Materials/WulfrumMetalScrap.cs
+++ b/Items/Materials/WulfrumMetalScrap.cs
@@ -4,7 +4,7 @@ using Terraria.ID;
namespace CalamityMod.Items.Materials
{
- public class WulfrumShard : ModItem
+ public class WulfrumMetalScrap : ModItem
{
public override void SetStaticDefaults()
{
diff --git a/Items/Tools/WulfrumDiggingTurtle.cs b/Items/Tools/WulfrumDiggingTurtle.cs
index f8291af0b0..111af79ad7 100644
--- a/Items/Tools/WulfrumDiggingTurtle.cs
+++ b/Items/Tools/WulfrumDiggingTurtle.cs
@@ -72,7 +72,7 @@ namespace CalamityMod.Items.Tools
{
CreateRecipe().
AddIngredient(ItemID.Gel, 5). //Gel is a default combustible item to fuel the motors of the lil guys
- AddIngredient(3).
+ AddIngredient(3).
Register();
}
}
diff --git a/Items/Tools/WulfrumDrill.cs b/Items/Tools/WulfrumDrill.cs
index 140dcefef5..24a77e24a3 100644
--- a/Items/Tools/WulfrumDrill.cs
+++ b/Items/Tools/WulfrumDrill.cs
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Tools
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(8).
+ AddIngredient(8).
AddTile(TileID.Anvils).
Register();
}
diff --git a/Items/Tools/WulfrumScaffoldKit.cs b/Items/Tools/WulfrumScaffoldKit.cs
index 269fcd0e9c..e69422d5c8 100644
--- a/Items/Tools/WulfrumScaffoldKit.cs
+++ b/Items/Tools/WulfrumScaffoldKit.cs
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Tools
public override bool CanUseItem(Player player)
{
- return (storedScrap > 0 || player.HasItem(ModContent.ItemType())) && !player.noBuilding
+ return (storedScrap > 0 || player.HasItem(ModContent.ItemType())) && !player.noBuilding
&& !Main.projectile.Any(n => n.active && n.owner == player.whoAmI && n.type == Item.shoot);
}
@@ -110,7 +110,7 @@ namespace CalamityMod.Items.Tools
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(6).
+ AddIngredient(6).
AddIngredient(1).
AddTile(TileID.Anvils).
Register();
diff --git a/Items/Tools/WulfrumTreasurePinger.cs b/Items/Tools/WulfrumTreasurePinger.cs
index 2204c3c5c9..4c2afda148 100644
--- a/Items/Tools/WulfrumTreasurePinger.cs
+++ b/Items/Tools/WulfrumTreasurePinger.cs
@@ -80,7 +80,7 @@ namespace CalamityMod.Items.Tools
if (timeBeforeBlast <= 0)
{
- DropHelper.DropItem(Item.GetSource_ItemUse(Item), player, ModContent.ItemType(), 0, 3);
+ DropHelper.DropItem(Item.GetSource_ItemUse(Item), player, ModContent.ItemType(), 0, 3);
Item.TurnToAir();
@@ -282,7 +282,7 @@ namespace CalamityMod.Items.Tools
{
//Intentionally craftable anywhere.
CreateRecipe().
- AddIngredient(6).
+ AddIngredient(6).
Register();
}
}
diff --git a/Items/Weapons/Magic/WulfrumProthesis.cs b/Items/Weapons/Magic/WulfrumProthesis.cs
index 22862fc97a..85ced0507f 100644
--- a/Items/Weapons/Magic/WulfrumProthesis.cs
+++ b/Items/Weapons/Magic/WulfrumProthesis.cs
@@ -154,7 +154,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(12).
+ AddIngredient(12).
AddTile(TileID.Anvils).
Register();
}
diff --git a/Items/Weapons/Melee/WulfrumScrewdriver.cs b/Items/Weapons/Melee/WulfrumScrewdriver.cs
index 931b3a2cd4..3664e1fb54 100644
--- a/Items/Weapons/Melee/WulfrumScrewdriver.cs
+++ b/Items/Weapons/Melee/WulfrumScrewdriver.cs
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(12).
+ AddIngredient(12).
AddTile(TileID.Anvils).
Register();
}
diff --git a/Items/Weapons/Ranged/WulfrumBlunderbuss.cs b/Items/Weapons/Ranged/WulfrumBlunderbuss.cs
index a448b2995d..61f4314099 100644
--- a/Items/Weapons/Ranged/WulfrumBlunderbuss.cs
+++ b/Items/Weapons/Ranged/WulfrumBlunderbuss.cs
@@ -64,12 +64,12 @@ namespace CalamityMod.Items.Weapons.Ranged
player.Calamity().mouseWorldListener = true;
}
- public override bool CanUseItem(Player player) => storedScrap > 0 || (player.HasItem(ModContent.ItemType()) || player.HasItem(ItemID.SilverCoin));
+ public override bool CanUseItem(Player player) => storedScrap > 0 || (player.HasItem(ModContent.ItemType()) || player.HasItem(ItemID.SilverCoin));
public override void UseAnimation(Player player)
{
Item.UseSound = ShootSound;
- if (storedScrap == 1 && (player.HasItem(ModContent.ItemType()) || player.HasItem(ItemID.SilverCoin)))
+ if (storedScrap == 1 && (player.HasItem(ModContent.ItemType()) || player.HasItem(ItemID.SilverCoin)))
Item.UseSound = ShootAndReloadSound;
}
@@ -81,9 +81,9 @@ namespace CalamityMod.Items.Weapons.Ranged
{
bool ammoConsumed = false;
- if (player.HasItem(ModContent.ItemType()))
+ if (player.HasItem(ModContent.ItemType()))
{
- player.ConsumeItem(ModContent.ItemType());
+ player.ConsumeItem(ModContent.ItemType());
ammoConsumed = true;
}
@@ -186,7 +186,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(10).
+ AddIngredient(10).
AddTile(TileID.Anvils).
Register();
}
diff --git a/Items/Weapons/Rogue/WulfrumKnife.cs b/Items/Weapons/Rogue/WulfrumKnife.cs
index 28f6edfe0d..b4bcfc20ab 100644
--- a/Items/Weapons/Rogue/WulfrumKnife.cs
+++ b/Items/Weapons/Rogue/WulfrumKnife.cs
@@ -153,7 +153,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void AddRecipes()
{
CreateRecipe(100).
- AddIngredient().
+ AddIngredient().
Register();
}
}
diff --git a/Items/Weapons/Summon/WulfrumController.cs b/Items/Weapons/Summon/WulfrumController.cs
index 0467ead024..07672937a7 100644
--- a/Items/Weapons/Summon/WulfrumController.cs
+++ b/Items/Weapons/Summon/WulfrumController.cs
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void AddRecipes()
{
CreateRecipe().
- AddIngredient(9).
+ AddIngredient(9).
AddTile(TileID.Anvils).
Register();
}
diff --git a/NPCs/NormalNPCs/WulfrumDrone.cs b/NPCs/NormalNPCs/WulfrumDrone.cs
index 7a62faaeb8..8a6e514625 100644
--- a/NPCs/NormalNPCs/WulfrumDrone.cs
+++ b/NPCs/NormalNPCs/WulfrumDrone.cs
@@ -221,7 +221,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
- npcLoot.Add(ModContent.ItemType(), 1, 1, 3);
+ npcLoot.Add(ModContent.ItemType(), 1, 1, 3);
npcLoot.Add(ModContent.ItemType(), new Fraction(7, 100));
npcLoot.AddIf(info => info.npc.ModNPC().Supercharged, ModContent.ItemType());
}
diff --git a/NPCs/NormalNPCs/WulfrumGyrator.cs b/NPCs/NormalNPCs/WulfrumGyrator.cs
index 321beb7bb4..f3eb82c31c 100644
--- a/NPCs/NormalNPCs/WulfrumGyrator.cs
+++ b/NPCs/NormalNPCs/WulfrumGyrator.cs
@@ -201,7 +201,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
- npcLoot.Add(ModContent.ItemType(), 1, 1, 2);
+ npcLoot.Add(ModContent.ItemType(), 1, 1, 2);
npcLoot.Add(ModContent.ItemType(), new Fraction(7, 100));
npcLoot.AddIf(info => info.npc.ModNPC().Supercharged, ModContent.ItemType());
}
diff --git a/NPCs/NormalNPCs/WulfrumHovercraft.cs b/NPCs/NormalNPCs/WulfrumHovercraft.cs
index 0c3d439589..652896030c 100644
--- a/NPCs/NormalNPCs/WulfrumHovercraft.cs
+++ b/NPCs/NormalNPCs/WulfrumHovercraft.cs
@@ -297,7 +297,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
- npcLoot.Add(ModContent.ItemType(), 1, 2, 3);
+ npcLoot.Add(ModContent.ItemType(), 1, 2, 3);
npcLoot.Add(ModContent.ItemType(), new Fraction(7, 100));
npcLoot.AddIf(info => info.npc.ModNPC().Supercharged, ModContent.ItemType());
}
diff --git a/NPCs/NormalNPCs/WulfrumPylon.cs b/NPCs/NormalNPCs/WulfrumPylon.cs
index 80ebc2d7cd..c9b740f2e1 100644
--- a/NPCs/NormalNPCs/WulfrumPylon.cs
+++ b/NPCs/NormalNPCs/WulfrumPylon.cs
@@ -1,4 +1,5 @@
using CalamityMod.Items.Accessories;
+using CalamityMod.Items.Accessories.Vanity;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Banners;
using Terraria;
@@ -199,8 +200,9 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
- npcLoot.Add(ModContent.ItemType(), 1, 2, 3);
+ npcLoot.Add(ModContent.ItemType(), 1, 2, 3);
npcLoot.Add(ModContent.ItemType(), new Fraction(7, 100));
+ npcLoot.Add(ModContent.ItemType(), new Fraction(5, 100));
npcLoot.Add(ModContent.ItemType());
}
}
diff --git a/NPCs/NormalNPCs/WulfrumRover.cs b/NPCs/NormalNPCs/WulfrumRover.cs
index 8341a45320..12586150d8 100644
--- a/NPCs/NormalNPCs/WulfrumRover.cs
+++ b/NPCs/NormalNPCs/WulfrumRover.cs
@@ -179,7 +179,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
- npcLoot.Add(ModContent.ItemType(), 1, 1, 2);
+ npcLoot.Add(ModContent.ItemType(), 1, 1, 2);
npcLoot.Add(ModContent.ItemType(), 10);
npcLoot.Add(ModContent.ItemType(), new Fraction(7, 100));
npcLoot.AddIf(info => info.npc.ModNPC().Supercharged, ModContent.ItemType());
diff --git a/Projectiles/Typeless/WulfrumDiggingTurtleProjectile.cs b/Projectiles/Typeless/WulfrumDiggingTurtleProjectile.cs
index dc7eec8881..30e21e9c7a 100644
--- a/Projectiles/Typeless/WulfrumDiggingTurtleProjectile.cs
+++ b/Projectiles/Typeless/WulfrumDiggingTurtleProjectile.cs
@@ -145,7 +145,7 @@ namespace CalamityMod.Projectiles.Typeless
if (Main.myPlayer == Owner.whoAmI)
{
if (Main.rand.NextBool() && !Projectile.noDropItem)
- Item.NewItem(Projectile.GetSource_DropAsItem(), (int)Projectile.position.X, (int)Projectile.position.Y, Projectile.width, Projectile.height, ModContent.ItemType(), Main.rand.Next(0, 3));
+ Item.NewItem(Projectile.GetSource_DropAsItem(), (int)Projectile.position.X, (int)Projectile.position.Y, Projectile.width, Projectile.height, ModContent.ItemType(), Main.rand.Next(0, 3));
}
if (SoundEngine.TryGetActiveSound(CuttingSoundSlot, out var cuttingSoundOut))
diff --git a/Projectiles/Typeless/WulfrumScaffoldKitHoldout.cs b/Projectiles/Typeless/WulfrumScaffoldKitHoldout.cs
index c6dab11e9d..3619d9de6e 100644
--- a/Projectiles/Typeless/WulfrumScaffoldKitHoldout.cs
+++ b/Projectiles/Typeless/WulfrumScaffoldKitHoldout.cs
@@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Typeless
public Player Owner => Main.player[Projectile.owner];
public WulfrumScaffoldKit Kit => Owner.HeldItem.ModItem as WulfrumScaffoldKit;
- public bool CanOwnerGoOn => Kit.storedScrap > 0 || Owner.HasItem(ModContent.ItemType());
+ public bool CanOwnerGoOn => Kit.storedScrap > 0 || Owner.HasItem(ModContent.ItemType());
public bool CanSelectTile(Point tilePos)
{
@@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Typeless
else
{
- Owner.ConsumeItem(ModContent.ItemType());
+ Owner.ConsumeItem(ModContent.ItemType());
Kit.storedScrap = WulfrumScaffoldKit.TilesPerScrap - 1;
SoundEngine.PlaySound(SoundID.Item65);
if (Main.netMode != NetmodeID.Server)