34 lines
949 B
C#
34 lines
949 B
C#
using Terraria.ID;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using ForgottenWawiTech.Content.Rarities;
|
|
|
|
namespace ForgottenWawiTech.Content.Items.Materials
|
|
{
|
|
public class AvaliFeather : ModItem
|
|
{
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 20;
|
|
Item.height = 20;
|
|
Item.maxStack = 9999;
|
|
Item.rare = ModContent.RarityType<AvalianItem>();
|
|
Item.value = Item.buyPrice(silver: 5);
|
|
}
|
|
|
|
public override void OnStack(Item source, int numTransfered)
|
|
{
|
|
// Reuse the logic for marking RGBass as obtained when picked up
|
|
ForgottenWawiTechSystem.hasObtainedRGBass = true;
|
|
}
|
|
|
|
public override bool OnPickup(Player player)
|
|
{
|
|
// Reuse the logic for marking RGBass as obtained when picked up
|
|
ForgottenWawiTechSystem.hasObtainedRGBass = true;
|
|
return true;
|
|
}
|
|
|
|
}
|
|
} |