Files
CalamityModPublic/Items/Weapons/Rogue/StellarContemptRogue.cs
T
Andrew Marheine 9edc04ae42 1 - New Cosmic Worm recipe.
2 - New Cosmic Worm tooltip if any sentinel hasn't been defeated yet.
3 - Dragonfolly drops more feathers.
4 - Draconic Swarmers spawn on the surface post-ML jungle and can drop feathers if not spawned by the Dragonfolly.
5 - Reduced Luminite Bar requirements for many recipes.
6 - Sentinels are at max strength during the DoG fight if not defeated outside of the DoG fight.
7 - Old Duke HP now scales with the HP config.
8 - Yharon now always drops his phase 1 loot when phase 1 is defeated.
9 - Dark Spark ignores less i-frames.
2020-07-17 21:27:43 -05:00

65 lines
2.2 KiB
C#

using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Rogue
{
public class StellarContemptRogue : RogueWeapon
{
public static int BaseDamage = 325;
public static float Speed = 18f;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Stellar Contempt");
Tooltip.SetDefault("Lunar flares rain down on enemy hits");
}
public override void SafeSetDefaults()
{
item.width = 66;
item.height = 64;
item.damage = BaseDamage;
item.knockBack = 9f;
item.useTime = 13;
item.useAnimation = 13;
item.autoReuse = true;
item.noMelee = true;
item.noUseGraphic = true;
item.useStyle = ItemUseStyleID.SwingThrow;
item.UseSound = SoundID.Item1;
item.rare = 10;
item.Calamity().customRarity = CalamityRarity.Turquoise;
item.value = Item.buyPrice(1, 20, 0, 0);
item.Calamity().rogue = true;
item.shoot = ModContent.ProjectileType<StellarContemptHammer>();
item.shootSpeed = Speed;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.SetResult(this);
r.AddIngredient(ModContent.ItemType<TruePaladinsHammer>());
r.AddIngredient(ItemID.LunarBar, 5);
r.AddIngredient(ItemID.FragmentSolar, 10);
r.AddIngredient(ItemID.FragmentNebula, 10);
r.AddTile(TileID.LunarCraftingStation);
r.AddRecipe();
}
}
}