Files
CalamityModPublic/Projectiles/Boss/SandTooth.cs
T
Andrew Marheine 99fd27bd88 1 - Yharon no longer sticks to a position before doing an attack.
2 - Yharon decreases his fast charge telegraph time as he enters later phases.
3 - Ultimus Cleaver and Inferna Cutter no longer benefit from true melee boosts.
4 - Reduced the potency of defense damage.
5 - Lava and honey no longer inflict sulphur poison while in the sulphur sea.
6 - Reduced Elysian Wings move speed boost.
7 - Reduced Hadarian Wings move speed boost while wearing Astral Armor.
8 - Buffed MOAB jump speed boost.
9 - Nerfed Heart of the Elements damage in post-ML.
10 - Nerfed Holy Fire Bullet damage.
11 - Nerfed Angel Wings, Demon Wings, Butterfly Wings, Fairy Wings, Bone Wings, Flame Wings, Ghost Wings, Beetle Wings, Leaf Wings, Bat Wings and Festive Wings extra bonuses.
12 - DoG head and tail damage multiplier scales with distance from target.
13 - DoG phase 1 and 2 fire a single laser directly at the player during laser attacks in expert+.
14 - Old Duke Tooth Balls and projectiles no longer i-frame fuck the player.
15 - Increased Aquatic Scourge despawn distance from 500 tiles to 800 to prevent fear of accidental despawns.
16 - Golem Head hitbox fix, I hope.
17 - Greatly increased post-DoG event spawn rates.
18 - Increased Elemental Axe i-frames from 6 to 15.
2020-12-16 08:14:49 -06:00

50 lines
1.8 KiB
C#

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Boss
{
public class SandTooth : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sand Tooth");
}
public override void SetDefaults()
{
projectile.width = 20;
projectile.height = 20;
projectile.hostile = true;
projectile.ignoreWater = true;
projectile.penetrate = 1;
projectile.timeLeft = 450;
}
public override void AI()
{
int num103 = Player.FindClosest(projectile.Center, 1, 1);
projectile.ai[1] += 1f;
if (projectile.ai[1] < 250f && projectile.ai[1] > 60f)
{
float scaleFactor2 = projectile.velocity.Length();
Vector2 vector11 = Main.player[num103].Center - projectile.Center;
vector11.Normalize();
vector11 *= scaleFactor2;
projectile.velocity = (projectile.velocity * 24f + vector11) / 25f;
projectile.velocity.Normalize();
projectile.velocity *= scaleFactor2;
}
projectile.rotation = (float)Math.Atan2(projectile.velocity.Y, projectile.velocity.X) + MathHelper.PiOver4;
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
Texture2D tex = Main.projectileTexture[projectile.type];
spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f);
return false;
}
}
}