Oversight fixes
This commit is contained in:
1 parent
5713fdab15
commit
d115cd4fbb
3 files changed
+1
-37
No files matched your search
@@ -1,36 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
public class CryogenShieldIce : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Icicle");
|
||||
ProjectileID.Sets.MinionShot[projectile.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.friendly = true;
|
||||
projectile.width = 28;
|
||||
projectile.height = 60;
|
||||
projectile.minion = true;
|
||||
projectile.minionSlots = 0f;
|
||||
projectile.ignoreWater = false;
|
||||
projectile.tileCollide = false;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Player player = Main.player[projectile.owner];
|
||||
|
||||
projectile.ai[1] += MathHelper.ToRadians(2f);
|
||||
projectile.rotation = projectile.ai[1] + MathHelper.PiOver2;
|
||||
|
||||
projectile.Center = player.Center + projectile.ai[1].ToRotationVector2() * 230f;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 834 B |
@@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
Projectile mother = Main.projectile[(int)projectile.ai[0]];
|
||||
|
||||
if (!mother.active)
|
||||
if (!mother.active || mother.type != ModContent.ProjectileType<SkeletalDragonMother>())
|
||||
{
|
||||
projectile.Kill();
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user