This commit is contained in:
Amber Sienna committed 2020-03-28 09:27:33 +00:00
commit ced5fe22b3
5 files changed
+9 -6

No files matched your search

+2 -1
View File
@@ -11,7 +11,8 @@ namespace CalamityMod.Items.Weapons.Melee
{
DisplayName.SetDefault("Sulphurous Grabber");
Tooltip.SetDefault("Occasionally releases a ring of colored bubbles\n" +
"The yoyo receives powers up after touching a green bubble");
"The yoyo powers up after touching a green bubble\n" +
"A very agile yoyo");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
+2 -1
View File
@@ -813,7 +813,8 @@ namespace CalamityMod.NPCs.DevourerofGods
player.KillMe(PlayerDeathReason.ByCustomReason(player.name + "'s essence was consumed by the devourer."), 1000.0, 0, false);
}
if (player.immune || player.hurtCooldowns[1] > 0)
// TODO: don't talk if the player has iframes
if (player.immuneTime > 0 || player.immune)
return;
int num = Main.rand.Next(5);
+2 -1
View File
@@ -1201,7 +1201,8 @@ namespace CalamityMod.NPCs.DevourerofGods
player.KillMe(PlayerDeathReason.ByCustomReason(player.name + "'s essence was consumed by the devourer."), 1000.0, 0, false);
}
if (player.immune || player.hurtCooldowns[1] > 0)
// TODO: don't talk if the player has iframes
if (player.immuneTime > 0 || player.immune)
return;
int num = Main.rand.Next(5);
@@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
if (Main.rand.NextBool(10))
projType = ModContent.ProjectileType<SulphurousGrabberBubble2>();
float angle = MathHelper.TwoPi / bubbleAmt * i + (float)Math.Sin(arbitraryTimer / 20f) * MathHelper.PiOver2;
Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 8f, projType, projectile.damage / 10, projectile.knockBack / 10, projectile.owner, 0f, 0f);
Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 8f, projType, projectile.damage / 5, projectile.knockBack / 5, projectile.owner, 0f, 0f);
}
bubbleCounter = 0;
}
+2 -2
View File
@@ -85,11 +85,11 @@ namespace CalamityMod.Projectiles.Rogue
Vector2 value17 = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51));
value17.Normalize();
value17 *= (float)Main.rand.Next(10, 51) * 0.01f;
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value17.X, value17.Y, ModContent.ProjectileType<SkyBomberGas>(), projectile.damage / 2, projectile.knockBack / 2, projectile.owner, 0f, 0f);
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value17.X, value17.Y, ModContent.ProjectileType<SkyBomberGas>(), (int)(projectile.damage * 0.4), projectile.knockBack * 0.4f, projectile.owner, 0f, 0f);
}
if (projectile.Calamity().stealthStrike)
{
int explode = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<BileExplosion>(), (int)(projectile.damage * 0.75), projectile.knockBack, projectile.owner, 1f);
int explode = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<BileExplosion>(), (int)(projectile.damage * 0.5), projectile.knockBack * 0.5f, projectile.owner, 1f);
Main.projectile[explode].usesLocalNPCImmunity = true;
Main.projectile[explode].localNPCHitCooldown = 20;
}