Surge Driver damages/resists

This commit is contained in:
Dominic authored and Cameron Ewell committed 2021-07-29 14:20:37 -04:00
1 parent da14a6dc48
commit 143973bbac
3 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Vector2 newShootVelocity = shootVelocity * Main.rand.NextFloat(1f, 1.45f);
newShootVelocity = newShootVelocity.RotatedByRandom(0.15f);
Projectile.NewProjectile(gunTip, newShootVelocity, item.shoot, damage, knockBack, player.whoAmI);
Projectile.NewProjectile(gunTip, newShootVelocity, item.shoot, (int)(damage * 1.08), knockBack, player.whoAmI);
}
}
+8
View File
@@ -3791,6 +3791,10 @@ namespace CalamityMod.NPCs
}
else if (npc.type == NPCType<SCalWormHeart>())
{
// 30% resist to Surge Driver's alt click comets.
if (projectile.type == ProjectileType<PrismComet>())
damage = (int)(damage * 0.7);
// 20% resist to Executioner's Blade stealth strikes.
if (projectile.type == ProjectileType<ExecutionersBladeStealthProj>())
damage = (int)(damage * 0.8);
@@ -3891,6 +3895,10 @@ namespace CalamityMod.NPCs
// 10% resist to Executioner's Blade stealth strikes.
else if (projectile.type == ProjectileType<ExecutionersBladeStealthProj>())
damage = (int)(damage * 0.9);
// 10% resist to Surge Driver's alt click comets.
if (projectile.type == ProjectileType<PrismComet>())
damage = (int)(damage * 0.9);
}
else if (npc.type == NPCID.CultistBoss)
{
+1 -1
View File
@@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Ranged
if (Main.myPlayer != projectile.owner || ExplodedYet || LaserLength <= 60f)
return;
Projectile.NewProjectile(laserEnd, Vector2.Zero, ModContent.ProjectileType<PrismExplosionLarge>(), projectile.damage, 0f, projectile.owner);
Projectile.NewProjectile(laserEnd, Vector2.Zero, ModContent.ProjectileType<PrismExplosionLarge>(), projectile.damage / 2, 0f, projectile.owner);
if (!ExplodedYet)
{