diff --git a/Items/Ammo/AccelerationRound.cs b/Items/Ammo/AccelerationRound.cs deleted file mode 100644 index 4688a7e4cf..0000000000 --- a/Items/Ammo/AccelerationRound.cs +++ /dev/null @@ -1,43 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Ranged; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Ammo -{ - [LegacyName("AccelerationBullet")] - public class AccelerationRound : ModItem, ILocalizedModType - { - public new string LocalizationCategory => "Items.Ammo"; - public override void SetStaticDefaults() - { - Item.ResearchUnlockCount = 99; - } - - public override void SetDefaults() - { - Item.width = 10; - Item.height = 16; - Item.damage = 10; - Item.DamageType = DamageClass.Ranged; - Item.maxStack = 9999; - Item.consumable = true; - Item.knockBack = 1.25f; - Item.value = Item.sellPrice(copper: 2); - Item.rare = ItemRarityID.Green; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 1f; - Item.ammo = AmmoID.Bullet; - } - - public override void AddRecipes() - { - CreateRecipe(150). - AddIngredient(ItemID.MusketBall, 150). - AddIngredient(). - AddTile(TileID.Anvils). - Register(); - } - } -} diff --git a/Items/Ammo/AccelerationRound.png b/Items/Ammo/AccelerationRound.png deleted file mode 100644 index c2c6a926ad..0000000000 Binary files a/Items/Ammo/AccelerationRound.png and /dev/null differ diff --git a/Items/Ammo/SuperballBullet.cs b/Items/Ammo/SuperballBullet.cs deleted file mode 100644 index 34877abf79..0000000000 --- a/Items/Ammo/SuperballBullet.cs +++ /dev/null @@ -1,42 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Ranged; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Ammo -{ - public class SuperballBullet : ModItem, ILocalizedModType - { - public new string LocalizationCategory => "Items.Ammo"; - public override void SetStaticDefaults() - { - Item.ResearchUnlockCount = 99; - } - - public override void SetDefaults() - { - Item.width = 8; - Item.height = 8; - Item.damage = 6; - Item.DamageType = DamageClass.Ranged; - Item.maxStack = 9999; - Item.consumable = true; - Item.knockBack = 1.5f; - Item.value = Item.sellPrice(copper: 2); - Item.rare = ItemRarityID.Green; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 1f; - Item.ammo = AmmoID.Bullet; - } - - public override void AddRecipes() - { - CreateRecipe(150). - AddIngredient(ItemID.MeteorShot, 150). - AddIngredient(). - AddTile(TileID.Anvils). - Register(); - } - } -} diff --git a/Items/Ammo/SuperballBullet.png b/Items/Ammo/SuperballBullet.png deleted file mode 100644 index d0b2597f20..0000000000 Binary files a/Items/Ammo/SuperballBullet.png and /dev/null differ diff --git a/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson b/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson index d2babbab18..81bd7ef112 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson @@ -1,8 +1,3 @@ -AccelerationRound: { - DisplayName: Acceleration Round - Tooltip: Gains speed over time -} - ArcticArrow: { DisplayName: Arctic Arrow Tooltip: Freezes enemies for a short time @@ -132,11 +127,6 @@ RubberMortarRound: { ''' } -SuperballBullet: { - DisplayName: Superball Bullet - Tooltip: Bounces at extreme speeds -} - TerraArrow: { DisplayName: Terra Arrow Tooltip: Travels incredibly quickly and explodes into more arrows when it hits a certain velocity diff --git a/Projectiles/Ranged/AccelerationRoundProj.cs b/Projectiles/Ranged/AccelerationRoundProj.cs deleted file mode 100644 index 6e16edb5d8..0000000000 --- a/Projectiles/Ranged/AccelerationRoundProj.cs +++ /dev/null @@ -1,77 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.Audio; - -namespace CalamityMod.Projectiles.Ranged -{ - public class AccelerationRoundProj : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Ranged"; - public override void SetStaticDefaults() - { - ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6; - ProjectileID.Sets.TrailingMode[Projectile.type] = 0; - } - - public override void SetDefaults() - { - Projectile.width = 4; - Projectile.height = 4; - Projectile.aiStyle = ProjAIStyleID.Arrow; - Projectile.friendly = true; - Projectile.DamageType = DamageClass.Ranged; - Projectile.penetrate = 1; - Projectile.timeLeft = 600; - Projectile.extraUpdates = 3; - AIType = ProjectileID.Bullet; - Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration; - } - - public override void AI() - { - Projectile.velocity *= 1.01f; - if (Projectile.velocity.Length() >= 12f) - { - Projectile.velocity *= 0.5f; - Projectile.extraUpdates++; - Projectile.netUpdate = true; - } - - Projectile.localAI[0] += 1f; - if (Projectile.localAI[0] > 4f) - { - if (Main.rand.NextBool(3)) - { - int num137 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), 1, 1, 91, 0f, 0f, 0, default, 0.5f); - Main.dust[num137].alpha = Projectile.alpha; - Main.dust[num137].velocity *= 0f; - Main.dust[num137].noGravity = true; - } - } - } - - public override bool OnTileCollide(Vector2 oldVelocity) - { - Collision.HitTiles(Projectile.position, Projectile.velocity, Projectile.width, Projectile.height); - SoundEngine.PlaySound(SoundID.Dig, Projectile.position); - return true; - } - - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesFromEdge(Projectile, 0, lightColor); - return false; - } - - public override void OnKill(int timeLeft) - { - SoundEngine.PlaySound(SoundID.Item10, Projectile.position); - for (int k = 0; k < 5; k++) - { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 91, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f); - } - } - } -} diff --git a/Projectiles/Ranged/AccelerationRoundProj.png b/Projectiles/Ranged/AccelerationRoundProj.png deleted file mode 100644 index 646dd6b505..0000000000 Binary files a/Projectiles/Ranged/AccelerationRoundProj.png and /dev/null differ diff --git a/Projectiles/Ranged/SuperballBulletProj.cs b/Projectiles/Ranged/SuperballBulletProj.cs deleted file mode 100644 index c64b5b19d4..0000000000 --- a/Projectiles/Ranged/SuperballBulletProj.cs +++ /dev/null @@ -1,84 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.Audio; - -namespace CalamityMod.Projectiles.Ranged -{ - public class SuperballBulletProj : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Ranged"; - public override void SetStaticDefaults() - { - ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4; - ProjectileID.Sets.TrailingMode[Projectile.type] = 0; - } - - public override void SetDefaults() - { - Projectile.width = 4; - Projectile.height = 4; - Projectile.aiStyle = ProjAIStyleID.Arrow; - Projectile.friendly = true; - Projectile.DamageType = DamageClass.Ranged; - Projectile.penetrate = 5; - Projectile.timeLeft = 600; - Projectile.extraUpdates = 1; - AIType = ProjectileID.Bullet; - Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration; - } - - public override void AI() - { - Projectile.localAI[0] += 1f; - if (Projectile.localAI[0] > 4f) - { - if (Main.rand.NextBool(3)) - { - int dust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), 1, 1, 87, 0f, 0f, 0, default, 0.5f); - Main.dust[dust].alpha = Projectile.alpha; - Main.dust[dust].velocity *= 0f; - Main.dust[dust].noGravity = true; - } - } - } - - public override bool OnTileCollide(Vector2 oldVelocity) - { - Projectile.penetrate--; - if (Projectile.penetrate <= 0) - { - Projectile.Kill(); - } - else - { - if (Projectile.velocity.X != oldVelocity.X) - Projectile.velocity.X = -oldVelocity.X; - if (Projectile.velocity.Y != oldVelocity.Y) - Projectile.velocity.Y = -oldVelocity.Y; - - if (Projectile.extraUpdates < 5) - Projectile.extraUpdates++; - - SoundEngine.PlaySound(SoundID.Item10, Projectile.position); - } - return false; - } - - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesFromEdge(Projectile, 0, lightColor); - return false; - } - - public override void OnKill(int timeLeft) - { - SoundEngine.PlaySound(SoundID.Item10, Projectile.position); - for (int k = 0; k < 5; k++) - { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 87, Projectile.oldVelocity.X * 0.05f, Projectile.oldVelocity.Y * 0.05f); - } - } - } -} diff --git a/Projectiles/Ranged/SuperballBulletProj.png b/Projectiles/Ranged/SuperballBulletProj.png deleted file mode 100644 index b198b5ea66..0000000000 Binary files a/Projectiles/Ranged/SuperballBulletProj.png and /dev/null differ