Files
CalamityModPublic/Items/Weapons/Rogue/FantasyTalisman.cs
T
Storm2103 348435a657 Some of the #balance results backlog (with some reconsiderations) and a tint dragon scales buff (to compensate the massive nerfs its gotten)
Executioner's blade should no longer kill Yharon on 2:30
Deep wounder should no longer be dogshit
Nerfed Fantasy Talismans
Sacrifice projectiles made faster
Nerfed Duststorm cloud's iframes and renamed the projectile so they show up on Cal Test Helpers
Buffed Sandslasher's velocity
Mega buffed Apoctolith
Made Young Duke use Local Iframes
Buffed AotC
Rebalanced Kylie and Frostcrush Valari
Buffed Plagued Fueled pack
Rebalanced Totality Breakers
Buffed Ballistic Poison bomb
Rebalanced Monkey Darts
Rebalanced Tarragon Darts a bit
2023-02-09 19:11:09 -06:00

69 lines
2.4 KiB
C#

using Terraria.DataStructures;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Rogue;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Rogue
{
public class FantasyTalisman : RogueWeapon
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fantasy Talisman");
Tooltip.SetDefault(@"Fires high velocity talismans that ignore gravity
Talismans attach to enemies, causing them to release lost souls
Stealth strikes release more souls and leave behind souls as they travel");
SacrificeTotal = 99;
}
public override void SetDefaults()
{
Item.width = 30;
Item.damage = 82;
Item.noMelee = true;
Item.consumable = true;
Item.noUseGraphic = true;
Item.useAnimation = 16;
Item.useTime = 16;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 6f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.height = 30;
Item.maxStack = 999;
Item.value = Item.buyPrice(0, 0, 60, 0);
Item.rare = ItemRarityID.Lime;
Item.shoot = ModContent.ProjectileType<FantasyTalismanProj>();
Item.shootSpeed = 16.5f;
Item.DamageType = RogueDamageClass.Instance;
}
public override float StealthDamageMultiplier => 0.8f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
{
int stealth = Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<FantasyTalismanStealth>(), damage, knockback, player.whoAmI);
if (stealth.WithinBounds(Main.maxProjectiles))
Main.projectile[stealth].Calamity().stealthStrike = true;
return false;
}
return true;
}
public override void AddRecipes()
{
CreateRecipe(150).
AddIngredient<SolarVeil>(3).
AddIngredient(ItemID.Silk).
AddIngredient(ItemID.Ectoplasm).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}