player memes
This commit is contained in:
1 parent
1b4b18ce30
commit
23bb22469c
2 files changed
+3
-1
No files matched your search
@@ -30,6 +30,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Player player = Main.player[projectile.owner];
|
||||
if (projectile.localAI[1] >= Main.projectile.Length || projectile.localAI[0] < 0)
|
||||
{
|
||||
DeathDust();
|
||||
@@ -91,7 +92,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (projectile.Hitbox.Intersects(Main.npc[(int)projectile.ai[0]].Hitbox))
|
||||
{
|
||||
int damage = (int)(Eternity.ExplosionDamage * player.MagicDamage() * Main.rand.NextFloat(0.9f, 1.1f));
|
||||
Main.player[projectile.owner].addDPS(damage);
|
||||
player.addDPS(damage);
|
||||
Main.npc[(int)projectile.ai[0]].StrikeNPC(damage, 0f, 0, false);
|
||||
Vector2 randomCirclePointVector = Vector2.One.RotatedBy(projectile.rotation);
|
||||
float lerpStart = Main.rand.Next(12, 17);
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
}
|
||||
public override void AI()
|
||||
{
|
||||
Player player = Main.player[projectile.owner];
|
||||
if (projectile.ai[0] >= Main.npc.Length || projectile.ai[0] < 0)
|
||||
{
|
||||
DeathDust();
|
||||
|
||||
Reference in new issue
Block a user