changes to optic staff, fungal clump, and icebreaker

This commit is contained in:
termigator1359 committed 2020-05-27 19:59:09 -04:00
1 parent a47eadc1a6
commit fe4bc5e4e4
4 files changed
+8 -3

No files matched your search

+2 -1
View File
@@ -1368,7 +1368,8 @@ namespace CalamityMod
ItemID.DD2BetsyBow,
ItemID.InfluxWaver,
ItemID.Xenopopper,
ItemID.ElectrosphereLauncher
ItemID.ElectrosphereLauncher,
ItemID.OpticStaff //Note: got local i frames so it should be better
};
pumpkinMoonBuffList = new List<int>()
+2 -1
View File
@@ -93,8 +93,9 @@ namespace CalamityMod.Projectiles.Rogue
for (int i = 0; i < Main.maxPlayers; i++)
{
Player owner = Main.player[projectile.owner];
Player player = Main.player[i];
if ((Main.player[projectile.owner].team != player.team || player.team == 0) && !player.dead && !player.buffImmune[buffType] && Vector2.Distance(projectile.Center, player.Center) <= radius)
if ((owner.team != player.team || player.team == 0) && player.hostile && owner.hostile && !player.dead && !player.buffImmune[buffType] && Vector2.Distance(projectile.Center, player.Center) <= radius)
{
if (player.FindBuffIndex(buffType) == -1)
player.AddBuff(buffType, 180, false);
+3 -1
View File
@@ -126,7 +126,9 @@ namespace CalamityMod.Projectiles.Summon
{
if (projectile.owner == Main.myPlayer && amalgam)
{
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<PoisonousSeawater>(), projectile.damage, 0f, projectile.owner, 1f, 0f);
int water = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<PoisonousSeawater>(), projectile.damage, 0f, projectile.owner, 1f, 0f);
Main.projectile[water].usesIDStaticNPCImmunity = true;
Main.projectile[water].usesLocalNPCImmunity = false;
}
}
@@ -23,6 +23,7 @@ namespace CalamityMod.Projectiles.Typeless
projectile.timeLeft = 6;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 10;
projectile.idStaticNPCHitCooldown = 10;
}
public override void AI()