Files
CalamityModPublic/Items/Weapons/Rogue/ConsecratedWater.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

65 lines
2.6 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 ConsecratedWater : RogueWeapon
{
public const int BaseDamage = 48;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Consecrated Water");
Tooltip.SetDefault("The bottle is surprisingly dusty\n" +
"Throws a holy flask of water that explodes into a sacred flame pillar on death\n" +
"The pillar is destroyed if there's no tiles below it\n" +
"Stealth strikes create three flame pillars instead of one on impact");
}
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<ConsecratedWaterProjectile>();
item.shootSpeed = 15f;
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)
{
Vector2 velocity = new Vector2(speedX, speedY);
float strikeValue = player.Calamity().StealthStrikeAvailable().ToInt(); //0 if false, 1 if true
int p = Projectile.NewProjectile(position, velocity, ModContent.ProjectileType<ConsecratedWaterProjectile>(), damage, knockBack, player.whoAmI, ai1: strikeValue);
if (player.Calamity().StealthStrikeAvailable() && p.WithinBounds(Main.maxProjectiles))
Main.projectile[p].Calamity().stealthStrike = true;
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.HolyWater, 100);
recipe.AddRecipeGroup("AnyAdamantiteBar", 5);
recipe.AddIngredient(ItemID.CrystalShard, 20);
recipe.AddIngredient(ItemID.SoulofLight, 7);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}