2 - Frostcrush Valari no longer inflicts Frostburn and Crush Depth. 3 - Icebreaker now inflicts Nightwither on stealth strikes for 7 seconds. 4 - Kelvin Catalyst stealth strike now inflicts Glacial State. 5 - Mangrove Chakram now inflicts Acid Venom instead of Cursed Inferno. 6 - Subduction Slicer now inflicts Hellfire instead of On Fire! and the length of the Daybroken debuff on stealth strikes is now 7 seconds. 7 - Elemental Disk no longer inflicts debuffs. 8 - Eradicator now inflicts God Slayer Inferno instead of On Fire! and Frostburn. 9 - Molten Amputator now inflits Holy Flames. 10 - Valediction no longer inflicts Wet. 11 - Gel Darts no longer inflict Slow. 12 - Stormfront Razor now inflicts Electrified. 13 - Cosmic Kunai no longer inflicts God Slayer Inferno. 14 - Jaws of Oblivion no longer inflicts Marked for Death. 15 - Utensil Poker no longer inflicts Bleeding, Burning Blood and Well Fed. 16 - Sludge Splotch now inflicts Slimed instead of Slow. 17 - Web Ball stealth strike Webbed duration increased to 2 seconds. 18 - Tooth Balls now inflict Burning Blood. 19 - Deep Wounder now inflicts Marked for Death on stealth strikes instead of Crush Depth and inflicts Crush Depth with regular hits. 20 - Gacruxian Mollusk sparks now inflict Electrified. 21 - Bloodsoaked Crasher no longer inflicts Brimstone Flames. 22 - Hypothermia stealth strikes now inflict Glacial State. 23 - Seared Pan no longer inflicts Burning Blood and inflicts Daybroken instead of On Fire! 24 - The Reaper now inflicts Irradiated and Sulphuric Poisoning.
68 lines
2.3 KiB
C#
68 lines
2.3 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;
|
|
using Terraria.Audio;
|
|
|
|
namespace CalamityMod.Items.Weapons.Rogue
|
|
{
|
|
public class SludgeSplotch : RogueWeapon
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Sludge Splotch");
|
|
Tooltip.SetDefault("Stealth strikes cause the main ball of sludge to split on hit, inflicting more damage");
|
|
SacrificeTotal = 99;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 32;
|
|
Item.damage = 30;
|
|
Item.noMelee = true;
|
|
Item.noUseGraphic = true;
|
|
Item.consumable = true;
|
|
Item.useAnimation = 18;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.useTime = 18;
|
|
Item.knockBack = 1f;
|
|
Item.autoReuse = true;
|
|
Item.height = 30;
|
|
Item.maxStack = 999;
|
|
Item.value = Item.sellPrice(0, 0, 0, 40);
|
|
Item.rare = ItemRarityID.Green;
|
|
Item.shoot = ModContent.ProjectileType<SludgeSplotchProj1>();
|
|
Item.shootSpeed = 10f;
|
|
Item.DamageType = RogueDamageClass.Instance;
|
|
}
|
|
|
|
public override float StealthVelocityMultiplier => 1.2f;
|
|
public override float StealthKnockbackMultiplier => 3f;
|
|
|
|
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
|
{
|
|
SoundEngine.PlaySound(SoundID.NPCDeath9 with { Volume = SoundID.NPCDeath9.Volume * 2f }, player.position);
|
|
|
|
if (player.Calamity().StealthStrikeAvailable())
|
|
{
|
|
int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, 1f);
|
|
if (p.WithinBounds(Main.maxProjectiles))
|
|
Main.projectile[p].Calamity().stealthStrike = true;
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe(100).
|
|
AddIngredient<BlightedGel>(15).
|
|
AddRecipeGroup("Boss2Material").
|
|
Register();
|
|
}
|
|
}
|
|
}
|