pedantic cleanup of global item

This commit is contained in:
Ozzatron committed 2021-11-12 11:15:42 -05:00
1 parent 8d65dcb8c8
commit 85277b04a1
1 file changed
+6 -11
+6 -11
View File
@@ -4,15 +4,10 @@ using Terraria.Utilities;
namespace CalamityModMusic.Items
{
class CalamityMusicGlobalItem : GlobalItem
{
public override bool? PrefixChance(Item item, int pre, UnifiedRandom rand)
{
if (item.modItem != null && item.modItem.mod == CalamityModMusic.Instance)
{
return false;
}
return null;
}
}
public class CalamityMusicGlobalItem : GlobalItem
{
// No items from this mod are capable of receiving reforges.
public override bool? PrefixChance(Item item, int pre, UnifiedRandom rand) =>
item.modItem != null && item.modItem.mod == CalamityModMusic.Instance ? false : (bool?)null;
}
}