diff --git a/Items/Weapons/Ranged/Minigun.cs b/Items/Weapons/Ranged/Kingsbane.cs similarity index 80% rename from Items/Weapons/Ranged/Minigun.cs rename to Items/Weapons/Ranged/Kingsbane.cs index 571f5a0f13..b17c0e57c0 100644 --- a/Items/Weapons/Ranged/Minigun.cs +++ b/Items/Weapons/Ranged/Kingsbane.cs @@ -11,10 +11,9 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class Minigun : ModItem, ILocalizedModType + [LegacyName("Minigun")] + public class Kingsbane : ModItem, ILocalizedModType { - public static readonly SoundStyle AuricFire = new("CalamityMod/Sounds/Item/MinigunAuricFire") { Volume = 0.7f }; //unsused - public static readonly SoundStyle RevSound = new("CalamityMod/Sounds/Item/ArcNovaDiffuserChargeLV2") { Volume = 0.7f }; //unused public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { @@ -32,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.UseSound = null; Item.autoReuse = true; Item.noUseGraphic = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 2f; Item.useAmmo = AmmoID.Bullet; Item.rare = ModContent.RarityType(); @@ -41,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.NextFloat() > 0.95f && player.ownedProjectileCounts[Item.shoot] > 0; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 0f); return false; } public override void AddRecipes() diff --git a/Items/Weapons/Ranged/Minigun.png b/Items/Weapons/Ranged/Kingsbane.png similarity index 100% rename from Items/Weapons/Ranged/Minigun.png rename to Items/Weapons/Ranged/Kingsbane.png diff --git a/Items/Weapons/Ranged/SomaPrime.cs b/Items/Weapons/Ranged/SomaPrime.cs index 403970afe2..921c138b60 100644 --- a/Items/Weapons/Ranged/SomaPrime.cs +++ b/Items/Weapons/Ranged/SomaPrime.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Items.Weapons.Ranged { CreateRecipe(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(5). AddTile(). Register(); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 783d3709a2..4fa01457cf 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -725,8 +725,8 @@ MineralMortar: { Tooltip: Shoots an onyx bomb that explodes into sand sharks on death } -Minigun: { - DisplayName: Minigun +Kingsbane: { + DisplayName: Kingsbane Tooltip: ''' After revving up, rapidly fire bullets diff --git a/Projectiles/Ranged/MinigunHoldout.cs b/Projectiles/Ranged/KingsbaneHoldout.cs similarity index 94% rename from Projectiles/Ranged/MinigunHoldout.cs rename to Projectiles/Ranged/KingsbaneHoldout.cs index 8a909d7873..36608c4a19 100644 --- a/Projectiles/Ranged/MinigunHoldout.cs +++ b/Projectiles/Ranged/KingsbaneHoldout.cs @@ -11,14 +11,13 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { - public class MinigunHoldout : ModProjectile + public class KingsbaneHoldout : ModProjectile { // Take the name and texture from the weapon - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); + public override LocalizedText DisplayName => CalamityUtils.GetItemName(); private bool OwnerCanShoot => Owner.channel && !Owner.noItems && !Owner.CCed; - public override string Texture => "CalamityMod/Projectiles/Ranged/MinigunWindUp"; + public override string Texture => "CalamityMod/Projectiles/Ranged/KingsbaneWindUp"; private Player Owner => Main.player[Projectile.owner]; - //public SlotId MinigunRevSlot; public int Time = 0; public int revTimer = 0; //revving timer @@ -98,7 +97,7 @@ namespace CalamityMod.Projectiles.Ranged Owner.velocity += -Projectile.velocity * fullRevShots * (Main.zenithWorld ? 0.028f : 0.013f); Projectile.NewProjectile(Projectile.GetSource_FromThis(), tipPosition + Projectile.velocity * 5 + Main.rand.NextVector2Circular(7, 7), shootVelocity.RotatedByRandom(MathHelper.ToRadians(4f)), ModContent.ProjectileType(), (int)(Projectile.damage * 0.9f), Projectile.knockBack, Projectile.owner); SoundEngine.PlaySound(SoundID.Item40 with { PitchVariance = 0.4f }, Projectile.Center); - //SoundEngine.PlaySound(Minigun.AuricFire with { PitchVariance = 0.4f }, Projectile.Center); + //SoundEngine.PlaySound(Kingsbane.AuricFire with { PitchVariance = 0.4f }, Projectile.Center); fullRevShots--; } } @@ -165,12 +164,6 @@ namespace CalamityMod.Projectiles.Ranged Owner.itemAnimation = 2; Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); } - public override void OnKill(int timeLeft) - { - //if (SoundEngine.TryGetActiveSound(MinigunRevSlot, out var ChargeSound)) - //ChargeSound?.Stop(); - } - public override bool? CanDamage() => false; } } diff --git a/Projectiles/Ranged/MinigunWindUp.png b/Projectiles/Ranged/KingsbaneWindUp.png similarity index 100% rename from Projectiles/Ranged/MinigunWindUp.png rename to Projectiles/Ranged/KingsbaneWindUp.png diff --git a/Sounds/Item/MinigunAuricFire.ogg b/Sounds/Item/MinigunAuricFire.ogg deleted file mode 100644 index 5c56c29df9..0000000000 Binary files a/Sounds/Item/MinigunAuricFire.ogg and /dev/null differ