Files
CalamityModPublic/Projectiles/Melee/ForbiddenOathbladeProjectile.cs
T
Andrew Marheine 25c38da5ef 1 - Nerfed Apoctosis Array and Ion Blaster mana scaling.
2 - Nerfed Astralachnea Staff damage by 10.
3 - Reduced Miasma clouds per shot from 5 - 8 to 3 - 5, reduced cloud duration from 5 seconds to 4 and buffed damage by 5.
4 - Tried to fix some true melee issues with Devil's Devastation, Forbidden Oathblade and True Forbidden Oathblade.
5 - Fixed some tooltip issues with the DD2 armor changes I made.
6 - Adjusted some Malice Mode AIs again.
7 - Adjusted Cryophobia ice wave duration.
8 - Fixed an issue with Malice Mode Moon Lord Phantasmal Spheres.
2021-04-30 20:11:43 -05:00

54 lines
1.8 KiB
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Melee
{
public class ForbiddenOathbladeProjectile : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Oathblade");
ProjectileID.Sets.TrailCacheLength[projectile.type] = 10;
ProjectileID.Sets.TrailingMode[projectile.type] = 1;
}
public override void SetDefaults()
{
projectile.width = 46;
projectile.height = 46;
projectile.aiStyle = 18;
projectile.alpha = 100;
projectile.friendly = true;
projectile.melee = true;
projectile.tileCollide = true;
projectile.penetrate = 3;
projectile.usesIDStaticNPCImmunity = true;
projectile.idStaticNPCHitCooldown = 10;
aiType = ProjectileID.DemonScythe;
}
public override void AI()
{
Lighting.AddLight(projectile.Center, 0.35f, 0f, 0.35f);
if (Main.rand.NextBool(3))
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 173, projectile.velocity.X * 0.25f, projectile.velocity.Y * 0.25f);
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(BuffID.OnFire, 180);
target.AddBuff(BuffID.ShadowFlame, 180);
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
CalamityUtils.DrawAfterimagesCentered(projectile, ProjectileID.Sets.TrailingMode[projectile.type], lightColor, 2);
return false;
}
}
}