Dryad's Tear/Hyperius split inherit class type
This commit is contained in:
1 parent
94e2c42b5a
commit
4205c65517
2 files changed
+3
-2
No files matched your search
@@ -371,7 +371,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
int damage = (int)(Projectile.damage * explosionDamageMult * (isMaxPower ? maxDamageMult : finalDamageMult));
|
||||
Projectile blast = Projectile.NewProjectileDirect(Owner.GetSource_FromThis(), targeted.Center, Vector2.Zero, ModContent.ProjectileType<DryadsTearBurst>(), damage, knockback, Owner.whoAmI, blastSize, minMultiplier, hitsToMinMult);
|
||||
blast.timeLeft = 8;
|
||||
blast.DamageType = DamageClass.Ranged;
|
||||
blast.DamageType = Projectile.DamageType;
|
||||
blast.ArmorPenetration = Projectile.ArmorPenetration;
|
||||
blast.localAI[0] = (crit ? 1 : 0); // Sets the burst to crit if the bullet did
|
||||
}
|
||||
|
||||
@@ -146,7 +146,8 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
for (int b = 0; b < 2; b++)
|
||||
{
|
||||
Vector2 velocity = (Projectile.velocity.SafeNormalize(Vector2.UnitX) * 7 * (tileTouched ? -1 : 1)).RotatedByRandom(0.5f);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity * 0.7f, ModContent.ProjectileType<HyperiusSplit>(), (int)Math.Max(Projectile.originalDamage * 0.05f, 1), 0, Projectile.owner, 0f, 0f, Main.rand.Next(0, 4 + 1));
|
||||
Projectile split = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, velocity * 0.7f, ModContent.ProjectileType<HyperiusSplit>(), (int)Math.Max(Projectile.originalDamage * 0.05f, 1), 0, Projectile.owner, 0f, 0f, Main.rand.Next(0, 4 + 1));
|
||||
split.DamageType = Projectile.DamageType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user