Files
CalamityModPublic/Items/Weapons/Rogue/ScarletDevil.cs
T
Altixal a321ece97b Material culling & recipe changes 2024
- Removed Demonic Bone Ash
- Removed Murky Paste
- Removed Trapper Bulb

Most of these are recipe ordering hell (again)
- Moved Shadowspec Bar to the top of most materials
- Moved Cosmilite Bar to the top of most materials (under SSpec)
- Moved complementary ASE type to pair below Bars
- Swap recipe order of Soul Artifacts
- Enforced certain material pairing orders
- Added missing materials for certain sets
2024-09-05 23:19:37 +07:00

60 lines
2.2 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Rogue
{
public class ScarletDevil : RogueWeapon
{
public override void SetDefaults()
{
Item.width = 108;
Item.height = 108;
Item.damage = 10000;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useAnimation = Item.useTime = 60;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 8f;
Item.UseSound = SoundID.Item60;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<ScarletDevilProjectile>();
Item.shootSpeed = 30f;
Item.DamageType = RogueDamageClass.Instance;
Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice;
Item.rare = ModContent.RarityType<HotPink>();
Item.Calamity().devItem = true;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
if (Main.projectile.IndexInRange(proj))
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
// Terraria seems to really dislike high crit values in SetDefaults
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 20;
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<Wrathwing>().
AddIngredient<RealityRupture>().
AddIngredient<ShadowspecBar>(5).
AddIngredient<BloodstoneCore>(15).
AddIngredient(ItemID.SoulofNight, 15).
AddTile<DraedonsForge>().
Register();
}
}
}