Files
CalamityModPublic/Projectiles/Magic/Phantom.cs
T
Andrew Marheine cb6b42f43f 1 - Highest tier accessory reforges now reforge into other highest tier accessory reforges.
2 - Nerfed Amalgam extra projectile damage values.
3 - Arma bags now only drop on first boss kills.
4 - Nerfed Conference Call extra bullet damage by 30%.
5 - Cal Clone dashes are no longer predictive.
6 - Old Duke looks in the direction he's about to dash instead of directly at the player, if he's going to dash.
7 - Updated pillar spawn code a bit more.
8 - Pulse Rifle now works like it should and doesn't hit 4 times on a single target.
9 - Adjusted HomeInOnNPC calls to use projectile.tileCollide to decide homing through tiles or not.
2021-04-13 00:19:56 -05:00

41 lines
1.2 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Magic
{
public class Phantom : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Phantom");
}
public override void SetDefaults()
{
projectile.width = 8;
projectile.height = 8;
projectile.friendly = true;
projectile.extraUpdates = 1;
projectile.penetrate = 2;
projectile.ignoreWater = true;
projectile.timeLeft = 120;
projectile.magic = true;
}
public override void AI()
{
projectile.rotation += 0.01f;
Lighting.AddLight(projectile.Center, 0.2f, 0.2f, 0.2f);
for (int num457 = 0; num457 < 2; num457++)
{
int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 175, 0f, 0f, 100, default, 1f);
Main.dust[num458].noGravity = true;
}
CalamityGlobalProjectile.HomeInOnNPC(projectile, !projectile.tileCollide, 300f, 12f, 20f);
}
}
}