Animosity shell now shows up on both firing modes
This commit is contained in:
1 parent
3905969462
commit
a560032046
1 file changed
+7
-7
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class Animosity : ModItem, ILocalizedModType
|
||||
{
|
||||
public static readonly SoundStyle ShootAndReloadSound = new("CalamityMod/Sounds/Item/WulfrumBlunderbussFireAndReload") { PitchVariance = 0.25f };
|
||||
// Very cool sound and it would be a shame for it to not be used elsewhere, would be even better if a new sound is made in the future
|
||||
// Very cool sound and it would be a shame for it to not be used elsewhere, would be even better if a new sound is made in the future, but for now this is good enough
|
||||
|
||||
public float SniperDmgMult = 8f;
|
||||
public float SniperCritMult = Main.zenithWorld ? 7f : 1.2f;
|
||||
@@ -114,12 +114,6 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
//The dmg mult has to be applied here otherwise the left click gets it instead (for one shot), and the crit needs to be applied down here too cuz otherwise it never affects the weapon
|
||||
int p = Projectile.NewProjectile(source, nuzzlePos, velocity * SniperVelocityMult, ModContent.ProjectileType<AnimosityBullet>(), (int)(damage * SniperDmgMult), knockback, player.whoAmI);
|
||||
Main.projectile[p].CritChance = (int)(Main.projectile[p].CritChance * SniperCritMult); //To support crit mults with decimals
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2";
|
||||
Gore.NewGore(source, position, velocity.RotatedBy(2f * -player.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find<ModGore>(goreType).Type);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -182,6 +176,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
}
|
||||
}
|
||||
//shell
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2";
|
||||
Gore.NewGore(source, position, velocity.RotatedBy(2f * -player.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find<ModGore>(goreType).Type);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user