Files
CalamityModPublic/Items/Pets/TheEtomer.cs
T
Altixal 17db15200d Remainder buyPrice cleanups
Intentionally ignored consumable rogue weapons because plans to un-consumable those
2024-09-19 02:39:52 +07:00

49 lines
1.6 KiB
C#

using CalamityMod.Buffs.Pets;
using CalamityMod.Items.Placeables;
using CalamityMod.Projectiles.Pets;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Pets
{
[LegacyName("RotomRemote")]
public class TheEtomer : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Pets";
public override void SetDefaults()
{
Item.DefaultToVanitypet(ModContent.ProjectileType<RotomPet>(), ModContent.BuffType<ElectricTroublemaker>());
Item.UseSound = SoundID.Item113;
Item.value = Item.sellPrice(silver: 80);
Item.rare = ItemRarityID.Orange;
Item.Calamity().devItem = true;
}
public override void UseStyle(Player player, Rectangle heldItemFrame)
{
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
{
player.AddBuff(Item.buffType, 3600, true);
}
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Pets/TheEtomerGlow").Value);
}
public override void AddRecipes()
{
CreateRecipe().
AddRecipeGroup("AnyGoldBar", 8).
AddIngredient<PrismShard>(5).
AddIngredient<ScorchedBone>(5).
AddTile(TileID.Anvils).
Register();
}
}
}