From 7ff2646c31401a5b607bab3505c0ca485302a268 Mon Sep 17 00:00:00 2001 From: Flowaria Date: Wed, 16 Oct 2024 21:35:39 +0900 Subject: [PATCH 1/8] Introduce CalamityDrawParameterNPC --- .../MiracleBlightRenderer.cs | 16 +-- NPCs/CalamityDrawParameterNPC.cs | 99 +++++++++++++++++++ NPCs/CalamityPolarityNPC.cs | 2 +- 3 files changed, 102 insertions(+), 15 deletions(-) create mode 100644 NPCs/CalamityDrawParameterNPC.cs diff --git a/Graphics/Renderers/CalamityRenderers/MiracleBlightRenderer.cs b/Graphics/Renderers/CalamityRenderers/MiracleBlightRenderer.cs index 94c0a5ef7c..b8902c380b 100644 --- a/Graphics/Renderers/CalamityRenderers/MiracleBlightRenderer.cs +++ b/Graphics/Renderers/CalamityRenderers/MiracleBlightRenderer.cs @@ -30,10 +30,7 @@ namespace CalamityMod.Graphics.Renderers.CalamityRenderers // Breaks with being behind tiles, and causes a funny interaction where his head goes behind his neck. NPCID.MoonLordCore, NPCID.MoonLordHand, - NPCID.MoonLordHead, - - // Crashes the fucking game when killed - NPCID.WallofFlesh + NPCID.MoonLordHead }; /// @@ -71,16 +68,7 @@ namespace CalamityMod.Graphics.Renderers.CalamityRenderers if (ExcludedNPCs.Contains(npc.type) || npc.IsABestiaryIconDummy) return false; - // Safety check for weird MP bug when getting global npcs. - if (!npc.TryGetGlobalNPCSafer(out var calNPC) || !npc.TryGetGlobalNPCSafer(out var polNPC)) - return false; - - // Do not draw if the npc does not have miracle blight, or has the polarity effect. - if (calNPC.miracleBlight <= 0 || polNPC.CurPolarity > 0f) - return false; - - // Do not draw if the current player has the trippy effect. - if (Main.LocalPlayer.Calamity().trippy) + if (!CalamityDrawParameterNPC.DrawingMiracleBlight[npc.whoAmI]) return false; return true; diff --git a/NPCs/CalamityDrawParameterNPC.cs b/NPCs/CalamityDrawParameterNPC.cs new file mode 100644 index 0000000000..dbe6a75882 --- /dev/null +++ b/NPCs/CalamityDrawParameterNPC.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Steamworks; +using Terraria; +using Terraria.DataStructures; +using Terraria.ModLoader; + +namespace CalamityMod.NPCs +{ + // Why this class is exist? + // It because we want to avoid Threading Issues while We using NPC's properties on Draw Thread + public sealed class CalamityDrawParameterNPC : GlobalNPC + { + public override bool InstancePerEntity => false; + + #region Draw Parameters + public static bool[] DrawingMiracleBlight { get; private set; } + public static bool[] DrawingPolarity { get; private set; } + #endregion + + public override void Load() + { + DrawingMiracleBlight = new bool[Main.maxNPCs]; + DrawingPolarity = new bool[Main.maxNPCs]; + } + + public override void Unload() + { + DrawingMiracleBlight = null; + DrawingPolarity = null; + } + + public override void SetDefaults(NPC entity) => ResetParameters(entity); + public override bool PreAI(NPC npc) + { + if (npc is null) + return true; + + var whoAmI = npc.whoAmI; + DrawingMiracleBlight[whoAmI] = ShouldDrawMiracleBlight(npc); + DrawingPolarity[whoAmI] = ShouldDrawPolarity(npc); + + return true; + } + + private static void ResetParameters(NPC npc) + { + if (npc is null) + return; + + var whoAmI = npc.whoAmI; + DrawingMiracleBlight[whoAmI] = false; + DrawingPolarity[whoAmI] = false; + } + + private static bool ShouldDrawMiracleBlight(NPC npc) + { + if (npc is null || !npc.active) + return false; + + // Safety check for weird MP bug when getting global npcs. + if (!npc.TryGetGlobalNPCSafer(out var calNPC) || !npc.TryGetGlobalNPCSafer(out var polNPC)) + return false; + + // Do not draw if the npc does not have miracle blight, or has the polarity effect. + if (calNPC.miracleBlight <= 0 || polNPC.CurPolarity > 0f) + return false; + + // Do not draw if the current player has the trippy effect. + if (Main.LocalPlayer.Calamity().trippy) + return false; + + return true; + } + + private static bool ShouldDrawPolarity(NPC npc) + { + if (npc is null || !npc.active) + return false; + + // Safety check for weird MP bug when getting global npcs. + if (!npc.TryGetGlobalNPCSafer(out var calNPC) || !npc.TryGetGlobalNPCSafer(out var polNPC)) + return false; + + // I don't know who would be using this while also inflicting miracle blight, but in that rare case, do not draw these. + if (calNPC.miracleBlight > 0) + return false; + + // Do not draw if the npc doesn't have the polarity effect. + if (polNPC.CurPolarity <= 0f) + return false; + + return true; + } + } +} diff --git a/NPCs/CalamityPolarityNPC.cs b/NPCs/CalamityPolarityNPC.cs index b414c40154..62389ac49f 100644 --- a/NPCs/CalamityPolarityNPC.cs +++ b/NPCs/CalamityPolarityNPC.cs @@ -96,7 +96,7 @@ namespace CalamityMod.NPCs public override void PostDraw(NPC npc, SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { // I don't know who would be using this while also inflicting miracle blight, but in that rare case, do not draw these. - if (npc.Calamity().miracleBlight > 0) + if (CalamityDrawParameterNPC.DrawingMiracleBlight[npc.whoAmI]) return; Main.spriteBatch.End(); From 187ccbf41cbc5e9270e98c3cb41e886f05ac4791 Mon Sep 17 00:00:00 2001 From: Flowaria Date: Wed, 16 Oct 2024 21:45:30 +0900 Subject: [PATCH 2/8] Moved few more condition to CalDrawParameterNPC --- .../MiracleBlightRenderer.cs | 8 ----- NPCs/CalamityDrawParameterNPC.cs | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/Graphics/Renderers/CalamityRenderers/MiracleBlightRenderer.cs b/Graphics/Renderers/CalamityRenderers/MiracleBlightRenderer.cs index b8902c380b..98871deb15 100644 --- a/Graphics/Renderers/CalamityRenderers/MiracleBlightRenderer.cs +++ b/Graphics/Renderers/CalamityRenderers/MiracleBlightRenderer.cs @@ -60,14 +60,6 @@ namespace CalamityMod.Graphics.Renderers.CalamityRenderers if (!npc.active || npc.type <= NPCID.None) return false; - // Do not draw other mod's bosses. - if (npc.ModNPC != null && npc.ModNPC.Mod != CalamityMod.Instance && npc.boss) - return false; - - // Don't draw excluded NPCs, or if the npc is a bestiary dummy. - if (ExcludedNPCs.Contains(npc.type) || npc.IsABestiaryIconDummy) - return false; - if (!CalamityDrawParameterNPC.DrawingMiracleBlight[npc.whoAmI]) return false; diff --git a/NPCs/CalamityDrawParameterNPC.cs b/NPCs/CalamityDrawParameterNPC.cs index dbe6a75882..31619bc88d 100644 --- a/NPCs/CalamityDrawParameterNPC.cs +++ b/NPCs/CalamityDrawParameterNPC.cs @@ -3,9 +3,11 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using CalamityMod.NPCs.ExoMechs.Ares; using Steamworks; using Terraria; using Terraria.DataStructures; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.NPCs @@ -21,6 +23,26 @@ namespace CalamityMod.NPCs public static bool[] DrawingPolarity { get; private set; } #endregion + #region Filtering Fields + public static List MiracleBlightExcludedNPCs => new() + { + // List the reason why the NPC(s) are excluded :) + + // The particle sets break with the visuals and this is the easiest way to fix this that isn't stupidly complex. + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType(), + + // Breaks with being behind tiles, and causes a funny interaction where his head goes behind his neck. + NPCID.MoonLordCore, + NPCID.MoonLordHand, + NPCID.MoonLordHead + }; + #endregion + + #region Load / Unload public override void Load() { DrawingMiracleBlight = new bool[Main.maxNPCs]; @@ -32,6 +54,7 @@ namespace CalamityMod.NPCs DrawingMiracleBlight = null; DrawingPolarity = null; } + #endregion public override void SetDefaults(NPC entity) => ResetParameters(entity); public override bool PreAI(NPC npc) @@ -61,6 +84,18 @@ namespace CalamityMod.NPCs if (npc is null || !npc.active) return false; + // Do not draw weird MP types less than or equal to 0. + if (npc.type <= NPCID.None) + return false; + + // Do not draw other mod's bosses. + if (npc.ModNPC != null && npc.ModNPC.Mod != CalamityMod.Instance && npc.boss) + return false; + + // Don't draw excluded NPCs, or if the npc is a bestiary dummy. + if (MiracleBlightExcludedNPCs.Contains(npc.type) || npc.IsABestiaryIconDummy) + return false; + // Safety check for weird MP bug when getting global npcs. if (!npc.TryGetGlobalNPCSafer(out var calNPC) || !npc.TryGetGlobalNPCSafer(out var polNPC)) return false; From 00ab6dfdac9109a61d502bf9dd9bd4a43f74a4e9 Mon Sep 17 00:00:00 2001 From: Shade Date: Wed, 16 Oct 2024 18:37:38 -0600 Subject: [PATCH 3/8] changed methods to public since thats what they used to be --- NPCs/CalamityDrawParameterNPC.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NPCs/CalamityDrawParameterNPC.cs b/NPCs/CalamityDrawParameterNPC.cs index 31619bc88d..ca630f4f02 100644 --- a/NPCs/CalamityDrawParameterNPC.cs +++ b/NPCs/CalamityDrawParameterNPC.cs @@ -69,7 +69,7 @@ namespace CalamityMod.NPCs return true; } - private static void ResetParameters(NPC npc) + public static void ResetParameters(NPC npc) { if (npc is null) return; @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs DrawingPolarity[whoAmI] = false; } - private static bool ShouldDrawMiracleBlight(NPC npc) + public static bool ShouldDrawMiracleBlight(NPC npc) { if (npc is null || !npc.active) return false; @@ -111,7 +111,7 @@ namespace CalamityMod.NPCs return true; } - private static bool ShouldDrawPolarity(NPC npc) + public static bool ShouldDrawPolarity(NPC npc) { if (npc is null || !npc.active) return false; From 9a1f95d189134fec60f9f5369967103f9836431a Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Tue, 22 Oct 2024 08:51:22 -0700 Subject: [PATCH 4/8] Added Riptide to several early game weapons --- Items/Weapons/Melee/SeashineSword.cs | 12 ++++++++++-- Items/Weapons/Ranged/ReedBlowgun.cs | 8 +++----- Items/Weapons/Ranged/Seadragon.cs | 2 +- Projectiles/Magic/AquamarineBolt.cs | 6 ++++-- Projectiles/Melee/AmidiasWhirlpool.cs | 4 +++- Projectiles/Melee/RedtideWhirlpool.cs | 4 +++- Projectiles/Melee/SeashineSwordProj.cs | 5 +++-- Projectiles/Ranged/ArcherfishShot.cs | 14 ++++++++++++-- Projectiles/Ranged/MegalodonShot.cs | 2 +- Projectiles/Ranged/PressurizedBubbleStream.cs | 8 +++++--- Projectiles/Rogue/SeafoamBubble.cs | 6 ++++-- 11 files changed, 49 insertions(+), 22 deletions(-) diff --git a/Items/Weapons/Melee/SeashineSword.cs b/Items/Weapons/Melee/SeashineSword.cs index 465fa48b07..358b10aa53 100644 --- a/Items/Weapons/Melee/SeashineSword.cs +++ b/Items/Weapons/Melee/SeashineSword.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; @@ -27,7 +28,14 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item1; Item.shoot = ModContent.ProjectileType(); } - + public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 120); + } + public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo) + { + target.AddBuff(ModContent.BuffType(), 120); + } public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Ranged/ReedBlowgun.cs b/Items/Weapons/Ranged/ReedBlowgun.cs index 34a55c9613..12c7774d84 100644 --- a/Items/Weapons/Ranged/ReedBlowgun.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -12,8 +12,6 @@ namespace CalamityMod.Items.Weapons.Ranged public class ReedBlowgun : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; - public static readonly SoundStyle BubbleBurstSound = new("CalamityMod/Sounds/Custom/PistolShrimpBubbleBurst") { PitchVariance = 0.15f, Volume = 0.2f }; - public override void SetStaticDefaults() { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; @@ -23,10 +21,10 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 22; Item.height = 46; - Item.damage = 21; + Item.damage = 25; Item.DamageType = DamageClass.Ranged; - Item.useTime = 25; - Item.useAnimation = 25; + Item.useTime = 32; + Item.useAnimation = 32; Item.useStyle = ItemUseStyleID.Shoot; Item.holdStyle = 16; Item.noMelee = true; diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 1e47e455af..31b9ce3d5b 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item11; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; Item.useAmmo = AmmoID.Bullet; Item.Calamity().canFirePointBlankShots = true; diff --git a/Projectiles/Magic/AquamarineBolt.cs b/Projectiles/Magic/AquamarineBolt.cs index 886ec7cabc..f426b89a09 100644 --- a/Projectiles/Magic/AquamarineBolt.cs +++ b/Projectiles/Magic/AquamarineBolt.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -39,7 +40,8 @@ namespace CalamityMod.Projectiles.Magic } Projectile.rotation += 0.3f * (float)Projectile.direction; } - + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); public override Color? GetAlpha(Color lightColor) => new Color(200, 200, 200, 200); public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Melee/AmidiasWhirlpool.cs b/Projectiles/Melee/AmidiasWhirlpool.cs index 4815d4d045..a381b0710a 100644 --- a/Projectiles/Melee/AmidiasWhirlpool.cs +++ b/Projectiles/Melee/AmidiasWhirlpool.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -139,7 +140,8 @@ namespace CalamityMod.Projectiles.Melee { return new Color(30, 255, 253); } - + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); public override void OnKill(int timeLeft) { SoundEngine.PlaySound(SoundID.Item10, Projectile.position); diff --git a/Projectiles/Melee/RedtideWhirlpool.cs b/Projectiles/Melee/RedtideWhirlpool.cs index 1922176180..42d3b112e9 100644 --- a/Projectiles/Melee/RedtideWhirlpool.cs +++ b/Projectiles/Melee/RedtideWhirlpool.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -54,7 +55,8 @@ namespace CalamityMod.Projectiles.Melee return false; } - + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); public override void OnKill(int timeLeft) { SoundEngine.PlaySound(SoundID.NPCDeath19, Projectile.position); diff --git a/Projectiles/Melee/SeashineSwordProj.cs b/Projectiles/Melee/SeashineSwordProj.cs index 12e6aa9d77..00272dd585 100644 --- a/Projectiles/Melee/SeashineSwordProj.cs +++ b/Projectiles/Melee/SeashineSwordProj.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -92,9 +93,9 @@ namespace CalamityMod.Projectiles.Melee CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor, 2); return false; } - public override Color? GetAlpha(Color lightColor) => new Color(128, byte.MaxValue, byte.MaxValue); - + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 60); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 60); public override void OnKill(int timeLeft) { SoundEngine.PlaySound(SoundID.Item10, Projectile.Center); diff --git a/Projectiles/Ranged/ArcherfishShot.cs b/Projectiles/Ranged/ArcherfishShot.cs index 7b82e11a0f..918ebc8a95 100644 --- a/Projectiles/Ranged/ArcherfishShot.cs +++ b/Projectiles/Ranged/ArcherfishShot.cs @@ -1,4 +1,5 @@ -using CalamityMod.Dusts; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -59,6 +60,15 @@ namespace CalamityMod.Projectiles.Ranged } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Wet, 240); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(BuffID.Wet, 120); + target.AddBuff(ModContent.BuffType(), 120); + } + public override void OnHitPlayer(Player target, Player.HurtInfo info) + { + target.AddBuff(BuffID.Wet, 120); + target.AddBuff(ModContent.BuffType(), 120); + } } } diff --git a/Projectiles/Ranged/MegalodonShot.cs b/Projectiles/Ranged/MegalodonShot.cs index 9d5fba397e..9ecee22bea 100644 --- a/Projectiles/Ranged/MegalodonShot.cs +++ b/Projectiles/Ranged/MegalodonShot.cs @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Ranged bubble.type = Main.rand.NextBool(3) ? 412 : 411; } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 240); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 240); } } diff --git a/Projectiles/Ranged/PressurizedBubbleStream.cs b/Projectiles/Ranged/PressurizedBubbleStream.cs index 54b78cc3e1..21674a48ae 100644 --- a/Projectiles/Ranged/PressurizedBubbleStream.cs +++ b/Projectiles/Ranged/PressurizedBubbleStream.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; using Microsoft.Xna.Framework; @@ -32,7 +33,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.DamageType = DamageClass.Ranged; - Projectile.penetrate = 1; + Projectile.penetrate = 3; Projectile.extraUpdates = 4; Projectile.timeLeft = FireTime + ChargeupTime; } @@ -80,7 +81,7 @@ namespace CalamityMod.Projectiles.Ranged Vector2 bubblePosition = Owner.MountedCenter - Vector2.UnitY * 4f + bubbleRotation.ToRotationVector2() * 55f; - SoundEngine.PlaySound(ReedBlowgun.BubbleBurstSound, bubblePosition); + SoundEngine.PlaySound(SoundID.Item64, bubblePosition); } Projectile.velocity *= 0.985f; @@ -130,7 +131,8 @@ namespace CalamityMod.Projectiles.Ranged waterDust.velocity -= Projectile.velocity * 0.1f; } } - + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); public override void OnKill(int timeLeft) { SoundEngine.PlaySound(SoundID.Item21, Projectile.position); diff --git a/Projectiles/Rogue/SeafoamBubble.cs b/Projectiles/Rogue/SeafoamBubble.cs index d33e0aa2b0..31a35ff41b 100644 --- a/Projectiles/Rogue/SeafoamBubble.cs +++ b/Projectiles/Rogue/SeafoamBubble.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; using Terraria.ID; @@ -42,7 +43,8 @@ namespace CalamityMod.Projectiles.Rogue Projectile.damage *= 2; } } - + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); public override void OnKill(int timeLeft) { SoundEngine.PlaySound(SoundID.Item54, Projectile.position); From 74ef218f7ed754f5471902369522db2e70abedc3 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:59:00 -0400 Subject: [PATCH 5/8] Gave Reed Blowgun bubble stream ID-static iframes --- Projectiles/Ranged/PressurizedBubbleStream.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Projectiles/Ranged/PressurizedBubbleStream.cs b/Projectiles/Ranged/PressurizedBubbleStream.cs index 21674a48ae..4b593181e5 100644 --- a/Projectiles/Ranged/PressurizedBubbleStream.cs +++ b/Projectiles/Ranged/PressurizedBubbleStream.cs @@ -36,6 +36,8 @@ namespace CalamityMod.Projectiles.Ranged Projectile.penetrate = 3; Projectile.extraUpdates = 4; Projectile.timeLeft = FireTime + ChargeupTime; + Projectile.usesIDStaticNPCImmunity = true; + Projectile.idStaticNPCHitCooldown = 10; } public override bool ShouldUpdatePosition() From 213c49e7aa99886b2fb0fa38787dd7dd019192b2 Mon Sep 17 00:00:00 2001 From: Shade Date: Tue, 22 Oct 2024 17:37:32 -0600 Subject: [PATCH 6/8] Added more tries to the hell lab since it sometimes failed to generate --- World/DraedonStructures.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/World/DraedonStructures.cs b/World/DraedonStructures.cs index ce63323792..5bb14468dc 100644 --- a/World/DraedonStructures.cs +++ b/World/DraedonStructures.cs @@ -295,7 +295,7 @@ namespace CalamityMod.World break; } } - while (tries <= 20000); + while (tries <= 50000); } #endregion From b2151537a6483ee14e71f0708cfbebe988ce217d Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 22 Oct 2024 21:15:57 -0400 Subject: [PATCH 7/8] Gravity Normalizer now negates the low gravity of Remix world surface --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- Utilities/PlayerUtils.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index b566d4dd0f..24dfe6d6dd 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2762,7 +2762,7 @@ namespace CalamityMod.CalPlayer if (gravityNormalizer) { Player.buffImmune[BuffID.VortexDebuff] = true; - if (Player.InSpace()) + if (Player.ReducedSpaceGravity()) { Player.gravity = Player.defaultGravity; if (Player.wet) diff --git a/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index e83ae6bd05..1588ae62c2 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -331,11 +331,11 @@ namespace CalamityMod #region Location and Biomes public static bool IsUnderwater(this Player player) => Collision.DrownCollision(player.position, player.width, player.height, player.gravDir); - public static bool InSpace(this Player player) + public static bool ReducedSpaceGravity(this Player player) { float x = Main.maxTilesX / 4200f; x *= x; - float spaceGravityMult = (float)((player.position.Y / 16f - (60f + 10f * x)) / (Main.worldSurface / 6.0)); + float spaceGravityMult = (float)((player.position.Y / 16f - (60f + 10f * x)) / (Main.worldSurface / (Main.remixWorld ? 1.0 : 6.0))); return spaceGravityMult < 1f; } From 177940845ddd5f5cfed037b5723ce2ce6a74aece Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:32:54 -0700 Subject: [PATCH 8/8] TP support for vanilla-based projectiles FeatherLarge is just a straight up resprite as the vanilla sprite it used was updated Also the Belladonna seed is now animated (breaking critical change) --- Projectiles/Boss/MushBombFall.cs | 1 + Projectiles/Boss/MushBombFall.png | Bin 543 -> 0 bytes Projectiles/Magic/CosmicRainbowFront.cs | 2 +- Projectiles/Magic/CosmicRainbowTrail.cs | 2 +- Projectiles/Magic/PartySparkle.cs | 3 +++ Projectiles/Magic/PartySparkle.png | Bin 3066 -> 0 bytes Projectiles/Magic/VeeringWindFrostWave.cs | 1 + Projectiles/Magic/VeeringWindFrostWave.png | Bin 700 -> 0 bytes Projectiles/Melee/BrinyTyphoonBubble.cs | 2 ++ Projectiles/Melee/BrinyTyphoonBubble.png | Bin 2041 -> 0 bytes Projectiles/Melee/YinYoDark.cs | 1 + Projectiles/Melee/YinYoDark.png | Bin 225 -> 0 bytes Projectiles/Melee/YinYoLight.cs | 1 + Projectiles/Melee/YinYoLight.png | Bin 235 -> 0 bytes Projectiles/Ranged/FeatherLarge.cs | 1 + Projectiles/Ranged/FeatherLarge.png | Bin 354 -> 0 bytes Projectiles/Ranged/FlakKrakenProj.png | Bin 1119 -> 0 bytes Projectiles/Ranged/RainbowFront.cs | 1 + Projectiles/Ranged/RainbowFront.png | Bin 115 -> 0 bytes Projectiles/Ranged/RainbowTrail.cs | 2 +- Projectiles/Ranged/Shroom.cs | 2 ++ Projectiles/Ranged/Shroom.png | Bin 441 -> 0 bytes Projectiles/Ranged/TyphoonBubble.cs | 2 +- Projectiles/Rogue/DuststormInABottleProj.png | Bin 417 -> 0 bytes Projectiles/Summon/BelladonnaPetal.cs | 10 ++++++++++ Projectiles/Summon/BelladonnaPetal.png | Bin 697 -> 0 bytes Projectiles/Summon/IceClasperSummonProjectile.cs | 1 + .../Summon/IceClasperSummonProjectile.png | Bin 652 -> 0 bytes Projectiles/Summon/MutatedTruffleToothball.cs | 2 ++ Projectiles/Summon/MutatedTruffleToothball.png | Bin 1214 -> 0 bytes Projectiles/Summon/WitherBolt.cs | 2 ++ Projectiles/Summon/WitherBolt.png | Bin 3066 -> 0 bytes 32 files changed, 32 insertions(+), 4 deletions(-) delete mode 100644 Projectiles/Boss/MushBombFall.png delete mode 100644 Projectiles/Magic/PartySparkle.png delete mode 100644 Projectiles/Magic/VeeringWindFrostWave.png delete mode 100644 Projectiles/Melee/BrinyTyphoonBubble.png delete mode 100644 Projectiles/Melee/YinYoDark.png delete mode 100644 Projectiles/Melee/YinYoLight.png delete mode 100644 Projectiles/Ranged/FeatherLarge.png delete mode 100644 Projectiles/Ranged/FlakKrakenProj.png delete mode 100644 Projectiles/Ranged/RainbowFront.png delete mode 100644 Projectiles/Ranged/Shroom.png delete mode 100644 Projectiles/Rogue/DuststormInABottleProj.png delete mode 100644 Projectiles/Summon/BelladonnaPetal.png delete mode 100644 Projectiles/Summon/IceClasperSummonProjectile.png delete mode 100644 Projectiles/Summon/MutatedTruffleToothball.png delete mode 100644 Projectiles/Summon/WitherBolt.png diff --git a/Projectiles/Boss/MushBombFall.cs b/Projectiles/Boss/MushBombFall.cs index aa774c226c..5645ec3df9 100644 --- a/Projectiles/Boss/MushBombFall.cs +++ b/Projectiles/Boss/MushBombFall.cs @@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Boss public class MushBombFall : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Boss"; + public override string Texture => "CalamityMod/Projectiles/Boss/MushBomb"; public override void SetStaticDefaults() { diff --git a/Projectiles/Boss/MushBombFall.png b/Projectiles/Boss/MushBombFall.png deleted file mode 100644 index 279f8aa2b9a3aa7fb62aaf2e20a9172fbabc0f14..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 543 zcmV+)0^t3LP)9>hzQ+|%(5?t{;VP-<$3C!CTk$_A`U7%P)T)I+|3C&} zh(uRN6AiCPB=?5U69aP{=@6w z+2gmMax51>v3bW|`!`0##dDXVGKAM}#=!94c$N3Vr>S&_^?%!#Tl%{1i-(uk)sqik zd~_n*yPlt0Ih@3QuOMSi#+;f|Ut0SNE_Ad8ur|A#$efeC9RVyZ@Azv^%#|x(t-M^t znn$Bg?OhKKj)#zw_Ronwh*-0@RH|CXReK*Jo_6)*!Tj7x2)+Gh1DJikkjS2lIr}JM zPJ+@ir+?@!_*VDxK+HMuyD8 "Projectiles.Magic"; - public override string Texture => "CalamityMod/Projectiles/Ranged/RainbowFront"; + public override string Texture => "Terraria/Images/Projectile_251"; public override void SetDefaults() { diff --git a/Projectiles/Magic/CosmicRainbowTrail.cs b/Projectiles/Magic/CosmicRainbowTrail.cs index e48af16b3f..ceedd2c90b 100644 --- a/Projectiles/Magic/CosmicRainbowTrail.cs +++ b/Projectiles/Magic/CosmicRainbowTrail.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Magic public class CosmicRainbowTrail : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Magic"; - public override string Texture => "CalamityMod/Projectiles/Ranged/RainbowFront"; + public override string Texture => "Terraria/Images/Projectile_251"; public const int Lifetime = 25; public override void SetDefaults() diff --git a/Projectiles/Magic/PartySparkle.cs b/Projectiles/Magic/PartySparkle.cs index 5eafa1cce4..f2a5df1a09 100644 --- a/Projectiles/Magic/PartySparkle.cs +++ b/Projectiles/Magic/PartySparkle.cs @@ -10,6 +10,9 @@ namespace CalamityMod.Projectiles.Magic public class PartySparkle : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Magic"; + + public override string Texture => "CalamityMod/Projectiles/StarProj"; + public float Time { get => Projectile.ai[0]; diff --git a/Projectiles/Magic/PartySparkle.png b/Projectiles/Magic/PartySparkle.png deleted file mode 100644 index 0968156e79f880c08816086f5cac6b8bd7c93d37..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3066 zcmVPx#1ZP1_K>z@;j|==^1poj6BT!6KMF0Q*0s;a90|NvE1O){J1_lNQ2nY!Y2@4Ag z3=9m##l;N`4Gsz?O-)TuP*7AN$ts000VgNkl*~!l*IaYW zHH{nTuMEFeLHq9eBmJduSpr?eK9?faLHdj2%6)9sa1q7tmGdCTaPwP`;abl9R$Zz< zRfMy!L%=I7(9T>#ac%@Z0(^Fj!ki4Zn7L`^BG!2bwCctT1&QYDtqP5r5MzQ}wy!seR#$pxP^AFg@x=FNZbPoF;h zBi@Iu!r*EfGTsu(^9rj4a?wj!B@X-)svLkg z@S$|DIInKU;o;%!TeoiA4j=B;?M%6GAM@~DYoTo9=J4H?-JXzXdJm2X83O&2XR0g_ zXe*I78x|8qOOP4|K9Gdrz}4srL5?DB0ueKoLe*IF$whAJaBlYW-pN*t`>i7rNjfCKY#uwzKN1wvF`ysz#EML-(tl09hqS)*6KawHRPzq9^sov zVVtSe)Me^w#^<=9&o;_pfd+{i+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|K{rdI4@z0(;`x(#Sbixndyb0~27Jd5IbQ$&EUhTFqhc)(@7ur|5iKW_`TDnZ9#Jr(6 zx@lcF%~F9zH*_IrLkwAnpSBJ_UxaZ!(cVYI9Nb1OAZFZi?9=>WR?aZJm}6NJCuxE( zH^bHJb%QEYlD;QW(5^i(7PK2hgShr9Vc_;q6kEwBaez3N_iD+mA+tBftPzN$y~GrT z&sv}r2GotyNdnqw^hp53${W%IavyW5v5Ym$jdpwAbh|aw?lPV2_Q08MP%S{^ZHojw zp*SRte!MNyD5v`fbDk6>PfU^cpiMg1cTSwGhdjs9Z?Q2(zuACqr}XM8?e_N|n))Zl zrYHxN=g{sezTIRzjEDnmd?`DNTR?Ap6$yNJbWuk@A7pd(59dB;5u+V4!X`rPKQD3M ztOCJSjwzuaLXFiv "Projectiles.Magic"; + public override string Texture => "Terraria/Images/Projectile_348"; public override void SetStaticDefaults() { diff --git a/Projectiles/Magic/VeeringWindFrostWave.png b/Projectiles/Magic/VeeringWindFrostWave.png deleted file mode 100644 index 8246150f1209ae2f63d715c132d950463e2a585e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 700 zcmV;t0z>_YP)Px#1ZP1_K>z@;j|==^1poj53{Xr|MF0Q*ce~l>{{OGo+B!K3PXGV{PDw;TRA@u( z*s)Q=KoEstnLY?HlmIb90hB^S4Mdbe0Sqye04Agm7~y*wSk3dhyIt81_D_%{A)Ry| zvhk2*2W?e;?!EixkMFV=(!yX$pXis|uXQw9FLfENpi6 zC9SokWu`!9-LqiD)k=Hae3qqUx>}!=rQKPXy&_Yfv+BFvDo#mz`wIOSI9#6Yz7!?1 zS7ZuwChs!j^@?NCAjWQwT925_T9Ha(3Uo&Au96om4q{IKqu%4xjuTmtOkxUjHr>ryd95=UU9D7A?R6-LDbN`e$mC&$m;@yR+cASr z@0;z4lHHE%e(3gM{ktE=ug@|~w^H{m+xUAmmvJz9E zvq>PEaioMHCW%R5VLvO6#RM|BDs}zXo&ufC1meyradtl?sx^#D$?MGuZN1(U7}O*X zF^No=efHR*B&qY*)OpqMm{7b%DbU#@5HrPQ4(qMRRv9cDzqV-6Rvf#2d!JIEv*|9k zJ`;KcFlp?YZx;R&uzAPT`pi#(&SuX*Rqy_YNrNZ|VBs%79S1FaT`ADnNp4gs9JvOq|*eukCr*H_1_@KxbjIVddEw zua$<>cBGE0#^o&qIt!VFG5fBFl%S=9NTlBNTT6k*(kKuL|27J+3ic5@FB@lXDezc2 il(g2O$C(0M4Z{yp(?=$urXhy_0000 "Projectiles.Melee"; + public override string Texture => "Terraria/Images/Projectile_385"; + public override void SetStaticDefaults() { Main.projFrames[Type] = 3; diff --git a/Projectiles/Melee/BrinyTyphoonBubble.png b/Projectiles/Melee/BrinyTyphoonBubble.png deleted file mode 100644 index 90a422dbd8a035dbf979e3049e75f327c1bdd410..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2041 zcmVPx#1ZP1_K>z@;j|==^1poj53{Xr|MF0Q*GHb;NJ-?H&{oJCr!2kdUi%CR5RCr$P zoV}_nRS-t63WASfVqheQf{CfmU@T_hLx`Ce`wXTgf^xygz{E!p1W{%2n)RN^m#Yl|KjDpm(M@{`1|_(uU|j8{^mO${e0c7 z?`Pr7r_b=j-Lm7%I6E-}w6ms+|Ni}l&z_^&@a}tWU%%^kZFlH+86})q{GGi_j3Hnt znin`)xXh7nzWVt3`NL1YT|Y&2JmLAGGT9MBfQ{mJKmK#g^w;11a{bP}S(%{ipMUzn z^;6g3c4fFaUpS-o8pUD=uu-k%5j2D*2<;cTp4%?ECRI$$i6P)7dfnPVDpLrrOCtqM z5<1R}K7uu;8hv62xQSM^I%P(tCagk3*&fy!XP7f3hJc$WP3ISarqHadrf?1A3~}=l z(f$1x0&LW_R{gzehJz*xwpRwZQIo_FP#UszUhybg&2yuV$SBjK%qmS09Pf`Zgvb~- z`p^uHf-wZ#WYvxPu9_>djPy}BL%Jr%5O5PMMYzk^3=uS&^Ap$37y@iI*%#eB+N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R*C zMVxD%M^m*^#E>C2T6;zO(Wu>=!ScS0Yj+F*r6H`^io7CzHbb}u6MQo|hBUF+Wu*D; z`q>THI%AC?;3i6LbWwywcWv-!R!7Ge0&W6wiQIEpznH=Pc}6ZqzxuCB3<0)=$dan2 z99>JehSK+~qhbsJH_>wAxN!GaY1Gli2%1v;4PFcZHd>4{aRxow4AwZ-Hhq^VF=R-Y z&1&Yy)vvg>DOI}!4asVENIQ$nNcV{zGr{XjP15 "Projectiles.Melee"; private const int speedTimerMax = 30; private int speedTimer = speedTimerMax; + public override string Texture => "Terraria/Images/Item_527"; public override void SetStaticDefaults() { diff --git a/Projectiles/Melee/YinYoDark.png b/Projectiles/Melee/YinYoDark.png deleted file mode 100644 index 7f62b3dfe7ef387fdb258289b8465154bb3f81c3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 225 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRn!3HE-lJ=GZsTH0sjv*Cu_D*!|-5O^!^^VMRY#nq<3>} zf8CzToDdtHxpgDkEFG7XL0k;iq8Ng_em9(Ev;Aaqo ZV7Q?cuBl+L "Projectiles.Melee"; private const int speedTimerMax = 30; private int speedTimer = 0; + public override string Texture => "Terraria/Images/Item_528"; public override void SetStaticDefaults() { diff --git a/Projectiles/Melee/YinYoLight.png b/Projectiles/Melee/YinYoLight.png deleted file mode 100644 index 90c73a1903ff967c2903947fe1f0bb051b595ba3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 235 zcmVEWDfDi%z<2W7wBJ%hzLDzMcB)=oj8=t1BE})t~o40MN3#ca0<`^RY*4mSC zSr*{^8tn+mX4NnZ0IchJntSgX6X-@n05HY?;G6@X?|T6DeFq?=r2fW#VV>tpgU-w5 lkAP}|Eb+*jN|nvc2ws8WL{p#{^=<$F002ovPDHLkV1nl "Projectiles.Ranged"; + public override string Texture => "Terraria/Images/Item_1516"; public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Type] = 6; diff --git a/Projectiles/Ranged/FeatherLarge.png b/Projectiles/Ranged/FeatherLarge.png deleted file mode 100644 index add436a02580ad8e9871711da77c595ed52f5d1a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 354 zcmV-o0iFJdP))WN>FRqZA;DqMBc#l3F+S z03^vbe>LNwMfTU@A|tsvC@cIo(M@sC>i{r&oC9!qeGWi~o$~%Y_JYG)lIni92|(-? z?o4d7&di(n$R(-oj~FiAfpx09&MlJqfm^sU(M|Pd`Ic$pSC?u%F}-{(&GY){vE}Px# diff --git a/Projectiles/Ranged/FlakKrakenProj.png b/Projectiles/Ranged/FlakKrakenProj.png deleted file mode 100644 index ebffc498ad2368f31a979d3828a0c8d33a72021c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1119 zcmV-l1fctgP)Px(8A(JzRA_tvzzb$krzGZxc{i8CYK zz`6O44WM)8lqt^l^3`gvzr|E}Z%+mQ)$c#s{$t59wqsce)~Kyc1egQRWNvYJ!)qVN z_r&Iwn|J2QVXvKx6?BK+3AoKy}?wtvcB$(q*jh+yH=$TyWg;DoOSH!^h4608Uo!1s6~&N~r%* ztJ~CJhnu%ny!BNl6{8sbpzI3AKh?kK?%m zh==zdd;R%6$`ow{{aN~q?dvzKq318&F4eqtN|ZW59a+dD5`s)AR0r4IJp<6nd}X9B z1Avv)dQhn}pG%*y-J)sT!q$(mB>mBxFiDV6%UbGAQfMZgEMwW_(`Nv*tw{t2#`sWgvE?T2J|~teukVeMg*EoC{vfNUJTB!J0gZ;8OvraoCN?ZE^h>D z5`?wqi8c}qX1F6|rxUBydfRnXmrDDc@~(f~4(5yL`!VkM;0&>XHZgF7WY$;6N>V=Y!u z&&Og>x0U%4x9?s9&>Hhu{k38oh-kXoDz@mDl}Qt^C|m1V+t!KJaWMKl@DKPeC3~G39QVQ&~r7lqJ_w%qgw>s%b3>8S;H?d z6@=xtINzaRSFQTA=6-Wto@FaDMC>e@NS3jVZw;`v|E=bq(py(qtVku=7G$2> l-o*`!|E)W~e+tPm_6yYGo+FZHP!0e9002ovPDHLkV1hkkB(eYi diff --git a/Projectiles/Ranged/RainbowFront.cs b/Projectiles/Ranged/RainbowFront.cs index b8154deb06..0a4305437a 100644 --- a/Projectiles/Ranged/RainbowFront.cs +++ b/Projectiles/Ranged/RainbowFront.cs @@ -7,6 +7,7 @@ namespace CalamityMod.Projectiles.Ranged public class RainbowFront : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; + public override string Texture => "Terraria/Images/Projectile_251"; public override void SetDefaults() { Projectile.width = 12; diff --git a/Projectiles/Ranged/RainbowFront.png b/Projectiles/Ranged/RainbowFront.png deleted file mode 100644 index 5ee9d346d116ed1200ac07698701f757b956eeed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 115 zcmeAS@N?(olHy`uVBq!ia0vp^d_b(g!3HFi-g!<3QdXWWjv*Cuk}D1$`1PNc`St&B zNgjbe0!@-}hRz@Mg$tbFIXIC=;LIThHHoVhs|rINuQ(RiyI6{SzZ*kDvw~>lzlS$~ PrZ9NA`njxgN@xNANkt{y diff --git a/Projectiles/Ranged/RainbowTrail.cs b/Projectiles/Ranged/RainbowTrail.cs index 20abe41bb0..b785e78402 100644 --- a/Projectiles/Ranged/RainbowTrail.cs +++ b/Projectiles/Ranged/RainbowTrail.cs @@ -6,7 +6,7 @@ namespace CalamityMod.Projectiles.Ranged public class RainbowTrail : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; - public override string Texture => "CalamityMod/Projectiles/Ranged/RainbowFront"; + public override string Texture => "Terraria/Images/Projectile_251"; public override void SetDefaults() { diff --git a/Projectiles/Ranged/Shroom.cs b/Projectiles/Ranged/Shroom.cs index 60082e80d0..0adf02657b 100644 --- a/Projectiles/Ranged/Shroom.cs +++ b/Projectiles/Ranged/Shroom.cs @@ -8,6 +8,8 @@ namespace CalamityMod.Projectiles.Ranged public class Shroom : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; + public override string Texture => "Terraria/Images/Item_183"; + public override void SetStaticDefaults() { ProjectileID.Sets.CultistIsResistantTo[Type] = true; diff --git a/Projectiles/Ranged/Shroom.png b/Projectiles/Ranged/Shroom.png deleted file mode 100644 index a6cd029b87d0ac2e03d17320ed5ab487b9799c25..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 441 zcmV;q0Y?6bP)INsykdmldh?)?rNqQ(_NjVs1{bVque&iS1-jG8{M z8doHnZ1xO*)7%;W_3|SCt=5wP5Sgj~P_DfChJxM74_KHA!`>VuuK=h%m&{R*bl;d` zzMvUknR{p4Ybt7KXDSj?767=oIRs#HBLP_E-Wk8VtqwF5+1{N6Ad{Ajg{eqU+XJBS z-Y~(gYW|9UZsr=WYAFmwGU*}!RlO#yFHI*T(>}19mJ+zr`7({VUp*W+k~ZYB!vW#I z762=%0>DSp>_qR3A4)YJz{zpm0BE;A0frH9&zVpOHn2Ur$ zlLkO+ae3gud_j{8ZNYBG790#t3|trg2+&3YkDEV(MXigM=k9|48(Z+*z3u}@rS=T~ j(V^m=+ua67@VNN~B|(UfWdcYu00000NkvXXu0mjfs`|fc diff --git a/Projectiles/Ranged/TyphoonBubble.cs b/Projectiles/Ranged/TyphoonBubble.cs index c0915367a7..08be6cba30 100644 --- a/Projectiles/Ranged/TyphoonBubble.cs +++ b/Projectiles/Ranged/TyphoonBubble.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Projectiles.Ranged public class TyphoonBubble : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; - public override string Texture => "CalamityMod/Projectiles/Melee/BrinyTyphoonBubble"; + public override string Texture => "Terraria/Images/Projectile_385"; public override void SetStaticDefaults() { diff --git a/Projectiles/Rogue/DuststormInABottleProj.png b/Projectiles/Rogue/DuststormInABottleProj.png deleted file mode 100644 index 1e049812e3bc3b9b62115369a4e0bcd8284950c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 417 zcmV;S0bc%zP)TW+UASl2KCt|` zmCI0E3U?vZ4TL!dW-yG89+t4MgUJ&ehEy|9O3o4-%g-JiM~Se8-t}PdhT=f5I4*S< zu}n1sVFro)evJ~lF-s?b`6W(XV9O08RlqKVhasydmm~%bX46M6eWy;YG6Ji%?zw@k^|ciGJh_Z*5`xdWpN%s6qi`)YJmB= zQruu#Q(pi~NB3Vsbs^OaJigcqY{Tlm#$ej`;zksgp>vdsWKdlmyA9QaR5K8kcN>Cj zQNje>1-P6$|BMb;YFa}!#Dz37aAlJ(*aloKgQY)ommd7*0T!Ayu?y9OR5K7}Bh2f; zmPTM9SUN*@(JS2u6d{<)F!D0h4McY-y326Yg6QQY&RUOL0|6!{&=H#NxOD&k002ov LPDHLkV1fVumm{wa diff --git a/Projectiles/Summon/BelladonnaPetal.cs b/Projectiles/Summon/BelladonnaPetal.cs index 427ed5680b..4c2cc34c04 100644 --- a/Projectiles/Summon/BelladonnaPetal.cs +++ b/Projectiles/Summon/BelladonnaPetal.cs @@ -10,6 +10,7 @@ namespace CalamityMod.Projectiles.Summon public class BelladonnaPetal : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; + public override string Texture => "Terraria/Images/Projectile_276"; public Player Owner => Main.player[Projectile.owner]; // The timer for the AI to do it's actions. @@ -27,6 +28,7 @@ namespace CalamityMod.Projectiles.Summon ProjectileID.Sets.CultistIsResistantTo[Type] = true; ProjectileID.Sets.TrailCacheLength[Type] = 5; ProjectileID.Sets.TrailingMode[Type] = 0; + Main.projFrames[Type] = 2; } public override void SetDefaults() @@ -55,6 +57,14 @@ namespace CalamityMod.Projectiles.Summon // Gives it a jungl-y green color. Lighting.AddLight(Projectile.Center, 0.5f, 1f, 0.3f); + // Animation + Projectile.frameCounter++; + if (Projectile.frameCounter >= 8) + { + Projectile.frameCounter = 0; + Projectile.frame = (Projectile.frame + 1) % Main.projFrames[Type]; + } + Projectile.netUpdate = true; } diff --git a/Projectiles/Summon/BelladonnaPetal.png b/Projectiles/Summon/BelladonnaPetal.png deleted file mode 100644 index 43bc9ac92dcf0c11458bebf2b5a9ab12319f125a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 697 zcmV;q0!ICbP)EX>4Tx04R}tkv&MmP!xqv(@I4u9qb_DkfAzR5Eao)s#pXIrLEAagUL((ph-iL z;^HW{799LptU9+0Yt2!cN#t}afBE>hxsNufoI7hdvl-aUu+?gNBom8oW698fjO zNGIZAF25=UU*SUlVfxNW%+!;a#VkDQ>z?|k?qWR4yYJ8HR|+Nrd?N82(+!JwgLrz= z(mC%FM_5@>h|h_~3_2k3BiCh@-#C{X7ItBhU>J3k-!p?NI`^*Ix48bLX7?zDJIgiANTMNIsO#6WO7x& z$gzMLR7j2={0)B3)+|m=xJjWn(DP#3A0t3;7icwX`}^3oTPJ}38Mx9q{#p~5`6Rv3 z(V|B{cpJF5?r8EJaJd5vKIxJnIg+22P%HxPXY@>YVBi+$TXW~u-pAy{D4^000SaNLh0L z04^f{04^f|c%?sf00007bV*G`2j>9<4+9UySvC>?006Z~L_t(I%VS``0SpZd{~H<_ z{>LTH#6Tus!DbT!0|P_cvNsTcC)G<=_g{Ti2e`D6Qi1Bf3(`ZDe}L4)F_I>M_)BEGY8S&mD*qgbH3AQKL@oV8m4d fpaZIv0Q3g{G{-~Irtz%u00000NkvXXu0mjf%B3*Y diff --git a/Projectiles/Summon/IceClasperSummonProjectile.cs b/Projectiles/Summon/IceClasperSummonProjectile.cs index c7c6c17af1..f82d96de31 100644 --- a/Projectiles/Summon/IceClasperSummonProjectile.cs +++ b/Projectiles/Summon/IceClasperSummonProjectile.cs @@ -8,6 +8,7 @@ namespace CalamityMod.Projectiles.Summon public class IceClasperSummonProjectile : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; + public override string Texture => "CalamityMod/Projectiles/Melee/DarkIceZero"; public override void SetStaticDefaults() { diff --git a/Projectiles/Summon/IceClasperSummonProjectile.png b/Projectiles/Summon/IceClasperSummonProjectile.png deleted file mode 100644 index 98bedb5a00d2a717e2a919b2ae2649d9ae66f7fd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 652 zcmV;70(1R|P)5500001b5ch_0Itp) z=>Px%MoC0LR7i=%mcMILQ545NPilymR(YnOjW$6f9b!RL;^dDZlQ>AhNhbwMcX9A9 zaCZ{-b`or%(y2pAr#cC>LxR{O5(6!vv;jk;JcswrOYZZ%BntQXopSFx_wae&oOkZA z7^3`*r}ES3-;bwL7QkL<4S?417vg0M-}g~?Rw3D9_gquM;zsCl+IpADQl??^BxcLcJAR50CrZFLaReRv3MJ^CjscT_5rAW zd=J3PgGT^lujBw|UcTm?TnbIBk61|K)0Y6~{P^wwOnZdCzI`4kQS8h(05(?voy769 zTZf&7N-8?-dl{~&+${i_m2IUu^bzls)*OKQ?>;CGn!6QcE!A+Ra00;A8`t|}-m8+z zwi2(uj)kcD)g_(sNMwIholCj@iMd`8MJV1z>F(nV05+G44wxW*Tbu)6abrgb2$H_I z`5fp~!+}>lc0o<7jo7ls-ETXY%ew@XT?hUoUs-$>nqao@T3K%{7Xh6f`xA`%q51W^ zzAz8;dV(m5G?}@lw^#W0lz2^GMmwLKwEzyQWe0lXLR|jj-iasOm<6z3-9jtzSRbiK zxor=t<$(#Lt0nAg)5>Le8Ob~1Zg@m6H6yA7LgL{Z*~{@;8YRPYNs zsFgzF^mn(3v^x(UHEK>UW>A8lw;}`Gt>Nz}gff$Le;)tUo9ORuK?S>A-;Ac5HSh7L mfkGNj*cL#i-5MCLjrcbb diff --git a/Projectiles/Summon/MutatedTruffleToothball.cs b/Projectiles/Summon/MutatedTruffleToothball.cs index e9e60f2538..7e2866795c 100644 --- a/Projectiles/Summon/MutatedTruffleToothball.cs +++ b/Projectiles/Summon/MutatedTruffleToothball.cs @@ -11,6 +11,8 @@ namespace CalamityMod.Projectiles.Summon { public new string LocalizationCategory => "Projectiles.Summon"; + public override string Texture => "CalamityMod/NPCs/OldDuke/OldDukeToothBall"; + public ref float TargetShotID => ref Projectile.ai[0]; public override void SetStaticDefaults() => ProjectileID.Sets.MinionShot[Type] = true; diff --git a/Projectiles/Summon/MutatedTruffleToothball.png b/Projectiles/Summon/MutatedTruffleToothball.png deleted file mode 100644 index dfed859377f204d9526af29a2d0276684e3a84fe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1214 zcmV;v1VQ_WP)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00az4L_t(o!_}BgY*bYg$A7n_GnGzh zYN1eQ#di7;3RFNPGEj^Lqb4S7)DU%Ph*4Sik+>m}CT>XlAOVaat_UUsYY4#v2_`lc zh#Ezt7DJhKASLMslm=U<^RRs`ZcnG@@}?73&O4ho_uTvL%>3T}e7tMOVRbbR&pF@M ze+7Vs=4Sv{*|-RR?w;$uv(x}wzIZCvS1K#Guhsv9nOqBI5mZF#`F-+4#PXity!*Z3t=Coq@Wruze1L~4Ck=pi*FKEFQT?AM z$1Vd<8jAri=HX}AI`C=cKS7DUY&JD90D%ARxblm}cD5Z*L_XTJJ#e3~@o^tuYipD8 zAM3mXfQdW^Ktpqbn$LfNvpxrEW9gDI17N&}0oZ@2%eSO90I;~?QMJCQCJI1DM~Cuf zBUc}fPiKRIz`PkMfQ`!z6YSG&XP+` zlXLT?Sl$yf62;B64*<}0;erqF^_M%;!b|;W0QTeVay9?#%XMn}d#9Gv@IXq9 zg`^wxvj~PmgEQG%YVOiyHXofi*XslPdi=vcl0rzx2tmrHzVPrwz22z9F=oT%WIomns50LygG-AoFYPOpE^I~5}2ucMhi`mS6 zzIRZ+y*be=U5Bel(Ucq2uB~mg#mlWEZeCp7(h{;->{gVTstN%52S$8=uRi}k%}dwe z=Ea_28--GHh4iLJ)&ZH?E$dtjyZh%o!I_TQ_iibYLe9;PLPVlkNZj!L2JY?1#qaim zV*3wuO@Ff2!qTw5)d{(HwY~OUyQLP2Cfs}|T65neBub?VYCkcm=3B}~061kY#EMG{ z!0ohk6hte+K`cA}zkTCcOEP&y{ig8L z;%o%P;??$KVR+QK7sd*G$eeOryK3{8TeBs44}bO?kf{`}zPTHK>he+pP!yRLc%l#* zfYPrZxg=TyKx*i&TD+(ICpAt^UuzfJ+WgY%_Iyy@f5kuH*?o#~obu*9!JKE* zGYfNQ)FoX~Y|my^HQ8F7x;ikY*0NdN6Z{VeQFB^;HaZXh000tnMObu2SV=}YPjYEx cZggREX>V=-F@#v`?*IS*07*qoM6N<$g2FdH#Q*>R diff --git a/Projectiles/Summon/WitherBolt.cs b/Projectiles/Summon/WitherBolt.cs index 1d05ddf020..6711988904 100644 --- a/Projectiles/Summon/WitherBolt.cs +++ b/Projectiles/Summon/WitherBolt.cs @@ -11,6 +11,8 @@ namespace CalamityMod.Projectiles.Summon { public new string LocalizationCategory => "Projectiles.Summon"; + public override string Texture => "CalamityMod/Projectiles/StarProj"; + public override void SetStaticDefaults() { ProjectileID.Sets.CultistIsResistantTo[Type] = true; diff --git a/Projectiles/Summon/WitherBolt.png b/Projectiles/Summon/WitherBolt.png deleted file mode 100644 index 0968156e79f880c08816086f5cac6b8bd7c93d37..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3066 zcmVPx#1ZP1_K>z@;j|==^1poj6BT!6KMF0Q*0s;a90|NvE1O){J1_lNQ2nY!Y2@4Ag z3=9m##l;N`4Gsz?O-)TuP*7AN$ts000VgNkl*~!l*IaYW zHH{nTuMEFeLHq9eBmJduSpr?eK9?faLHdj2%6)9sa1q7tmGdCTaPwP`;abl9R$Zz< zRfMy!L%=I7(9T>#ac%@Z0(^Fj!ki4Zn7L`^BG!2bwCctT1&QYDtqP5r5MzQ}wy!seR#$pxP^AFg@x=FNZbPoF;h zBi@Iu!r*EfGTsu(^9rj4a?wj!B@X-)svLkg z@S$|DIInKU;o;%!TeoiA4j=B;?M%6GAM@~DYoTo9=J4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