46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using CalamityMod.Projectiles.Ranged;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Ammo
|
|
{
|
|
public class HallowPointRound : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Ammo";
|
|
|
|
public static int BaseDamage = 12;
|
|
public static int BonusDamageOnHit = 6; // 12 + 6 = 18
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 99;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 8;
|
|
Item.height = 18;
|
|
Item.damage = BaseDamage;
|
|
Item.DamageType = DamageClass.Ranged;
|
|
Item.maxStack = 9999;
|
|
Item.consumable = true;
|
|
Item.knockBack = 3f;
|
|
Item.value = Item.sellPrice(copper: 12);
|
|
Item.rare = ItemRarityID.Pink;
|
|
Item.shoot = ModContent.ProjectileType<HallowPointRoundProj>();
|
|
Item.shootSpeed = 6f;
|
|
Item.ammo = AmmoID.Bullet;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe(100).
|
|
AddIngredient(ItemID.EmptyBullet, 100).
|
|
AddIngredient(ItemID.HallowedBar).
|
|
AddTile(TileID.MythrilAnvil).
|
|
Register();
|
|
}
|
|
}
|
|
}
|