From c1032747ee4ced0c70a1e462fdeff3d5828406fd Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 9 May 2025 21:06:43 +0700 Subject: [PATCH] democratically elected execution of 2025 --- Balancing/BalancingChangesManager.cs | 6 - CalPlayer/CalamityPlayer.cs | 7 +- CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs | 2 - Items/Weapons/Magic/AsteroidStaff.cs | 201 ------------------ Items/Weapons/Magic/AsteroidStaff.png | Bin 951 -> 0 bytes Items/Weapons/Melee/Aftershock.cs | 55 ----- Items/Weapons/Melee/Aftershock.png | Bin 1144 -> 0 bytes Items/Weapons/Melee/AstralBlade.cs | 89 -------- Items/Weapons/Melee/AstralBlade.png | Bin 2181 -> 0 bytes Items/Weapons/Melee/TheEnforcer.cs | 150 ------------- Items/Weapons/Melee/TheEnforcer.png | Bin 2473 -> 0 bytes Items/Weapons/Melee/TheEnforcerGlow.png | Bin 2268 -> 0 bytes Items/Weapons/Ranged/AstralBow.cs | 46 ---- Items/Weapons/Ranged/AstralBow.png | Bin 1819 -> 0 bytes Items/Weapons/Ranged/ClockGatlignum.cs | 69 ------ Items/Weapons/Ranged/ClockGatlignum.png | Bin 1214 -> 0 bytes Items/Weapons/Ranged/SomaPrime.cs | 2 +- Items/Weapons/Ranged/TheSevensStriker.cs | 1 - Items/Weapons/Ranged/Ultima.cs | 1 - Items/Weapons/Rogue/AcidicRainBarrel.cs | 57 ----- Items/Weapons/Rogue/AcidicRainBarrel.png | Bin 872 -> 0 bytes Items/Weapons/Rogue/SkyStabber.cs | 83 -------- Items/Weapons/Rogue/SkyStabber.png | Bin 281 -> 0 bytes ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 11 - ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 15 -- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 14 -- ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 19 -- .../Mods.CalamityMod.Projectiles.Magic.hjson | 1 - .../Mods.CalamityMod.Projectiles.Melee.hjson | 2 - .../Mods.CalamityMod.Projectiles.Rogue.hjson | 4 - ...ods.CalamityMod.Projectiles.Typeless.hjson | 1 + NPCs/AstrumAureus/AstrumAureus.cs | 3 +- NPCs/NormalNPCs/Horse.cs | 1 - Projectiles/Magic/Asteroid.cs | 126 ----------- Projectiles/Magic/Asteroid.png | Bin 693 -> 0 bytes Projectiles/Melee/AftershockRock.cs | 35 --- Projectiles/Melee/EssenceFlame2.cs | 80 ------- Projectiles/Ranged/LeviatitanMeteor.cs | 2 +- .../LeviatitanMeteor.png} | Bin Projectiles/Rogue/AcidShrapnel.cs | 71 ------- Projectiles/Rogue/GreenDonkeyKongReference.cs | 131 ------------ Projectiles/Rogue/SkyStabberProj.cs | 84 -------- .../RustyMedallionDroplet.cs} | 21 +- .../Collections/SharedStaticIFramesIDSet.cs | 2 +- Systems/Collections/VeneratedLocketBanList.cs | 1 - 45 files changed, 12 insertions(+), 1381 deletions(-) delete mode 100644 Items/Weapons/Magic/AsteroidStaff.cs delete mode 100644 Items/Weapons/Magic/AsteroidStaff.png delete mode 100644 Items/Weapons/Melee/Aftershock.cs delete mode 100644 Items/Weapons/Melee/Aftershock.png delete mode 100644 Items/Weapons/Melee/AstralBlade.cs delete mode 100644 Items/Weapons/Melee/AstralBlade.png delete mode 100644 Items/Weapons/Melee/TheEnforcer.cs delete mode 100644 Items/Weapons/Melee/TheEnforcer.png delete mode 100644 Items/Weapons/Melee/TheEnforcerGlow.png delete mode 100644 Items/Weapons/Ranged/AstralBow.cs delete mode 100644 Items/Weapons/Ranged/AstralBow.png delete mode 100644 Items/Weapons/Ranged/ClockGatlignum.cs delete mode 100644 Items/Weapons/Ranged/ClockGatlignum.png delete mode 100644 Items/Weapons/Rogue/AcidicRainBarrel.cs delete mode 100644 Items/Weapons/Rogue/AcidicRainBarrel.png delete mode 100644 Items/Weapons/Rogue/SkyStabber.cs delete mode 100644 Items/Weapons/Rogue/SkyStabber.png delete mode 100644 Projectiles/Magic/Asteroid.cs delete mode 100644 Projectiles/Magic/Asteroid.png delete mode 100644 Projectiles/Melee/AftershockRock.cs delete mode 100644 Projectiles/Melee/EssenceFlame2.cs rename Projectiles/{Melee/AftershockRock.png => Ranged/LeviatitanMeteor.png} (100%) delete mode 100644 Projectiles/Rogue/AcidShrapnel.cs delete mode 100644 Projectiles/Rogue/GreenDonkeyKongReference.cs delete mode 100644 Projectiles/Rogue/SkyStabberProj.cs rename Projectiles/{Rogue/AcidBarrelDrop.cs => Typeless/RustyMedallionDroplet.cs} (76%) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index fd98916dfc..afc4f39da6 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -158,9 +158,6 @@ namespace CalamityMod.Balancing // See Aquatic Scourge comment. NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CultistBossLightningOrbArc)))); - // 50% resist to Aftershock's rocks. - NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); - // 50% resist to Dormant Brimseeker. NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); @@ -404,9 +401,6 @@ namespace CalamityMod.Balancing // 65% resist to true melee. NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(ResistTrueMelee(0.35f)))); - // 65% resist to The Enforcer's projectiles. - NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType())))); - // 65% resist to The Final Dawn's lunge. NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType())))); diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index afb6a65a8b..b6b82b7bff 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -4834,12 +4834,7 @@ namespace CalamityMod.CalPlayer Vector2 mouse = Player.ClampedMouseWorld(); Vector2 startingPosition = mouse - Vector2.UnitY.RotatedByRandom(0.3f) * 1250f; Vector2 directionToMouse = (mouse - startingPosition).SafeNormalize(Vector2.UnitX); - int drop = Projectile.NewProjectile(MedallionSource, startingPosition, directionToMouse * 15f, ProjectileType(), d, 0f, Player.whoAmI, 3); - if (drop.WithinBounds(Main.maxProjectiles)) - { - Main.projectile[drop].penetrate = 2; - Main.projectile[drop].DamageType = DamageClass.Generic; - } + Projectile.NewProjectile(MedallionSource, startingPosition, directionToMouse * 15f, ProjectileType(), d, 0f, Player.whoAmI, 3); RustyMedallionCooldown = RustyMedallion.AcidCreationCooldown; } } diff --git a/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs b/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs index 029b50fe1b..d5a92f8bfc 100644 --- a/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs +++ b/CalPlayer/DrawLayers/HeldItemGlowMaskLayer.cs @@ -92,8 +92,6 @@ namespace CalamityMod.CalPlayer.DrawLayers glowMask = ModContent.Request("CalamityMod/Items/Weapons/Magic/SubsumingVortexSmallGlow").Value; else if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow").Value; - else if (itemType == ModContent.ItemType()) - glowMask = ModContent.Request("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow").Value; else if (itemType == ModContent.ItemType()) glowMask = ModContent.Request("CalamityMod/Items/Weapons/Ranged/VernalBolterGlow").Value; else if (itemType == ModContent.ItemType()) diff --git a/Items/Weapons/Magic/AsteroidStaff.cs b/Items/Weapons/Magic/AsteroidStaff.cs deleted file mode 100644 index 78a029f901..0000000000 --- a/Items/Weapons/Magic/AsteroidStaff.cs +++ /dev/null @@ -1,201 +0,0 @@ -using System; -using System.Collections.Generic; -using CalamityMod.Projectiles.Magic; -using CalamityMod.Projectiles.Ranged; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.DataStructures; -using Terraria.GameContent; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Weapons.Magic -{ - public class AsteroidStaff : ModItem, ILocalizedModType - { - public new string LocalizationCategory => "Items.Weapons.Magic"; - - #region GFB Projectile Array - public static int[] CorekeeperChaos = - { - ProjectileID.BallofFire, - ProjectileID.BallofFrost, - ProjectileID.MagicMissile, - ProjectileID.WaterStream, - ProjectileID.Flamelash, - ProjectileID.RainbowRodBullet, - ProjectileID.UnholyTridentFriendly, - ProjectileID.AmethystBolt, - ProjectileID.AmberBolt, - ProjectileID.TopazBolt, - ProjectileID.DiamondBolt, - ProjectileID.SapphireBolt, - ProjectileID.RubyBolt, - ProjectileID.EmeraldBolt, - ProjectileID.RainCloudMoving, - ProjectileID.BloodCloudMoving, - ProjectileID.ShadowBeamFriendly, - ProjectileID.InfernoFriendlyBlast, - ProjectileID.LostSoulFriendly, - ProjectileID.Bat, - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - }; - #endregion - public override void SetStaticDefaults() - { - Item.staff[Type] = true; - } - - public override void SetDefaults() - { - Item.width = 50; - Item.height = 50; - Item.damage = 146; - Item.DamageType = DamageClass.Magic; - Item.mana = 18; - Item.useTime = 10; - Item.useAnimation = 10; - Item.useStyle = ItemUseStyleID.Shoot; - Item.noMelee = true; - Item.knockBack = 6.75f; - Item.UseSound = SoundID.Item88; - Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 20f; - - Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; - Item.rare = ItemRarityID.Purple; - } - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - if (Main.zenithWorld) - { - for (int i = 0; i < 4; i++) - { - int projType; - projType = CorekeeperChaos[Main.rand.Next(CorekeeperChaos.Length)]; - float SpeedX = velocity.X + (float)Main.rand.Next(-60, 61) * 0.05f; - float SpeedY = velocity.Y + (float)Main.rand.Next(-60, 61) * 0.05f; - int index = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, projType, damage, knockback, player.whoAmI); - - } - } - else - { - float meteorSpeed = Item.shootSpeed; - Vector2 realPlayerPos = player.RotatedRelativePoint(player.MountedCenter, true); - float meteorSpawnXPos = (float)Main.mouseX + Main.screenPosition.X - realPlayerPos.X; - float meteorSpawnYPos = (float)Main.mouseY + Main.screenPosition.Y - realPlayerPos.Y; - if (player.gravDir == -1f) - { - meteorSpawnYPos = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - realPlayerPos.Y; - } - float meteorSpawnDist = (float)Math.Sqrt((double)(meteorSpawnXPos * meteorSpawnXPos + meteorSpawnYPos * meteorSpawnYPos)); - if ((float.IsNaN(meteorSpawnXPos) && float.IsNaN(meteorSpawnYPos)) || (meteorSpawnXPos == 0f && meteorSpawnYPos == 0f)) - for (int i = 0; i < 4; i++) - { - meteorSpawnXPos = (float)player.direction; - meteorSpawnYPos = 0f; - meteorSpawnDist = meteorSpeed; - } - else - { - meteorSpawnDist = meteorSpeed / meteorSpawnDist; - } - - int asteroidAmt = 3; - for (int i = 0; i < asteroidAmt; i++) - { - realPlayerPos = new Vector2(player.Center.X + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y - 600f); - realPlayerPos.X = (realPlayerPos.X + player.Center.X) / 2f + (float)Main.rand.Next(-200, 201); - realPlayerPos.Y -= (float)(100 * i); - meteorSpawnXPos = (float)Main.mouseX + Main.screenPosition.X - realPlayerPos.X + (float)Main.rand.Next(-40, 41) * 0.03f; - meteorSpawnYPos = (float)Main.mouseY + Main.screenPosition.Y - realPlayerPos.Y; - if (meteorSpawnYPos < 0f) - { - meteorSpawnYPos *= -1f; - } - if (meteorSpawnYPos < 20f) - { - meteorSpawnYPos = 20f; - } - meteorSpawnDist = (float)Math.Sqrt((double)(meteorSpawnXPos * meteorSpawnXPos + meteorSpawnYPos * meteorSpawnYPos)); - meteorSpawnDist = meteorSpeed / meteorSpawnDist; - meteorSpawnXPos *= meteorSpawnDist; - meteorSpawnYPos *= meteorSpawnDist; - float meteorSpawnXOffset = meteorSpawnXPos; - float meteorSpawnYOffset = meteorSpawnYPos + (float)Main.rand.Next(-40, 41) * 0.02f; - Projectile.NewProjectile(source, realPlayerPos.X, realPlayerPos.Y, meteorSpawnXOffset * 0.75f, meteorSpawnYOffset * 0.75f, type, damage, knockback, player.whoAmI, 0f, 0.5f + (float)Main.rand.NextDouble() * 0.3f); - } - } - return false; - } - - public override void ModifyTooltips(List list) => list.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal")); - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.MeteorStaff). - AddIngredient(ItemID.LunarBar, 5). - AddTile(TileID.LunarCraftingStation). - Register(); - } - } -} diff --git a/Items/Weapons/Magic/AsteroidStaff.png b/Items/Weapons/Magic/AsteroidStaff.png deleted file mode 100644 index 623294885e3b6a6dfb8c4886ed239292f3f37ed4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 951 zcmV;o14#UdP))&bqW$oyFPD$N}&+k(jV&t74Q zC?tZ;yuoUrKOQ1_wGaWi>%cx~=5jevivYQyD=PPihX@|ud^sacBBMV^ng2F3DpMh> zS6h5Ui2PaCC7Plg?d_uE2n3h}3F;3v<7m7@Hnwh-AkyhH!33%!w&n#F<&AiW=t!_P zT|7clw0Yt~U?&;=iLi%|?Rqt^N>Ckfb18=yZ_^W$?VpHpIHl`{9)B=AAYHxJZ-_#I zd7M$Psj%4b5y5kmUHA3V=hAgzaD*XIU2ndZM#(uQQ+MJcLWD$uLIxWpN6^&O;(5h- z^NWXw&UVhK9X&k~{QSa#D3LP`8Ax)Tq5s^TZfSBZiH8UgSPBWobN`vcU6e!bH|2j$Ajyr7vw}Rm^a)IN&Ge7W8WQdUXy`@j!ctak9xoS z$)sPnhZ`aly)1ajE=hf0RX{|a%nH{OK9EczQJftE5lHmy&ET|X_S-vAh(IcslsEpC z1lRe^5sSp|)GcwI92q)#h+srHnOSurnEVIB4H2`BbauA{k?J5O7r#i?WHzgZR%QDq zqQl}`K|kjZR?WYz67GY>LuCBId2xE^;bT!35H6)eoNICPxy9;4xYzLr0a=4Uykg zjkQ{;of8_Q8zPB0Qfm^B@lT{&KT7|*!}D6HKO)v@sTBczUw=fjhg8sNoxt?{we5!p zxiNU`tT@SuOM6^v+Yb>PX}v0`ey%?vyz8c>w6FEC-4JQgtA_abJ!H+*kuniTXkBwe ZegXIgL8|aNE))O&002ovPDHLkV1ne`vz!0` diff --git a/Items/Weapons/Melee/Aftershock.cs b/Items/Weapons/Melee/Aftershock.cs deleted file mode 100644 index aa4dcc8de9..0000000000 --- a/Items/Weapons/Melee/Aftershock.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using CalamityMod.Buffs.StatDebuffs; -using CalamityMod.Projectiles.Melee; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Weapons.Melee -{ - public class Aftershock : ModItem, ILocalizedModType - { - public new string LocalizationCategory => "Items.Weapons.Melee"; - - internal const float ShootSpeed = 12f; - - public override void SetDefaults() - { - Item.width = 54; - Item.height = 58; - Item.damage = 65; - Item.DamageType = DamageClass.Melee; - Item.useTime = 28; - Item.useAnimation = 28; - Item.useTurn = true; - Item.useStyle = ItemUseStyleID.Swing; - Item.knockBack = 9f; - Item.value = CalamityGlobalItem.RarityPinkBuyPrice; - Item.rare = ItemRarityID.Pink; - Item.UseSound = SoundID.Item1; - Item.autoReuse = true; - Item.shootSpeed = ShootSpeed; - } - - public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(ModContent.BuffType(), 300); - Vector2 destination = target.Center; - Vector2 position = destination - (Vector2.UnitY * (destination.Y - Main.screenPosition.Y + 80f)) + (Vector2.UnitX * Main.rand.Next(-160, 161)); - Vector2 velocity = (destination - position).SafeNormalize(Vector2.UnitY) * ShootSpeed * Main.rand.NextFloat(0.9f, 1.1f); - int rockDamage = player.CalcIntDamage(Item.damage); - Projectile.NewProjectile(player.GetSource_ItemUse(Item), position, velocity, ModContent.ProjectileType(), rockDamage, hit.Knockback, player.whoAmI, 0f, (float)Main.rand.Next(10), target.Center.Y); - } - - public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo) - { - target.AddBuff(ModContent.BuffType(), 300); - Vector2 destination = target.Center; - Vector2 position = destination - (Vector2.UnitY * (destination.Y - Main.screenPosition.Y + 80f)) + (Vector2.UnitX * Main.rand.Next(-160, 161)); - Vector2 velocity = (destination - position).SafeNormalize(Vector2.UnitY) * ShootSpeed * Main.rand.NextFloat(0.9f, 1.1f); - int rockDamage = player.CalcIntDamage(Item.damage); - Projectile.NewProjectile(player.GetSource_ItemUse(Item), position, velocity, ModContent.ProjectileType(), rockDamage, Item.knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10), target.Center.Y); - } - } -} diff --git a/Items/Weapons/Melee/Aftershock.png b/Items/Weapons/Melee/Aftershock.png deleted file mode 100644 index 3a6a2d76a29e17e7382b3c4f911645af0cada7ad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1144 zcmV-;1c&>HP)Px(GD$>1RA_CZD|17TWbIq&8@7LGVY1T_ewjf#7@6Jm_+J$ItjqF z?7}+0xi=dD=*aB%?*Dc0HUJmCodzOItZJuUz{pXo>Dj>Vi-|oh6(gnWr{vE%TrpA?`)7axDP_NR-#-n&mzTZ);QKFL1mNU5Hvl-E zP9`8G_D}`7ZOt6`WK;F-k;O>0HarIuV(8OPJ_O*svwc9piC9wCvI{_ji4}GCVX;(O z?Ph*?^Ew&$g1z5A~W&j&u|jT4;!eD~u30B3trK*7aZQi|!A z7$LFLe!w|_u1+^cV;9u|Dl50EUVzJ@yTL4_`{~_=>A|#1y=ExjSIw>h8*0Qe}fbl!4 zf$m#92a%Fy)_lS?cC1@h%spyMSydh}Tfc1GQZ|${!_w5<=e=_gl5F-1t5YresuKX? zcUFPoq@;=_=G8Be%FX`i-7jw^St63ieb(Cqzz6520C=Iv&#wJLbKX0aN=k|>v69{W z<_@e|u__x%s%vuPI%-`dl2?9mv6P$r9e}P*Kekf!RSAHZML)}ys+gEaTpn=UA{!Go zr`#Ob*poZA9#OGoV^b2TM~yA1a)~u1YhA^kob~FLC8U|R1Vrj&&+7mTUv~r)dtt=N zRpk&<{c7I(Bmfih%j@vqir2-KTsx$^@$!oDh#T4QW1o&Uos)wk51y+C+RL*8(^r2n|eBPJ>PsczZ6pENcy4s0f>-bXhr4}Fex zFy*T9h$Wx$>sMc|>l?NWx*?X_h8rJpheB)yld!w~VJqdWs`7{}{I%>k4aIHbcN|7bDv4U3qPd;4-z{1_7z}|+kqq5(H zf>Q`wjoa>))pnDTqDxGq4jynZaBI@-ioBXW@YcJOC+v?6|xr#2aSB^My zxA?c)VYIsRsRN8826nB~~R;Hv5TGeVub4i%ae|Od_@02w6p! zm_DfAXS+#jYir*5ZYL#0pO}?mPVSyv{QKb`MW2|hSO0fKme_rtqtqHn0+llW0000< KMNUMnLSTX%t2B-P diff --git a/Items/Weapons/Melee/AstralBlade.cs b/Items/Weapons/Melee/AstralBlade.cs deleted file mode 100644 index 46e95a74f6..0000000000 --- a/Items/Weapons/Melee/AstralBlade.cs +++ /dev/null @@ -1,89 +0,0 @@ -using System; -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Dusts; -using CalamityMod.Items.Materials; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.Audio; -using Terraria.ID; -using Terraria.ModLoader; -namespace CalamityMod.Items.Weapons.Melee -{ - public class AstralBlade : ModItem, ILocalizedModType - { - public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetDefaults() - { - Item.width = 80; - Item.height = 80; - Item.damage = 142; - Item.DamageType = TrueMeleeDamageClass.Instance; - Item.useTime = 12; - Item.useAnimation = 12; - Item.useTurn = true; - Item.useStyle = ItemUseStyleID.Swing; - Item.knockBack = 6f; - Item.value = CalamityGlobalItem.RarityCyanBuyPrice; - Item.rare = ItemRarityID.Cyan; - Item.UseSound = SoundID.Item1; - Item.autoReuse = true; - } - - // Terraria seems to really dislike high crit values in SetDefaults - public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 25; - - public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 300); - - public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo) => target.AddBuff(ModContent.BuffType(), 300); - - public override void MeleeEffects(Player player, Rectangle hitbox) - { - for (int i = 0; i < 3; i++) - { - Dust d = CalamityUtils.MeleeDustHelper(player, Main.rand.NextBool() ? ModContent.DustType() : ModContent.DustType(), 0.7f, 55, 110, -0.07f, 0.07f); - if (d != null) - d.customData = 0.03f; - } - } - - public override void ModifyHitNPC(Player player, NPC target, ref NPC.HitModifiers modifiers) - { - // Avoid dividing by 0 at all costs. - if (target.lifeMax <= 0) - return; - - float lifeRatio = MathHelper.Clamp(target.life / (float)target.lifeMax, 0f, 1f); - float maxMultiplier = 1.25f; - float multiplier = MathHelper.Lerp(1f, maxMultiplier, lifeRatio); - - modifiers.SourceDamage *= multiplier; - modifiers.Knockback *= multiplier; - - if (Main.rand.NextBool((int)MathHelper.Clamp((Item.crit + player.GetCritChance()) * multiplier, 0f, 99f), 100)) - modifiers.SetCrit(); - - SoundEngine.PlaySound(SoundID.Item105, player.Center); - - bool blue = Main.rand.NextBool(); - float angleStart = Main.rand.NextFloat(0f, MathHelper.TwoPi); - float var = 0.05f + (maxMultiplier - multiplier); - for (float angle = 0f; angle < MathHelper.TwoPi; angle += var) - { - blue = !blue; - Vector2 velocity = angle.ToRotationVector2() * (2f + (float)(Math.Sin(angleStart + angle * 3f) + 1) * 2.5f) * Main.rand.NextFloat(0.95f, 1.05f); - Dust d = Dust.NewDustPerfect(target.Center, blue ? ModContent.DustType() : ModContent.DustType(), velocity); - d.customData = 0.025f; - d.scale = multiplier; - d.noLight = false; - } - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(8). - AddTile(TileID.LunarCraftingStation). - Register(); - } - } -} diff --git a/Items/Weapons/Melee/AstralBlade.png b/Items/Weapons/Melee/AstralBlade.png deleted file mode 100644 index 96c91d0c8bf03f6f712a958f7cfcfbc7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amageClass.Melee; - Item.useAnimation = 17; - Item.useStyle = ItemUseStyleID.Swing; - Item.useTime = 17; - Item.useTurn = true; - Item.knockBack = 9f; - Item.UseSound = SoundID.Item20; - Item.autoReuse = true; - Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; - Item.rare = ModContent.RarityType(); - } - - public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) - { - Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow").Value); - } - - public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) - { - var source = player.GetSource_ItemUse(Item); - SoundEngine.PlaySound(SoundID.Item73, player.Center); - int i = Main.myPlayer; - float flameSpeed = 3f; - player.itemTime = Item.useTime; - Vector2 realPlayerPos = player.RotatedRelativePoint(player.MountedCenter, true); - float mouseXDist = Main.mouseX + Main.screenPosition.X + realPlayerPos.X; - float mouseYDist = Main.mouseY + Main.screenPosition.Y + realPlayerPos.Y; - if (player.gravDir == -1f) - { - mouseYDist = Main.screenPosition.Y + Main.screenHeight + Main.mouseY + realPlayerPos.Y; - } - float mouseDistance = (float)Math.Sqrt(mouseXDist * mouseXDist + mouseYDist * mouseYDist); - if ((float.IsNaN(mouseXDist) && float.IsNaN(mouseYDist)) || (mouseXDist == 0f && mouseYDist == 0f)) - { - mouseXDist = player.direction; - mouseYDist = 0f; - mouseDistance = flameSpeed; - } - else - { - mouseDistance = flameSpeed / mouseDistance; - } - - int essenceDamage = player.CalcIntDamage(0.25f * Item.damage); - for (int j = 0; j < 5; j++) - { - realPlayerPos = new Vector2(player.position.X + player.width * 0.5f + (Main.rand.Next(401) * -(float)player.direction) + (Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y); - realPlayerPos.X = (realPlayerPos.X + player.Center.X) / 2f + Main.rand.Next(-400, 401); - realPlayerPos.Y -= 100 * j; - mouseXDist = Main.mouseX + Main.screenPosition.X - realPlayerPos.X; - mouseYDist = Main.mouseY + Main.screenPosition.Y - realPlayerPos.Y; - if (mouseYDist < 0f) - { - mouseYDist *= -1f; - } - if (mouseYDist < 20f) - { - mouseYDist = 20f; - } - mouseDistance = (float)Math.Sqrt(mouseXDist * mouseXDist + mouseYDist * mouseYDist); - mouseDistance = flameSpeed / mouseDistance; - Projectile.NewProjectile(source, realPlayerPos, Vector2.Zero, ModContent.ProjectileType(), essenceDamage, 0f, i, 0f, Main.rand.Next(3)); - } - } - - public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo) - { - var source = player.GetSource_ItemUse(Item); - SoundEngine.PlaySound(SoundID.Item73, player.Center); - int j = Main.myPlayer; - float flameSpeed = 3f; - player.itemTime = Item.useTime; - Vector2 realPlayerPos = player.RotatedRelativePoint(player.MountedCenter, true); - float mouseXDist = Main.mouseX + Main.screenPosition.X + realPlayerPos.X; - float mouseYDist = Main.mouseY + Main.screenPosition.Y + realPlayerPos.Y; - if (player.gravDir == -1f) - { - mouseYDist = Main.screenPosition.Y + Main.screenHeight + Main.mouseY + realPlayerPos.Y; - } - float mouseDistance = (float)Math.Sqrt(mouseXDist * mouseXDist + mouseYDist * mouseYDist); - if ((float.IsNaN(mouseXDist) && float.IsNaN(mouseYDist)) || (mouseXDist == 0f && mouseYDist == 0f)) - { - mouseXDist = player.direction; - mouseYDist = 0f; - mouseDistance = flameSpeed; - } - else - { - mouseDistance = flameSpeed / mouseDistance; - } - - int essenceDamage = player.CalcIntDamage(0.25f * Item.damage); - for (int i = 0; i < 5; i++) - { - realPlayerPos = new Vector2(player.position.X + player.width * 0.5f + (Main.rand.Next(401) * -(float)player.direction) + (Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y); - realPlayerPos.X = (realPlayerPos.X + player.Center.X) / 2f + Main.rand.Next(-400, 401); - realPlayerPos.Y -= 100 * i; - mouseXDist = Main.mouseX + Main.screenPosition.X - realPlayerPos.X; - mouseYDist = Main.mouseY + Main.screenPosition.Y - realPlayerPos.Y; - if (mouseYDist < 0f) - { - mouseYDist *= -1f; - } - if (mouseYDist < 20f) - { - mouseYDist = 20f; - } - mouseDistance = (float)Math.Sqrt(mouseXDist * mouseXDist + mouseYDist * mouseYDist); - mouseDistance = flameSpeed / mouseDistance; - Projectile.NewProjectile(source, realPlayerPos, Vector2.Zero, ModContent.ProjectileType(), essenceDamage, 0f, i, 0f, Main.rand.Next(3)); - } - } - - public override void MeleeEffects(Player player, Rectangle hitbox) - { - if (Main.rand.NextBool(3)) - Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustID.ShadowbeamStaff); - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(12). - AddTile(). - Register(); - } - } -} diff --git a/Items/Weapons/Melee/TheEnforcer.png b/Items/Weapons/Melee/TheEnforcer.png deleted file mode 100644 index 1bebf830c6852168b8dee00ccdde2afa7d4e525a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2473 zcmV;a30C%rP) zU2GKB6@b411Ge!WI8gua;{YiMR!f_-6j=h1_5rDB)XK_3AJQsOD$<9hq)2^7>N{B&`fhL%%HI0 zdS_>r6}sP?bMCn_6A_pfo^E^9dcSz-Edbsh@5)TwzG(h_QlJo``~3ro9X;}0JY2OL zfd8g%Sw`$=dH{ffsSY3*;vK<|8KRA-UAhE-q45c8{$oE=Wk8|x!CcIs^$pb{d6A?4DpT-L#AVypkstS_iHn> z5qmJNue@?8@pv(#yYr7gFvL58Ar5pbSp1~^M7eRbrKu=>|hQqvQ<{1{ufz zbd3$fTmENWQagd%2p3~qW=M?DpNm;PZ)yi}v%8vLh-U;t6f%PI;ffh9GbHB7`^`%? zMF1aj+o& zrTZp@#ttDE;u#CZ5HY|-bHf?{`uck_0PpmebNk+B_W^LC<5M7Kg03e7oqfrBsW0^0 zmu#;aH~ZvpfVwqJVdA}~E>Xk6Kpu(GT=0yvoJuuSM4>yDz5>cx~?98;lXRx=a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07R?J-Tz&8T9c968h0KuV>c7`lRBon zsy+g^lV=rsv6~?TLp&qfRhxX_J^h(kU80_&p`Vu_&vw<{neSeN`g(V{s#jO~6iF}q zUJ(rOjHE2ERkdI)9XGCHMDt0714cRiH?9jF^?pKvC!4S_VBWFeg@L+j402fBh noY8|774`waj4za6h-dsC%>w~)ad9?400000NkvXXu0mjf5oy5O diff --git a/Items/Weapons/Melee/TheEnforcerGlow.png b/Items/Weapons/Melee/TheEnforcerGlow.png deleted file mode 100644 index b1041824c6c38df34fb5a5f4899b6e26655fdfbd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2268 zcmV<22qX82P) zTWl298GyfO7JI#{v5g_ZHiBH7KtK%vVxl5ZQKF=&Dx@fhRH<#6sEO!H()Ye0wMyR8 zyfjLsq~RqJjVd8EZKWUtDis&!(#U~C2^fTJR7`wZd|3$FhqFJk=jvffV27DLh14EE#4z}k`OHQ1JpWZ%eS#PyApu& zxf_}hdpg$u@W$W=fH%ZBydiVMG@_+p1ps6Dn_A1iC({%F^iNJ{$KTocuy*~n-Zug0 zYFHD1H^ezoOZ@<@6KBL&{w5H{f)j(oKxl?(#Gi)-0eGpSQ#(G8SJ!z%9K*+uBDQSF z79+$6Y3VQa{ui(tap1rP0KPkN3kYM!quH(i;B0OH@P;^tk0Iq~CYUk8{O&i+FpW5X zdVTAy%aPZM8GR@J0(e85!y973j0Jb?SN~NK1LDju5i=xqJd{}*0Gyk=rk&>vag4e* zWb5u<0dSEo0JuNBIskaFSH+S$vExW|Hf5_T1Y7JlH+fBBm6qvxLmZ>-4G~5eE&%jS z4;PPorCtVq2!t(MjIo&^F~scD*;mG3w3`v(IXRQ2<&}YW(8F;BaK0l_0&jrXg`=$mgGM9DsHCjX+qT3*HdN zs5?VSC;&9m3c&4K`iJKDhM8rF0j5E=USGM7Ep`ar5XY#y@sN@j5;>wLNZ(Z)Qg_&p z*dcYtIyMFXAD#StAwvy#6?Ga9De9))BVs%N#dJ z8ao7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pP#4%>e zvI+nls9pT87EO^oLu40ES%*Q zKq@^RK$w*k`t|*8O=Rw^Z9HYJ)cTA?!5iWjWp&8mXVt#9>pRsf_s@oMTJNj;YQXac zKL)~iS0($|1`uDL$jD>gh2yiHx8p(8t2;9@3Andvw$gY*9OI55w_ZJMepZ0;-_bCC zFGGIY)x2k%AxUSm)M~{&U%VlX5tU^{?!YFPGYq$*V!;rX0toAsILz5B(&shT8IrZm zv17*o*t=KtYedESC{+llMr@-f7-B&1}v$I+2*0ccIF z2%vn`th~NIcvY^g=!}(mF(3|ah+_oid?+E}*N`UydjQ}A~YiaxHp{! q;Nq0(GrG4)-?_n?QC++tj`4q%DrQ@QUzT+M0000 "Items.Weapons.Ranged"; - public override void SetDefaults() - { - Item.width = 38; - Item.height = 78; - Item.damage = 92; - Item.DamageType = DamageClass.Ranged; - Item.useTime = 6; - Item.useAnimation = 18; - Item.reuseDelay = 18; - Item.useLimitPerAnimation = 3; - Item.useStyle = ItemUseStyleID.Shoot; - Item.noMelee = true; - Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.RarityCyanBuyPrice; - Item.rare = ItemRarityID.Cyan; - Item.UseSound = SoundID.Item5; - Item.autoReuse = true; - Item.shoot = ProjectileID.WoodenArrowFriendly; - Item.shootSpeed = 16f; - Item.useAmmo = AmmoID.Arrow; - Item.Calamity().canFirePointBlankShots = true; - } - - // Terraria seems to really dislike high crit values in SetDefaults - public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 25; - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(7). - AddTile(TileID.LunarCraftingStation). - Register(); - } - } -} diff --git a/Items/Weapons/Ranged/AstralBow.png b/Items/Weapons/Ranged/AstralBow.png deleted file mode 100644 index 25d1c56e14613c57fa6f83b0478ba17882112c1a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1819 zcmV+$2juvPP)s6Ab6Ev0!V4=03cf3;7RU!RXqSpn}R^^i{H;N(CTVSt|vzM_2&OWj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$N@sht*OjJ;jqGmiGJ1=W z(z$?YYlpc5q8jw)#{wmJvWK+0CTiGHjF7GbI&qYnloC?u8O3Uc)Zja#SX5YQLwu&} zmPP~LJ^KRClaQW+t-H`* "Items.Weapons.Ranged"; - public override void SetDefaults() - { - Item.width = 66; - Item.height = 34; - Item.damage = 55; - Item.DamageType = DamageClass.Ranged; - Item.useTime = 3; - Item.useAnimation = 9; - Item.reuseDelay = 12; - Item.useLimitPerAnimation = 3; - Item.useStyle = ItemUseStyleID.Shoot; - Item.noMelee = true; - Item.knockBack = 3.75f; - Item.value = CalamityGlobalItem.RarityYellowBuyPrice; - Item.rare = ItemRarityID.Yellow; - Item.UseSound = SoundID.Item31; - Item.autoReuse = true; - Item.shoot = ProjectileID.PurificationPowder; - Item.shootSpeed = 20f; - Item.useAmmo = AmmoID.Bullet; - Item.Calamity().canFirePointBlankShots = true; - } - - public override Vector2? HoldoutOffset() => new Vector2(-14, 0); - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - float SpeedX = velocity.X + Main.rand.Next(-15, 16) * 0.05f; - float SpeedY = velocity.Y + Main.rand.Next(-15, 16) * 0.05f; - - if (type == ProjectileID.Bullet) - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, ProjectileID.BulletHighVelocity, damage, knockback, player.whoAmI); - else - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI); - - return false; - } - - public override bool CanConsumeAmmo(Item ammo, Player player) - { - if (Main.rand.Next(0, 100) < 33) - return false; - return true; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.ClockworkAssaultRifle). - AddIngredient(ItemID.Gatligator). - AddIngredient(ItemID.VenusMagnum). - AddIngredient(3). - AddTile(TileID.MythrilAnvil). - Register(); - } - } -} diff --git a/Items/Weapons/Ranged/ClockGatlignum.png b/Items/Weapons/Ranged/ClockGatlignum.png deleted file mode 100644 index d9483a7d49b35cb956f2e08fc21b1545e9a4bc67..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1214 zcmV;v1VQ_WP)TDCBt(h`qC zYinvOo}3DjQAVrErZZ)|HsC3J3jPU!NRq|gwNR(SGf zBJ3nP4Fde;4!=`_w2QsH;__k9?CAZw_k?HuQ|)JkN4{ROX-|%)BKMTgOSykLFAoV_GDwDS1bXDLr4yV2Z7{L{lB3OvrVN zR~9M3)#y24WxIy*rBadW+=x?%NFouCx`-sljXPs9Wb289(6Umq6Zy_lUvb!S-PkmJ zVNrR7$ou;TgpQ1uvdTJ!mTri=xWk-jh1vR-dTLHO*gcOw7M12xQ}&4ne~m=1Hv;?O z#H>87IN5&Iu&7-cBGL^-um`t~WM?=7lcQn>?O1Po`|fMTvO~p|oksS;m#?CyJ77Ne z+moZBzj@s{xHyBu=6ay7{i^7-A3S{|iy&u$NaTB^VUFBu#P(<(;r4_R4*pcjST;=(2=$9ZuNgJ6z3f;=U#-c7*nvcNFY4yR z>`gXyoNPcSh^5c0b{t8{+%x(`XoyH69FV$*B=TFgHL@dA&)V$Qy~XT3Aa=Rt1;JEn zawC3>vp#DYGjb|=ZjE>&kaH3NvG8;otd}xFA@sKSU%E3P=l%NOB!t3%Qlyc88qyr;rpd9(lWm zh|D{5wqwB%X%Fi-(). - AddIngredient(). + AddIngredient(ItemID.VenusMagnum). AddIngredient(5). AddTile(). Register(); diff --git a/Items/Weapons/Ranged/TheSevensStriker.cs b/Items/Weapons/Ranged/TheSevensStriker.cs index 398c0e4c66..eb856b5f04 100644 --- a/Items/Weapons/Ranged/TheSevensStriker.cs +++ b/Items/Weapons/Ranged/TheSevensStriker.cs @@ -169,7 +169,6 @@ namespace CalamityMod.Items.Weapons.Ranged { CreateRecipe(). AddIngredient(ItemID.CoinGun). - AddIngredient(). AddIngredient(ItemID.PlatinumCoin, 7). AddIngredient(ItemID.GoldCoin, 77). AddIngredient(ItemID.LunarBar, 12). diff --git a/Items/Weapons/Ranged/Ultima.cs b/Items/Weapons/Ranged/Ultima.cs index 4d64603325..ced1680bb9 100644 --- a/Items/Weapons/Ranged/Ultima.cs +++ b/Items/Weapons/Ranged/Ultima.cs @@ -53,7 +53,6 @@ namespace CalamityMod.Items.Weapons.Ranged AddIngredient(ItemID.PulseBow). AddIngredient(ItemID.LaserRifle). AddIngredient(). - AddIngredient(). AddIngredient(8). AddIngredient(8). AddIngredient(15). diff --git a/Items/Weapons/Rogue/AcidicRainBarrel.cs b/Items/Weapons/Rogue/AcidicRainBarrel.cs deleted file mode 100644 index 162324b036..0000000000 --- a/Items/Weapons/Rogue/AcidicRainBarrel.cs +++ /dev/null @@ -1,57 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Rogue; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Weapons.Rogue -{ - public class AcidicRainBarrel : RogueWeapon - { - public override void SetDefaults() - { - Item.width = 48; - Item.height = 48; - Item.damage = 43; - Item.noMelee = true; - Item.noUseGraphic = true; - Item.useStyle = ItemUseStyleID.Swing; - Item.useAnimation = 22; - Item.useTime = 22; - Item.knockBack = 8f; - Item.UseSound = SoundID.Item1; - Item.autoReuse = true; - Item.value = CalamityGlobalItem.RarityPinkBuyPrice; - Item.rare = ItemRarityID.Pink; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 14f; - Item.DamageType = RogueDamageClass.Instance; - } - - public override void ModifyStatsExtra(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback) - { - position = position - Vector2.UnitY * 12f; - velocity.Y *= 0.667f; - } - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); - if (p.WithinBounds(Main.maxProjectiles)) - Main.projectile[p].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable(); - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddIngredient(). - AddIngredient(15). - AddTile(TileID.Anvils). - Register(); - } - } -} diff --git a/Items/Weapons/Rogue/AcidicRainBarrel.png b/Items/Weapons/Rogue/AcidicRainBarrel.png deleted file mode 100644 index 2a8d7fd74b4cb7d418323b9701ad5498a0219e28..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 872 zcmV-u1DE`XP)Px&B1uF+R9J=8n9EC4Q5?rVH^xyMAI8e__YArzvBM6jQgh;iJ(4Y{Zk$laF`Is>uBRN9T;@sa%=Q?+sHgWxK?s@#q@6P$m z@0{~H*T5pfT?v4vxCnsc_D7hAzvuh!l-+^^aL#|(f-^c#>R*(uP9RR`G>g@9j-Pihs zkm%!=&p`I9oL*GK97o6%TVB^1B%hJhV@F1ah>kzsFiU214XH=6%N*a|4M2TWlWC_2 zNj~LVLQ;?%SaRd|mYx?`&m@VJ;xj>VDMQ9omP~#*j*yWl*yPr|ubQ<1c0{bYRipeo zyW0U|i4F89e>rX~fRhPj8cb4WFR7WN=9<$0S9_;&I}X!&{G09kkGCevZ~|6H2~a46q)yL zr?mT(); - } - - public override float StealthDamageMultiplier => 0.5f; - - public override bool CanUseItem(Player player) - { - if (player.altFunctionUse == 2) - { - Item.shoot = ProjectileID.None; - return player.ownedProjectileCounts[ModContent.ProjectileType()] > 0; - } - else - { - Item.shoot = ModContent.ProjectileType(); - return player.ownedProjectileCounts[ModContent.ProjectileType()] < 4; - } - } - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - CalamityPlayer modPlayer = player.Calamity(); - modPlayer.killSpikyBalls = false; - if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike - { - int stealth = Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType(), damage, knockback, player.whoAmI); - if (stealth.WithinBounds(Main.maxProjectiles)) - Main.projectile[stealth].Calamity().stealthStrike = true; - return false; - } - return true; - } - - public override bool AltFunctionUse(Player player) - { - CalamityPlayer modPlayer = player.Calamity(); - modPlayer.killSpikyBalls = true; - return true; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(4). - AddIngredient(ItemID.SunplateBlock, 8). - AddTile(TileID.Anvils). - Register(); - } - - } -} diff --git a/Items/Weapons/Rogue/SkyStabber.png b/Items/Weapons/Rogue/SkyStabber.png deleted file mode 100644 index cd4be4f0a2d0f358fd0d34d4afcd3c29253aea10..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 281 zcmV+!0p|XRP)0G8WpQI1vW zt11&%fj>4Xc|jY1X(SiggAM?P#a&3_OiAh?u)mFPFBSb+&+w;_5Ij?u*9hwB%i_P4eQgs5|w9gdeAl%;o$S(5s<68VAHWSph2dW>NXZRZHpQwdEGXjvL f`Cq>hsE6PMp{+^8#e}Gn00000NkvXXu0mjfwrP0J diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index 927906d00d..8886653a5d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -106,17 +106,6 @@ ArtAttack: { ''' } -AsteroidStaff: { - DisplayName: Asteroid Staff - Tooltip: "[GFB]" - TooltipNormal: Summons asteroids from the sky - TooltipGFB: - ''' - Core Keeper Chaos Staff - bottom text - ''' -} - AstralachneaStaff: { DisplayName: Astralachnea Staff Tooltip: Fires a spread of homing astral spider fangs diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 4e7f11d90c..5f816345ed 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -31,11 +31,6 @@ AegisBlade: { ''' } -Aftershock: { - DisplayName: Aftershock - Tooltip: Summons boulders from the sky on enemy hits -} - AirSpinner: { DisplayName: Air Spinner Tooltip: @@ -116,11 +111,6 @@ ArkoftheElements: { ''' } -AstralBlade: { - DisplayName: Astral Blade - Tooltip: Deals more damage the more life an enemy has left -} - AstralPike: { DisplayName: Astral Pike Tooltip: Summons astral star swarms on hit @@ -1326,11 +1316,6 @@ TheDarkMaster: { ''' } -TheEnforcer: { - DisplayName: The Enforcer - Tooltip: Spawns essence flames on hit -} - TheGodsGambit: { DisplayName: The God's Gambit Tooltip: diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index b758d92ecd..7eb72efa6d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -124,11 +124,6 @@ AstralBlaster: { Tooltip: Converts musket balls into homing astral rounds } -AstralBow: { - DisplayName: Astral Bow - Tooltip: Fires a burst of three arrows -} - AstrealDefeat: { DisplayName: Astreal Defeat Tooltip: All arrows are converted to Astreal Arrows that emit flames as they travel @@ -282,15 +277,6 @@ CleansingBlaze: { ''' } -ClockGatlignum: { - DisplayName: Clock Gatlignum - Tooltip: - ''' - Converts musket balls into strings of 3 high velocity bullets - 33% chance to save ammo - ''' -} - ClockworkBow: { DisplayName: Clockwork Bow Tooltip: diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index cc686427ce..5705ad96cd 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -1,12 +1,3 @@ -AcidicRainBarrel: { - DisplayName: Acidic Rain Barrel - Tooltip: - ''' - Throws a rolling barrel that explodes on wall collision - Stealth strikes make it rain on collision - ''' -} - AdamantiteThrowingAxe: { DisplayName: Adamantite Throwing Axe Tooltip: Stealth strikes ignore gravity and rain down lightning on enemy hits @@ -1082,16 +1073,6 @@ SkyfinBombers: { ''' } -SkyStabber: { - DisplayName: Sky Stabber - Tooltip: - ''' - Throws up to 4 gravity-defying spiky balls - Stealth strikes make the balls rain feathers onto enemies when they hit - Press to delete all existing spiky balls - ''' -} - SlickCane: { DisplayName: Slick Cane Tooltip: diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Magic.hjson index 5ae6b83005..26d561887b 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Magic.hjson @@ -13,7 +13,6 @@ AquamarineBolt.DisplayName: Aqua Bolt ArcticBearPawProj.DisplayName: Arctic Bear Paw ArtAttackStar.DisplayName: Artsy Star ArtAttackStrike.DisplayName: Art Attack -Asteroid.DisplayName: Asteroid AsteroidMolten.DisplayName: Molten Asteroid AstralachneaFang.DisplayName: Astral Fang AstralCrystal.DisplayName: Astral Crystal diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson index 692b19f7df..29e9cdd627 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson @@ -4,7 +4,6 @@ AegisBeam.DisplayName: Aegis Beam AegisBlast.DisplayName: Aegis Blast AegisBlast2.DisplayName: Aegis Blast AegisFlame.DisplayName: Aegis Flame -AftershockRock.DisplayName: Afterrock AmidiasWhirlpool.DisplayName: Whirlpool AncientBeam.DisplayName: Ancient Beam AncientStar.DisplayName: Ancient Star @@ -105,7 +104,6 @@ ElementalGlassStar.DisplayName: Glass Star EmpyreanKnife.DisplayName: Empyrean Knife EntropicFlechette.DisplayName: Entropic Flechette EonBolt.DisplayName: Eon Bolt -EssenceFlame2.DisplayName: Essence Flame EssenceScythe.DisplayName: Essence Scythe ExaltedOathbladeThrownBlade.DisplayName: Exalted Oathblade Thrown Blade ExcelsusBlue.DisplayName: Excelsus diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson index 275aa51dbc..1e0746c5cd 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson @@ -1,6 +1,4 @@ AbyssalMirrorProjectile.DisplayName: Lumenyl Fluid -AcidBarrelDrop.DisplayName: Barrel Acid Drop -AcidShrapnel.DisplayName: Acidic Shrapnel AdamantiteThrowingAxeProjectile.DisplayName: Adamantite Throwing Axe AntlionSkewerProj.DisplayName: Antlion on a Stick AntlionSkewerSandBlast.DisplayName: Antlion Blast @@ -130,7 +128,6 @@ GleamingDaggerProj.DisplayName: Gleaming Dagger GodsParanoiaDart.DisplayName: God's Paranoia Dart GodsParanoiaProj.DisplayName: God's Paranoia GraveGrimreaverProjectile.DisplayName: Grave Grimreaver -GreenDonkeyKongReference.DisplayName: Acidic Rain Barrel GrimreaverBat.DisplayName: Grim Bat GrimreaverSkull.DisplayName: Grim Skull HeavenfallenEnergy.DisplayName: Heavenfallen Energy @@ -253,7 +250,6 @@ ShockTeslaAura.DisplayName: Electrifying Aura ShroomerangSpore.DisplayName: Infested Spore SkyBomberGas.DisplayName: Irradiated Cloud SkyfinNuke.DisplayName: Skyfin Nuke -SkyStabberProj.DisplayName: Sky Stabber SludgeSplotchProj1.DisplayName: Sludge Splotch SludgeSplotchProj2.DisplayName: Sludge Splotch SnapClamProj.DisplayName: Snap Clam diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Typeless.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Typeless.hjson index 06fbcda6ad..9c14709a86 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Typeless.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Typeless.hjson @@ -113,6 +113,7 @@ RedLabSeeker.DisplayName: Seeking Mechanism RelicGuard.DisplayName: Relic Guard RetaliationProjectile.DisplayName: Retaliation Shard RiftReelerBobber.DisplayName: Chaotic Bobber +RustyMedallionDroplet.DisplayName: Acid Droplet SandCloakVeil.DisplayName: Dust Veil SandExplosion.DisplayName: Sand SCalAltarArenaVisual.DisplayName: Supreme Calamitas Arena Visual diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index 77c122d094..0055865a5b 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -413,11 +413,10 @@ namespace CalamityMod.NPCs.AstrumAureus // Relic npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); - // GFB Crab Banner and Asteroid Staff drop + // GFB Crab Banner drop var GFBOnly = npcLoot.DefineConditionalDropSet(DropHelper.GFB); { GFBOnly.Add(DropHelper.PerPlayer(ItemID.CrabBanner, 1, 1, 9999), true); - GFBOnly.Add(DropHelper.PerPlayer(ModContent.ItemType()), hideLootReport: true); } // Lore diff --git a/NPCs/NormalNPCs/Horse.cs b/NPCs/NormalNPCs/Horse.cs index 6788da55c2..23da274c57 100644 --- a/NPCs/NormalNPCs/Horse.cs +++ b/NPCs/NormalNPCs/Horse.cs @@ -109,7 +109,6 @@ namespace CalamityMod.NPCs.NormalNPCs { var weapons = new int[] { - ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), }; diff --git a/Projectiles/Magic/Asteroid.cs b/Projectiles/Magic/Asteroid.cs deleted file mode 100644 index f481a41547..0000000000 --- a/Projectiles/Magic/Asteroid.cs +++ /dev/null @@ -1,126 +0,0 @@ -using CalamityMod.Buffs.DamageOverTime; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.Audio; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Magic -{ - public class Asteroid : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Magic"; - public override void SetStaticDefaults() - { - ProjectileID.Sets.TrailCacheLength[Type] = 8; - ProjectileID.Sets.TrailingMode[Type] = 0; - } - - public override void SetDefaults() - { - Projectile.width = 24; - Projectile.height = 24; - Projectile.friendly = true; - Projectile.tileCollide = false; - Projectile.DamageType = DamageClass.Magic; - Projectile.extraUpdates = 2; - } - - public override void AI() - { - if (Projectile.position.Y > Main.player[Projectile.owner].position.Y - 300f) - { - Projectile.tileCollide = true; - } - if ((double)Projectile.position.Y < Main.worldSurface * 16.0) - { - Projectile.tileCollide = true; - } - Projectile.scale = Projectile.ai[1]; - Projectile.rotation += Projectile.velocity.X * 2f; - Vector2 position = Projectile.Center + Vector2.Normalize(Projectile.velocity) * 10f; - Dust greenDust = Main.dust[Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.TerraBlade, 0f, 0f, 0, default, 1f)]; - greenDust.position = position; - greenDust.velocity = Projectile.velocity.RotatedBy(1.5707963705062866, default) * 0.33f + Projectile.velocity / 4f; - greenDust.position += Projectile.velocity.RotatedBy(1.5707963705062866, default); - greenDust.fadeIn = 0.5f; - greenDust.noGravity = true; - greenDust = Main.dust[Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.TerraBlade, 0f, 0f, 0, default, 1f)]; - greenDust.position = position; - greenDust.velocity = Projectile.velocity.RotatedBy(-1.5707963705062866, default) * 0.33f + Projectile.velocity / 4f; - greenDust.position += Projectile.velocity.RotatedBy(-1.5707963705062866, default); - greenDust.fadeIn = 0.5f; - greenDust.noGravity = true; - - int moreGreen = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.TerraBlade, 0f, 0f, 0, default, 1f); - Main.dust[moreGreen].velocity *= 0.5f; - Main.dust[moreGreen].scale *= 1.3f; - Main.dust[moreGreen].fadeIn = 1f; - Main.dust[moreGreen].noGravity = true; - } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(ModContent.BuffType(), 180); - } - - public override void OnKill(int timeLeft) - { - SoundEngine.PlaySound(SoundID.Item89, Projectile.Center); - Projectile.position.X = Projectile.position.X + (float)(Projectile.width / 2); - Projectile.position.Y = Projectile.position.Y + (float)(Projectile.height / 2); - Projectile.width = (int)(128f * Projectile.scale); - Projectile.height = (int)(128f * Projectile.scale); - Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2); - Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2); - for (int i = 0; i < 4; i++) - { - Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Smoke, 0f, 0f, 100, default, 1.5f); - } - for (int j = 0; j < 16; j++) - { - int killDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.TerraBlade, 0f, 0f, 100, default, 2.5f); - Main.dust[killDust].noGravity = true; - Main.dust[killDust].velocity *= 3f; - killDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.TerraBlade, 0f, 0f, 100, default, 1.5f); - Main.dust[killDust].velocity *= 2f; - Main.dust[killDust].noGravity = true; - } - if (!Main.dedServ) - { - for (int k = 0; k < 2; k++) - { - int gored = Gore.NewGore(Projectile.GetSource_Death(), Projectile.position + new Vector2((float)(Projectile.width * Main.rand.Next(100)) / 100f, (float)(Projectile.height * Main.rand.Next(100)) / 100f) - Vector2.One * 10f, default, Main.rand.Next(61, 64), 1f); - Gore gore = Main.gore[gored]; - gore.velocity *= 0.3f; - gore.velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f; - gore.velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f; - } - } - if (Projectile.owner == Main.myPlayer) - { - Projectile.localAI[1] = -1f; - Projectile.maxPenetrate = 0; - Projectile.Damage(); - } - for (int l = 0; l < 5; l++) - { - int dustType = Utils.SelectRandom(Main.rand, new int[] - { - 107, - 259, - 158 - }); - int exploding = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, dustType, 2.5f * (float)Projectile.direction, -2.5f, 0, default, 1f); - Main.dust[exploding].alpha = 200; - Main.dust[exploding].velocity *= 2.4f; - Main.dust[exploding].scale += Main.rand.NextFloat(); - } - } - - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor, 1); - return false; - } - } -} diff --git a/Projectiles/Magic/Asteroid.png b/Projectiles/Magic/Asteroid.png deleted file mode 100644 index 85ede611fc6a028cf1bb3eb4e67d7d65dd55a981..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 693 zcmV;m0!safP)>lXf0007dNkl-!Cb3mMCO8=yarqeT}6+{u3f#+Af<#N5X zrOdP*481HLTQlMs5QucJCsL655k2q}9*(z;aG=R}YJEj)G*>AWH3<2{=NTXnDQ}6c zc5q(6xMO-q{;r;GnW72TIjZs)@eB}MN;f?D$(X$H@CeZZZ7jqVO?d@1iu)7n!1Csf ziW<)Vfu{hJX;2w+u(-lRLfo%%Uu{_B14Ij$U~R-k2V@=B7~~f`+=v>_0=eyMHZcJP zFo~+m%pk+g2f7Pl0$qMy_4N!8bmxeBjuwo$mh_z~?VxI-@4z}l3Fi+jBd!Bs(ek;4 znSsY^@2a18dw38#5l|XqCJOH2opx&f1_afZJ+osbl9NWy= "Projectiles.Melee"; - - public override void SetDefaults() - { - Projectile.width = 38; - Projectile.height = 38; - Projectile.aiStyle = ProjAIStyleID.GroundProjectile; - Projectile.friendly = true; - Projectile.penetrate = 3; - Projectile.MaxUpdates = 3; - Projectile.DamageType = DamageClass.Melee; - Projectile.timeLeft = 300 * Projectile.MaxUpdates; - Projectile.ignoreWater = true; - AIType = ProjectileID.BoulderStaffOfEarth; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10 * Projectile.MaxUpdates; - Projectile.tileCollide = false; - } - - public override void AI() - { - if (Projectile.Center.Y > Projectile.ai[2]) - Projectile.tileCollide = true; - else - Projectile.tileCollide = false; - } - } -} diff --git a/Projectiles/Melee/EssenceFlame2.cs b/Projectiles/Melee/EssenceFlame2.cs deleted file mode 100644 index e48ffa2e5b..0000000000 --- a/Projectiles/Melee/EssenceFlame2.cs +++ /dev/null @@ -1,80 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.Audio; -using Terraria.ID; -using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Melee -{ - public class EssenceFlame2 : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Melee"; - public override string Texture => "CalamityMod/Projectiles/Healing/EssenceFlame"; - - public override void SetStaticDefaults() - { - Main.projFrames[Type] = 4; - ProjectileID.Sets.CultistIsResistantTo[Type] = true; - } - - public override void SetDefaults() - { - Projectile.width = 20; - Projectile.height = 20; - Projectile.friendly = true; - Projectile.penetrate = 1; - Projectile.tileCollide = false; - Projectile.DamageType = DamageClass.Melee; - Projectile.timeLeft = 180; - Projectile.alpha = 255; - Projectile.extraUpdates = 3; - } - - public override bool? CanHitNPC(NPC target) => Projectile.timeLeft < 150 && target.CanBeChasedBy(Projectile); - - public override void AI() - { - Projectile.alpha -= 5; - - Projectile.frameCounter++; - if (Projectile.frameCounter > 16) - { - Projectile.frame++; - Projectile.frameCounter = 0; - } - if (Projectile.frame > 3) - Projectile.frame = 0; - - if (Projectile.timeLeft < 150) - CalamityUtils.HomeInOnNPC(Projectile, true, 760f, 10f, 20f); - } - - public override void OnKill(int timeLeft) - { - SoundEngine.PlaySound(SoundID.Item74, Projectile.Center); - Projectile.position.X = Projectile.position.X + (float)(Projectile.width / 2); - Projectile.position.Y = Projectile.position.Y + (float)(Projectile.height / 2); - Projectile.width = 50; - Projectile.height = 50; - Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2); - Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2); - for (int i = 0; i < 5; i++) - { - int essenceDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.ShadowbeamStaff, 0f, 0f, 100, default, 2f); - Main.dust[essenceDust].velocity *= 3f; - if (Main.rand.NextBool()) - { - Main.dust[essenceDust].scale = 0.5f; - Main.dust[essenceDust].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int j = 0; j < 8; j++) - { - int essenceDust2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.ShadowbeamStaff, 0f, 0f, 100, default, 3f); - Main.dust[essenceDust2].noGravity = true; - Main.dust[essenceDust2].velocity *= 5f; - essenceDust2 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.ShadowbeamStaff, 0f, 0f, 100, default, 2f); - Main.dust[essenceDust2].velocity *= 2f; - } - } - } -} diff --git a/Projectiles/Ranged/LeviatitanMeteor.cs b/Projectiles/Ranged/LeviatitanMeteor.cs index 76d7062dc8..6f60474fee 100644 --- a/Projectiles/Ranged/LeviatitanMeteor.cs +++ b/Projectiles/Ranged/LeviatitanMeteor.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Ranged public class LeviatitanMeteor : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; - public override string Texture => "CalamityMod/Projectiles/Melee/AftershockRock"; + public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Type] = 5; diff --git a/Projectiles/Melee/AftershockRock.png b/Projectiles/Ranged/LeviatitanMeteor.png similarity index 100% rename from Projectiles/Melee/AftershockRock.png rename to Projectiles/Ranged/LeviatitanMeteor.png diff --git a/Projectiles/Rogue/AcidShrapnel.cs b/Projectiles/Rogue/AcidShrapnel.cs deleted file mode 100644 index 8797e58c73..0000000000 --- a/Projectiles/Rogue/AcidShrapnel.cs +++ /dev/null @@ -1,71 +0,0 @@ -using System; -using CalamityMod.Buffs.StatDebuffs; -using CalamityMod.Dusts; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Rogue -{ - public class AcidShrapnel : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Rogue"; - public override string Texture => "CalamityMod/Projectiles/Rogue/BarrelShrapnel"; - - public bool HitTile = false; - public override void SetStaticDefaults() - { - Main.projFrames[Type] = 3; - } - - public override void SetDefaults() - { - Projectile.width = 12; - Projectile.height = 14; - Projectile.friendly = true; - Projectile.penetrate = 1; - Projectile.timeLeft = 160; - Projectile.tileCollide = true; - Projectile.DamageType = RogueDamageClass.Instance; - Projectile.ignoreWater = true; - } - public override void AI() - { - Projectile.ai[0] += 1f; - if (HitTile) - { - Projectile.velocity.X = 0f; - Projectile.rotation = MathHelper.Pi; - } - else - Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; - - Projectile.velocity.Y += 0.2f; - } - public override bool OnTileCollide(Vector2 oldVelocity) - { - HitTile = true; - return false; - } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(ModContent.BuffType(), 180); - Projectile.Kill(); - } - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - target.AddBuff(ModContent.BuffType(), 180); - Projectile.Kill(); - } - public override void OnKill(int timeLeft) - { - for (int i = 0; i < 15; i++) - { - Dust dust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.SulphurousSeaAcid); - dust.velocity = Vector2.UnitY.RotatedBy(i / 15f * MathHelper.TwoPi) * 3f * (float)Math.Cos(i / 15f * MathHelper.TwoPi); - dust.scale = 2.5f; - dust.noGravity = true; - } - } - } -} diff --git a/Projectiles/Rogue/GreenDonkeyKongReference.cs b/Projectiles/Rogue/GreenDonkeyKongReference.cs deleted file mode 100644 index fce9c945f1..0000000000 --- a/Projectiles/Rogue/GreenDonkeyKongReference.cs +++ /dev/null @@ -1,131 +0,0 @@ -using System; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.Audio; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Rogue -{ - public class GreenDonkeyKongReference : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Rogue"; - public override string Texture => "CalamityMod/Items/Weapons/Rogue/AcidicRainBarrel"; - - public float cooldown = 0f; - public float oldVelocityX = 0f; - - public override void SetStaticDefaults() - { - ProjectileID.Sets.TrailCacheLength[Type] = 5; - ProjectileID.Sets.TrailingMode[Type] = 0; - } - - public override void SetDefaults() - { - Projectile.width = 48; - Projectile.height = 48; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.penetrate = -1; - Projectile.timeLeft = 480; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = -1; - Projectile.DamageType = RogueDamageClass.Instance; - } - - public bool CollideX => Projectile.oldPosition.X == Projectile.position.X; - - public override void AI() - { - bool stealthS = Projectile.Calamity().stealthStrike; - if (Projectile.localAI[0] == 0f) - { - Projectile.ai[1] = stealthS.ToInt() == 0 ? 1 : 3; - Projectile.localAI[0] = 1f; - } - Projectile.rotation += Math.Sign(Projectile.velocity.X) * MathHelper.ToRadians(8f); - if (Projectile.velocity.Y < 15f) - { - Projectile.velocity.Y += 0.3f; - } - if (CollideX && cooldown == 0) - { - BounceEffects(); - Projectile.velocity.X = -oldVelocityX; - } - else if (cooldown > 0) - { - cooldown -= 1f; - } - if (Projectile.velocity.X != 0f) - { - oldVelocityX = Math.Sign(Projectile.velocity.X) * 12f; - } - } - - public override bool OnTileCollide(Vector2 oldVelocity) => false; - - public void BounceEffects() - { - bool stealthS = Projectile.Calamity().stealthStrike; - int projectileCount = 8; - SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); - if (stealthS) - { - projectileCount += 5; //more shit the closer we are to death - } - for (int i = 0; i < projectileCount; i++) - { - if (Main.rand.NextBool(3)) - { - Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(30f)); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity + shrapnelVelocity, - ModContent.ProjectileType(), Projectile.damage, 3f, Projectile.owner); - } - else - { - Vector2 acidVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(40f)); - int acidIndex = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity + acidVelocity, - ModContent.ProjectileType(), - (int)(Projectile.damage * 0.75f), 1f, Projectile.owner); - if (acidIndex.WithinBounds(Main.maxProjectiles)) - { - Main.projectile[acidIndex].DamageType = RogueDamageClass.Instance; - Main.projectile[acidIndex].timeLeft = 300; - Main.projectile[acidIndex].usesLocalNPCImmunity = true; - Main.projectile[acidIndex].localNPCHitCooldown = -1; - } - } - } - - if (stealthS) - { - for (int i = 0; i < 6; i++) - { - Vector2 acidVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(40f)); - int acidIndex = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity + acidVelocity, - ModContent.ProjectileType(), - (int)(Projectile.damage * 0.667f), 1f, Projectile.owner); - if (acidIndex.WithinBounds(Main.maxProjectiles)) - { - Main.projectile[acidIndex].DamageType = RogueDamageClass.Instance; - Main.projectile[acidIndex].timeLeft = 420; - } - } - } - - Projectile.ai[1]--; - cooldown = 15; - if (Projectile.ai[1] <= 0) - { - Projectile.Kill(); - } - } - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor, 2); - return false; - } - } -} diff --git a/Projectiles/Rogue/SkyStabberProj.cs b/Projectiles/Rogue/SkyStabberProj.cs deleted file mode 100644 index c9cab426cb..0000000000 --- a/Projectiles/Rogue/SkyStabberProj.cs +++ /dev/null @@ -1,84 +0,0 @@ -using CalamityMod.CalPlayer; -using CalamityMod.Projectiles.Typeless; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Rogue -{ - public class SkyStabberProj : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Rogue"; - public override string Texture => "CalamityMod/Items/Weapons/Rogue/SkyStabber"; - - public override void SetDefaults() - { - Projectile.width = 15; - Projectile.height = 15; - Projectile.friendly = true; - Projectile.DamageType = RogueDamageClass.Instance; - Projectile.tileCollide = true; - Projectile.penetrate = 10; - Projectile.timeLeft = 1000; - - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 30; - } - - public override void AI() - { - Projectile.ai[0] += 1f; - - if (Projectile.ai[0] >= 90f) - { - Projectile.velocity.X *= 0.98f; - Projectile.velocity.Y *= 0.98f; - } - else - { - Projectile.rotation += 0.3f * (float)Projectile.direction; - } - - Player player = Main.player[Projectile.owner]; - CalamityPlayer modPlayer = player.Calamity(); - if (modPlayer.killSpikyBalls) - { - Projectile.active = false; - Projectile.netUpdate = true; - } - } - - // Makes the projectile bounce infinitely, as it stops mid-air anyway. - public override bool OnTileCollide(Vector2 oldVelocity) - { - Collision.HitTiles(Projectile.position + Projectile.velocity, Projectile.velocity, Projectile.width, Projectile.height); - if (Projectile.velocity.X != oldVelocity.X) - { - Projectile.velocity.X = -oldVelocity.X * 0.6f; - } - if (Projectile.velocity.Y != oldVelocity.Y) - { - Projectile.velocity.Y = -oldVelocity.Y * 0.6f; - } - return false; - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => OnHitEffects(target.Center); - - public override void OnHitPlayer(Player target, Player.HurtInfo info) => OnHitEffects(target.Center); - - private void OnHitEffects(Vector2 targetPos) - { - if (Projectile.Calamity().stealthStrike) - { - var source = Projectile.GetSource_FromThis(); - for (int n = 0; n < 4; n++) - { - Projectile feather = CalamityUtils.ProjectileRain(source, targetPos, 400f, 100f, 500f, 800f, 20f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.25), Projectile.knockBack * 0.25f, Projectile.owner); - if (feather.whoAmI.WithinBounds(Main.maxProjectiles)) - feather.DamageType = RogueDamageClass.Instance; - } - } - } - } -} diff --git a/Projectiles/Rogue/AcidBarrelDrop.cs b/Projectiles/Typeless/RustyMedallionDroplet.cs similarity index 76% rename from Projectiles/Rogue/AcidBarrelDrop.cs rename to Projectiles/Typeless/RustyMedallionDroplet.cs index d635b81c3f..d82bab90f3 100644 --- a/Projectiles/Rogue/AcidBarrelDrop.cs +++ b/Projectiles/Typeless/RustyMedallionDroplet.cs @@ -4,11 +4,11 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Rogue +namespace CalamityMod.Projectiles.Typeless { - public class AcidBarrelDrop : ModProjectile, ILocalizedModType + public class RustyMedallionDroplet : ModProjectile, ILocalizedModType { - public new string LocalizationCategory => "Projectiles.Rogue"; + public new string LocalizationCategory => "Projectiles.Typeless"; public override string Texture => "CalamityMod/Projectiles/Environment/AcidDrop"; public override void SetStaticDefaults() @@ -25,10 +25,11 @@ namespace CalamityMod.Projectiles.Rogue Projectile.tileCollide = true; Projectile.ignoreWater = false; Projectile.timeLeft = 840; + Projectile.penetrate = 2; Projectile.extraUpdates = 2; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = -1; - Projectile.DamageType = RogueDamageClass.Instance; + Projectile.DamageType = DamageClass.Generic; } public override void AI() { @@ -40,17 +41,7 @@ namespace CalamityMod.Projectiles.Rogue dust.velocity = -Projectile.velocity * 0.4f; } - if (Projectile.ai[0] < 3) - { - if (Projectile.timeLeft == 839) - Projectile.velocity *= 0.5f; - Projectile.rotation = Projectile.velocity.ToRotation() - MathHelper.PiOver2; - if (Projectile.velocity.Y <= 12f) - { - Projectile.velocity.Y += 0.15f; - } - Projectile.tileCollide = Projectile.timeLeft <= 300; - } + Projectile.rotation = Projectile.velocity.ToRotation() - MathHelper.PiOver2; } public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Systems/Collections/SharedStaticIFramesIDSet.cs b/Systems/Collections/SharedStaticIFramesIDSet.cs index d01cc7bd6a..b6495ebf96 100644 --- a/Systems/Collections/SharedStaticIFramesIDSet.cs +++ b/Systems/Collections/SharedStaticIFramesIDSet.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Systems.Collections ProjectileID.SporeGas3 ], - [ // Set 6: Astral Staff and Asteroid Staff + [ // Set 6: Astral Staff ModContent.ProjectileType(), ModContent.ProjectileType() ], diff --git a/Systems/Collections/VeneratedLocketBanList.cs b/Systems/Collections/VeneratedLocketBanList.cs index e7a6921a99..2aef022abf 100644 --- a/Systems/Collections/VeneratedLocketBanList.cs +++ b/Systems/Collections/VeneratedLocketBanList.cs @@ -16,7 +16,6 @@ namespace CalamityMod.Systems.Collections { List = [ - ItemType(), ItemType(), ItemType(), ItemType(),