fully integrated the gfb bool gfb polter gets a bit spookier (wip) resprited armor crunch, cal eye banner added sounds: - astrum deus shoot sounds - final dawn use sound - supernova explosion sound - plasma rifle use sounds - aew charge and death sounds
44 lines
1.6 KiB
C#
44 lines
1.6 KiB
C#
using CalamityMod.Projectiles.Rogue;
|
|
using CalamityMod.Rarities;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.Audio;
|
|
using Terraria.ModLoader;
|
|
using static Terraria.ModLoader.ModContent;
|
|
|
|
namespace CalamityMod.Items.Weapons.Rogue
|
|
{
|
|
public class FinalDawn : RogueWeapon
|
|
{
|
|
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/FinalDawnSlash");
|
|
public override void SetDefaults()
|
|
{
|
|
Item.damage = 1500;
|
|
Item.DamageType = RogueDamageClass.Instance;
|
|
Item.width = 78;
|
|
Item.height = 66;
|
|
Item.noMelee = true;
|
|
Item.useTime = Item.useAnimation = 15;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.knockBack = 4;
|
|
|
|
Item.value = CalamityGlobalItem.Rarity15BuyPrice;
|
|
Item.rare = ModContent.RarityType<Violet>();
|
|
Item.Calamity().donorItem = true;
|
|
|
|
Item.autoReuse = false;
|
|
Item.shoot = ProjectileType<FinalDawnProjectile>();
|
|
Item.shootSpeed = 1f;
|
|
Item.useTurn = false;
|
|
Item.channel = true;
|
|
Item.noUseGraphic = true;
|
|
}
|
|
|
|
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] +
|
|
player.ownedProjectileCounts[ProjectileType<FinalDawnFireSlash>()] +
|
|
player.ownedProjectileCounts[ProjectileType<FinalDawnHorizontalSlash>()] +
|
|
player.ownedProjectileCounts[ProjectileType<FinalDawnThrow>()] +
|
|
player.ownedProjectileCounts[ProjectileType<FinalDawnThrow2>()] <= 0;
|
|
}
|
|
}
|