fixed sorting discrepancies with wulfrum metal scraps and baguette

This commit is contained in:
ben-tk committed 2022-09-28 18:07:30 -04:00
1 parent 31bd6b0f87
commit 23a4e3e434
2 files changed
+12 -2

No files matched your search

+5
View File
@@ -47,6 +47,11 @@ namespace CalamityMod.Items.Materials
Item.ammo = Item.type;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.Material;
}
public override void OnSpawn(IEntitySource source)
{
if (source is EntitySource_Loot)
+7 -2
View File
@@ -1,7 +1,7 @@
using Terraria;
using CalamityMod.Buffs.Potions;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Buffs.Potions;
namespace CalamityMod.Items.Potions
{
@@ -36,6 +36,11 @@ namespace CalamityMod.Items.Potions
Item.buffTime = CalamityUtils.SecondsToFrames(300f);
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.Food;
}
public override void OnConsumeItem(Player player)
{
//5 minutes for both