Files
CalamityModPublic/Items/Weapons/Rogue/DesecratedWater.cs
T
Andrew Marheine 5019a0680a 1 - Reduced Rage damage from 50% to 35%.
2 - Increased God Slayer Dash cooldown from 15 to 20 seconds.
3 - Fixed Amalgam issue where buffs would persist even if Amalgam was taken off.
4 - Exoblade no longer has weird HP damage scaling.
5 - Nerfed Celestus stealth strike damage from 65% to 40%.
6 - Moved Consecrated and Desecrated Water and Nycthemeron to post-2 mechs.
7 - Exorcism now requires 6 of each mech boss soul.
8 - Thanatos laser noise.
9 - Slowing debuffs now have a 30 second cooldown on bosses instead of 20 seconds.
10 - Adjusted the drop rates for various items.
11 - Genisis and Alpha Ray big Y laser uses ID static i-frames instead of local.
2021-08-08 01:03:03 -05:00

64 lines
2.4 KiB
C#

using CalamityMod.Projectiles.Rogue;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Rogue
{
public class DesecratedWater : RogueWeapon
{
public const int BaseDamage = 55;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Desecrated Water");
Tooltip.SetDefault(@"Throws an unholy flask of water that explodes into an explosion of bubbles on death
Stealth strikes spawn additional bubbles that inflict Ichor and Cursed Inferno");
}
public override void SafeSetDefaults()
{
item.damage = BaseDamage;
item.width = 22;
item.height = 24;
item.useAnimation = 29;
item.useTime = 29;
item.noMelee = true;
item.noUseGraphic = true;
item.useStyle = ItemUseStyleID.SwingThrow;
item.knockBack = 4.5f;
item.rare = ItemRarityID.LightPurple;
item.UseSound = SoundID.Item106;
item.autoReuse = true;
item.value = Item.buyPrice(gold: 48); //sell price of 9 gold 60 silver
item.shoot = ModContent.ProjectileType<DesecratedWaterProj>();
item.shootSpeed = 12f;
item.Calamity().rogue = true;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
{
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
if (stealth.WithinBounds(Main.maxProjectiles))
Main.projectile[stealth].Calamity().stealthStrike = true;
return false;
}
return true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddRecipeGroup("AnyEvilWater", 100);
recipe.AddRecipeGroup("AnyAdamantiteBar", 5);
recipe.AddRecipeGroup("CursedFlameIchor", 5);
recipe.AddIngredient(ItemID.SoulofNight, 7);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}