Intentionally ignored consumable rogue weapons because plans to un-consumable those
29 lines
879 B
C#
29 lines
879 B
C#
using CalamityMod.Buffs.Pets;
|
|
using CalamityMod.Projectiles.Pets;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Pets
|
|
{
|
|
public class StrangeOrb : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Pets";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.DefaultToVanitypet(ModContent.ProjectileType<OceanSpirit>(), ModContent.BuffType<OceanSpiritBuff>());
|
|
Item.value = Item.sellPrice(gold: 5, silver: 50);
|
|
Item.rare = ItemRarityID.Yellow;
|
|
}
|
|
|
|
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
|
{
|
|
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
|
{
|
|
player.AddBuff(Item.buffType, 3600, true);
|
|
}
|
|
}
|
|
}
|
|
}
|