Files
CalamityModPublic/Items/Weapons/Ranged/DeadSunsWind.cs
T
Altixal e0bf810be7 Added token knockback to all weapons
Change carried over from 1.4.4

Also did a little regexing oops
2024-08-11 11:07:20 +07:00

49 lines
1.8 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Ranged;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Ranged
{
[LegacyName("TheEmpyrean", "GodsBellows")]
public class DeadSunsWind : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public static readonly SoundStyle ShootSound = new("CalamityMod/Sounds/Item/DeadSunShot") { PitchVariance = 0.35f, Volume = 0.4f };
public static readonly SoundStyle Ricochet = new("CalamityMod/Sounds/Item/DeadSunRicochet") { Volume = 0.35f };
public static readonly SoundStyle Explosion = new("CalamityMod/Sounds/Item/DeadSunExplosion") { Volume = 0.5f };
public override void SetDefaults()
{
Item.width = 70;
Item.height = 24;
Item.damage = 100;
Item.DamageType = DamageClass.Ranged;
Item.useAnimation = Item.useTime = 22;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3.5f;
Item.UseSound = ShootSound;
Item.value = CalamityGlobalItem.RarityRedBuyPrice;
Item.rare = ItemRarityID.Red;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<CosmicFire>();
Item.shootSpeed = 9f;
Item.useAmmo = AmmoID.Gel;
}
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<MeldConstruct>(12).
AddTile(TileID.LunarCraftingStation).
Register();
}
}
}