Files
CalamityModPublic/Items/Weapons/Ranged/ElementalBlaster.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

54 lines
1.7 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Sounds;
using Microsoft.Xna.Framework;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Ranged
{
public class ElementalBlaster : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetStaticDefaults()
{
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 104;
Item.height = 42;
Item.damage = 67;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 2;
Item.useAnimation = 6;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 1.75f;
Item.value = CalamityGlobalItem.Rarity11BuyPrice;
Item.rare = ItemRarityID.Purple;
Item.UseSound = CommonCalamitySounds.PlasmaBoltSound;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<RainbowBlast>();
Item.shootSpeed = 18f;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-15, 0);
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<SpeedBlaster>().
AddIngredient(ItemID.LunarBar, 5).
AddIngredient<LifeAlloy>(5).
AddIngredient<GalacticaSingularity>(5).
AddTile(TileID.LunarCraftingStation).
Register();
}
}
}