Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SummonSuperStarSlash()

void Terraria.Projectile.SummonSuperStarSlash ( Vector2 target)
inlineprivate

Definition at line 13113 of file Projectile.cs.

13114 {
13115 Vector2 v = Main.rand.NextVector2CircularEdge(200f, 200f);
13116 if (v.Y < 0f)
13117 {
13118 v.Y *= -1f;
13119 }
13120 v.Y += 100f;
13121 Vector2 vector = v.SafeNormalize(Vector2.UnitY) * 6f;
13122 NewProjectile(GetProjectileSource_FromThis(), target - vector * 20f, vector, 729, (int)((double)damage * 0.75), 0f, owner, 0f, target.Y);
13123 }
IEntitySource GetProjectileSource_FromThis()
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)

References Terraria.Projectile.damage, Terraria.Projectile.GetProjectileSource_FromThis(), Terraria.Projectile.NewProjectile(), Terraria.Projectile.owner, Terraria.Main.rand, Microsoft.Xna.Framework.Vector2.UnitY, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.Projectile.Damage().