Effervescence sound and spread tweak
This commit is contained in:
1 parent
f7c7007617
commit
faaa80a434
6 files changed
+18
-11
No files matched your search
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public class Effervescence : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Magic";
|
||||
public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/EffervescenceFire") { PitchVariance = 0.1f };
|
||||
public static readonly SoundStyle BurstSound = new("CalamityMod/Sounds/Item/EffervescenceBurst") { PitchVariance = 0.1f };
|
||||
public static readonly SoundStyle PopSound = new("CalamityMod/Sounds/Item/EffervescencePop") { PitchVariance = 0.1f };
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 56;
|
||||
@@ -25,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.knockBack = 3.75f;
|
||||
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
Item.UseSound = SoundID.Item95;
|
||||
Item.UseSound = FireSound;
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 13f;
|
||||
Item.shoot = ModContent.ProjectileType<UberBubble>();
|
||||
@@ -37,9 +42,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
for (int randomBullets = 0; randomBullets < 4; randomBullets++)
|
||||
{
|
||||
float SpeedX = velocity.X + Main.rand.Next(-25, 26) * 0.05f;
|
||||
float SpeedY = velocity.Y + Main.rand.Next(-25, 26) * 0.05f;
|
||||
Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI);
|
||||
Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(10f)) * Main.rand.NextFloat(0.85f, 1.2f);
|
||||
Projectile.NewProjectile(source, position, newVel, type, damage, knockback, player.whoAmI);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -83,7 +84,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item54, Projectile.Center);
|
||||
SoundEngine.PlaySound(Effervescence.PopSound, Projectile.Center);
|
||||
Particle Star = new CritSpark(Projectile.Center, Vector2.Zero, Color.SkyBlue, Color.DeepSkyBlue, Main.rand.NextFloat(1f, 1.1f), 30, 0.1f, 3f);
|
||||
GeneralParticleHandler.SpawnParticle(Star);
|
||||
int num190 = Main.rand.Next(5, 9);
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Dusts;
|
||||
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
public class UberBubble : ModProjectile, ILocalizedModType
|
||||
@@ -63,7 +65,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item96, Projectile.Center);
|
||||
SoundEngine.PlaySound(Effervescence.BurstSound, Projectile.Center);
|
||||
Particle Star = new GenericSparkle(Projectile.Center, Vector2.Zero, Color.Purple, Color.PeachPuff, Main.rand.NextFloat(0.5f, 0.6f), 30, 0.1f, 3f);
|
||||
GeneralParticleHandler.SpawnParticle(Star);
|
||||
Star = new GenericSparkle(Projectile.Center + Projectile.velocity, Vector2.Zero, Color.MediumPurple, Color.LightPink, Main.rand.NextFloat(0.5f, 0.6f), 20, 0.1f, 3f);
|
||||
@@ -80,7 +82,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
for (int numBubbles = 0; numBubbles < 3; numBubbles++)
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, Projectile.velocity.X * (Main.rand.NextFloat() * 2f), Projectile.velocity.Y * (Main.rand.NextFloat() * 2f), ModContent.ProjectileType<BlueBubble>(), Projectile.damage, Projectile.knockBack, Projectile.owner);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedByRandom(MathHelper.ToRadians(20f)) * Main.rand.NextFloat(0.5f, 2f), ModContent.ProjectileType<BlueBubble>(), Projectile.damage, Projectile.knockBack, Projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user