diff --git a/Backgrounds/AstralDesertSurfaceBGStyle.cs b/Backgrounds/AstralDesertSurfaceBGStyle.cs index 7491d81993..89e9b30174 100644 --- a/Backgrounds/AstralDesertSurfaceBGStyle.cs +++ b/Backgrounds/AstralDesertSurfaceBGStyle.cs @@ -4,14 +4,14 @@ namespace CalamityMod.Backgrounds { public class AstralDesertSurfaceBGStyle : ModSurfaceBackgroundStyle { - public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralDesertSurfaceFar"); + public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralDesertSurfaceFar"); - public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralDesertSurfaceMiddle"); + public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralDesertSurfaceMiddle"); public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b) { b -= 75f; - return BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralDesertSurfaceClose"); + return BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralDesertSurfaceClose"); } public override void ModifyFarFades(float[] fades, float transitionSpeed) diff --git a/Backgrounds/AstralSnowSurfaceBGStyle.cs b/Backgrounds/AstralSnowSurfaceBGStyle.cs index 7ca3a2b119..cdbf92b05f 100644 --- a/Backgrounds/AstralSnowSurfaceBGStyle.cs +++ b/Backgrounds/AstralSnowSurfaceBGStyle.cs @@ -5,11 +5,11 @@ namespace CalamityMod.Backgrounds { public class AstralSnowSurfaceBGStyle : ModSurfaceBackgroundStyle { - public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSnowSurfaceFar"); + public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSnowSurfaceFar"); - public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSnowSurfaceMiddle"); + public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSnowSurfaceMiddle"); - public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b) => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSurfaceClose"); + public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b) => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSurfaceClose"); public override void ModifyFarFades(float[] fades, float transitionSpeed) { diff --git a/Backgrounds/AstralSurfaceBGStyle.cs b/Backgrounds/AstralSurfaceBGStyle.cs index cc855251a7..c89b8c1c24 100644 --- a/Backgrounds/AstralSurfaceBGStyle.cs +++ b/Backgrounds/AstralSurfaceBGStyle.cs @@ -4,14 +4,14 @@ namespace CalamityMod.Backgrounds { public class AstralSurfaceBGStyle : ModSurfaceBackgroundStyle { - public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSurfaceFar"); + public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSurfaceFar"); - public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSurfaceMiddle"); + public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSurfaceMiddle"); public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b) { scale *= 0.75f; - return BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSurfaceClose"); + return BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSurfaceClose"); } public override void ModifyFarFades(float[] fades, float transitionSpeed) diff --git a/Backgrounds/AstralUndergroundBGStyle.cs b/Backgrounds/AstralUndergroundBGStyle.cs index ff7fef996c..ea7f7504c9 100644 --- a/Backgrounds/AstralUndergroundBGStyle.cs +++ b/Backgrounds/AstralUndergroundBGStyle.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Backgrounds public override void FillTextureArray(int[] textureSlots) { for (int i = 0; i <= 3; i++) - textureSlots[i] = BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralUG" + i.ToString()); + textureSlots[i] = BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralUG" + i.ToString()); } } } diff --git a/Backgrounds/SulphurSeaSurfaceBGStyle.cs b/Backgrounds/SulphurSeaSurfaceBGStyle.cs index 8b00eacd7c..da3af25da3 100644 --- a/Backgrounds/SulphurSeaSurfaceBGStyle.cs +++ b/Backgrounds/SulphurSeaSurfaceBGStyle.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Backgrounds public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b) { b -= 250f; - return BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/SulphurSeaSurfaceClose"); + return BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/SulphurSeaSurfaceClose"); } public override void ModifyFarFades(float[] fades, float transitionSpeed) diff --git a/BiomeManagers/AbovegroundAstralBiome.cs b/BiomeManagers/AbovegroundAstralBiome.cs index 568d4ef140..19a155c40f 100644 --- a/BiomeManagers/AbovegroundAstralBiome.cs +++ b/BiomeManagers/AbovegroundAstralBiome.cs @@ -11,8 +11,8 @@ namespace CalamityMod.BiomeManagers { public class AbovegroundAstralBiome : ModBiome { - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/AstralWater"); - public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find("CalamityMod/Backgrounds/AstralSurfaceBGStyle"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AstralWater"); + public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find("CalamityMod/AstralSurfaceBGStyle"); public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Astral") ?? MusicID.Space; diff --git a/BiomeManagers/AbovegroundAstralDesertBiome.cs b/BiomeManagers/AbovegroundAstralDesertBiome.cs index c136fc8151..ec20642ab7 100644 --- a/BiomeManagers/AbovegroundAstralDesertBiome.cs +++ b/BiomeManagers/AbovegroundAstralDesertBiome.cs @@ -9,8 +9,8 @@ namespace CalamityMod.BiomeManagers { public class AbovegroundAstralDesertBiome : ModBiome { - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/AstralWater"); - public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find("CalamityMod/Backgrounds/AstralDesertSurfaceBGStyle"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AstralWater"); + public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find("CalamityMod/AstralDesertSurfaceBGStyle"); public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Astral") ?? MusicID.Space; diff --git a/BiomeManagers/AbovegroundAstralSnowBiome.cs b/BiomeManagers/AbovegroundAstralSnowBiome.cs index 0f540d8246..2b4281d23c 100644 --- a/BiomeManagers/AbovegroundAstralSnowBiome.cs +++ b/BiomeManagers/AbovegroundAstralSnowBiome.cs @@ -9,8 +9,8 @@ namespace CalamityMod.BiomeManagers { public class AbovegroundAstralSnowBiome : ModBiome { - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/AstralWater"); - public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find("CalamityMod/Backgrounds/AstralSnowSurfaceBGStyle"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AstralWater"); + public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find("CalamityMod/AstralSnowSurfaceBGStyle"); public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Astral") ?? MusicID.Space; diff --git a/BiomeManagers/AbyssLayer1Biome.cs b/BiomeManagers/AbyssLayer1Biome.cs index 147525a656..fcfd7b5562 100644 --- a/BiomeManagers/AbyssLayer1Biome.cs +++ b/BiomeManagers/AbyssLayer1Biome.cs @@ -41,7 +41,7 @@ namespace CalamityMod.BiomeManagers abyssPosX; } - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/AbyssWater"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AbyssWater"); public override int Music { diff --git a/BiomeManagers/AbyssLayer2Biome.cs b/BiomeManagers/AbyssLayer2Biome.cs index fa6bbbc722..cd372ef409 100644 --- a/BiomeManagers/AbyssLayer2Biome.cs +++ b/BiomeManagers/AbyssLayer2Biome.cs @@ -18,7 +18,7 @@ namespace CalamityMod.BiomeManagers } } - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/AbyssWater"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AbyssWater"); public override void SetStaticDefaults() { diff --git a/BiomeManagers/AbyssLayer3Biome.cs b/BiomeManagers/AbyssLayer3Biome.cs index 9c29bce612..928e32faf3 100644 --- a/BiomeManagers/AbyssLayer3Biome.cs +++ b/BiomeManagers/AbyssLayer3Biome.cs @@ -18,7 +18,7 @@ namespace CalamityMod.BiomeManagers } } - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/AbyssWater"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AbyssWater"); public override void SetStaticDefaults() { diff --git a/BiomeManagers/AbyssLayer4Biome.cs b/BiomeManagers/AbyssLayer4Biome.cs index 6a77f35602..48d3e00533 100644 --- a/BiomeManagers/AbyssLayer4Biome.cs +++ b/BiomeManagers/AbyssLayer4Biome.cs @@ -18,7 +18,7 @@ namespace CalamityMod.BiomeManagers } } - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/AbyssWater"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AbyssWater"); public override void SetStaticDefaults() { diff --git a/BiomeManagers/SulphurousSeaBiome.cs b/BiomeManagers/SulphurousSeaBiome.cs index af561ebf72..e8c17d53e9 100644 --- a/BiomeManagers/SulphurousSeaBiome.cs +++ b/BiomeManagers/SulphurousSeaBiome.cs @@ -12,8 +12,8 @@ namespace CalamityMod.BiomeManagers { public class SulphurousSeaBiome : ModBiome { - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/SulphuricWater"); - public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find("CalamityMod/Backgrounds/SulphurSeaSurfaceBGStyle"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/SulphuricWater"); + public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find("CalamityMod/SulphurSeaSurfaceBGStyle"); public override int Music { diff --git a/BiomeManagers/SunkenSeaBiome.cs b/BiomeManagers/SunkenSeaBiome.cs index 57a463abe4..c496470591 100644 --- a/BiomeManagers/SunkenSeaBiome.cs +++ b/BiomeManagers/SunkenSeaBiome.cs @@ -8,7 +8,7 @@ namespace CalamityMod.BiomeManagers { public class SunkenSeaBiome : ModBiome { - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/SunkenSeaWater"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/SunkenSeaWater"); public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("SunkenSea") ?? MusicID.Temple; diff --git a/BiomeManagers/UndergroundAstralBiome.cs b/BiomeManagers/UndergroundAstralBiome.cs index 71f045c160..6df645c84f 100644 --- a/BiomeManagers/UndergroundAstralBiome.cs +++ b/BiomeManagers/UndergroundAstralBiome.cs @@ -9,8 +9,8 @@ namespace CalamityMod.BiomeManagers { public class UndergroundAstralBiome : ModBiome { - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/Waters/AstralWater"); - public override ModUndergroundBackgroundStyle UndergroundBackgroundStyle => ModContent.Find("CalamityMod/Backgrounds/AstralUndergroundBGStyle"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AstralWater"); + public override ModUndergroundBackgroundStyle UndergroundBackgroundStyle => ModContent.Find("CalamityMod/AstralUndergroundBGStyle"); public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("AstralUnderground") ?? MusicID.Space; diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index cb56234bd0..9f33765832 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1329,7 +1329,7 @@ namespace CalamityMod.CalPlayer tag["moveSpeedStat"] = moveSpeedStat; tag["defenseDamage"] = totalDefenseDamage; tag["defenseDamageRecoveryFrames"] = defenseDamageRecoveryFrames; - tag["totalSpeedrunTicks"] = totalDefenseDamageRecoveryFrames; + tag["totalSpeedrunTicks"] = totalTicks; tag["lastSplitType"] = lastSplitType; tag["lastSplitTicks"] = lastSplit.Ticks; tag["cooldowns"] = cooldownsTag; diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index 1a4cf19838..d9d0df2677 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -50,6 +50,9 @@ namespace CalamityMod.CalPlayer public override void ModifyDrawLayerOrdering(IDictionary positions) { + if (Player is null) + return; + // Remove shoe drawing effects if special legs are meant to be drawn. if (CalamityLists.legOverrideList.Contains(Player.legs)) positions.Remove(PlayerDrawLayers.Leggings); diff --git a/CalamityMod.cs b/CalamityMod.cs index a310310065..40c8a25e7a 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -153,17 +153,26 @@ namespace CalamityMod ILChanges.Load(); // If any of these mods aren't loaded, it will simply keep them as null. - musicMod = ModLoader.GetMod("CalamityModMusic"); - ancientsAwakened = ModLoader.GetMod("AAMod"); - bossChecklist = ModLoader.GetMod("BossChecklist"); - census = ModLoader.GetMod("Census"); - crouchMod = ModLoader.GetMod("CrouchMod"); - fargos = ModLoader.GetMod("Fargowiltas"); - redemption = ModLoader.GetMod("Redemption"); - soa = ModLoader.GetMod("SacredTools"); - summonersAssociation = ModLoader.GetMod("SummonersAssociation"); - thorium = ModLoader.GetMod("ThoriumMod"); - varia = ModLoader.GetMod("Varia"); + musicMod = null; + ancientsAwakened = null; + census = null; + crouchMod = null; + fargos = null; + redemption = null; + soa = null; + summonersAssociation = null; + thorium = null; + varia = null; + ModLoader.TryGetMod("CalamityModMusic", out musicMod); + ModLoader.TryGetMod("BossChecklist", out bossChecklist); + ModLoader.TryGetMod("Census", out census); + ModLoader.TryGetMod("CrouchMod", out crouchMod); + ModLoader.TryGetMod("Fargowiltas", out fargos); + ModLoader.TryGetMod("Redemption", out redemption); + ModLoader.TryGetMod("SacredTools", out soa); + ModLoader.TryGetMod("SummonersAssociation", out summonersAssociation); + ModLoader.TryGetMod("ThoriumMod", out thorium); + ModLoader.TryGetMod("Varia", out varia); // Initialize the EnemyStats struct as early as it is safe to do so NPCStats.Load(); @@ -248,8 +257,14 @@ namespace CalamityMod SkyManager.Instance["CalamityMod:StormWeaverFlash"] = new StormWeaverFlashSky(); CalamityShaders.LoadShaders(); - FusableParticleManager.LoadParticleRenderSets(); - Main.OnPreDraw += PrepareRenderTargets; + + // This must be done separately from immediate loading, as loading is now multithreaded. + // However, render targets and certain other graphical objects can only be created on the main thread. + Main.QueueMainThreadAction(() => + { + FusableParticleManager.LoadParticleRenderSets(); + Main.OnPreDraw += PrepareRenderTargets; + }); RipperUI.Load(); AstralArcanumUI.Load(this); diff --git a/Cooldowns/CooldownHandler.cs b/Cooldowns/CooldownHandler.cs index ee91ac9066..2e8a6a0c48 100644 --- a/Cooldowns/CooldownHandler.cs +++ b/Cooldowns/CooldownHandler.cs @@ -171,7 +171,7 @@ namespace CalamityMod.Cooldowns } else { - GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].SetShaderTexture(ModContent.Request(ChargeBarBackTexture).Value); + GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].SetShaderTexture(ModContent.Request(ChargeBarBackTexture)); GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].UseOpacity(opacity); GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].UseSaturation(1 - instance.Completion); GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].Apply(); diff --git a/Events/BossRushSky.cs b/Events/BossRushSky.cs index a72663ceb7..f5fbba8940 100644 --- a/Events/BossRushSky.cs +++ b/Events/BossRushSky.cs @@ -80,7 +80,7 @@ namespace CalamityMod.Events return; if (maxDepth >= 0 && minDepth < 0 && GetIntensity() > 0f) - spriteBatch.Draw(TextureAssets.BlackTile.Value, new Rectangle(0, 0, Main.screenWidth, Main.screenHeight), GeneralColor * GetIntensity() * 0.5f); + spriteBatch.Draw(TextureAssets.BlackTile.Value, new Rectangle(0, 0, Main.screenWidth * 2, Main.screenHeight * 2), GeneralColor * GetIntensity() * 0.5f); Main.spriteBatch.End(); Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive); @@ -91,6 +91,7 @@ namespace CalamityMod.Events Texture2D whiteTexture = ModContent.Request("CalamityMod/ExtraTextures/XerocLight").Value; Vector2 screenCenter = new Vector2(Main.screenWidth, Main.screenHeight) * 0.5f; float fadeToWhite = Utils.GetLerpValue(110f, 140f, BossRushEvent.EndTimer, true); + screenCenter += new Vector2(Main.screenWidth, Main.screenHeight) * (Main.GameViewMatrix.Zoom - Vector2.One) * 0.5f; fadeToWhite *= Utils.GetLerpValue(BossRushEvent.EndVisualEffectTime - 5f, BossRushEvent.EndVisualEffectTime - 25f, BossRushEvent.EndTimer, true); float backScale = MathHelper.Lerp(0.01f, 8f, fadeToWhite); Color backFadeColor = Color.White * fadeToWhite * 0.64f; @@ -105,6 +106,7 @@ namespace CalamityMod.Events if (maxDepth >= float.MaxValue && minDepth < float.MaxValue && (BossRushEvent.EndTimer < BossRushEvent.EndVisualEffectTime - 40f || ShouldDrawRegularly)) { Vector2 screenCenter = Main.screenPosition + new Vector2(Main.screenWidth, Main.screenHeight) * 0.5f; + screenCenter += new Vector2(Main.screenWidth, Main.screenHeight) * (Main.GameViewMatrix.Zoom - Vector2.One) * 0.5f; float scale = MathHelper.Lerp(0.8f, 0.9f, IncrementalInterest) + (float)Math.Sin(IdleTimer) * 0.01f; Vector2 drawWorldPosition = new Vector2(Main.LocalPlayer.Center.X, 1120f); Vector2 drawPosition = (drawWorldPosition - screenCenter) * 0.097f + screenCenter - Main.screenPosition - Vector2.UnitY * 100f; diff --git a/ILEditing/ILChangesLoading.cs b/ILEditing/ILChangesLoading.cs index 50e0949d28..0004573f25 100644 --- a/ILEditing/ILChangesLoading.cs +++ b/ILEditing/ILChangesLoading.cs @@ -54,7 +54,9 @@ namespace CalamityMod.ILEditing IL.Terraria.Main.DrawTiles += DrawCustomLava; IL.Terraria.GameContent.Liquid.LiquidRenderer.InternalDraw += DrawCustomLava2; IL.Terraria.Main.oldDrawWater += DrawCustomLava3; - IL.Terraria.WaterfallManager.DrawWaterfall += DrawCustomLavafalls; + + // TODO -- Revisit this. It's not an extremely important thing, but it'd be ideal to not just abandon it. + // IL.Terraria.WaterfallManager.DrawWaterfall += DrawCustomLavafalls; On.Terraria.NPC.Collision_DecideFallThroughPlatforms += EnableCalamityBossPlatformCollision; IL.Terraria.Wiring.HitWireSingle += AddTwinklersToStatue; diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index 8a2268e6b1..7a8e637646 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -12,7 +12,9 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Mono.Cecil.Cil; using MonoMod.Cil; +using ReLogic.Content; using System; +using System.Reflection; using Terraria; using Terraria.DataStructures; using Terraria.GameContent; @@ -585,20 +587,21 @@ namespace CalamityMod.ILEditing // Pass the texture in so that the method can ensure it is not messing around with non-lava textures. cursor.Emit(OpCodes.Ldloc, 13); - cursor.Emit(OpCodes.Ldsfld, typeof(Main).GetField("liquidTexture")); + cursor.Emit(OpCodes.Ldsfld, typeof(TextureAssets).GetField("Liquid")); cursor.Emit(OpCodes.Ldloc, 15); cursor.Emit(OpCodes.Ldelem_Ref); + cursor.Emit(OpCodes.Call, typeof(Asset).GetMethod("get_Value", BindingFlags.Public | BindingFlags.Instance)); cursor.EmitDelegate>((initialColor, initialTexture) => SelectLavaColor(initialTexture, initialColor)); cursor.Emit(OpCodes.Stloc, 13); // Go back to the start and change textures as necessary. cursor.Index = 0; - while (cursor.TryGotoNext(c => c.MatchLdsfld
("liquidTexture"))) + while (cursor.TryGotoNext(c => c.MatchLdsfld(typeof(TextureAssets).GetField("Liquid")))) { // While this may seem crazy, under no circumstances should there not be a load after exactly 3 instructions. - // The order is load is texture array field -> load index -> load the reference to the texture at that index. - cursor.Index += 3; + // The order is load is texture array field -> load index -> load the reference to the texture at that index -> call Value. + cursor.Index += 4; cursor.EmitDelegate>(initialTexture => SelectLavaTexture(initialTexture, true)); } } @@ -616,14 +619,14 @@ namespace CalamityMod.ILEditing // Determine the waterfall type. This happens after all the "If Lava do blahblahblah" color checks, meaning it will have the same // color properties as lava. - cursor.Emit(OpCodes.Ldloc, 12); + cursor.Emit(OpCodes.Ldloc, 13); cursor.EmitDelegate>(initialWaterfallStyle => CustomLavaManagement.SelectLavafallStyle(initialWaterfallStyle)); - cursor.Emit(OpCodes.Stloc, 12); + cursor.Emit(OpCodes.Stloc, 13); - cursor.Emit(OpCodes.Ldloc, 12); - cursor.Emit(OpCodes.Ldloc, 51); + cursor.Emit(OpCodes.Ldloc, 13); + cursor.Emit(OpCodes.Ldloc, 56); cursor.EmitDelegate>((initialWaterfallStyle, initialLavafallColor) => CustomLavaManagement.SelectLavafallColor(initialWaterfallStyle, initialLavafallColor)); - cursor.Emit(OpCodes.Stloc, 51); + cursor.Emit(OpCodes.Stloc, 56); } #endregion Custom Lava Visuals diff --git a/Items/Accessories/AngelicAlliance.cs b/Items/Accessories/AngelicAlliance.cs index 3631597514..3a61446566 100644 --- a/Items/Accessories/AngelicAlliance.cs +++ b/Items/Accessories/AngelicAlliance.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.AngelicAllianceHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); ; + string hotkey = CalamityKeybinds.AngelicAllianceHotKey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip4"); diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index 662ef9b24b..548389e92f 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.AegisHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.AegisHotKey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip5"); if (line != null) diff --git a/Items/Accessories/AstralArcanum.cs b/Items/Accessories/AstralArcanum.cs index 466419226c..e023a86c69 100644 --- a/Items/Accessories/AstralArcanum.cs +++ b/Items/Accessories/AstralArcanum.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.AstralArcanumUIHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.AstralArcanumUIHotkey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip3"); if (line != null) diff --git a/Items/Accessories/BlunderBooster.cs b/Items/Accessories/BlunderBooster.cs index ae1cee9703..5206c2c572 100644 --- a/Items/Accessories/BlunderBooster.cs +++ b/Items/Accessories/BlunderBooster.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.PlaguePackHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.PlaguePackHotKey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip3"); if (line != null) diff --git a/Items/Accessories/CelestialJewel.cs b/Items/Accessories/CelestialJewel.cs index 2bded561a7..98ac77bdf0 100644 --- a/Items/Accessories/CelestialJewel.cs +++ b/Items/Accessories/CelestialJewel.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.AstralTeleportHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.AstralTeleportHotKey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); if (line != null) diff --git a/Items/Accessories/ElysianAegis.cs b/Items/Accessories/ElysianAegis.cs index dead5fc1b1..dda0baedc8 100644 --- a/Items/Accessories/ElysianAegis.cs +++ b/Items/Accessories/ElysianAegis.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.AegisHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.AegisHotKey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip5"); if (line != null) diff --git a/Items/Accessories/MomentumCapacitor.cs b/Items/Accessories/MomentumCapacitor.cs index 05963e5612..49c5e4223e 100644 --- a/Items/Accessories/MomentumCapacitor.cs +++ b/Items/Accessories/MomentumCapacitor.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.MomentumCapacitatorHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.MomentumCapacitatorHotkey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0"); if (line != null) diff --git a/Items/Accessories/PlaguedFuelPack.cs b/Items/Accessories/PlaguedFuelPack.cs index 8f2243193a..3d93ba0c64 100644 --- a/Items/Accessories/PlaguedFuelPack.cs +++ b/Items/Accessories/PlaguedFuelPack.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.PlaguePackHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.PlaguePackHotKey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); if (line != null) diff --git a/Items/Accessories/ProfanedSoulCrystal.cs b/Items/Accessories/ProfanedSoulCrystal.cs index 9be01c351c..3dcc4f9668 100644 --- a/Items/Accessories/ProfanedSoulCrystal.cs +++ b/Items/Accessories/ProfanedSoulCrystal.cs @@ -28,17 +28,23 @@ namespace CalamityMod.Items.Accessories * Projectiles transformed are ONLY affected by alldamage and summon damage bonuses, likewise the weapon's base damage/usetime is NOT taken into account. * You enrage below or at 50% hp. */ + public override void Load() + { + if (Main.netMode == NetmodeID.Server) + return; + + Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Head, "CalamityMod/Items/Accessories/ProfanedSoulTransHead"); + Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Body, "CalamityMod/Items/Accessories/ProfanedSoulTransBody"); + Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Legs, "CalamityMod/Items/Accessories/ProfanedSoulTransLegs"); + Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Wings, "CalamityMod/Items/Accessories/Wings/ProfanedSoulTransWings"); + } + public override void SetStaticDefaults() { DisplayName.SetDefault("Profaned Soul Crystal"); Tooltip.SetDefault("Transforms you into an emissary of the profaned goddess\n" + "This tooltip gets modified"); Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4)); - - Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Head, "CalamityMod/Items/Accessories/ProfanedSoulTransHead"); - Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Body, "CalamityMod/Items/Accessories/ProfanedSoulTransBody"); - Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Legs, "CalamityMod/Items/Accessories/ProfanedSoulTransLegs"); - Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Wings, "CalamityMod/Items/Accessories/Wings/ProfanedSoulTransWings"); } public override void SetDefaults() diff --git a/Items/Accessories/SandCloak.cs b/Items/Accessories/SandCloak.cs index 5ffe3e9c0c..d9f53f0d0d 100644 --- a/Items/Accessories/SandCloak.cs +++ b/Items/Accessories/SandCloak.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.SandCloakHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SandCloakHotkey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1"); if (line != null) diff --git a/Items/Accessories/SpectralVeil.cs b/Items/Accessories/SpectralVeil.cs index da04e24bd2..83ad518bb4 100644 --- a/Items/Accessories/SpectralVeil.cs +++ b/Items/Accessories/SpectralVeil.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.SpectralVeilHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SpectralVeilHotKey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1"); if (line != null) diff --git a/Items/Accessories/Wings/AureateWings.cs b/Items/Accessories/Wings/AureateWings.cs index cc3a4f9b7d..2175a1630d 100644 --- a/Items/Accessories/Wings/AureateWings.cs +++ b/Items/Accessories/Wings/AureateWings.cs @@ -6,6 +6,7 @@ using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; +using Terraria.DataStructures; namespace CalamityMod.Items.Accessories.Wings { @@ -21,6 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings "Good vertical speed\n" + "Flight time: 80\n" + "10% increased movement speed while wearing the Reaver Armor"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(80, 8f, 1.5f); } public override void SetDefaults() @@ -57,10 +59,6 @@ namespace CalamityMod.Items.Accessories.Wings for (int num67 = 0; num67 < num66; num67++) { int type = 6; - if (player.head == 41) - { - int arg_58FD_0 = player.body; - } float scale = 1.75f; int alpha = 100; float x = player.position.X + (float)(player.width / 2) + 16f; @@ -94,7 +92,6 @@ namespace CalamityMod.Items.Accessories.Wings } } } - player.wingTimeMax = 80; player.noFallDmg = true; } @@ -107,12 +104,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.125f; } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 8f; - acceleration *= 1.5f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Accessories/Wings/CelestialTracers.cs b/Items/Accessories/Wings/CelestialTracers.cs index 5e8027d455..19d758a665 100644 --- a/Items/Accessories/Wings/CelestialTracers.cs +++ b/Items/Accessories/Wings/CelestialTracers.cs @@ -6,6 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.Graphics.Shaders; using Terraria.ModLoader; +using Terraria.DataStructures; namespace CalamityMod.Items.Accessories.Wings { @@ -27,6 +28,7 @@ namespace CalamityMod.Items.Accessories.Wings "Immunity to the On Fire! debuff\n" + "Temporary immunity to lava\n" + "Being hit for over 200 damage will make you immune for an extended period of time"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(250, 12f, 3f); } public override void SetDefaults() @@ -64,7 +66,6 @@ namespace CalamityMod.Items.Accessories.Wings player.fireWalk = true; player.lavaMax += 240; player.buffImmune[BuffID.OnFire] = true; - player.wingTimeMax = 250; player.noFallDmg = true; modPlayer.IBoots = !hideVisual; modPlayer.elysianFire = !hideVisual; @@ -80,12 +81,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.15f; //0.135 } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 12f; - acceleration *= 3f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Accessories/Wings/DrewsWings.cs b/Items/Accessories/Wings/DrewsWings.cs index b936b6e847..c680242f74 100644 --- a/Items/Accessories/Wings/DrewsWings.cs +++ b/Items/Accessories/Wings/DrewsWings.cs @@ -1,6 +1,8 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.Graphics.Shaders; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories.Wings @@ -16,6 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings "Acceleration multiplier: 3.0\n" + "Excellent vertical speed\n" + "Flight time: 361"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(361, 12f, 3f); } public override void SetDefaults() @@ -45,7 +48,6 @@ namespace CalamityMod.Items.Accessories.Wings } Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player); } - player.wingTimeMax = 361; player.noFallDmg = true; } @@ -57,11 +59,5 @@ namespace CalamityMod.Items.Accessories.Wings maxAscentMultiplier = 3.25f; //3 constantAscend = 0.15f; //0.135 } - - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 12f; - acceleration *= 3f; - } } } diff --git a/Items/Accessories/Wings/ElysianTracers.cs b/Items/Accessories/Wings/ElysianTracers.cs index 86a74b3331..346bc23aac 100644 --- a/Items/Accessories/Wings/ElysianTracers.cs +++ b/Items/Accessories/Wings/ElysianTracers.cs @@ -6,6 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.Graphics.Shaders; using Terraria.ModLoader; +using Terraria.DataStructures; namespace CalamityMod.Items.Accessories.Wings { @@ -26,6 +27,7 @@ namespace CalamityMod.Items.Accessories.Wings "Water and lava walking\n" + "Immunity to the On Fire! debuff\n" + "Temporary immunity to lava"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(180, 10.5f, 2.75f); } public override void SetDefaults() @@ -63,7 +65,6 @@ namespace CalamityMod.Items.Accessories.Wings player.fireWalk = true; player.lavaMax += 240; player.buffImmune[BuffID.OnFire] = true; - player.wingTimeMax = 180; player.noFallDmg = true; modPlayer.IBoots = !hideVisual; modPlayer.elysianFire = !hideVisual; @@ -79,12 +80,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.135f; } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 10.5f; - acceleration *= 2.75f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Accessories/Wings/ElysianWings.cs b/Items/Accessories/Wings/ElysianWings.cs index ef05f53b3f..145825fa40 100644 --- a/Items/Accessories/Wings/ElysianWings.cs +++ b/Items/Accessories/Wings/ElysianWings.cs @@ -1,5 +1,6 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -17,6 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings "Great vertical speed\n" + "Flight time: 240\n" + "Temporary immunity to lava and 10% increased movement speed"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(240, 9.5f, 2.7f); } public override void SetDefaults() @@ -34,7 +36,6 @@ namespace CalamityMod.Items.Accessories.Wings CalamityPlayer modPlayer = player.Calamity(); player.moveSpeed += 0.1f; player.lavaMax += 240; - player.wingTimeMax = 240; player.noFallDmg = true; modPlayer.elysianFire = true; if (hideVisual) @@ -51,11 +52,5 @@ namespace CalamityMod.Items.Accessories.Wings maxAscentMultiplier = 3f; constantAscend = 0.135f; } - - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 9.75f; - acceleration *= 2.7f; - } } } diff --git a/Items/Accessories/Wings/HadarianWings.cs b/Items/Accessories/Wings/HadarianWings.cs index 424f0afdaa..c749313ec1 100644 --- a/Items/Accessories/Wings/HadarianWings.cs +++ b/Items/Accessories/Wings/HadarianWings.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; @@ -23,6 +24,7 @@ namespace CalamityMod.Items.Accessories.Wings "Good vertical speed\n" + "Flight time: 120\n" + "10% increased movement and jump speed while wearing the Astral Armor"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(120, 9f, 1.75f); } public override void SetDefaults() @@ -70,7 +72,6 @@ namespace CalamityMod.Items.Accessories.Wings Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player); } } - player.wingTimeMax = 120; player.noFallDmg = true; } @@ -83,12 +84,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.13f; } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 9f; - acceleration *= 1.75f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Accessories/Wings/InfinityBoots.cs b/Items/Accessories/Wings/InfinityBoots.cs index 8cc9cb7366..50f774404d 100644 --- a/Items/Accessories/Wings/InfinityBoots.cs +++ b/Items/Accessories/Wings/InfinityBoots.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; @@ -25,6 +26,7 @@ namespace CalamityMod.Items.Accessories.Wings "Water and lava walking\n" + "Immunity to the On Fire! debuff\n" + "Temporary immunity to lava"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(140, 9f, 2.6f); } public override void SetDefaults() @@ -62,7 +64,6 @@ namespace CalamityMod.Items.Accessories.Wings player.fireWalk = true; player.lavaMax += 240; player.buffImmune[BuffID.OnFire] = true; - player.wingTimeMax = 140; player.noFallDmg = true; modPlayer.IBoots = !hideVisual; modPlayer.sTracers = true; @@ -77,12 +78,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.125f; } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 9f; - acceleration *= 2.5f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Accessories/Wings/MOAB.cs b/Items/Accessories/Wings/MOAB.cs index 84c66c0238..0d6b8f8af0 100644 --- a/Items/Accessories/Wings/MOAB.cs +++ b/Items/Accessories/Wings/MOAB.cs @@ -4,6 +4,7 @@ using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; +using Terraria.DataStructures; namespace CalamityMod.Items.Accessories.Wings { @@ -21,6 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings "Flight time: 75\n" + "10% increased jump speed and allows constant jumping\n" + "Grants the player cloud, blizzard, and sandstorm mid-air jumps"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(75, 6.5f, 1f); } public override void SetDefaults() @@ -94,7 +96,6 @@ namespace CalamityMod.Items.Accessories.Wings player.autoJump = true; player.noFallDmg = true; player.jumpSpeedBoost += 0.5f; - player.wingTimeMax = 75; } public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend) @@ -106,11 +107,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.125f; } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 6.5f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Accessories/Wings/SilvaWings.cs b/Items/Accessories/Wings/SilvaWings.cs index 718dd3bbb4..23281ab79f 100644 --- a/Items/Accessories/Wings/SilvaWings.cs +++ b/Items/Accessories/Wings/SilvaWings.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Placeables; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; @@ -22,6 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings "Excellent vertical speed\n" + "Flight time: 270\n" + "The Silva revive heals you to half health while wearing the Silva armor"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(270, 11f, 2.8f); } public override void SetDefaults() @@ -58,7 +60,6 @@ namespace CalamityMod.Items.Accessories.Wings } Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player); } - player.wingTimeMax = 270; player.noFallDmg = true; } @@ -71,12 +72,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.14f; //0.135 } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 11f; - acceleration *= 2.8f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Accessories/Wings/SkylineWings.cs b/Items/Accessories/Wings/SkylineWings.cs index ae8e839251..7c9e9b7fd2 100644 --- a/Items/Accessories/Wings/SkylineWings.cs +++ b/Items/Accessories/Wings/SkylineWings.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Armor; using CalamityMod.Items.Materials; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -17,6 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings "Average vertical speed\n" + "Flight time: 80\n" + "10% increased jump speed while wearing the Aerospec armor"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(80, 6.5f, 1f); } public override void SetDefaults() @@ -37,7 +39,6 @@ namespace CalamityMod.Items.Accessories.Wings { player.jumpSpeedBoost += 0.5f; } - player.wingTimeMax = 80; player.noFallDmg = true; } diff --git a/Items/Accessories/Wings/SoulofCryogen.cs b/Items/Accessories/Wings/SoulofCryogen.cs index efffd69c00..e2ade31cd7 100644 --- a/Items/Accessories/Wings/SoulofCryogen.cs +++ b/Items/Accessories/Wings/SoulofCryogen.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings "All melee attacks and projectiles inflict frostburn\n" + "Icicles rain down as you fly"); Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 3)); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(120, 6.25f, 1f); } public override void SetDefaults() @@ -50,17 +51,11 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.1f; } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 6.25f; - } - public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); modPlayer.cryogenSoul = true; player.GetDamage() += 0.07f; - player.wingTimeMax = 120; player.noFallDmg = true; if (modPlayer.icicleCooldown <= 0) { diff --git a/Items/Accessories/Wings/StarlightWings.cs b/Items/Accessories/Wings/StarlightWings.cs index 3373459856..1aac1616f5 100644 --- a/Items/Accessories/Wings/StarlightWings.cs +++ b/Items/Accessories/Wings/StarlightWings.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; @@ -20,6 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings "Average vertical speed\n" + "Flight time: 150\n" + "5% increased damage and critical strike chance while wearing the Daedalus Armor"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(150, 7.5f, 1f); } public override void SetDefaults() @@ -58,7 +60,6 @@ namespace CalamityMod.Items.Accessories.Wings } Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player); } - player.wingTimeMax = 150; player.noFallDmg = true; } @@ -71,11 +72,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.1f; } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 7.5f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Accessories/Wings/TarragonWings.cs b/Items/Accessories/Wings/TarragonWings.cs index 11190e4916..fa74677731 100644 --- a/Items/Accessories/Wings/TarragonWings.cs +++ b/Items/Accessories/Wings/TarragonWings.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Armor; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; @@ -21,6 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings "Great vertical speed\n" + "Flight time: 250\n" + "+15 defense and +2 life regen while wearing the Tarragon Armor"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(250, 9.5f, 2.5f); } public override void SetDefaults() @@ -60,7 +62,6 @@ namespace CalamityMod.Items.Accessories.Wings } Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player); } - player.wingTimeMax = 250; player.noFallDmg = true; } @@ -73,12 +74,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.135f; } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 9.5f; - acceleration *= 2.5f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Accessories/Wings/XerocWings.cs b/Items/Accessories/Wings/XerocWings.cs index c398ec577f..1cf4d970a8 100644 --- a/Items/Accessories/Wings/XerocWings.cs +++ b/Items/Accessories/Wings/XerocWings.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; @@ -20,6 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings "Great vertical speed\n" + "Flight time: 180\n" + "5% increased rogue damage and critical strike chance while wearing the Empyrean Armor"); + ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(180, 9f, 2.5f); } public override void SetDefaults() @@ -68,12 +70,6 @@ namespace CalamityMod.Items.Accessories.Wings constantAscend = 0.135f; } - public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) - { - speed = 9f; - acceleration *= 2.5f; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Armor/BloodflareHornedHelm.cs b/Items/Armor/BloodflareHornedHelm.cs index 6893d71dc5..a567b42eb3 100644 --- a/Items/Armor/BloodflareHornedHelm.cs +++ b/Items/Armor/BloodflareHornedHelm.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.Calamity(); modPlayer.bloodflareSet = true; modPlayer.bloodflareRanged = true; - string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); player.setBonus = "Greatly increases life regen\n" + "Enemies below 50% life drop a heart when struck\n" + "This effect has a 5 second cooldown\n" + diff --git a/Items/Armor/BrimflameScowl.cs b/Items/Armor/BrimflameScowl.cs index 98c9cf634f..13b7b13557 100644 --- a/Items/Armor/BrimflameScowl.cs +++ b/Items/Armor/BrimflameScowl.cs @@ -79,7 +79,7 @@ namespace CalamityMod.Items.Armor modPlayer.brimflameSet = true; player.GetDamage(DamageClass.Magic) += 0.15f; player.GetCritChance(DamageClass.Magic) += 15; - string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); player.setBonus = "Grants an additional 15% increased magic damage and crit\n" + "Press " + hotkey + " to trigger a brimflame frenzy effect\n" + "While under this effect, your damage is significantly boosted\n" + diff --git a/Items/Armor/DemonshadeHelm.cs b/Items/Armor/DemonshadeHelm.cs index d5bf4741ed..efe9187faa 100644 --- a/Items/Armor/DemonshadeHelm.cs +++ b/Items/Armor/DemonshadeHelm.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { - string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); player.setBonus = "100% increased minion damage and +10 max minions\n" + "All attacks inflict the demon flame debuff\n" + "Shadowbeams and demon scythes will fire down when you are hit\n" + diff --git a/Items/Armor/ForbiddenCirclet.cs b/Items/Armor/ForbiddenCirclet.cs index abf5747b08..3ac497794f 100644 --- a/Items/Armor/ForbiddenCirclet.cs +++ b/Items/Armor/ForbiddenCirclet.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { int stormMana = (int)(manaCost * player.manaCost); - string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); player.setBonus = "Press " + hotkey + " to call an ancient storm to the cursor location\n" + "The ancient storm costs " + stormMana + " mana and benefits from both summon and rogue bonuses\n" + "Rogue stealth strikes spawn homing eaters on enemy hits\n" + diff --git a/Items/Armor/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlueHelmet.cs index a73a5fc51c..7d28811fd0 100644 --- a/Items/Armor/OmegaBlueHelmet.cs +++ b/Items/Armor/OmegaBlueHelmet.cs @@ -63,7 +63,7 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { - string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); player.setBonus = "Increases armor penetration by 15\n" + "10% increased damage and critical strike chance and +2 max minions\n" + "Short-ranged tentacles heal you by sucking enemy life\n" + diff --git a/Items/Armor/PlagueReaperMask.cs b/Items/Armor/PlagueReaperMask.cs index 4c8e48f8c6..fffe7f414b 100644 --- a/Items/Armor/PlagueReaperMask.cs +++ b/Items/Armor/PlagueReaperMask.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { - string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); player.setBonus = "25% reduced ammo usage and 5% increased flight time\n" + "Enemies receive 10% more damage from ranged projectiles when afflicted by the Plague\n" + "Getting hit causes plague cinders to rain from above\n" + diff --git a/Items/Armor/PrismaticHelmet.cs b/Items/Armor/PrismaticHelmet.cs index 80ce52dd57..a5f7a84473 100644 --- a/Items/Armor/PrismaticHelmet.cs +++ b/Items/Armor/PrismaticHelmet.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Armor player.statManaMax2 += 40; player.manaCost *= 0.85f; player.manaRegenBonus += 8; - string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); player.setBonus = "+40 max mana and 15% reduced mana cost\n" + "Increased mana regeneration rate\n" + "Press " + hotkey + " to unleash a barrage of death lasers at the cursor for the next 5 seconds\n" + diff --git a/Items/Armor/TarragonHelm.cs b/Items/Armor/TarragonHelm.cs index df885bc2f2..92c2ab2274 100644 --- a/Items/Armor/TarragonHelm.cs +++ b/Items/Armor/TarragonHelm.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Armor modPlayer.tarraSet = true; modPlayer.tarraMelee = true; player.aggro += 800; - string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); player.setBonus = "Increased heart pickup range\n" + "Enemies have a chance to drop extra hearts on death\n" + "Enemies are more likely to target you\n" + diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs index 53fbe45c7f..5eb3f69501 100644 --- a/Items/CalamityGlobalItemLoot.cs +++ b/Items/CalamityGlobalItemLoot.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items private static void BossBagLoot(Player player, int itemID) { // Give a chance for Laudanum, Stress Pills and Heart of Darkness from every boss bag - DropHelper.DropRevBagAccessories(player); + //DropHelper.DropRevBagAccessories(player); switch (itemID) { diff --git a/Items/DifficultyItems/Revenge.cs b/Items/DifficultyItems/Revenge.cs index 54a3586567..45b4a725aa 100644 --- a/Items/DifficultyItems/Revenge.cs +++ b/Items/DifficultyItems/Revenge.cs @@ -52,8 +52,8 @@ namespace CalamityMod.Items.DifficultyItems public override void ModifyTooltips(List list) { - string rageKey = CalamityKeybinds.RageHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); - string adrenKey = CalamityKeybinds.AdrenalineHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string rageKey = CalamityKeybinds.RageHotKey.TooltipHotkeyString(); + string adrenKey = CalamityKeybinds.AdrenalineHotKey.TooltipHotkeyString(); TooltipLine lineRage = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1"); if (lineRage != null) diff --git a/Items/Dyes/AuricDye.cs b/Items/Dyes/AuricDye.cs index 6340aea954..bdbe3f1e8d 100644 --- a/Items/Dyes/AuricDye.cs +++ b/Items/Dyes/AuricDye.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes public class AuricDye : BaseDye { public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref(Mod.Assets.Request("Effects/Dyes/AuricDyeShader").Value), "DyePass"). - UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/SharpNoise").Value); + UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTextureArmor(ModContent.Request("CalamityMod/ExtraTextures/SharpNoise")); public override void SafeSetStaticDefaults() { DisplayName.SetDefault("Auric Dye"); diff --git a/Items/Dyes/BlueCosmicFlameDye.cs b/Items/Dyes/BlueCosmicFlameDye.cs index 256c403a83..e598d01ef3 100644 --- a/Items/Dyes/BlueCosmicFlameDye.cs +++ b/Items/Dyes/BlueCosmicFlameDye.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes public class BlueCosmicFlameDye : BaseDye { public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref(Mod.Assets.Request("Effects/Dyes/CosmicFlameShader").Value), "DyePass"). - UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(52, 212, 229)).UseImage("Images/Misc/Noise").UseSaturation(0f); + UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(52, 212, 229)).UseImage("Images/Misc/noise").UseSaturation(0f); public override void SafeSetStaticDefaults() { DisplayName.SetDefault("Blue Cosmic Flame Dye"); diff --git a/Items/Dyes/PinkCosmicFlameDye.cs b/Items/Dyes/PinkCosmicFlameDye.cs index 589c44b84a..b2e01af483 100644 --- a/Items/Dyes/PinkCosmicFlameDye.cs +++ b/Items/Dyes/PinkCosmicFlameDye.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes public class PinkCosmicFlameDye : BaseDye { public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref(Mod.Assets.Request("Effects/Dyes/CosmicFlameShader").Value), "DyePass"). - UseColor(new Color(255, 115, 221)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/Noise").UseSaturation(0f); + UseColor(new Color(255, 115, 221)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/noise").UseSaturation(0f); public override void SafeSetStaticDefaults() { DisplayName.SetDefault("Pink Cosmic Flame Dye"); diff --git a/Items/Dyes/SwirlingCosmicFlameDye.cs b/Items/Dyes/SwirlingCosmicFlameDye.cs index ec583b8b59..c76d2f1d8e 100644 --- a/Items/Dyes/SwirlingCosmicFlameDye.cs +++ b/Items/Dyes/SwirlingCosmicFlameDye.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Dyes public class SwirlingCosmicFlameDye : BaseDye { public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref(Mod.Assets.Request("Effects/Dyes/CosmicFlameShader").Value), "DyePass"). - UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/Noise").UseSaturation(1f); + UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/noise").UseSaturation(1f); public override void SafeSetStaticDefaults() { DisplayName.SetDefault("Swirling Cosmic Flame Dye"); diff --git a/Items/Mounts/ExoThrone.cs b/Items/Mounts/ExoThrone.cs index c5f99aabbb..8649c962a8 100644 --- a/Items/Mounts/ExoThrone.cs +++ b/Items/Mounts/ExoThrone.cs @@ -32,8 +32,8 @@ namespace CalamityMod.Items.Mounts public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.ExoChairSpeedupHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); - string hotkey2 = CalamityKeybinds.ExoChairSlowdownHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.ExoChairSpeedupHotkey.TooltipHotkeyString(); + string hotkey2 = CalamityKeybinds.ExoChairSlowdownHotkey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1"); TooltipLine line2 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); diff --git a/Items/NormalityRelocator.cs b/Items/NormalityRelocator.cs index dc26f2f217..d4e4e264a7 100644 --- a/Items/NormalityRelocator.cs +++ b/Items/NormalityRelocator.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items public override void ModifyTooltips(List list) { - string hotkey = CalamityKeybinds.NormalityRelocatorHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); + string hotkey = CalamityKeybinds.NormalityRelocatorHotKey.TooltipHotkeyString(); TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1"); if (line != null) diff --git a/Items/Weapons/Magic/UndinesRetribution.cs b/Items/Weapons/Magic/UndinesRetribution.cs index 5a678af602..f6c1847579 100644 --- a/Items/Weapons/Magic/UndinesRetribution.cs +++ b/Items/Weapons/Magic/UndinesRetribution.cs @@ -93,7 +93,7 @@ namespace CalamityMod.Items.Weapons.Magic AddIngredient(30). AddIngredient(10). AddIngredient(10). - AddTile(TileID.MythrilAnvil) + AddTile(TileID.MythrilAnvil). Register(); } } diff --git a/Items/Weapons/Melee/ArkoftheAncients.cs b/Items/Weapons/Melee/ArkoftheAncients.cs index fb73667aef..e777693c2a 100644 --- a/Items/Weapons/Melee/ArkoftheAncients.cs +++ b/Items/Weapons/Melee/ArkoftheAncients.cs @@ -110,7 +110,8 @@ namespace CalamityMod.Items.Weapons.Melee { var clone = base.Clone(item); - (clone as ArkoftheAncients).Charge = (item.ModItem as ArkoftheAncients).Charge; + if (clone is ArkoftheAncients a && item.ModItem is ArkoftheAncients a2) + a.Charge = a2.Charge; return clone; } diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index f114e27c56..65e2498272 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -188,7 +188,8 @@ namespace CalamityMod.Items.Weapons.Melee { var clone = base.Clone(item); - (clone as ArkoftheCosmos).Charge = (item.ModItem as ArkoftheCosmos).Charge; + if (clone is ArkoftheCosmos a && item.ModItem is ArkoftheCosmos a2) + a.Charge = a2.Charge; return clone; } diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index 43b98c56d8..df8dad6f6c 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -185,7 +185,8 @@ namespace CalamityMod.Items.Weapons.Melee { var clone = base.Clone(item); - (clone as ArkoftheElements).Charge = (item.ModItem as ArkoftheElements).Charge; + if (clone is ArkoftheElements a && item.ModItem is ArkoftheElements a2) + a.Charge = a2.Charge; return clone; } diff --git a/Items/Weapons/Melee/BiomeBlade.cs b/Items/Weapons/Melee/BiomeBlade.cs index 03789ba209..04648dea2f 100644 --- a/Items/Weapons/Melee/BiomeBlade.cs +++ b/Items/Weapons/Melee/BiomeBlade.cs @@ -151,8 +151,11 @@ namespace CalamityMod.Items.Weapons.Melee if (Main.mouseItem.type == ItemType()) item.ModItem.HoldItem(Main.player[Main.myPlayer]); - (clone as BiomeBlade).mainAttunement = (item.ModItem as BiomeBlade).mainAttunement; - (clone as BiomeBlade).secondaryAttunement = (item.ModItem as BiomeBlade).secondaryAttunement; + if (clone is BiomeBlade a && item.ModItem is BiomeBlade a2) + { + a.mainAttunement = a2.mainAttunement; + a.secondaryAttunement = a2.secondaryAttunement; + } //As funny as a Broken Broken Biome Blade would be, its also quite funny to make it turn into that. This is only done for a new instance of the item since the goblin tinkerer changes prevent it from happening through reforging if (clone.Item.prefix == PrefixID.Broken) diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index ac761ebe33..45103d7894 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -165,7 +165,9 @@ namespace CalamityMod.Items.Weapons.Melee var clone = base.Clone(item); if (Main.mouseItem.type == ItemType()) item.ModItem.HoldItem(Main.player[Main.myPlayer]); - (clone as FourSeasonsGalaxia).mainAttunement = (item.ModItem as FourSeasonsGalaxia).mainAttunement; + + if (clone is FourSeasonsGalaxia a && item.ModItem is FourSeasonsGalaxia a2) + a.mainAttunement = a2.mainAttunement; return clone; } diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index fe785e694b..c5b31b5c70 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -212,8 +212,11 @@ namespace CalamityMod.Items.Weapons.Melee var clone = base.Clone(item); if (Main.mouseItem.type == ItemType()) item.ModItem.HoldItem(Main.player[Main.myPlayer]); - (clone as OmegaBiomeBlade).mainAttunement = (item.ModItem as OmegaBiomeBlade).mainAttunement; - (clone as OmegaBiomeBlade).secondaryAttunement = (item.ModItem as OmegaBiomeBlade).secondaryAttunement; + if (clone is OmegaBiomeBlade a && item.ModItem is OmegaBiomeBlade a2) + { + a.mainAttunement = a2.mainAttunement; + a.secondaryAttunement = a2.secondaryAttunement; + } return clone; } diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index b96e2ba6f4..23d7253e72 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -143,7 +143,8 @@ namespace CalamityMod.Items.Weapons.Melee { var clone = base.Clone(item); - (clone as TrueArkoftheAncients).Charge = (item.ModItem as TrueArkoftheAncients).Charge; + if (clone is TrueArkoftheAncients a && item.ModItem is TrueArkoftheAncients a2) + a.Charge = a2.Charge; return clone; } diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index b1a6b49251..24be7974da 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -179,8 +179,11 @@ namespace CalamityMod.Items.Weapons.Melee var clone = base.Clone(item); if (Main.mouseItem.type == ItemType()) item.ModItem.HoldItem(Main.player[Main.myPlayer]); - (clone as TrueBiomeBlade).mainAttunement = (item.ModItem as TrueBiomeBlade).mainAttunement; - (clone as TrueBiomeBlade).secondaryAttunement = (item.ModItem as TrueBiomeBlade).secondaryAttunement; + if (clone is TrueBiomeBlade a && item.ModItem is TrueBiomeBlade a2) + { + a.mainAttunement = a2.mainAttunement; + a.secondaryAttunement = a2.secondaryAttunement; + } return clone; } diff --git a/Items/Weapons/Rogue/RogueWeapon.cs b/Items/Weapons/Rogue/RogueWeapon.cs index 9d3ce03411..45767b1d91 100644 --- a/Items/Weapons/Rogue/RogueWeapon.cs +++ b/Items/Weapons/Rogue/RogueWeapon.cs @@ -33,23 +33,23 @@ namespace CalamityMod.Items.Weapons.Rogue public override int ChoosePrefix(UnifiedRandom rand) { WeightedRandom newPrefix = new WeightedRandom(); - newPrefix.Add("CalamityMod/Prefixes/PointyWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/SharpWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/FeatheredWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/SleekWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/HeftyWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/MightyWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/GloriousWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/SerratedWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/ViciousWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/LethalWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/FlawlessWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/RadicalWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/BluntWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/FlimsyWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/UnbalancedWeaponPrefix", 1); - newPrefix.Add("CalamityMod/Prefixes/AtrociousWeaponPrefix", 1); - return ModContent.Find(newPrefix.Get()).Type; + newPrefix.Add("CalamityMod/PointyWeaponPrefix", 1); + newPrefix.Add("CalamityMod/SharpWeaponPrefix", 1); + newPrefix.Add("CalamityMod/FeatheredWeaponPrefix", 1); + newPrefix.Add("CalamityMod/SleekWeaponPrefix", 1); + newPrefix.Add("CalamityMod/HeftyWeaponPrefix", 1); + newPrefix.Add("CalamityMod/MightyWeaponPrefix", 1); + newPrefix.Add("CalamityMod/GloriousWeaponPrefix", 1); + newPrefix.Add("CalamityMod/SerratedWeaponPrefix", 1); + newPrefix.Add("CalamityMod/ViciousWeaponPrefix", 1); + newPrefix.Add("CalamityMod/LethalWeaponPrefix", 1); + newPrefix.Add("CalamityMod/FlawlessWeaponPrefix", 1); + newPrefix.Add("CalamityMod/RadicalWeaponPrefix", 1); + newPrefix.Add("CalamityMod/BluntWeaponPrefix", 1); + newPrefix.Add("CalamityMod/FlimsyWeaponPrefix", 1); + newPrefix.Add("CalamityMod/UnbalancedWeaponPrefix", 1); + newPrefix.Add("CalamityMod/AtrociousWeaponPrefix", 1); + return ModContent.Find(newPrefix.Get()).Type; } public override bool PreReforge() diff --git a/Localization/CalamityLocalization.cs b/Localization/CalamityLocalization.cs index 7e1b8921c2..e574c16203 100644 --- a/Localization/CalamityLocalization.cs +++ b/Localization/CalamityLocalization.cs @@ -227,7 +227,7 @@ namespace CalamityMod.Localization Load(); foreach (string[] localization in _localizations) { - ModTranslation text = LocalizationLoader.CreateTranslation(localization[0]); + ModTranslation text = LocalizationLoader.CreateTranslation($"Mods.{CalamityMod.Instance.Name}.{localization[0]}"); text.SetDefault(localization[1]); LocalizationLoader.AddTranslation(text); } diff --git a/NPCs/Abyss/BobbitWormHead.cs b/NPCs/Abyss/BobbitWormHead.cs index 4718861dec..018f6bb7a9 100644 --- a/NPCs/Abyss/BobbitWormHead.cs +++ b/NPCs/Abyss/BobbitWormHead.cs @@ -205,7 +205,7 @@ namespace CalamityMod.NPCs.Abyss float drawPositionX = Main.npc[(int)NPC.ai[2]].Center.X - center.X; float drawPositionY = Main.npc[(int)NPC.ai[2]].Center.Y - center.Y; float rotation = (float)Math.Atan2((double)drawPositionY, (double)drawPositionX) - 1.57f; - bool draw = true; + bool draw = !NPC.IsABestiaryIconDummy; while (draw) { float totalDrawDistance = (float)Math.Sqrt((double)(drawPositionX * drawPositionX + drawPositionY * drawPositionY)); @@ -260,10 +260,10 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/BobbitWorm").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/BobbitWorm2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/BobbitWorm3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/BobbitWorm4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BobbitWorm").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BobbitWorm2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BobbitWorm3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BobbitWorm4").Type, 1f); } } } diff --git a/NPCs/Abyss/ColossalSquid.cs b/NPCs/Abyss/ColossalSquid.cs index 8c182fc3ff..36f265cbfb 100644 --- a/NPCs/Abyss/ColossalSquid.cs +++ b/NPCs/Abyss/ColossalSquid.cs @@ -562,10 +562,10 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ColossalSquid").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ColossalSquid2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ColossalSquid3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ColossalSquid4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ColossalSquid").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ColossalSquid2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ColossalSquid3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ColossalSquid4").Type, 1f); } } } diff --git a/NPCs/Abyss/DevilFish.cs b/NPCs/Abyss/DevilFish.cs index 59a0ffbd7f..52b40529aa 100644 --- a/NPCs/Abyss/DevilFish.cs +++ b/NPCs/Abyss/DevilFish.cs @@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.Abyss { for (int i = 1; i < 4; i++) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DevilFishMask" + i).Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DevilFishMask" + i).Type, 1f); } } SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/DevilMaskBreak"), (int)NPC.position.X, (int)NPC.position.Y); diff --git a/NPCs/Abyss/DevilFishAlt.cs b/NPCs/Abyss/DevilFishAlt.cs index d2af5ef87b..3cdc50fc68 100644 --- a/NPCs/Abyss/DevilFishAlt.cs +++ b/NPCs/Abyss/DevilFishAlt.cs @@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.Abyss { for (int i = 1; i < 4; i++) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DevilFishMask" + i + (i == 3 ? "Alt" : "")).Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DevilFishMask" + i + (i == 3 ? "Alt" : "")).Type, 1f); } } SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/DevilMaskBreak"), (int)NPC.position.X, (int)NPC.position.Y); diff --git a/NPCs/Abyss/EidolonWyrmBody.cs b/NPCs/Abyss/EidolonWyrmBody.cs index 24adda024e..d6c8f99d24 100644 --- a/NPCs/Abyss/EidolonWyrmBody.cs +++ b/NPCs/Abyss/EidolonWyrmBody.cs @@ -149,7 +149,7 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/Wyrm2").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Wyrm2").Type, 1f); } } } diff --git a/NPCs/Abyss/EidolonWyrmBodyAlt.cs b/NPCs/Abyss/EidolonWyrmBodyAlt.cs index 1a88817cc9..68982e3110 100644 --- a/NPCs/Abyss/EidolonWyrmBodyAlt.cs +++ b/NPCs/Abyss/EidolonWyrmBodyAlt.cs @@ -149,7 +149,7 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/Wyrm3").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Wyrm3").Type, 1f); } } } diff --git a/NPCs/Abyss/EidolonWyrmHead.cs b/NPCs/Abyss/EidolonWyrmHead.cs index 80797db7f5..058772cce0 100644 --- a/NPCs/Abyss/EidolonWyrmHead.cs +++ b/NPCs/Abyss/EidolonWyrmHead.cs @@ -486,7 +486,7 @@ namespace CalamityMod.NPCs.Abyss public override void ModifyNPCLoot(NPCLoot npcLoot) { - npcLoot.AddIf(EidolonWyrmHeadHuge.CanMinionsDropThings, ModContent.ItemType(), 30, 40); + npcLoot.AddIf(EidolonWyrmHeadHuge.CanMinionsDropThings, ModContent.ItemType(), 1, 30, 40); npcLoot.AddIf(() => DownedBossSystem.downedPolterghast && EidolonWyrmHeadHuge.CanMinionsDropThings(), ModContent.ItemType(), 3); npcLoot.AddIf(() => DownedBossSystem.downedPolterghast && EidolonWyrmHeadHuge.CanMinionsDropThings(), ModContent.ItemType(), 3); npcLoot.AddIf(() => DownedBossSystem.downedPolterghast && EidolonWyrmHeadHuge.CanMinionsDropThings(), ModContent.ItemType(), 3); @@ -509,7 +509,7 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Wyrm").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Wyrm").Type, 1f); } } } diff --git a/NPCs/Abyss/EidolonWyrmTail.cs b/NPCs/Abyss/EidolonWyrmTail.cs index 0d8741be16..c42aa92fa7 100644 --- a/NPCs/Abyss/EidolonWyrmTail.cs +++ b/NPCs/Abyss/EidolonWyrmTail.cs @@ -149,7 +149,7 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/Wyrm4").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Wyrm4").Type, 1f); } } } diff --git a/NPCs/Abyss/GiantSquid.cs b/NPCs/Abyss/GiantSquid.cs index 91386452bb..2b8dfa7f08 100644 --- a/NPCs/Abyss/GiantSquid.cs +++ b/NPCs/Abyss/GiantSquid.cs @@ -261,10 +261,10 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GiantSquid").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GiantSquid2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GiantSquid3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GiantSquid4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GiantSquid").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GiantSquid2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GiantSquid3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GiantSquid4").Type, 1f); } } } diff --git a/NPCs/Abyss/GulperEelBody.cs b/NPCs/Abyss/GulperEelBody.cs index 744e70b948..8eb7ddde67 100644 --- a/NPCs/Abyss/GulperEelBody.cs +++ b/NPCs/Abyss/GulperEelBody.cs @@ -158,8 +158,8 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/GulperEel2").Type, 1f); - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/GulperEel3").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("GulperEel2").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("GulperEel3").Type, 1f); } } } diff --git a/NPCs/Abyss/GulperEelBodyAlt.cs b/NPCs/Abyss/GulperEelBodyAlt.cs index 4c2b3351a5..8eb829a27f 100644 --- a/NPCs/Abyss/GulperEelBodyAlt.cs +++ b/NPCs/Abyss/GulperEelBodyAlt.cs @@ -158,8 +158,8 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/GulperEel2").Type, 1f); - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/GulperEel3").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("GulperEel2").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("GulperEel3").Type, 1f); } } } diff --git a/NPCs/Abyss/GulperEelHead.cs b/NPCs/Abyss/GulperEelHead.cs index f6d5b4eb8a..69eafe6af7 100644 --- a/NPCs/Abyss/GulperEelHead.cs +++ b/NPCs/Abyss/GulperEelHead.cs @@ -363,7 +363,7 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GulperEel").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GulperEel").Type, 1f); } } } diff --git a/NPCs/Abyss/GulperEelTail.cs b/NPCs/Abyss/GulperEelTail.cs index 6c391f88e6..58b679154d 100644 --- a/NPCs/Abyss/GulperEelTail.cs +++ b/NPCs/Abyss/GulperEelTail.cs @@ -158,7 +158,7 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/GulperEel4").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("GulperEel4").Type, 1f); } } } diff --git a/NPCs/Abyss/Laserfish.cs b/NPCs/Abyss/Laserfish.cs index 7ce71d2125..820828f4ae 100644 --- a/NPCs/Abyss/Laserfish.cs +++ b/NPCs/Abyss/Laserfish.cs @@ -132,9 +132,9 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Laserfish").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Laserfish2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Laserfish3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Laserfish").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Laserfish2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Laserfish3").Type, 1f); } } } diff --git a/NPCs/Abyss/Viperfish.cs b/NPCs/Abyss/Viperfish.cs index 6f3b84035f..314ea41638 100644 --- a/NPCs/Abyss/Viperfish.cs +++ b/NPCs/Abyss/Viperfish.cs @@ -137,8 +137,8 @@ namespace CalamityMod.NPCs.Abyss } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ViperFish").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ViperFish2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ViperFish").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ViperFish2").Type, 1f); } } } diff --git a/NPCs/AcidRain/AcidEel.cs b/NPCs/AcidRain/AcidEel.cs index 0a5a3ad420..aff378f7f8 100644 --- a/NPCs/AcidRain/AcidEel.cs +++ b/NPCs/AcidRain/AcidEel.cs @@ -165,9 +165,9 @@ namespace CalamityMod.NPCs.AcidRain { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/AcidEelGore").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/AcidEelGore2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/AcidEelGore3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AcidEelGore").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AcidEelGore2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AcidEelGore3").Type, NPC.scale); } for (int k = 0; k < 20; k++) Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hitDirection, -1f, 0, default, 1f); diff --git a/NPCs/AcidRain/CragmawMire.cs b/NPCs/AcidRain/CragmawMire.cs index f95797f5ee..b1ecc51cad 100644 --- a/NPCs/AcidRain/CragmawMire.cs +++ b/NPCs/AcidRain/CragmawMire.cs @@ -100,9 +100,9 @@ namespace CalamityMod.NPCs.AcidRain SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode, NPC.Center); if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("Gores/AcidRain/CragmawMireP1Gore").Type, NPC.scale); - Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("Gores/AcidRain/CragmawMireP1Gore2").Type, NPC.scale); - Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("Gores/AcidRain/CragmawMireP1Gore3").Type, NPC.scale); + Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("CragmawMireP1Gore").Type, NPC.scale); + Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("CragmawMireP1Gore2").Type, NPC.scale); + Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("CragmawMireP1Gore3").Type, NPC.scale); } HasMadeShellBreakGore = true; } @@ -474,9 +474,9 @@ namespace CalamityMod.NPCs.AcidRain { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("Gores/AcidRain/CragmawMireP2Gore").Type, NPC.scale); - Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("Gores/AcidRain/CragmawMireP2Gore2").Type, NPC.scale); - Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("Gores/AcidRain/CragmawMireP2Gore3").Type, NPC.scale); + Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("CragmawMireP2Gore").Type, NPC.scale); + Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("CragmawMireP2Gore2").Type, NPC.scale); + Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find("CragmawMireP2Gore3").Type, NPC.scale); } } } diff --git a/NPCs/AcidRain/FlakBaby.cs b/NPCs/AcidRain/FlakBaby.cs index 0fd05a3d87..0f35b0901d 100644 --- a/NPCs/AcidRain/FlakBaby.cs +++ b/NPCs/AcidRain/FlakBaby.cs @@ -152,9 +152,9 @@ namespace CalamityMod.NPCs.AcidRain } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/FlakCrab").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/FlakCrab2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/FlakCrab3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab3").Type, 1f); } } } diff --git a/NPCs/AcidRain/FlakCrab.cs b/NPCs/AcidRain/FlakCrab.cs index 1600260be0..aaf6f7aa64 100644 --- a/NPCs/AcidRain/FlakCrab.cs +++ b/NPCs/AcidRain/FlakCrab.cs @@ -213,9 +213,9 @@ namespace CalamityMod.NPCs.AcidRain } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/FlakCrab").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/FlakCrab2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/FlakCrab3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab3").Type, 1f); } } diff --git a/NPCs/AcidRain/GammaSlime.cs b/NPCs/AcidRain/GammaSlime.cs index e948c2439f..6b29708913 100644 --- a/NPCs/AcidRain/GammaSlime.cs +++ b/NPCs/AcidRain/GammaSlime.cs @@ -178,8 +178,8 @@ namespace CalamityMod.NPCs.AcidRain Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hitDirection, -1f, 0, default, 1f); if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/GammaSlimeGore").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/GammaSlimeGore2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GammaSlimeGore").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GammaSlimeGore2").Type, NPC.scale); } } } diff --git a/NPCs/AcidRain/IrradiatedSlime.cs b/NPCs/AcidRain/IrradiatedSlime.cs index e0f6de742f..c76cf4818c 100644 --- a/NPCs/AcidRain/IrradiatedSlime.cs +++ b/NPCs/AcidRain/IrradiatedSlime.cs @@ -100,8 +100,8 @@ namespace CalamityMod.NPCs.AcidRain } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/IrradiatedSlime").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/IrradiatedSlime2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("IrradiatedSlime").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("IrradiatedSlime2").Type, 1f); } } } diff --git a/NPCs/AcidRain/Mauler.cs b/NPCs/AcidRain/Mauler.cs index 3f813396b7..927f102527 100644 --- a/NPCs/AcidRain/Mauler.cs +++ b/NPCs/AcidRain/Mauler.cs @@ -419,7 +419,7 @@ namespace CalamityMod.NPCs.AcidRain public override void ModifyNPCLoot(NPCLoot npcLoot) { - npcLoot.Add(ItemID.SharkFin, 2, 4); + npcLoot.Add(ItemID.SharkFin, 1, 2, 4); npcLoot.Add(ModContent.ItemType(), 3); } @@ -435,9 +435,9 @@ namespace CalamityMod.NPCs.AcidRain if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Mauler").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Mauler").Type, NPC.scale); for (int i = 2; i <= 5; i++) - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find($"Gores/Mauler{i}").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find($"Mauler{i}").Type, NPC.scale); } } } diff --git a/NPCs/AcidRain/NuclearToad.cs b/NPCs/AcidRain/NuclearToad.cs index 72ec0c3ecb..bd8ba0cd92 100644 --- a/NPCs/AcidRain/NuclearToad.cs +++ b/NPCs/AcidRain/NuclearToad.cs @@ -141,10 +141,10 @@ namespace CalamityMod.NPCs.AcidRain { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/NuclearToadGore1").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/NuclearToadGore2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/NuclearToadGore3").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/NuclearToadGore4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("NuclearToadGore1").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("NuclearToadGore2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("NuclearToadGore3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("NuclearToadGore4").Type, NPC.scale); } for (int i = 0; i < 25; i++) Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, Main.rand.NextFloat(-2f, 2f), -1f, 0, default, 1f); diff --git a/NPCs/AcidRain/Orthocera.cs b/NPCs/AcidRain/Orthocera.cs index eff370d341..96c0511366 100644 --- a/NPCs/AcidRain/Orthocera.cs +++ b/NPCs/AcidRain/Orthocera.cs @@ -209,8 +209,8 @@ namespace CalamityMod.NPCs.AcidRain { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/OrthoceraGore").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/OrthoceraGore2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("OrthoceraGore").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("OrthoceraGore2").Type, NPC.scale); } for (int k = 0; k < 10; k++) Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, hitDirection, -1f, 0, default, 1f); diff --git a/NPCs/AcidRain/Skyfin.cs b/NPCs/AcidRain/Skyfin.cs index 8ebed9a008..e831740e11 100644 --- a/NPCs/AcidRain/Skyfin.cs +++ b/NPCs/AcidRain/Skyfin.cs @@ -173,9 +173,9 @@ namespace CalamityMod.NPCs.AcidRain { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/SkyfinGore").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/SkyfinGore2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/SkyfinGore3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SkyfinGore").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SkyfinGore2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SkyfinGore3").Type, NPC.scale); } for (int k = 0; k < 20; k++) Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hitDirection, -1f, 0, default, 1f); diff --git a/NPCs/AcidRain/SulfurousSkater.cs b/NPCs/AcidRain/SulfurousSkater.cs index 2823a4f219..245375f7e3 100644 --- a/NPCs/AcidRain/SulfurousSkater.cs +++ b/NPCs/AcidRain/SulfurousSkater.cs @@ -217,9 +217,9 @@ namespace CalamityMod.NPCs.AcidRain { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/SulfurousSkaterGore").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/SulfurousSkaterGore2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/SulfurousSkaterGore3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SulfurousSkaterGore").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SulfurousSkaterGore2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SulfurousSkaterGore3").Type, NPC.scale); } } } diff --git a/NPCs/AcidRain/Trilobite.cs b/NPCs/AcidRain/Trilobite.cs index 7ef55feef6..b2f1b38408 100644 --- a/NPCs/AcidRain/Trilobite.cs +++ b/NPCs/AcidRain/Trilobite.cs @@ -183,9 +183,9 @@ namespace CalamityMod.NPCs.AcidRain { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/TrilobiteGore").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/TrilobiteGore2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/TrilobiteGore3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("TrilobiteGore").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("TrilobiteGore2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("TrilobiteGore3").Type, NPC.scale); } for (int k = 0; k < 30; k++) { diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltHuge.cs b/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltHuge.cs index 762ad7660d..8b5f7294b9 100644 --- a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltHuge.cs +++ b/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltHuge.cs @@ -201,7 +201,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/WyrmAdult3").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("WyrmAdult3").Type, 1f); } } } diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyHuge.cs b/NPCs/AdultEidolonWyrm/EidolonWyrmBodyHuge.cs index fdf07b19b2..a14cf5af29 100644 --- a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyHuge.cs +++ b/NPCs/AdultEidolonWyrm/EidolonWyrmBodyHuge.cs @@ -201,7 +201,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/WyrmAdult2").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("WyrmAdult2").Type, 1f); } } } diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs b/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs index ee844f7990..ad1f4b62ea 100644 --- a/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs +++ b/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs @@ -1382,7 +1382,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/WyrmAdult").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("WyrmAdult").Type, 1f); } } } diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmTailHuge.cs b/NPCs/AdultEidolonWyrm/EidolonWyrmTailHuge.cs index c51890bde6..3362ba6fd7 100644 --- a/NPCs/AdultEidolonWyrm/EidolonWyrmTailHuge.cs +++ b/NPCs/AdultEidolonWyrm/EidolonWyrmTailHuge.cs @@ -166,7 +166,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/WyrmAdult4").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("WyrmAdult4").Type, 1f); } } } diff --git a/NPCs/AquaticScourge/AquaticParasite.cs b/NPCs/AquaticScourge/AquaticParasite.cs index 72c990f020..10508e1e16 100644 --- a/NPCs/AquaticScourge/AquaticParasite.cs +++ b/NPCs/AquaticScourge/AquaticParasite.cs @@ -203,8 +203,8 @@ namespace CalamityMod.NPCs.AquaticScourge } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/AquaticParasite1").Type, 1f); - Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/AquaticParasite2").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("AquaticParasite1").Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find("AquaticParasite2").Type, 1f); } } } diff --git a/NPCs/AquaticScourge/AquaticScourgeBody.cs b/NPCs/AquaticScourge/AquaticScourgeBody.cs index 11df2cb598..b18810ccf7 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBody.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBody.cs @@ -143,10 +143,10 @@ namespace CalamityMod.NPCs.AquaticScourge } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASBody").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASBody2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASBody3").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASBody4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASBody").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASBody2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASBody3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASBody4").Type, NPC.scale); } } } diff --git a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs index 6122cdc880..6ce1599aef 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs @@ -142,9 +142,9 @@ namespace CalamityMod.NPCs.AquaticScourge } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASBodyAlt").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASBodyAlt2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASBodyAlt3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASBodyAlt").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASBodyAlt2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASBodyAlt3").Type, NPC.scale); } } } diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index b8f37d77a4..0f1f02ef25 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -265,7 +265,7 @@ namespace CalamityMod.NPCs.AquaticScourge if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASHead").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASHead").Type, NPC.scale); } } } diff --git a/NPCs/AquaticScourge/AquaticScourgeTail.cs b/NPCs/AquaticScourge/AquaticScourgeTail.cs index e4cc661709..ca47aa0fea 100644 --- a/NPCs/AquaticScourge/AquaticScourgeTail.cs +++ b/NPCs/AquaticScourge/AquaticScourgeTail.cs @@ -142,8 +142,8 @@ namespace CalamityMod.NPCs.AquaticScourge } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASTail").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/ASTail2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASTail").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ASTail2").Type, NPC.scale); } } } diff --git a/NPCs/AquaticScourge/AquaticSeekerBody.cs b/NPCs/AquaticScourge/AquaticSeekerBody.cs index d3af6246b8..f0ba18f7ad 100644 --- a/NPCs/AquaticScourge/AquaticSeekerBody.cs +++ b/NPCs/AquaticScourge/AquaticSeekerBody.cs @@ -143,7 +143,7 @@ namespace CalamityMod.NPCs.AquaticScourge } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/AquaticSeekerBody").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AquaticSeekerBody").Type, 1f); } } } diff --git a/NPCs/AquaticScourge/AquaticSeekerHead.cs b/NPCs/AquaticScourge/AquaticSeekerHead.cs index 3b4aebef39..fd42e54e0a 100644 --- a/NPCs/AquaticScourge/AquaticSeekerHead.cs +++ b/NPCs/AquaticScourge/AquaticSeekerHead.cs @@ -276,7 +276,7 @@ namespace CalamityMod.NPCs.AquaticScourge } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/AquaticSeekerHead").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AquaticSeekerHead").Type, 1f); } } } diff --git a/NPCs/AquaticScourge/AquaticSeekerTail.cs b/NPCs/AquaticScourge/AquaticSeekerTail.cs index 95683da86b..9d78bf8fa8 100644 --- a/NPCs/AquaticScourge/AquaticSeekerTail.cs +++ b/NPCs/AquaticScourge/AquaticSeekerTail.cs @@ -143,7 +143,7 @@ namespace CalamityMod.NPCs.AquaticScourge } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/AquaticSeekerTail").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AquaticSeekerTail").Type, 1f); } } } diff --git a/NPCs/AquaticScourge/AquaticUrchin.cs b/NPCs/AquaticScourge/AquaticUrchin.cs index 704d6b44c4..0398044019 100644 --- a/NPCs/AquaticScourge/AquaticUrchin.cs +++ b/NPCs/AquaticScourge/AquaticUrchin.cs @@ -78,9 +78,9 @@ namespace CalamityMod.NPCs.AquaticScourge } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/AquaticUrchin").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/AquaticUrchin2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AquaticScourgeGores/AquaticUrchin3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AquaticUrchin").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AquaticUrchin2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AquaticUrchin3").Type, 1f); } } } diff --git a/NPCs/Astral/AstralachneaGround.cs b/NPCs/Astral/AstralachneaGround.cs index bdc7237571..dbf4597ef7 100644 --- a/NPCs/Astral/AstralachneaGround.cs +++ b/NPCs/Astral/AstralachneaGround.cs @@ -138,7 +138,7 @@ namespace CalamityMod.NPCs.Astral { for (int i = 0; i < 6; i++) { - Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("Gores/Astralachnea/AstralachneaGore" + i).Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("AstralachneaGore" + i).Type); } } } diff --git a/NPCs/Astral/AstralachneaWall.cs b/NPCs/Astral/AstralachneaWall.cs index 9688e9bf00..fd3467dfdb 100644 --- a/NPCs/Astral/AstralachneaWall.cs +++ b/NPCs/Astral/AstralachneaWall.cs @@ -124,7 +124,7 @@ namespace CalamityMod.NPCs.Astral { for (int i = 0; i < 6; i++) { - Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("Gores/Astralachnea/AstralachneaGore" + i).Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("AstralachneaGore" + i).Type); } } } diff --git a/NPCs/Astral/Atlas.cs b/NPCs/Astral/Atlas.cs index fed0508169..a87a892bf2 100644 --- a/NPCs/Astral/Atlas.cs +++ b/NPCs/Astral/Atlas.cs @@ -449,15 +449,15 @@ namespace CalamityMod.NPCs.Astral if (Main.netMode != NetmodeID.Server) { //head - Gore.NewGore(NPC.Top, NPC.velocity * 0.5f, Mod.Find("Gores/Atlas/AtlasGore4").Type); + Gore.NewGore(NPC.Top, NPC.velocity * 0.5f, Mod.Find("AtlasGore4").Type); //hand - Gore.NewGore(NPC.direction == 1 ? NPC.Right : NPC.Left, NPC.velocity * 0.5f, Mod.Find("Gores/Atlas/AtlasGore2").Type); + Gore.NewGore(NPC.direction == 1 ? NPC.Right : NPC.Left, NPC.velocity * 0.5f, Mod.Find("AtlasGore2").Type); //rest - Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("Gores/Atlas/AtlasGore0").Type); - Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("Gores/Atlas/AtlasGore1").Type); - Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("Gores/Atlas/AtlasGore3").Type); - Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("Gores/Atlas/AtlasGore5").Type); - Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("Gores/Atlas/AtlasGore6").Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("Atlas/AtlasGore0").Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("AtlasGore1").Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("AtlasGore3").Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("AtlasGore5").Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("AtlasGore6").Type); } } } diff --git a/NPCs/Astral/BigSightseer.cs b/NPCs/Astral/BigSightseer.cs index cfdfdb0e74..9448b02b2e 100644 --- a/NPCs/Astral/BigSightseer.cs +++ b/NPCs/Astral/BigSightseer.cs @@ -140,7 +140,7 @@ namespace CalamityMod.NPCs.Astral for (int i = 0; i < 5; i++) { float rand = Main.rand.NextFloat(-0.18f, 0.18f); - Gore.NewGore(NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find("Gores/BigSightseer/BigSightseerGore" + i).Type); + Gore.NewGore(NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find("BigSightseerGore" + i).Type); } } } diff --git a/NPCs/Astral/FusionFeeder.cs b/NPCs/Astral/FusionFeeder.cs index 835f0ef311..0a97094845 100644 --- a/NPCs/Astral/FusionFeeder.cs +++ b/NPCs/Astral/FusionFeeder.cs @@ -94,7 +94,7 @@ namespace CalamityMod.NPCs.Astral for (int i = 0; i < 6; i++) { float rand = Main.rand.NextFloat(-0.18f, 0.18f); - Gore.NewGore(NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find("Gores/FusionFeeder/FusionFeederGore" + i).Type); + Gore.NewGore(NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find("FusionFeederGore" + i).Type); } } } diff --git a/NPCs/Astral/Hadarian.cs b/NPCs/Astral/Hadarian.cs index 2c14a9faa8..23ff3fb357 100644 --- a/NPCs/Astral/Hadarian.cs +++ b/NPCs/Astral/Hadarian.cs @@ -181,7 +181,7 @@ namespace CalamityMod.NPCs.Astral { for (int i = 0; i < 5; i++) { - Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("Gores/Hadarian/HadarianGore" + i).Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("HadarianGore" + i).Type); } } } diff --git a/NPCs/Astral/Nova.cs b/NPCs/Astral/Nova.cs index 833a4754a9..4ea5a39104 100644 --- a/NPCs/Astral/Nova.cs +++ b/NPCs/Astral/Nova.cs @@ -251,7 +251,7 @@ namespace CalamityMod.NPCs.Astral { for (int i = 0; i < 7; i++) { - Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("Gores/Nova/NovaGore" + i).Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("NovaGore" + i).Type); } } } diff --git a/NPCs/Astral/SmallSightseer.cs b/NPCs/Astral/SmallSightseer.cs index 60273f8db2..dfbf1ef103 100644 --- a/NPCs/Astral/SmallSightseer.cs +++ b/NPCs/Astral/SmallSightseer.cs @@ -108,7 +108,7 @@ namespace CalamityMod.NPCs.Astral for (int i = 0; i < 5; i++) { float rand = Main.rand.NextFloat(-0.18f, 0.18f); - Gore.NewGore(NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find("Gores/SmallSightseer/SmallSightseerGore" + i).Type); + Gore.NewGore(NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find("SmallSightseerGore" + i).Type); } } } diff --git a/NPCs/Astral/StellarCulex.cs b/NPCs/Astral/StellarCulex.cs index e60e69d333..480e5b6bcd 100644 --- a/NPCs/Astral/StellarCulex.cs +++ b/NPCs/Astral/StellarCulex.cs @@ -93,7 +93,7 @@ namespace CalamityMod.NPCs.Astral { for (int i = 0; i < 6; i++) { - Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("Gores/StellarCulex/StellarCulexGore" + i).Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.3f, Mod.Find("StellarCulexGore" + i).Type); } } } diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index 859302a3b7..f3840a8598 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -281,22 +281,22 @@ namespace CalamityMod.NPCs.AstrumDeus normalOnly.Add(ModContent.ItemType(), 5); // Materials - normalOnly.Add(ItemID.FallenStar, 25, 40); - normalOnly.Add(ModContent.ItemType(), 50, 80); + normalOnly.Add(ItemID.FallenStar, 1, 25, 40); + normalOnly.Add(ModContent.ItemType(), 1, 50, 80); } npcLoot.Add(ItemID.GreaterHealingPotion, 1, 8, 14); npcLoot.Add(ModContent.ItemType(), 5); npcLoot.AddIf(() => !DownedBossSystem.downedAstrumDeus, ModContent.ItemType()); npcLoot.AddIf(() => !DownedBossSystem.downedAstrumDeus, ModContent.ItemType()); - npcLoot.AddIf(() => !Main.expertMode, ItemID.FragmentSolar, 16, 24); - npcLoot.AddIf(() => !Main.expertMode, ItemID.FragmentVortex, 16, 24); - npcLoot.AddIf(() => !Main.expertMode, ItemID.FragmentNebula, 16, 24); - npcLoot.AddIf(() => !Main.expertMode, ItemID.FragmentStardust, 16, 24); - npcLoot.AddIf(() => Main.expertMode, ItemID.FragmentSolar, 20, 32); - npcLoot.AddIf(() => Main.expertMode, ItemID.FragmentVortex, 20, 32); - npcLoot.AddIf(() => Main.expertMode, ItemID.FragmentNebula, 20, 32); - npcLoot.AddIf(() => Main.expertMode, ItemID.FragmentStardust, 20, 32); + npcLoot.AddIf(() => !Main.expertMode, ItemID.FragmentSolar, 1, 16, 24); + npcLoot.AddIf(() => !Main.expertMode, ItemID.FragmentVortex, 1, 16, 24); + npcLoot.AddIf(() => !Main.expertMode, ItemID.FragmentNebula, 1, 16, 24); + npcLoot.AddIf(() => !Main.expertMode, ItemID.FragmentStardust, 1, 16, 24); + npcLoot.AddIf(() => Main.expertMode, ItemID.FragmentSolar, 1, 20, 32); + npcLoot.AddIf(() => Main.expertMode, ItemID.FragmentVortex, 1, 20, 32); + npcLoot.AddIf(() => Main.expertMode, ItemID.FragmentNebula, 1, 20, 32); + npcLoot.AddIf(() => Main.expertMode, ItemID.FragmentStardust, 1, 20, 32); } public override void OnHitPlayer(Player player, int damage, bool crit) diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index 53d5afea43..726722ff8a 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -239,10 +239,10 @@ namespace CalamityMod.NPCs.BrimstoneElemental if (Main.netMode != NetmodeID.Server) { float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/BrimstoneGore1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/BrimstoneGore2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/BrimstoneGore3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/BrimstoneGore4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("BrimstoneGore1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("BrimstoneGore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("BrimstoneGore3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("BrimstoneGore4").Type, 1f); } } } diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index d2cdce97eb..8c85a4e26f 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -455,7 +455,7 @@ namespace CalamityMod.NPCs.Bumblebirb { for (int i = 0; i < 6; i++) // 1 head, 1 wing, 4 legs = 6. one wing due to them being chonky boyes now { - string gore = "Gores/Bumble"; + string gore = "Bumble"; float randomSpread = Main.rand.Next(-200, 201) / 100f; gore += i == 0 ? "Head" : i > 1 ? "Leg" : "Wing"; Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find(gore).Type, 1f); diff --git a/NPCs/Calamitas/CalamitasRun.cs b/NPCs/Calamitas/CalamitasRun.cs index 590ab6be73..3e2f235dde 100644 --- a/NPCs/Calamitas/CalamitasRun.cs +++ b/NPCs/Calamitas/CalamitasRun.cs @@ -170,11 +170,11 @@ namespace CalamityMod.NPCs.Calamitas { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Cataclysm").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Cataclysm2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Cataclysm3").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Cataclysm4").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Cataclysm5").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Cataclysm").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Cataclysm2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Cataclysm3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Cataclysm4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Cataclysm5").Type, NPC.scale); } NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); diff --git a/NPCs/Calamitas/CalamitasRun2.cs b/NPCs/Calamitas/CalamitasRun2.cs index f8105787bd..8e1b113d63 100644 --- a/NPCs/Calamitas/CalamitasRun2.cs +++ b/NPCs/Calamitas/CalamitasRun2.cs @@ -169,11 +169,11 @@ namespace CalamityMod.NPCs.Calamitas { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Catastrophe").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Catastrophe2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Catastrophe3").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Catastrophe4").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Catastrophe5").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Catastrophe").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Catastrophe2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Catastrophe3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Catastrophe4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Catastrophe5").Type, NPC.scale); } NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index 89086701d6..20c15a75ce 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -240,12 +240,12 @@ namespace CalamityMod.NPCs.Calamitas { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Calamitas").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Calamitas2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Calamitas3").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Calamitas4").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Calamitas5").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/Calamitas6").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Calamitas").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Calamitas2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Calamitas3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Calamitas4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Calamitas5").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Calamitas6").Type, NPC.scale); } NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); diff --git a/NPCs/Calamitas/SoulSeeker.cs b/NPCs/Calamitas/SoulSeeker.cs index 534bdbe76c..60e3a501cc 100644 --- a/NPCs/Calamitas/SoulSeeker.cs +++ b/NPCs/Calamitas/SoulSeeker.cs @@ -122,9 +122,9 @@ namespace CalamityMod.NPCs.Calamitas { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/SoulSeeker").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/SoulSeeker2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CalamitasGores/SoulSeeker3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SoulSeeker").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SoulSeeker2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SoulSeeker3").Type, 1f); } NPC.position = NPC.Center; NPC.width = NPC.height = 50; diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index bc5508327b..b80d7ccc8e 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -892,7 +892,7 @@ namespace CalamityMod.NPCs npcLoot.RemoveWhere((rule) => rule is ItemDropWithConditionRule conditionalRule && conditionalRule.itemId == ItemID.HallowedBar); // Define a replacement rule which respects the Early Hardmode Progression Rework. - npcLoot.AddNormalOnly(ItemDropRule.ByCondition(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 15, 30)); + npcLoot.AddNormalOnly(ItemDropRule.ByCondition(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 1, 15, 30)); // Expert+ drops are also available on Normal npcLoot.AddNormalOnly(ItemID.MechanicalWagonPiece); @@ -921,7 +921,7 @@ namespace CalamityMod.NPCs } // Define a replacement rule which respects the Early Hardmode Progression Rework. - npcLoot.AddNormalOnly(ItemDropRule.ByCondition(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 15, 30)); + npcLoot.AddNormalOnly(ItemDropRule.ByCondition(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 1, 15, 30)); } catch (ArgumentNullException) { } @@ -939,7 +939,7 @@ namespace CalamityMod.NPCs npcLoot.RemoveWhere((rule) => rule is ItemDropWithConditionRule conditionalRule && conditionalRule.itemId == ItemID.HallowedBar); // Define a replacement rule which respects the Early Hardmode Progression Rework. - npcLoot.AddNormalOnly(ItemDropRule.ByCondition(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 15, 30)); + npcLoot.AddNormalOnly(ItemDropRule.ByCondition(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 1, 15, 30)); // Expert+ drops are also available on Normal npcLoot.AddNormalOnly(ItemID.MechanicalBatteryPiece); diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index f14ca19949..bbbf4fa1b3 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -296,11 +296,11 @@ namespace CalamityMod.NPCs.CeaselessVoid if (Main.netMode != NetmodeID.Server) { float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/CeaselessVoid").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/CeaselessVoid2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/CeaselessVoid2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/CeaselessVoid3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/CeaselessVoid3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("CeaselessVoid").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("CeaselessVoid2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("CeaselessVoid2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("CeaselessVoid3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("CeaselessVoid3").Type, 1f); } } } diff --git a/NPCs/Crabulon/CrabulonIdle.cs b/NPCs/Crabulon/CrabulonIdle.cs index bd3a3901be..86277e6b0b 100644 --- a/NPCs/Crabulon/CrabulonIdle.cs +++ b/NPCs/Crabulon/CrabulonIdle.cs @@ -795,13 +795,13 @@ namespace CalamityMod.NPCs.Crabulon if (Main.netMode != NetmodeID.Server) { float randomSpread = Main.rand.Next(-200, 200) / 100; - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Crabulon").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Crabulon2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Crabulon3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Crabulon4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Crabulon5").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Crabulon6").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Crabulon7").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Crabulon").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Crabulon2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Crabulon3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Crabulon4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Crabulon5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Crabulon6").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Crabulon7").Type, 1f); } } } diff --git a/NPCs/Crags/CultistAssassin.cs b/NPCs/Crags/CultistAssassin.cs index 544c3f4833..4e591ba412 100644 --- a/NPCs/Crags/CultistAssassin.cs +++ b/NPCs/Crags/CultistAssassin.cs @@ -68,9 +68,9 @@ namespace CalamityMod.NPCs.Crags } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CultistAssassinGores/CultistAssassin").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CultistAssassinGores/CultistAssassin2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CultistAssassinGores/CultistAssassin3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("CultistAssassin").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("CultistAssassin2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("CultistAssassin3").Type, NPC.scale); } } } diff --git a/NPCs/Crags/DespairStone.cs b/NPCs/Crags/DespairStone.cs index ff1006f00b..3a3f27ca56 100644 --- a/NPCs/Crags/DespairStone.cs +++ b/NPCs/Crags/DespairStone.cs @@ -79,8 +79,8 @@ namespace CalamityMod.NPCs.Crags } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DespairStoneGores/DespairStone").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DespairStoneGores/DespairStone2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DespairStone").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DespairStone2").Type, NPC.scale); } } } diff --git a/NPCs/Crags/Scryllar.cs b/NPCs/Crags/Scryllar.cs index 414e819aff..d460694a91 100644 --- a/NPCs/Crags/Scryllar.cs +++ b/NPCs/Crags/Scryllar.cs @@ -273,7 +273,7 @@ namespace CalamityMod.NPCs.Crags } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScryllarGores/Scryllar").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Scryllar").Type, NPC.scale); } } } diff --git a/NPCs/Crags/ScryllarRage.cs b/NPCs/Crags/ScryllarRage.cs index 83b81bf20b..34e0418952 100644 --- a/NPCs/Crags/ScryllarRage.cs +++ b/NPCs/Crags/ScryllarRage.cs @@ -273,8 +273,8 @@ namespace CalamityMod.NPCs.Crags } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScryllarGores/ScryllarRage").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScryllarGores/ScryllarRage2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScryllarRage").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScryllarRage2").Type, NPC.scale); } } } diff --git a/NPCs/Crags/SoulSlurper.cs b/NPCs/Crags/SoulSlurper.cs index dfd4afc044..b0d17ef201 100644 --- a/NPCs/Crags/SoulSlurper.cs +++ b/NPCs/Crags/SoulSlurper.cs @@ -300,9 +300,9 @@ namespace CalamityMod.NPCs.Crags { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SoulSlurperGores/SoulSlurper").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SoulSlurperGores/SoulSlurper2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SoulSlurperGores/SoulSlurper3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SoulSlurper").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SoulSlurper2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SoulSlurper3").Type, NPC.scale); } NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 091a6ccd65..76fb01451a 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -954,7 +954,7 @@ namespace CalamityMod.NPCs.Cryogen { int chipGoreAmount = newPhase >= 5 ? 3 : newPhase >= 3 ? 2 : 1; for (int i = 1; i < chipGoreAmount; i++) - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CryoChipGore" + i).Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("CryoChipGore" + i).Type, 1f); } currentPhase = newPhase; @@ -1038,8 +1038,8 @@ namespace CalamityMod.NPCs.Cryogen float randomSpread = Main.rand.Next(-200, 200) / 100; for (int i = 1; i < 4; i++) { - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/CryoDeathGore" + i).Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/CryoChipGore" + i).Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("CryoDeathGore" + i).Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("CryoChipGore" + i).Type, 1f); } } } diff --git a/NPCs/Cryogen/CryogenIce.cs b/NPCs/Cryogen/CryogenIce.cs index 2db7136dad..f495bd6cc7 100644 --- a/NPCs/Cryogen/CryogenIce.cs +++ b/NPCs/Cryogen/CryogenIce.cs @@ -152,7 +152,7 @@ namespace CalamityMod.NPCs.Cryogen { randomSpread = Main.rand.Next(-200, 200) / 100; for (int x = 0; x < 4; x++) - Gore.NewGore(NPC.Center, NPC.velocity * randomSpread, Mod.Find("Gores/CryoShieldGore" + x).Type, 1f); + Gore.NewGore(NPC.Center, NPC.velocity * randomSpread, Mod.Find("CryoShieldGore" + x).Type, 1f); } } } diff --git a/NPCs/DesertScourge/DesertNuisanceBody.cs b/NPCs/DesertScourge/DesertNuisanceBody.cs index 32bb75d0e3..4b11983a56 100644 --- a/NPCs/DesertScourge/DesertNuisanceBody.cs +++ b/NPCs/DesertScourge/DesertNuisanceBody.cs @@ -135,9 +135,9 @@ namespace CalamityMod.NPCs.DesertScourge if (Main.netMode != NetmodeID.Server) { float randomSpread = (float)(Main.rand.Next(-100, 100) / 100); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/ScourgeBody").Type, 0.65f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/ScourgeBody2").Type, 0.65f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/ScourgeBody3").Type, 0.65f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("ScourgeBody").Type, 0.65f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("ScourgeBody2").Type, 0.65f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("ScourgeBody3").Type, 0.65f); } for (int k = 0; k < 10; k++) { diff --git a/NPCs/DesertScourge/DesertNuisanceHead.cs b/NPCs/DesertScourge/DesertNuisanceHead.cs index 5f6dbe583e..c936fd9195 100644 --- a/NPCs/DesertScourge/DesertNuisanceHead.cs +++ b/NPCs/DesertScourge/DesertNuisanceHead.cs @@ -386,8 +386,8 @@ namespace CalamityMod.NPCs.DesertScourge { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScourgeHead").Type, 0.65f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScourgeHead2").Type, 0.65f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScourgeHead").Type, 0.65f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScourgeHead2").Type, 0.65f); } for (int k = 0; k < 10; k++) { diff --git a/NPCs/DesertScourge/DesertNuisanceTail.cs b/NPCs/DesertScourge/DesertNuisanceTail.cs index ccd0768228..d28cb262a4 100644 --- a/NPCs/DesertScourge/DesertNuisanceTail.cs +++ b/NPCs/DesertScourge/DesertNuisanceTail.cs @@ -129,7 +129,7 @@ namespace CalamityMod.NPCs.DesertScourge { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScourgeTail").Type, 0.65f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScourgeTail").Type, 0.65f); } for (int k = 0; k < 10; k++) { diff --git a/NPCs/DesertScourge/DesertScourgeBody.cs b/NPCs/DesertScourge/DesertScourgeBody.cs index 690dd9064e..303ad9d0d9 100644 --- a/NPCs/DesertScourge/DesertScourgeBody.cs +++ b/NPCs/DesertScourge/DesertScourgeBody.cs @@ -190,9 +190,9 @@ namespace CalamityMod.NPCs.DesertScourge if (Main.netMode != NetmodeID.Server) { float randomSpread = (float)(Main.rand.Next(-100, 100) / 100); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/ScourgeBody").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/ScourgeBody2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/ScourgeBody3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("ScourgeBody").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("ScourgeBody2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("ScourgeBody3").Type, NPC.scale); } for (int k = 0; k < 10; k++) Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, hitDirection, -1f, 0, default, 1f); diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 8cebffc0b9..beb8bfd3d5 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -636,8 +636,8 @@ namespace CalamityMod.NPCs.DesertScourge { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScourgeHead").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScourgeHead2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScourgeHead").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScourgeHead2").Type, NPC.scale); } for (int k = 0; k < 10; k++) { diff --git a/NPCs/DesertScourge/DesertScourgeTail.cs b/NPCs/DesertScourge/DesertScourgeTail.cs index dc6ce11a34..52e35e0c47 100644 --- a/NPCs/DesertScourge/DesertScourgeTail.cs +++ b/NPCs/DesertScourge/DesertScourgeTail.cs @@ -148,7 +148,7 @@ namespace CalamityMod.NPCs.DesertScourge { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScourgeTail").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScourgeTail").Type, NPC.scale); } for (int k = 0; k < 10; k++) { diff --git a/NPCs/DevourerofGods/DevourerofGodsBody.cs b/NPCs/DevourerofGods/DevourerofGodsBody.cs index 733fdab84f..d48cf1fd60 100644 --- a/NPCs/DevourerofGods/DevourerofGodsBody.cs +++ b/NPCs/DevourerofGods/DevourerofGodsBody.cs @@ -387,7 +387,7 @@ namespace CalamityMod.NPCs.DevourerofGods if (Main.netMode != NetmodeID.Server) { float randomSpread = Main.rand.Next(-100, 100) / 100; - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/DoGS6").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("DoGS6").Type, 1f); } NPC.position.X = NPC.position.X + (NPC.width / 2); NPC.position.Y = NPC.position.Y + (NPC.height / 2); diff --git a/NPCs/DevourerofGods/DevourerofGodsBody2.cs b/NPCs/DevourerofGods/DevourerofGodsBody2.cs index b6c4608ce8..41d354f141 100644 --- a/NPCs/DevourerofGods/DevourerofGodsBody2.cs +++ b/NPCs/DevourerofGods/DevourerofGodsBody2.cs @@ -190,10 +190,10 @@ namespace CalamityMod.NPCs.DevourerofGods if (Main.netMode != NetmodeID.Server) { float randomSpread = (float)(Main.rand.Next(-100, 100) / 100); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/DoT2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/DoT3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/DoT4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/DoT5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("DoT2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("DoT3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("DoT4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("DoT5").Type, 1f); } NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index a0a10f4fcd..5a4addc815 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -2386,9 +2386,9 @@ namespace CalamityMod.NPCs.DevourerofGods { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DoGS").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DoGS2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DoGS5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DoGS").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DoGS2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DoGS5").Type, 1f); } NPC.position.X = NPC.position.X + (NPC.width / 2); NPC.position.Y = NPC.position.Y + (NPC.height / 2); diff --git a/NPCs/DevourerofGods/DevourerofGodsHead2.cs b/NPCs/DevourerofGods/DevourerofGodsHead2.cs index 74265e97b6..b600e052f2 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead2.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead2.cs @@ -361,7 +361,7 @@ namespace CalamityMod.NPCs.DevourerofGods { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DoT").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DoT").Type, 1f); } NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); diff --git a/NPCs/DevourerofGods/DevourerofGodsTail.cs b/NPCs/DevourerofGods/DevourerofGodsTail.cs index a7edf61f5f..9051de83b4 100644 --- a/NPCs/DevourerofGods/DevourerofGodsTail.cs +++ b/NPCs/DevourerofGods/DevourerofGodsTail.cs @@ -371,8 +371,8 @@ namespace CalamityMod.NPCs.DevourerofGods { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DoGS3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/DoGS4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DoGS3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DoGS4").Type, 1f); } NPC.position.X = NPC.position.X + (NPC.width / 2); NPC.position.Y = NPC.position.Y + (NPC.height / 2); diff --git a/NPCs/DevourerofGods/DevourerofGodsTail2.cs b/NPCs/DevourerofGods/DevourerofGodsTail2.cs index 7b8025cd99..52e24dcdcb 100644 --- a/NPCs/DevourerofGods/DevourerofGodsTail2.cs +++ b/NPCs/DevourerofGods/DevourerofGodsTail2.cs @@ -182,10 +182,10 @@ namespace CalamityMod.NPCs.DevourerofGods if (Main.netMode != NetmodeID.Server) { float randomSpread = (float)(Main.rand.Next(-100, 100) / 100); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/DoT2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/DoT3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/DoT4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/DoT5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("DoT2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("DoT3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("DoT4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("DoT5").Type, 1f); } NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); diff --git a/NPCs/DraedonLabThings/RepairUnitCritter.cs b/NPCs/DraedonLabThings/RepairUnitCritter.cs index 4402fef93d..08c59b36b9 100644 --- a/NPCs/DraedonLabThings/RepairUnitCritter.cs +++ b/NPCs/DraedonLabThings/RepairUnitCritter.cs @@ -300,7 +300,7 @@ namespace CalamityMod.NPCs.DraedonLabThings if (Main.netMode != NetmodeID.Server) { for (int i = 1; i <= 3; i++) - Gore.NewGorePerfect(NPC.Center, NPC.velocity.RotatedByRandom(0.3f) * Main.rand.NextFloat(0.7f, 1f), Mod.Find($"Gores/DraedonLabCritters/RepairUnit{i}").Type); + Gore.NewGorePerfect(NPC.Center, NPC.velocity.RotatedByRandom(0.3f) * Main.rand.NextFloat(0.7f, 1f), Mod.Find($"RepairUnit{i}").Type); } } } diff --git a/NPCs/ExoMechs/Apollo/Apollo.cs b/NPCs/ExoMechs/Apollo/Apollo.cs index e473bbe4fb..51de601717 100644 --- a/NPCs/ExoMechs/Apollo/Apollo.cs +++ b/NPCs/ExoMechs/Apollo/Apollo.cs @@ -1446,7 +1446,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo RibbonTrail = new PrimitiveTrail(RibbonTrailWidthFunction, RibbonTrailColorFunction); // Prepare the flame trail shader with its map texture. - GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); int numAfterimages = ChargeComboFlash > 0f ? 0 : 5; Texture2D texture = TextureAssets.Npc[NPC.type].Value; @@ -1668,11 +1668,11 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Apollo/Apollo1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Apollo/Apollo2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Apollo/Apollo3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Apollo/Apollo4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Apollo/Apollo5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Apollo1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Apollo2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Apollo3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Apollo4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Apollo5").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index afece1f5de..e1258471e7 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -1371,13 +1371,13 @@ namespace CalamityMod.NPCs.ExoMechs.Ares if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresBody1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresBody2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresBody3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresBody4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresBody5").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresBody6").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresBody7").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresBody1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresBody2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresBody3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresBody4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresBody5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresBody6").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresBody7").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Ares/AresGaussNuke.cs b/NPCs/ExoMechs/Ares/AresGaussNuke.cs index a8d58ae5a2..991956cf72 100644 --- a/NPCs/ExoMechs/Ares/AresGaussNuke.cs +++ b/NPCs/ExoMechs/Ares/AresGaussNuke.cs @@ -642,12 +642,12 @@ namespace CalamityMod.NPCs.ExoMechs.Ares if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresGaussNuke1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresGaussNuke2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresGaussNuke3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresGaussNuke1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresGaussNuke2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresGaussNuke3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase3").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Ares/AresLaserCannon.cs b/NPCs/ExoMechs/Ares/AresLaserCannon.cs index 4a68d58f4a..cd026c20aa 100644 --- a/NPCs/ExoMechs/Ares/AresLaserCannon.cs +++ b/NPCs/ExoMechs/Ares/AresLaserCannon.cs @@ -690,11 +690,11 @@ namespace CalamityMod.NPCs.ExoMechs.Ares if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresLaserCannon1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresLaserCannon2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresLaserCannon1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresLaserCannon2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase3").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs index 6bc8e400c2..17399a1042 100644 --- a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs +++ b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs @@ -641,11 +641,11 @@ namespace CalamityMod.NPCs.ExoMechs.Ares if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresPlasmaFlamethrower1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresPlasmaFlamethrower2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresPlasmaFlamethrower1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresPlasmaFlamethrower2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase3").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs index 258ec6d09b..90e97f7e3e 100644 --- a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs +++ b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs @@ -634,11 +634,11 @@ namespace CalamityMod.NPCs.ExoMechs.Ares if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresTeslaCannon1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresTeslaCannon2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Ares/AresHandBase3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresTeslaCannon1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresTeslaCannon2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AresHandBase3").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Artemis/Artemis.cs b/NPCs/ExoMechs/Artemis/Artemis.cs index 28f632db62..ea8d4f5fc4 100644 --- a/NPCs/ExoMechs/Artemis/Artemis.cs +++ b/NPCs/ExoMechs/Artemis/Artemis.cs @@ -1253,7 +1253,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis RibbonTrail = new PrimitiveTrail(RibbonTrailWidthFunction, RibbonTrailColorFunction); // Prepare the flame trail shader with its map texture. - GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); int numAfterimages = ChargeFlash > 0f ? 0 : 5; Texture2D texture = TextureAssets.Npc[NPC.type].Value; @@ -1409,11 +1409,11 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Artemis/Artemis1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Artemis/Artemis2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Artemis/Artemis3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Artemis/Artemis4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Artemis/Artemis5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Artemis/Artemis1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Artemis/Artemis2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Artemis/Artemis3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Artemis/Artemis4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Artemis/Artemis5").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Draedon.cs b/NPCs/ExoMechs/Draedon.cs index 4fa4f19b7e..e52939c968 100644 --- a/NPCs/ExoMechs/Draedon.cs +++ b/NPCs/ExoMechs/Draedon.cs @@ -590,10 +590,10 @@ namespace CalamityMod.NPCs.ExoMechs Vector2 goreSpawnOffset = Main.rand.NextVector2Circular(12f, 12f); Vector2 draedonPieceVelocity = Main.rand.NextVector2CircularEdge(7f, 7f) - Vector2.UnitY * 8f; Vector2 chairPieceVelocity = Vector2.UnitY.RotatedByRandom(0.13f) * Main.rand.NextFloat(4.45f, 5.4f); - Gore.NewGoreDirect(NPC.Center + goreSpawnOffset, draedonPieceVelocity, Mod.Find($"Gores/Draedon/Draedon{i}").Type); + Gore.NewGoreDirect(NPC.Center + goreSpawnOffset, draedonPieceVelocity, Mod.Find($"Draedon{i}").Type); goreSpawnOffset = Main.rand.NextVector2Circular(18f, 18f); - Gore.NewGoreDirect(NPC.Center + goreSpawnOffset, chairPieceVelocity, Mod.Find($"Gores/Draedon/Chair{i}").Type); + Gore.NewGoreDirect(NPC.Center + goreSpawnOffset, chairPieceVelocity, Mod.Find($"Chair{i}").Type); } } } diff --git a/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs b/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs index a74fa5476e..384424c694 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs @@ -648,9 +648,9 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosBody1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosBody1_2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosBody1_3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosBody1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosBody1_2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosBody1_3").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs b/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs index 14b34f337d..da5c5566fb 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs @@ -649,9 +649,9 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosBody2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosBody2_2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosBody2_3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosBody2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosBody2_2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosBody2_3").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Thanatos/ThanatosHead.cs b/NPCs/ExoMechs/Thanatos/ThanatosHead.cs index 81b61a37e6..01890ac5e2 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosHead.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosHead.cs @@ -1214,9 +1214,9 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosHead").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosHead2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosHead3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosHead").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosHead2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosHead3").Type, 1f); } } } diff --git a/NPCs/ExoMechs/Thanatos/ThanatosTail.cs b/NPCs/ExoMechs/Thanatos/ThanatosTail.cs index 813e65c0d6..d47893cfc2 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosTail.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosTail.cs @@ -649,10 +649,10 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosTail").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosTail2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosTail3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Thanatos/ThanatosTail4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosTail").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosTail2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosTail3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ThanatosTail4").Type, 1f); } } } diff --git a/NPCs/HiveMind/DankCreeper.cs b/NPCs/HiveMind/DankCreeper.cs index f60fd29d80..875698f737 100644 --- a/NPCs/HiveMind/DankCreeper.cs +++ b/NPCs/HiveMind/DankCreeper.cs @@ -105,9 +105,9 @@ namespace CalamityMod.NPCs.HiveMind } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/HiveMindGores/DankCreeperGore").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/HiveMindGores/DankCreeperGore2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/HiveMindGores/DankCreeperGore3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DankCreeperGore").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DankCreeperGore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("DankCreeperGore3").Type, 1f); } } } diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 9b0b80d540..21935c394e 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -397,7 +397,7 @@ namespace CalamityMod.NPCs.HiveMind { int goreAmount = 7; for (int i = 1; i <= goreAmount; i++) - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/HiveMindGores/HiveMindGore" + i).Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("HiveMindGores/HiveMindGore" + i).Type, 1f); } SoundEngine.PlaySound(SoundID.NPCDeath1, (int)NPC.Center.X, (int)NPC.Center.Y); @@ -1032,7 +1032,7 @@ namespace CalamityMod.NPCs.HiveMind { int goreAmount = 10; for (int i = 1; i <= goreAmount; i++) - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/HiveMindGores/HiveMindP2Gore" + i).Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("HiveMindP2Gore" + i).Type, 1f); } NPC.position.X = NPC.position.X + (NPC.width / 2); diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index dcc6c36cd2..4bb73757be 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -23,6 +23,7 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; using Terraria.GameContent.ItemDropRules; +using ReLogic.Content; namespace CalamityMod.NPCs.Leviathan { @@ -40,7 +41,7 @@ namespace CalamityMod.NPCs.Leviathan DisplayName.SetDefault("The Leviathan"); Main.npcFrameCount[NPC.type] = 3; if (!Main.dedServ) - AttackTexture = ModContent.Request("CalamityMod/NPCs/Leviathan/LeviathanAttack").Value; + AttackTexture = ModContent.Request("CalamityMod/NPCs/Leviathan/LeviathanAttack", AssetRequestMode.ImmediateLoad).Value; } public override void SetDefaults() @@ -689,10 +690,10 @@ namespace CalamityMod.NPCs.Leviathan if (Main.netMode != NetmodeID.Server) { float randomSpread = Main.rand.Next(-200, 200) / 100; - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/LeviathanGores/LeviGore").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/LeviathanGores/LeviGore2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/LeviathanGores/LeviGore3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/LeviathanGores/LeviGore4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("LeviGore").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("LeviGore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("LeviGore3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("LeviGore4").Type, 1f); } } } diff --git a/NPCs/NormalNPCs/Cryocore.cs b/NPCs/NormalNPCs/Cryocore.cs index 2619e2e866..dec1da12d1 100644 --- a/NPCs/NormalNPCs/Cryocore.cs +++ b/NPCs/NormalNPCs/Cryocore.cs @@ -117,7 +117,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Cryocore").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Cryocore").Type, 1f); } } } diff --git a/NPCs/NormalNPCs/Cryocore2.cs b/NPCs/NormalNPCs/Cryocore2.cs index 68aed94e75..12f1a4a796 100644 --- a/NPCs/NormalNPCs/Cryocore2.cs +++ b/NPCs/NormalNPCs/Cryocore2.cs @@ -117,7 +117,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Cryocore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Cryocore2").Type, 1f); } } } diff --git a/NPCs/NormalNPCs/Eidolist.cs b/NPCs/NormalNPCs/Eidolist.cs index 06e67cc84a..5e0be4ee9f 100644 --- a/NPCs/NormalNPCs/Eidolist.cs +++ b/NPCs/NormalNPCs/Eidolist.cs @@ -311,10 +311,10 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/EidiolistGores/Eidolist").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/EidiolistGores/Eidolist2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/EidiolistGores/Eidolist3").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/EidiolistGores/Eidolist4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Eidolist").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Eidolist2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Eidolist3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Eidolist4").Type, NPC.scale); } } } diff --git a/NPCs/NormalNPCs/IceMass.cs b/NPCs/NormalNPCs/IceMass.cs index 71d40486cc..d0f235f1d4 100644 --- a/NPCs/NormalNPCs/IceMass.cs +++ b/NPCs/NormalNPCs/IceMass.cs @@ -96,7 +96,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/CryoSpirit").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("CryoSpirit").Type, 1f); } } } diff --git a/NPCs/NormalNPCs/PerennialSlime.cs b/NPCs/NormalNPCs/PerennialSlime.cs index e1bff64ca9..acfbdef710 100644 --- a/NPCs/NormalNPCs/PerennialSlime.cs +++ b/NPCs/NormalNPCs/PerennialSlime.cs @@ -67,7 +67,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ModifyNPCLoot(NPCLoot npcLoot) { - npcLoot.Add(ModContent.ItemType(), 10, 26); + npcLoot.Add(ModContent.ItemType(), 1, 10, 26); } } } diff --git a/NPCs/NormalNPCs/ScornEater.cs b/NPCs/NormalNPCs/ScornEater.cs index e9500ca729..d1fb68bf8f 100644 --- a/NPCs/NormalNPCs/ScornEater.cs +++ b/NPCs/NormalNPCs/ScornEater.cs @@ -188,12 +188,12 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScornEater").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScornEater2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScornEater3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScornEater4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScornEater5").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScornEater6").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScornEater").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScornEater2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScornEater3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScornEater4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScornEater5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScornEater6").Type, 1f); } } } diff --git a/NPCs/NormalNPCs/ShockstormShuttle.cs b/NPCs/NormalNPCs/ShockstormShuttle.cs index efc86e5e8f..08be51236c 100644 --- a/NPCs/NormalNPCs/ShockstormShuttle.cs +++ b/NPCs/NormalNPCs/ShockstormShuttle.cs @@ -393,7 +393,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ModifyNPCLoot(NPCLoot npcLoot) { - npcLoot.AddIf(() => NPC.downedGolemBoss, ItemID.AdhesiveBandage, 10, 30); + npcLoot.AddIf(() => NPC.downedGolemBoss, ItemID.MartianConduitPlating, 1, 10, 30); npcLoot.Add(ModContent.ItemType(), 3); npcLoot.Add(ModContent.ItemType(), 10); } diff --git a/NPCs/NormalNPCs/StormlionCharger.cs b/NPCs/NormalNPCs/StormlionCharger.cs index f7f1b10eea..d64a01593f 100644 --- a/NPCs/NormalNPCs/StormlionCharger.cs +++ b/NPCs/NormalNPCs/StormlionCharger.cs @@ -50,10 +50,10 @@ namespace CalamityMod.NPCs.NormalNPCs } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/StormlionGores/Stormlion").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/StormlionGores/Stormlion2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/StormlionGores/Stormlion3").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/StormlionGores/Stormlion4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Stormlion").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Stormlion2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Stormlion3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Stormlion4").Type, NPC.scale); } } } diff --git a/NPCs/OldDuke/OldDuke.cs b/NPCs/OldDuke/OldDuke.cs index d7a66de0b0..618c62e7db 100644 --- a/NPCs/OldDuke/OldDuke.cs +++ b/NPCs/OldDuke/OldDuke.cs @@ -451,10 +451,10 @@ namespace CalamityMod.NPCs.OldDuke if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.Center + Vector2.UnitX * 20f * NPC.direction, NPC.velocity, Mod.Find("Gores/OldDuke/OldDukeGore").Type, NPC.scale); - Gore.NewGore(NPC.Center + Vector2.UnitX * 20f * NPC.direction, NPC.velocity, Mod.Find("Gores/OldDuke/OldDukeGore2").Type, NPC.scale); - Gore.NewGore(NPC.Center - Vector2.UnitX * 20f * NPC.direction, NPC.velocity, Mod.Find("Gores/OldDuke/OldDukeGore3").Type, NPC.scale); - Gore.NewGore(NPC.Center - Vector2.UnitX * 20f * NPC.direction, NPC.velocity, Mod.Find("Gores/OldDuke/OldDukeGore4").Type, NPC.scale); + Gore.NewGore(NPC.Center + Vector2.UnitX * 20f * NPC.direction, NPC.velocity, Mod.Find("OldDukeGore").Type, NPC.scale); + Gore.NewGore(NPC.Center + Vector2.UnitX * 20f * NPC.direction, NPC.velocity, Mod.Find("OldDukeGore2").Type, NPC.scale); + Gore.NewGore(NPC.Center - Vector2.UnitX * 20f * NPC.direction, NPC.velocity, Mod.Find("OldDukeGore3").Type, NPC.scale); + Gore.NewGore(NPC.Center - Vector2.UnitX * 20f * NPC.direction, NPC.velocity, Mod.Find("OldDukeGore4").Type, NPC.scale); } } } diff --git a/NPCs/Other/LecherousOrb.cs b/NPCs/Other/LecherousOrb.cs index 7ae8a82cf3..85f80c95db 100644 --- a/NPCs/Other/LecherousOrb.cs +++ b/NPCs/Other/LecherousOrb.cs @@ -118,7 +118,7 @@ namespace CalamityMod.NPCs.Other if (Main.netMode != NetmodeID.Server) { for (int i = 1; i <= 4; i++) - Gore.NewGoreDirect(NPC.Center, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"Gores/LecherousOrb/LecherousGore{i}").Type); + Gore.NewGoreDirect(NPC.Center, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"LecherousGore{i}").Type); } } } diff --git a/NPCs/Perforator/PerforatorBodyLarge.cs b/NPCs/Perforator/PerforatorBodyLarge.cs index b26ce3c479..5c490a2686 100644 --- a/NPCs/Perforator/PerforatorBodyLarge.cs +++ b/NPCs/Perforator/PerforatorBodyLarge.cs @@ -179,9 +179,9 @@ namespace CalamityMod.NPCs.Perforator } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/LargePerf2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/LargePerf3").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/LargePerf4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("LargePerf2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("LargePerf3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("LargePerf4").Type, NPC.scale); } } } diff --git a/NPCs/Perforator/PerforatorBodyMedium.cs b/NPCs/Perforator/PerforatorBodyMedium.cs index 118005088e..f6808c3f44 100644 --- a/NPCs/Perforator/PerforatorBodyMedium.cs +++ b/NPCs/Perforator/PerforatorBodyMedium.cs @@ -216,8 +216,8 @@ namespace CalamityMod.NPCs.Perforator } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/MediumPerf2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/MediumPerf3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("MediumPerf2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("MediumPerf3").Type, NPC.scale); } } } diff --git a/NPCs/Perforator/PerforatorBodySmall.cs b/NPCs/Perforator/PerforatorBodySmall.cs index ae296e2699..cf882ed905 100644 --- a/NPCs/Perforator/PerforatorBodySmall.cs +++ b/NPCs/Perforator/PerforatorBodySmall.cs @@ -179,7 +179,7 @@ namespace CalamityMod.NPCs.Perforator } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SmallPerf2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SmallPerf2").Type, NPC.scale); } } } diff --git a/NPCs/Perforator/PerforatorHeadLarge.cs b/NPCs/Perforator/PerforatorHeadLarge.cs index a9991e21a5..1493c6ea6a 100644 --- a/NPCs/Perforator/PerforatorHeadLarge.cs +++ b/NPCs/Perforator/PerforatorHeadLarge.cs @@ -549,8 +549,8 @@ namespace CalamityMod.NPCs.Perforator } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/LargePerf").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/LargePerf2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("LargePerf").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("LargePerf2").Type, NPC.scale); } } } diff --git a/NPCs/Perforator/PerforatorHeadMedium.cs b/NPCs/Perforator/PerforatorHeadMedium.cs index a95b34b0dd..a59e19d3f1 100644 --- a/NPCs/Perforator/PerforatorHeadMedium.cs +++ b/NPCs/Perforator/PerforatorHeadMedium.cs @@ -427,8 +427,8 @@ namespace CalamityMod.NPCs.Perforator } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/MediumPerf").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/MediumPerf2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("MediumPerf").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("MediumPerf2").Type, NPC.scale); } } } diff --git a/NPCs/Perforator/PerforatorHeadSmall.cs b/NPCs/Perforator/PerforatorHeadSmall.cs index 3588f64608..05b082e641 100644 --- a/NPCs/Perforator/PerforatorHeadSmall.cs +++ b/NPCs/Perforator/PerforatorHeadSmall.cs @@ -491,7 +491,7 @@ namespace CalamityMod.NPCs.Perforator } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SmallPerf").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SmallPerf").Type, NPC.scale); } } } diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index dcc006d164..4d460e2050 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -530,10 +530,10 @@ namespace CalamityMod.NPCs.Perforator { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Hive").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Hive2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Hive3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Hive4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Hive").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Hive2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Hive3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Hive4").Type, 1f); } NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); diff --git a/NPCs/Perforator/PerforatorTailLarge.cs b/NPCs/Perforator/PerforatorTailLarge.cs index 03e0af204f..9defe64ed4 100644 --- a/NPCs/Perforator/PerforatorTailLarge.cs +++ b/NPCs/Perforator/PerforatorTailLarge.cs @@ -174,8 +174,8 @@ namespace CalamityMod.NPCs.Perforator } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/LargePerf4").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/LargePerf5").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("LargePerf4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("LargePerf5").Type, NPC.scale); } } } diff --git a/NPCs/Perforator/PerforatorTailMedium.cs b/NPCs/Perforator/PerforatorTailMedium.cs index 975ddb794b..19b2486d7f 100644 --- a/NPCs/Perforator/PerforatorTailMedium.cs +++ b/NPCs/Perforator/PerforatorTailMedium.cs @@ -172,8 +172,8 @@ namespace CalamityMod.NPCs.Perforator } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/MediumPerf3").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/MediumPerf4").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("MediumPerf3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("MediumPerf4").Type, NPC.scale); } } } diff --git a/NPCs/Perforator/PerforatorTailSmall.cs b/NPCs/Perforator/PerforatorTailSmall.cs index 4542d08557..028136b05c 100644 --- a/NPCs/Perforator/PerforatorTailSmall.cs +++ b/NPCs/Perforator/PerforatorTailSmall.cs @@ -174,7 +174,7 @@ namespace CalamityMod.NPCs.Perforator } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SmallPerf3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SmallPerf3").Type, NPC.scale); } } } diff --git a/NPCs/PlagueEnemies/PlaguebringerShade.cs b/NPCs/PlagueEnemies/PlaguebringerShade.cs index 8ea4704245..07ee7107e7 100644 --- a/NPCs/PlagueEnemies/PlaguebringerShade.cs +++ b/NPCs/PlagueEnemies/PlaguebringerShade.cs @@ -600,11 +600,11 @@ namespace CalamityMod.NPCs.PlagueEnemies { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Pbg").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Pbg2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Pbg3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Pbg4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Pbg5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Pbg").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Pbg2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Pbg3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Pbg4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Pbg5").Type, 1f); } NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); diff --git a/NPCs/PlagueEnemies/PlaguedDerpling.cs b/NPCs/PlagueEnemies/PlaguedDerpling.cs index 8c2af6545d..1d4bbbec3d 100644 --- a/NPCs/PlagueEnemies/PlaguedDerpling.cs +++ b/NPCs/PlagueEnemies/PlaguedDerpling.cs @@ -181,9 +181,9 @@ namespace CalamityMod.NPCs.PlagueEnemies } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Viruling").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Viruling2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Viruling3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Viruling").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Viruling2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Viruling3").Type, 1f); } } } diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 372cb1ccf6..3e0a3c4017 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -711,11 +711,11 @@ namespace CalamityMod.NPCs.Polterghast if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt5").Type, 1f); } for (int num621 = 0; num621 < 10; num621++) @@ -862,11 +862,11 @@ namespace CalamityMod.NPCs.Polterghast if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Polt5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Polt5").Type, 1f); } for (int num621 = 0; num621 < 10; num621++) @@ -1023,8 +1023,8 @@ namespace CalamityMod.NPCs.Polterghast normalOnly.Add(ModContent.ItemType()); // Materials - normalOnly.Add(ModContent.ItemType(), 7, 15); - normalOnly.Add(ModContent.ItemType(), 30, 40); + normalOnly.Add(ModContent.ItemType(), 1, 7, 15); + normalOnly.Add(ModContent.ItemType(), 1, 30, 40); // Vanity normalOnly.Add(ModContent.ItemType(), 7); diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs b/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs index 64d601db09..593262b6b9 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs @@ -512,10 +512,10 @@ namespace CalamityMod.NPCs.ProfanedGuardians { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossA").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossA2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossA3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossA4").Type, 1f); } for (int k = 0; k < 50; k++) { diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianBoss2.cs b/NPCs/ProfanedGuardians/ProfanedGuardianBoss2.cs index dec0ecfc7c..d3edb5048d 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianBoss2.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianBoss2.cs @@ -382,9 +382,9 @@ namespace CalamityMod.NPCs.ProfanedGuardians { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossT").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossT2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossT3").Type, 1f); } for (int k = 0; k < 50; k++) { diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianBoss3.cs b/NPCs/ProfanedGuardians/ProfanedGuardianBoss3.cs index 3b5de0b3e1..dd63f8ca39 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianBoss3.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianBoss3.cs @@ -230,11 +230,11 @@ namespace CalamityMod.NPCs.ProfanedGuardians { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH5").Type, 1f); } for (int k = 0; k < 50; k++) { diff --git a/NPCs/Providence/ProvSpawnDefense.cs b/NPCs/Providence/ProvSpawnDefense.cs index a0fb7cde28..b7f7edb758 100644 --- a/NPCs/Providence/ProvSpawnDefense.cs +++ b/NPCs/Providence/ProvSpawnDefense.cs @@ -172,9 +172,9 @@ namespace CalamityMod.NPCs.Providence { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossT").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossT2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossT3").Type, 1f); } for (int k = 0; k < 30; k++) diff --git a/NPCs/Providence/ProvSpawnHealer.cs b/NPCs/Providence/ProvSpawnHealer.cs index 1534ca7eda..695a8efaf4 100644 --- a/NPCs/Providence/ProvSpawnHealer.cs +++ b/NPCs/Providence/ProvSpawnHealer.cs @@ -181,11 +181,11 @@ namespace CalamityMod.NPCs.Providence { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossH5").Type, 1f); } for (int k = 0; k < 50; k++) diff --git a/NPCs/Providence/ProvSpawnOffense.cs b/NPCs/Providence/ProvSpawnOffense.cs index f0368ab930..2ff63b224f 100644 --- a/NPCs/Providence/ProvSpawnOffense.cs +++ b/NPCs/Providence/ProvSpawnOffense.cs @@ -174,10 +174,10 @@ namespace CalamityMod.NPCs.Providence { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossA").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossA2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossA3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ProfanedGuardianBossA4").Type, 1f); } for (int k = 0; k < 30; k++) diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index a04cc34899..3333e75f95 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -1931,10 +1931,10 @@ namespace CalamityMod.NPCs.Providence if (Main.netMode != NetmodeID.Server) { float randomSpread = Main.rand.Next(-50, 50) / 100; - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/Providence").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/Providence2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/Providence3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Gores/Providence4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Providence").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Providence2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Providence3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("Providence4").Type, 1f); } NPC.position = NPC.Center; NPC.width = 400; diff --git a/NPCs/Ravager/RavagerBody.cs b/NPCs/Ravager/RavagerBody.cs index f4665dcd67..21cfb6d15a 100644 --- a/NPCs/Ravager/RavagerBody.cs +++ b/NPCs/Ravager/RavagerBody.cs @@ -677,11 +677,11 @@ namespace CalamityMod.NPCs.Ravager { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerBody").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerBody2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerBody3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerBody4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerBody5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerBody").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerBody2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerBody3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerBody4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerBody5").Type, 1f); } for (int k = 0; k < 50; k++) { diff --git a/NPCs/Ravager/RavagerClawLeft.cs b/NPCs/Ravager/RavagerClawLeft.cs index 65c138132f..f9bc553f1f 100644 --- a/NPCs/Ravager/RavagerClawLeft.cs +++ b/NPCs/Ravager/RavagerClawLeft.cs @@ -304,9 +304,9 @@ namespace CalamityMod.NPCs.Ravager { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerClawLeft").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerClawLeft2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerClawLeft3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerClawLeft").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerClawLeft2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerClawLeft3").Type, 1f); } } } diff --git a/NPCs/Ravager/RavagerClawRight.cs b/NPCs/Ravager/RavagerClawRight.cs index 25754030be..2ccce149b7 100644 --- a/NPCs/Ravager/RavagerClawRight.cs +++ b/NPCs/Ravager/RavagerClawRight.cs @@ -304,8 +304,8 @@ namespace CalamityMod.NPCs.Ravager { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerClawRight").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerClawRight2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerClawRight").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerClawRight2").Type, 1f); } } } diff --git a/NPCs/Ravager/RavagerHead2.cs b/NPCs/Ravager/RavagerHead2.cs index fbf9a9d441..0db208839a 100644 --- a/NPCs/Ravager/RavagerHead2.cs +++ b/NPCs/Ravager/RavagerHead2.cs @@ -199,9 +199,9 @@ namespace CalamityMod.NPCs.Ravager { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerHead").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerHead2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerHead3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerHead").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerHead2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerHead3").Type, 1f); } for (int k = 0; k < 20; k++) { diff --git a/NPCs/Ravager/RavagerLegLeft.cs b/NPCs/Ravager/RavagerLegLeft.cs index f2330cace0..e424e03ee6 100644 --- a/NPCs/Ravager/RavagerLegLeft.cs +++ b/NPCs/Ravager/RavagerLegLeft.cs @@ -82,8 +82,8 @@ namespace CalamityMod.NPCs.Ravager { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerLegLeft").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerLegLeft2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerLegLeft").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerLegLeft2").Type, 1f); } for (int k = 0; k < 20; k++) { diff --git a/NPCs/Ravager/RavagerLegRight.cs b/NPCs/Ravager/RavagerLegRight.cs index 6c8aeb00df..bca0e4449d 100644 --- a/NPCs/Ravager/RavagerLegRight.cs +++ b/NPCs/Ravager/RavagerLegRight.cs @@ -84,8 +84,8 @@ namespace CalamityMod.NPCs.Ravager { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerLegRight").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/ScavengerGores/ScavengerLegRight2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerLegRight").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("ScavengerLegRight2").Type, 1f); } for (int k = 0; k < 20; k++) { diff --git a/NPCs/Ravager/RockPillar.cs b/NPCs/Ravager/RockPillar.cs index 13c3e2ffbe..2e5cf3ffe1 100644 --- a/NPCs/Ravager/RockPillar.cs +++ b/NPCs/Ravager/RockPillar.cs @@ -170,12 +170,12 @@ namespace CalamityMod.NPCs.Ravager for (int i = 0; i < 2; i++) { Vector2 randomVelocity = NPC.velocity * Main.rand.NextFloat() * randomVelocityScale; - Gore.NewGore(NPC.position, NPC.velocity + randomVelocity, Mod.Find("Gores/ScavengerGores/RockPillar").Type, 1f); - Gore.NewGore(NPC.position + Vector2.UnitY * y, NPC.velocity + randomVelocity, Mod.Find("Gores/ScavengerGores/RockPillar2").Type, 1f); - Gore.NewGore(NPC.position + Vector2.UnitY * y * 2f, NPC.velocity + randomVelocity, Mod.Find("Gores/ScavengerGores/RockPillar3").Type, 1f); - Gore.NewGore(NPC.position + Vector2.UnitY * y * 3f, NPC.velocity + randomVelocity, Mod.Find("Gores/ScavengerGores/RockPillar4").Type, 1f); - Gore.NewGore(NPC.position + Vector2.UnitY * y * 4f, NPC.velocity + randomVelocity, Mod.Find("Gores/ScavengerGores/RockPillar5").Type, 1f); - Gore.NewGore(NPC.position + Vector2.UnitY * y * 5f, NPC.velocity + randomVelocity, Mod.Find("Gores/ScavengerGores/RockPillar6").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity + randomVelocity, Mod.Find("RockPillar").Type, 1f); + Gore.NewGore(NPC.position + Vector2.UnitY * y, NPC.velocity + randomVelocity, Mod.Find("RockPillar2").Type, 1f); + Gore.NewGore(NPC.position + Vector2.UnitY * y * 2f, NPC.velocity + randomVelocity, Mod.Find("RockPillar3").Type, 1f); + Gore.NewGore(NPC.position + Vector2.UnitY * y * 3f, NPC.velocity + randomVelocity, Mod.Find("RockPillar4").Type, 1f); + Gore.NewGore(NPC.position + Vector2.UnitY * y * 4f, NPC.velocity + randomVelocity, Mod.Find("RockPillar5").Type, 1f); + Gore.NewGore(NPC.position + Vector2.UnitY * y * 5f, NPC.velocity + randomVelocity, Mod.Find("RockPillar6").Type, 1f); } } } diff --git a/NPCs/Signus/Signus.cs b/NPCs/Signus/Signus.cs index b0692412b3..6024e48e7f 100644 --- a/NPCs/Signus/Signus.cs +++ b/NPCs/Signus/Signus.cs @@ -853,11 +853,11 @@ namespace CalamityMod.NPCs.Signus if (Main.netMode != NetmodeID.Server) { float randomSpread = Main.rand.Next(-200, 200) / 100; - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Signus").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Signus2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Signus3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Signus4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Gores/Signus5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Signus").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Signus2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Signus3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Signus4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity * randomSpread, Mod.Find("Signus5").Type, 1f); } } } diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 30ce885af1..64b575a55b 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -632,7 +632,7 @@ namespace CalamityMod.NPCs.SlimeGod }, ModContent.ItemType(), 1, 6, 8); // Gel always drops directly, even on Expert - npcLoot.Add(ItemID.Gel, 180, 250); + npcLoot.Add(ItemID.Gel, 1, 180, 250); // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) diff --git a/NPCs/StormWeaver/StormWeaverBody.cs b/NPCs/StormWeaver/StormWeaverBody.cs index 251f8c432d..bec4c352c5 100644 --- a/NPCs/StormWeaver/StormWeaverBody.cs +++ b/NPCs/StormWeaver/StormWeaverBody.cs @@ -111,9 +111,9 @@ namespace CalamityMod.NPCs.StormWeaver if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWArmorBody1").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWArmorBody2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWArmorBody3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWArmorBody1").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWArmorBody2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWArmorBody3").Type, NPC.scale); } CalamityGlobalNPC global = NPC.Calamity(); @@ -302,9 +302,9 @@ namespace CalamityMod.NPCs.StormWeaver { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWNudeBody1").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWNudeBody2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWNudeBody3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWNudeBody1").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWNudeBody2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWNudeBody3").Type, NPC.scale); } NPC.position.X = NPC.position.X + (NPC.width / 2); diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index c0c329555c..ad31a63096 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -177,7 +177,7 @@ namespace CalamityMod.NPCs.StormWeaver if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWArmorHead1").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWArmorHead1").Type, NPC.scale); } SoundEngine.PlaySound(SoundID.NPCDeath14, (int)NPC.Center.X, (int)NPC.Center.Y); @@ -692,8 +692,8 @@ namespace CalamityMod.NPCs.StormWeaver { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWNudeHead1").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWNudeHead2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWNudeHead1").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWNudeHead2").Type, NPC.scale); } NPC.position.X = NPC.position.X + (NPC.width / 2); diff --git a/NPCs/StormWeaver/StormWeaverTail.cs b/NPCs/StormWeaver/StormWeaverTail.cs index 6d54c54879..20e8a217c4 100644 --- a/NPCs/StormWeaver/StormWeaverTail.cs +++ b/NPCs/StormWeaver/StormWeaverTail.cs @@ -123,8 +123,8 @@ namespace CalamityMod.NPCs.StormWeaver if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWArmorTail1").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWArmorTail2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWArmorTail1").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWArmorTail2").Type, NPC.scale); } CalamityGlobalNPC global = NPC.Calamity(); @@ -304,8 +304,8 @@ namespace CalamityMod.NPCs.StormWeaver { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWNudeTail1").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SWNudeTail2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWNudeTail1").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SWNudeTail2").Type, NPC.scale); } NPC.position.X = NPC.position.X + (NPC.width / 2); diff --git a/NPCs/SulphurousSea/AnthozoanCrab.cs b/NPCs/SulphurousSea/AnthozoanCrab.cs index 6f8f776cd0..1b5d50fdce 100644 --- a/NPCs/SulphurousSea/AnthozoanCrab.cs +++ b/NPCs/SulphurousSea/AnthozoanCrab.cs @@ -212,9 +212,9 @@ namespace CalamityMod.NPCs.SulphurousSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/AnthozoanCrabGore").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/AnthozoanCrabGore2").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/AnthozoanCrabGore3").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AnthozoanCrabGore").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AnthozoanCrabGore2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("AnthozoanCrabGore3").Type, NPC.scale); } } } diff --git a/NPCs/SulphurousSea/BelchingCoral.cs b/NPCs/SulphurousSea/BelchingCoral.cs index 521c87923f..cb66930086 100644 --- a/NPCs/SulphurousSea/BelchingCoral.cs +++ b/NPCs/SulphurousSea/BelchingCoral.cs @@ -87,8 +87,8 @@ namespace CalamityMod.NPCs.SulphurousSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/BelchingCoralGore").Type, NPC.scale); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/AcidRain/BelchingCoralGore2").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BelchingCoralGore").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BelchingCoralGore2").Type, NPC.scale); } } } diff --git a/NPCs/SulphurousSea/Gnasher.cs b/NPCs/SulphurousSea/Gnasher.cs index 2f002b9761..97174a574b 100644 --- a/NPCs/SulphurousSea/Gnasher.cs +++ b/NPCs/SulphurousSea/Gnasher.cs @@ -127,8 +127,8 @@ namespace CalamityMod.NPCs.SulphurousSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Gnasher").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Gnasher2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gnasher").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gnasher2").Type, 1f); } } } diff --git a/NPCs/SulphurousSea/Trasher.cs b/NPCs/SulphurousSea/Trasher.cs index 511c910d0a..51760c54b4 100644 --- a/NPCs/SulphurousSea/Trasher.cs +++ b/NPCs/SulphurousSea/Trasher.cs @@ -350,8 +350,8 @@ namespace CalamityMod.NPCs.SulphurousSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Trasher").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Trasher2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Trasher").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Trasher2").Type, 1f); } } } diff --git a/NPCs/SunkenSea/BlindedAngler.cs b/NPCs/SunkenSea/BlindedAngler.cs index 70e1283ef6..96fe18810d 100644 --- a/NPCs/SunkenSea/BlindedAngler.cs +++ b/NPCs/SunkenSea/BlindedAngler.cs @@ -122,10 +122,10 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/BlindedAngler/BlindAnglerGore1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/BlindedAngler/BlindAnglerGore2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/BlindedAngler/BlindAnglerGore3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/BlindedAngler/BlindAnglerGore4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BlindAnglerGore1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BlindAnglerGore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BlindAnglerGore3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("BlindAnglerGore4").Type, 1f); } } } diff --git a/NPCs/SunkenSea/Clam.cs b/NPCs/SunkenSea/Clam.cs index 2554af1b92..4ae990f0f6 100644 --- a/NPCs/SunkenSea/Clam.cs +++ b/NPCs/SunkenSea/Clam.cs @@ -219,9 +219,9 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Clam/Clam1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Clam/Clam2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Clam/Clam3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Clam1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Clam2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Clam3").Type, 1f); } } } diff --git a/NPCs/SunkenSea/EutrophicRay.cs b/NPCs/SunkenSea/EutrophicRay.cs index ffd372dba9..ebaf8976c7 100644 --- a/NPCs/SunkenSea/EutrophicRay.cs +++ b/NPCs/SunkenSea/EutrophicRay.cs @@ -218,10 +218,10 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/EutrophicRay/RayGore1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/EutrophicRay/RayGore2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/EutrophicRay/RayGore3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/EutrophicRay/RayGore4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("RayGore1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("RayGore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("RayGore3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("RayGore4").Type, 1f); } } } diff --git a/NPCs/SunkenSea/GiantClam.cs b/NPCs/SunkenSea/GiantClam.cs index c0bc6a9acd..789e1ea2f7 100644 --- a/NPCs/SunkenSea/GiantClam.cs +++ b/NPCs/SunkenSea/GiantClam.cs @@ -381,11 +381,11 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GiantClam/GiantClam1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GiantClam/GiantClam2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GiantClam/GiantClam3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GiantClam/GiantClam4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/GiantClam/GiantClam5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GiantClam1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GiantClam2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GiantClam3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GiantClam4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("GiantClam5").Type, 1f); } } } diff --git a/NPCs/SunkenSea/PrismTurtle.cs b/NPCs/SunkenSea/PrismTurtle.cs index 463805b70a..51c6fddee3 100644 --- a/NPCs/SunkenSea/PrismTurtle.cs +++ b/NPCs/SunkenSea/PrismTurtle.cs @@ -155,11 +155,11 @@ namespace CalamityMod.NPCs.SunkenSea { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/PrismTurtle/PrismTurtleGore1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/PrismTurtle/PrismTurtleGore2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/PrismTurtle/PrismTurtleGore3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/PrismTurtle/PrismTurtleGore4").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/PrismTurtle/PrismTurtleGore5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("PrismTurtleGore1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("PrismTurtleGore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("PrismTurtleGore3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("PrismTurtleGore4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("PrismTurtleGore5").Type, 1f); } for (int k = 0; k < 25; k++) { diff --git a/NPCs/SunkenSea/SeaFloaty.cs b/NPCs/SunkenSea/SeaFloaty.cs index 2502a5beac..d9927f7071 100644 --- a/NPCs/SunkenSea/SeaFloaty.cs +++ b/NPCs/SunkenSea/SeaFloaty.cs @@ -146,9 +146,9 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SeaFloaty/SeaFloatyGore1").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SeaFloaty/SeaFloatyGore2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SeaFloaty/SeaFloatyGore3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SeaFloatyGore1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SeaFloatyGore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SeaFloatyGore3").Type, 1f); } } } diff --git a/NPCs/SunkenSea/SeaSerpent1.cs b/NPCs/SunkenSea/SeaSerpent1.cs index 9053be76d7..23782f5274 100644 --- a/NPCs/SunkenSea/SeaSerpent1.cs +++ b/NPCs/SunkenSea/SeaSerpent1.cs @@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SeaSerpent/SeaSerpentGore1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SeaSerpentGore1").Type, 1f); } } } diff --git a/NPCs/SunkenSea/SeaSerpent2.cs b/NPCs/SunkenSea/SeaSerpent2.cs index 9c565eb781..e1350cf30b 100644 --- a/NPCs/SunkenSea/SeaSerpent2.cs +++ b/NPCs/SunkenSea/SeaSerpent2.cs @@ -142,7 +142,7 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SeaSerpent/SeaSerpentGore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SeaSerpentGore2").Type, 1f); } } } diff --git a/NPCs/SunkenSea/SeaSerpent3.cs b/NPCs/SunkenSea/SeaSerpent3.cs index d765f19a2a..3910157a16 100644 --- a/NPCs/SunkenSea/SeaSerpent3.cs +++ b/NPCs/SunkenSea/SeaSerpent3.cs @@ -139,7 +139,7 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SeaSerpent/SeaSerpentGore3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SeaSerpentGore3").Type, 1f); } } } diff --git a/NPCs/SunkenSea/SeaSerpent4.cs b/NPCs/SunkenSea/SeaSerpent4.cs index 93de04328a..ca072374e6 100644 --- a/NPCs/SunkenSea/SeaSerpent4.cs +++ b/NPCs/SunkenSea/SeaSerpent4.cs @@ -139,7 +139,7 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SeaSerpent/SeaSerpentGore4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SeaSerpentGore4").Type, 1f); } } } diff --git a/NPCs/SunkenSea/SeaSerpent5.cs b/NPCs/SunkenSea/SeaSerpent5.cs index 64fd0fcd82..a06d2e1b1e 100644 --- a/NPCs/SunkenSea/SeaSerpent5.cs +++ b/NPCs/SunkenSea/SeaSerpent5.cs @@ -139,7 +139,7 @@ namespace CalamityMod.NPCs.SunkenSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/SeaSerpent/SeaSerpentGore5").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("SeaSerpentGore5").Type, 1f); } } } diff --git a/NPCs/SupremeCalamitas/BrimstoneHeart.cs b/NPCs/SupremeCalamitas/BrimstoneHeart.cs index 6189ee1679..1891bc3bfe 100644 --- a/NPCs/SupremeCalamitas/BrimstoneHeart.cs +++ b/NPCs/SupremeCalamitas/BrimstoneHeart.cs @@ -145,7 +145,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas for (int i = 1; i <= 2; i++) { Vector2 heartGoreVelocity = new Vector2((i == 1).ToDirectionInt() * 3f, Main.rand.NextFloat(-2f, 0f)); - Gore.NewGorePerfect(NPC.Center, heartGoreVelocity, Mod.Find($"Gores/SupremeCalamitas/BrimstoneHeart_Gore{i}").Type, NPC.scale); + Gore.NewGorePerfect(NPC.Center, heartGoreVelocity, Mod.Find($"BrimstoneHeart_Gore{i}").Type, NPC.scale); } } for (int i = 0; i < ChainEndpoints.Count; i++) diff --git a/NPCs/SupremeCalamitas/SCalWormArm.cs b/NPCs/SupremeCalamitas/SCalWormArm.cs index b647001cbb..95c7038490 100644 --- a/NPCs/SupremeCalamitas/SCalWormArm.cs +++ b/NPCs/SupremeCalamitas/SCalWormArm.cs @@ -202,11 +202,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas Vector2 armGoreSpawnPosition = Limbs[1].Center + Main.rand.NextVector2Circular(6f, 6f); Vector2 handGoreSpawnPosition = armGoreSpawnPosition + Main.rand.NextVector2Circular(6f, 6f); - Gore.NewGorePerfect(armGoreSpawnPosition, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"Gores/SupremeCalamitas/SepulcherArm_Gore").Type, NPC.scale); + Gore.NewGorePerfect(armGoreSpawnPosition, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"SepulcherArm_Gore").Type, NPC.scale); for (int i = 1; i <= 2; i++) - Gore.NewGorePerfect(forearmGoreSpawnPosition, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"Gores/SupremeCalamitas/SepulcherForearm_Gore{i}").Type, NPC.scale); + Gore.NewGorePerfect(forearmGoreSpawnPosition, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"SepulcherForearm_Gore{i}").Type, NPC.scale); for (int i = 1; i <= 2; i++) - Gore.NewGorePerfect(handGoreSpawnPosition, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"Gores/SupremeCalamitas/SepulcherHand_Gore{i}").Type, NPC.scale); + Gore.NewGorePerfect(handGoreSpawnPosition, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"SepulcherHand_Gore{i}").Type, NPC.scale); } } } diff --git a/NPCs/SupremeCalamitas/SCalWormBody.cs b/NPCs/SupremeCalamitas/SCalWormBody.cs index 2058194e8a..2714c9af76 100644 --- a/NPCs/SupremeCalamitas/SCalWormBody.cs +++ b/NPCs/SupremeCalamitas/SCalWormBody.cs @@ -168,7 +168,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas continue; Vector2 goreSpawnPosition = NPC.Center; - Gore.NewGorePerfect(goreSpawnPosition, Main.rand.NextVector2Circular(2f, 2f), Mod.Find($"Gores/SupremeCalamitas/SepulcherBody1_Gore{i}").Type, NPC.scale); + Gore.NewGorePerfect(goreSpawnPosition, Main.rand.NextVector2Circular(2f, 2f), Mod.Find($"SepulcherBody1_Gore{i}").Type, NPC.scale); } } else @@ -179,7 +179,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas continue; Vector2 goreSpawnPosition = NPC.Center; - Gore.NewGorePerfect(goreSpawnPosition, Main.rand.NextVector2Circular(2f, 2f), Mod.Find($"Gores/SupremeCalamitas/SepulcherBody2_Gore{i}").Type, NPC.scale); + Gore.NewGorePerfect(goreSpawnPosition, Main.rand.NextVector2Circular(2f, 2f), Mod.Find($"SepulcherBody2_Gore{i}").Type, NPC.scale); } } } diff --git a/NPCs/SupremeCalamitas/SCalWormHead.cs b/NPCs/SupremeCalamitas/SCalWormHead.cs index e87a69b632..e4adfcab4f 100644 --- a/NPCs/SupremeCalamitas/SCalWormHead.cs +++ b/NPCs/SupremeCalamitas/SCalWormHead.cs @@ -341,7 +341,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas goreSpawnPosition += NPC.velocity.SafeNormalize(Vector2.Zero).RotatedBy(MathHelper.PiOver4) * 16f; if (i == 3) goreSpawnPosition += NPC.velocity.SafeNormalize(Vector2.Zero).RotatedBy(-MathHelper.PiOver4) * 16f; - Gore.NewGorePerfect(goreSpawnPosition, NPC.velocity, Mod.Find($"Gores/SupremeCalamitas/SepulcherHead_Gore{i}").Type, NPC.scale); + Gore.NewGorePerfect(goreSpawnPosition, NPC.velocity, Mod.Find($"SepulcherHead_Gore{i}").Type, NPC.scale); } } } diff --git a/NPCs/SupremeCalamitas/SCalWormTail.cs b/NPCs/SupremeCalamitas/SCalWormTail.cs index a955757bf9..230b390a71 100644 --- a/NPCs/SupremeCalamitas/SCalWormTail.cs +++ b/NPCs/SupremeCalamitas/SCalWormTail.cs @@ -192,7 +192,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas Vector2 goreSpawnPosition = NPC.Center; if (i == 2) goreSpawnPosition -= (NPC.rotation - MathHelper.PiOver2).ToRotationVector2() * 20f; - Gore.NewGorePerfect(goreSpawnPosition, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"Gores/SupremeCalamitas/SepulcherTail_Gore{i}").Type, NPC.scale); + Gore.NewGorePerfect(goreSpawnPosition, Main.rand.NextVector2Circular(3f, 3f), Mod.Find($"SepulcherTail_Gore{i}").Type, NPC.scale); } } } diff --git a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs index 2f5a836685..16ae1c1cc3 100644 --- a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs +++ b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs @@ -172,7 +172,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (Main.netMode != NetmodeID.Server) { for (int i = 1; i <= 5; i++) - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find($"Gores/SoulSeekerSupremeGores/SupremeSoulSeeker_Gore{i}").Type, NPC.scale); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find($"SupremeSoulSeeker_Gore{i}").Type, NPC.scale); } } } diff --git a/NPCs/TownNPCs/SEAHOE.cs b/NPCs/TownNPCs/SEAHOE.cs index fe1ccfd1d6..06c03d5bd9 100644 --- a/NPCs/TownNPCs/SEAHOE.cs +++ b/NPCs/TownNPCs/SEAHOE.cs @@ -395,10 +395,10 @@ namespace CalamityMod.NPCs.TownNPCs { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Amidias/Amidias").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Amidias/Amidias2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Amidias/Amidias3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Amidias/Amidias4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Amidias").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Amidias2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Amidias3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Amidias4").Type, 1f); } } } diff --git a/NPCs/TownNPCs/THIEF.cs b/NPCs/TownNPCs/THIEF.cs index 010672fd0a..77a8bc2c35 100644 --- a/NPCs/TownNPCs/THIEF.cs +++ b/NPCs/TownNPCs/THIEF.cs @@ -373,10 +373,10 @@ namespace CalamityMod.NPCs.TownNPCs { if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Bandit/Bandit").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Bandit/Bandit2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Bandit/Bandit3").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Gores/Bandit/Bandit4").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Bandit").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Bandit2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Bandit3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("Bandit4").Type, 1f); } } } diff --git a/Projectiles/Boss/AresDeathBeamStart.cs b/Projectiles/Boss/AresDeathBeamStart.cs index 12028c245b..bfe596bf42 100644 --- a/Projectiles/Boss/AresDeathBeamStart.cs +++ b/Projectiles/Boss/AresDeathBeamStart.cs @@ -4,6 +4,7 @@ using CalamityMod.Projectiles.BaseProjectiles; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using System; using System.IO; using System.Linq; @@ -27,9 +28,9 @@ namespace CalamityMod.Projectiles.Boss public override float Lifetime => AresBody.deathrayDuration; public override Color LaserOverlayColor => new Color(250, 250, 250, 100); public override Color LightCastColor => Color.White; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/Projectiles/Boss/AresDeathBeamStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresDeathBeamMiddle").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresDeathBeamEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/Projectiles/Boss/AresDeathBeamStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresDeathBeamMiddle", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresDeathBeamEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { diff --git a/Projectiles/Boss/AresGaussNukeProjectile.cs b/Projectiles/Boss/AresGaussNukeProjectile.cs index bc76cd8584..cccc78b753 100644 --- a/Projectiles/Boss/AresGaussNukeProjectile.cs +++ b/Projectiles/Boss/AresGaussNukeProjectile.cs @@ -182,8 +182,8 @@ namespace CalamityMod.Projectiles.Boss if (Main.netMode != NetmodeID.Server) { // Nuke gores - Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("Gores/Ares/AresGaussNuke1").Type, 1f); - Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("Gores/Ares/AresGaussNuke3").Type, 1f); + Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("AresGaussNuke1").Type, 1f); + Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("AresGaussNuke3").Type, 1f); } // Create a bunch of lightning bolts in the sky diff --git a/Projectiles/Boss/AresLaserBeamStart.cs b/Projectiles/Boss/AresLaserBeamStart.cs index 0e4e9e8b90..589b90bbf2 100644 --- a/Projectiles/Boss/AresLaserBeamStart.cs +++ b/Projectiles/Boss/AresLaserBeamStart.cs @@ -9,6 +9,7 @@ using System.IO; using Terraria; using Terraria.Enums; using Terraria.ModLoader; +using ReLogic.Content; namespace CalamityMod.Projectiles.Boss { @@ -149,8 +150,8 @@ namespace CalamityMod.Projectiles.Boss return false; Texture2D beamStart = ModContent.Request(Texture).Value; - Texture2D beamMiddle = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresLaserBeamMiddle").Value; - Texture2D beamEnd = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresLaserBeamEnd").Value; + Texture2D beamMiddle = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresLaserBeamMiddle", AssetRequestMode.ImmediateLoad).Value; + Texture2D beamEnd = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresLaserBeamEnd", AssetRequestMode.ImmediateLoad).Value; float drawLength = Projectile.localAI[1]; Color color = new Color(250, 250, 250, 100); diff --git a/Projectiles/Boss/ArtemisLaserBeamStart.cs b/Projectiles/Boss/ArtemisLaserBeamStart.cs index 13f6e64675..96e41561ba 100644 --- a/Projectiles/Boss/ArtemisLaserBeamStart.cs +++ b/Projectiles/Boss/ArtemisLaserBeamStart.cs @@ -3,6 +3,7 @@ using CalamityMod.NPCs.ExoMechs.Artemis; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using System.IO; using System.Linq; using Terraria; @@ -23,8 +24,8 @@ namespace CalamityMod.Projectiles.Boss public override Color LaserOverlayColor => new Color(250, 180, 100, 100); public override Color LightCastColor => Color.White; public override Texture2D LaserBeginTexture => ModContent.Request(Texture).Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresLaserBeamMiddle").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresLaserBeamEnd").Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresLaserBeamMiddle", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/AresLaserBeamEnd", AssetRequestMode.ImmediateLoad).Value; public override string Texture => "CalamityMod/Projectiles/Boss/AresLaserBeamStart"; public override void SetStaticDefaults() diff --git a/Projectiles/Boss/BirbAura.cs b/Projectiles/Boss/BirbAura.cs index 4379c249b8..40ac18f563 100644 --- a/Projectiles/Boss/BirbAura.cs +++ b/Projectiles/Boss/BirbAura.cs @@ -6,6 +6,8 @@ using Terraria; using Terraria.Enums; using Terraria.ModLoader; using Terraria.Audio; +using ReLogic.Content; + namespace CalamityMod.Projectiles.Boss { public class BirbAura : ModProjectile @@ -130,8 +132,8 @@ namespace CalamityMod.Projectiles.Boss return false; } Texture2D texture = ModContent.Request(Texture).Value; - Texture2D texture2 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BirbAuraStart").Value; - Texture2D texture3 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BirbAuraEnd").Value; + Texture2D texture2 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BirbAuraStart", AssetRequestMode.ImmediateLoad).Value; + Texture2D texture3 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BirbAuraEnd", AssetRequestMode.ImmediateLoad).Value; float num223 = Projectile.localAI[1]; //length of laser Color color44 = new Color(128, 128, 128, 0); Vector2 vector = Projectile.Center - Main.screenPosition; diff --git a/Projectiles/Boss/BrimstoneRay.cs b/Projectiles/Boss/BrimstoneRay.cs index 9cd7bf7c21..032b2ab976 100644 --- a/Projectiles/Boss/BrimstoneRay.cs +++ b/Projectiles/Boss/BrimstoneRay.cs @@ -10,6 +10,8 @@ using System.IO; using Terraria; using Terraria.Enums; using Terraria.ModLoader; +using ReLogic.Content; + namespace CalamityMod.Projectiles.Boss { public class BrimstoneRay : ModProjectile @@ -163,8 +165,8 @@ namespace CalamityMod.Projectiles.Boss return false; } Texture2D texture2D19 = ModContent.Request(Texture).Value; - Texture2D texture2D20 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BrimstoneRayMid").Value; - Texture2D texture2D21 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BrimstoneRayEnd").Value; + Texture2D texture2D20 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BrimstoneRayMid", AssetRequestMode.ImmediateLoad).Value; + Texture2D texture2D21 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BrimstoneRayEnd", AssetRequestMode.ImmediateLoad).Value; float num223 = Projectile.localAI[1]; //length of laser Color color44 = new Color(255, 255, 255, 0) * 0.9f; Vector2 vector = Projectile.Center - Main.screenPosition; diff --git a/Projectiles/Boss/BrimstoneTargetRay.cs b/Projectiles/Boss/BrimstoneTargetRay.cs index 715fa1396d..9ff2584abf 100644 --- a/Projectiles/Boss/BrimstoneTargetRay.cs +++ b/Projectiles/Boss/BrimstoneTargetRay.cs @@ -1,6 +1,7 @@ using CalamityMod.NPCs.BrimstoneElemental; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using System.IO; using Terraria; using Terraria.Enums; @@ -115,8 +116,8 @@ namespace CalamityMod.Projectiles.Boss return false; } Texture2D texture2D19 = ModContent.Request(Texture).Value; - Texture2D texture2D20 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BrimstoneRayMid").Value; - Texture2D texture2D21 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BrimstoneRayEnd").Value; + Texture2D texture2D20 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BrimstoneRayMid", AssetRequestMode.ImmediateLoad).Value; + Texture2D texture2D21 = ModContent.Request("CalamityMod/ExtraTextures/Lasers/BrimstoneRayEnd", AssetRequestMode.ImmediateLoad).Value; float num223 = Projectile.localAI[1]; //length of laser Color color44 = new Color(255, 255, 255, 0) * 0.9f; Vector2 vector = Projectile.Center - Main.screenPosition; diff --git a/Projectiles/Boss/InfernadoRevenge.cs b/Projectiles/Boss/InfernadoRevenge.cs index 6cebc8f208..022314a32d 100644 --- a/Projectiles/Boss/InfernadoRevenge.cs +++ b/Projectiles/Boss/InfernadoRevenge.cs @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Boss TornadoDrawer = new PrimitiveTrail(_ => Projectile.width * 0.5f + 16f, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:Bordernado"]); GameShaders.Misc["CalamityMod:Bordernado"].UseSaturation(-0.2f); - GameShaders.Misc["CalamityMod:Bordernado"].SetShaderTexture(ModContent.Request("Terraria/Images/Misc/Perlin").Value); + GameShaders.Misc["CalamityMod:Bordernado"].SetShaderTexture(ModContent.Request("Terraria/Images/Misc/Perlin")); Vector2[] drawPoints = new Vector2[5]; Vector2 upwardAscent = Vector2.UnitY * TornadoHeight; Vector2 downwardOffset = Vector2.UnitY * Projectile.height / (drawPoints.Length + 1); diff --git a/Projectiles/Boss/ProvidenceHolyRay.cs b/Projectiles/Boss/ProvidenceHolyRay.cs index 4df31bbf4d..92c46535de 100644 --- a/Projectiles/Boss/ProvidenceHolyRay.cs +++ b/Projectiles/Boss/ProvidenceHolyRay.cs @@ -5,6 +5,7 @@ using CalamityMod.NPCs.Providence; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using System; using System.IO; using Terraria; @@ -144,9 +145,12 @@ namespace CalamityMod.Projectiles.Boss return false; } bool dayTime = Main.dayTime && !CalamityWorld.malice; - Texture2D texture2D19 = dayTime ? ModContent.Request(Texture).Value : ModContent.Request("CalamityMod/Projectiles/Boss/ProvidenceHolyRayNight").Value; - Texture2D texture2D20 = dayTime ? ModContent.Request("CalamityMod/ExtraTextures/Lasers/ProvidenceHolyRayMid").Value : ModContent.Request("CalamityMod/ExtraTextures/Lasers/ProvidenceHolyRayMidNight").Value; - Texture2D texture2D21 = dayTime ? ModContent.Request("CalamityMod/ExtraTextures/Lasers/ProvidenceHolyRayEnd").Value : ModContent.Request("CalamityMod/ExtraTextures/Lasers/ProvidenceHolyRayEndNight").Value; + Texture2D texture2D19 = dayTime ? ModContent.Request(Texture, AssetRequestMode.ImmediateLoad).Value : + ModContent.Request("CalamityMod/Projectiles/Boss/ProvidenceHolyRayNight", AssetRequestMode.ImmediateLoad).Value; + Texture2D texture2D20 = dayTime ? ModContent.Request("CalamityMod/ExtraTextures/Lasers/ProvidenceHolyRayMid", AssetRequestMode.ImmediateLoad).Value : + ModContent.Request("CalamityMod/ExtraTextures/Lasers/ProvidenceHolyRayMidNight", AssetRequestMode.ImmediateLoad).Value; + Texture2D texture2D21 = dayTime ? ModContent.Request("CalamityMod/ExtraTextures/Lasers/ProvidenceHolyRayEnd", AssetRequestMode.ImmediateLoad).Value : + ModContent.Request("CalamityMod/ExtraTextures/Lasers/ProvidenceHolyRayEndNight", AssetRequestMode.ImmediateLoad).Value; float num223 = Projectile.localAI[1]; //length of laser Color color44 = dayTime ? new Color(250, 250, 250, 0) : new Color(175, 175, 250, 0) * 0.9f; Vector2 vector = Projectile.Center - Main.screenPosition; diff --git a/Projectiles/Boss/ThanatosBeamStart.cs b/Projectiles/Boss/ThanatosBeamStart.cs index 10392b945f..3c675b6593 100644 --- a/Projectiles/Boss/ThanatosBeamStart.cs +++ b/Projectiles/Boss/ThanatosBeamStart.cs @@ -12,6 +12,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; +using ReLogic.Content; namespace CalamityMod.Projectiles.Boss { @@ -31,8 +32,8 @@ namespace CalamityMod.Projectiles.Boss public override Color LaserOverlayColor => new(250, 250, 250, 100); public override Color LightCastColor => Color.White; public override Texture2D LaserBeginTexture => ModContent.Request(Texture).Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/ThanatosBeamMiddle").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/ThanatosBeamEnd").Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/ThanatosBeamMiddle", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/ThanatosBeamEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { diff --git a/Projectiles/DraedonsArsenal/MountedScannerLaser.cs b/Projectiles/DraedonsArsenal/MountedScannerLaser.cs index 2bbd1a3161..20fa6573b4 100644 --- a/Projectiles/DraedonsArsenal/MountedScannerLaser.cs +++ b/Projectiles/DraedonsArsenal/MountedScannerLaser.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using System; using System.Linq; using Terraria; @@ -22,9 +23,9 @@ namespace CalamityMod.Projectiles.DraedonsArsenal public override float Lifetime => 70f; public override Color LaserOverlayColor => Color.Red; public override Color LightCastColor => LaserOverlayColor; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { DisplayName.SetDefault("Deathray"); diff --git a/Projectiles/DraedonsArsenal/PhaseslayerProjectile.cs b/Projectiles/DraedonsArsenal/PhaseslayerProjectile.cs index 386ba48cec..6253f4a961 100644 --- a/Projectiles/DraedonsArsenal/PhaseslayerProjectile.cs +++ b/Projectiles/DraedonsArsenal/PhaseslayerProjectile.cs @@ -307,7 +307,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal if (TrailDrawer is null) TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"]); - GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/SwordSlashTexture").Value); + GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/SwordSlashTexture")); Player player = Main.player[Projectile.owner]; float swingAngularDirection = Math.Sign(MathHelper.WrapAngle(Projectile.rotation - Projectile.oldRot[1])); diff --git a/Projectiles/Enemy/CragmawBeam.cs b/Projectiles/Enemy/CragmawBeam.cs index 5fa2785860..63b8353b20 100644 --- a/Projectiles/Enemy/CragmawBeam.cs +++ b/Projectiles/Enemy/CragmawBeam.cs @@ -2,6 +2,7 @@ using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using System; using System.IO; using Terraria; @@ -151,9 +152,9 @@ namespace CalamityMod.Projectiles.Enemy { return false; } - Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/CragmawMireBeamBegin").Value; - Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/CragmawMireBeamMid").Value; - Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/CragmawMireBeamEnd").Value; + Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/CragmawMireBeamBegin", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/CragmawMireBeamMid", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/CragmawMireBeamEnd", AssetRequestMode.ImmediateLoad).Value; float laserLength = Projectile.localAI[1]; Color drawColor = new Color(1f, 1f, 1f) * 0.9f; diff --git a/Projectiles/Enemy/GammaBeam.cs b/Projectiles/Enemy/GammaBeam.cs index b3f144ec29..904f769d25 100644 --- a/Projectiles/Enemy/GammaBeam.cs +++ b/Projectiles/Enemy/GammaBeam.cs @@ -2,6 +2,7 @@ using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using System; using System.IO; using Terraria; @@ -146,9 +147,9 @@ namespace CalamityMod.Projectiles.Enemy { return false; } - Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/GammaBeamBegin").Value; - Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/GammaBeamMid").Value; - Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/GammaBeamEnd").Value; + Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/GammaBeamBegin", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/GammaBeamMid", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/GammaBeamEnd", AssetRequestMode.ImmediateLoad).Value; float laserLength = Projectile.localAI[1]; Color drawColor = new Color(1f, 1f, 1f) * 0.9f; diff --git a/Projectiles/Magic/ArtAttackStar.cs b/Projectiles/Magic/ArtAttackStar.cs index c40cb4d5b3..73d6113217 100644 --- a/Projectiles/Magic/ArtAttackStar.cs +++ b/Projectiles/Magic/ArtAttackStar.cs @@ -254,7 +254,7 @@ namespace CalamityMod.Projectiles.Magic Vector2 origin = texture.Size() * 0.5f; Main.spriteBatch.EnterShaderRegion(); - GameShaders.Misc["CalamityMod:ArtAttack"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/FabstaffStreak").Value); + GameShaders.Misc["CalamityMod:ArtAttack"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/FabstaffStreak")); GameShaders.Misc["CalamityMod:ArtAttack"].Apply(); TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 100); diff --git a/Projectiles/Magic/ClamorNoctusWyvern.cs b/Projectiles/Magic/ClamorNoctusWyvern.cs index 640128d8f5..2ecfcd026d 100644 --- a/Projectiles/Magic/ClamorNoctusWyvern.cs +++ b/Projectiles/Magic/ClamorNoctusWyvern.cs @@ -52,11 +52,11 @@ namespace CalamityMod.Projectiles.Magic } if (Main.netMode != NetmodeID.Server) { - int head = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("Gores/WyvernWeapons/ClamorNoctusHead").Type); + int head = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("ClamorNoctusHead").Type); Main.gore[head].timeLeft /= 10; - int body = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("Gores/WyvernWeapons/ClamorNoctusBody").Type); + int body = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("ClamorNoctusBody").Type); Main.gore[body].timeLeft /= 10; - int tail = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("Gores/WyvernWeapons/ClamorNoctusTail").Type); + int tail = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("ClamorNoctusTail").Type); Main.gore[tail].timeLeft /= 10; } } diff --git a/Projectiles/Magic/DeathhailBeam.cs b/Projectiles/Magic/DeathhailBeam.cs index 8fff503912..b5a9256593 100644 --- a/Projectiles/Magic/DeathhailBeam.cs +++ b/Projectiles/Magic/DeathhailBeam.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -18,9 +19,9 @@ namespace CalamityMod.Projectiles.Magic public override float Lifetime => 20f; public override Color LaserOverlayColor => CalamityUtils.ColorSwap(startingColor, secondColor, 0.9f); public override Color LightCastColor => LaserOverlayColor; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { diff --git a/Projectiles/Magic/EternityHex.cs b/Projectiles/Magic/EternityHex.cs index adaaca6d5b..493dd0cc1a 100644 --- a/Projectiles/Magic/EternityHex.cs +++ b/Projectiles/Magic/EternityHex.cs @@ -239,7 +239,7 @@ namespace CalamityMod.Projectiles.Magic if (LemniscateDrawer is null) LemniscateDrawer = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction, null, GameShaders.Misc["CalamityMod:TrailStreak"]); - GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/EternityStreak").Value); + GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/EternityStreak")); LemniscateDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 84); return false; } diff --git a/Projectiles/Magic/FabBolt.cs b/Projectiles/Magic/FabBolt.cs index dcf9e5e22c..1f98cd84ff 100644 --- a/Projectiles/Magic/FabBolt.cs +++ b/Projectiles/Magic/FabBolt.cs @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Magic if (TrailDrawer is null) TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, PrimitiveTrail.RigidPointRetreivalFunction, GameShaders.Misc["CalamityMod:TrailStreak"]); - GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/FabstaffStreak").Value); + GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/FabstaffStreak")); TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 80, Projectile.oldRot); return false; } diff --git a/Projectiles/Magic/FabRay.cs b/Projectiles/Magic/FabRay.cs index 3ae6fca55a..1da47762d8 100644 --- a/Projectiles/Magic/FabRay.cs +++ b/Projectiles/Magic/FabRay.cs @@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Magic if (TrailDrawer is null) TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]); - GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 32); return false; } diff --git a/Projectiles/Magic/NebulaElementalBeam.cs b/Projectiles/Magic/NebulaElementalBeam.cs index c434fb664e..ce6699fc57 100644 --- a/Projectiles/Magic/NebulaElementalBeam.cs +++ b/Projectiles/Magic/NebulaElementalBeam.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using Terraria; using Terraria.ModLoader; @@ -12,9 +13,9 @@ namespace CalamityMod.Projectiles.Magic public override float MaxLaserLength => 1000f; public override float Lifetime => 30f; public override Color LightCastColor => Color.White; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd", AssetRequestMode.ImmediateLoad).Value; public const float UniversalAngularSpeed = MathHelper.Pi / 400f; diff --git a/Projectiles/Magic/SolarElementalBeam.cs b/Projectiles/Magic/SolarElementalBeam.cs index 8b25abfabe..00f3bfd60a 100644 --- a/Projectiles/Magic/SolarElementalBeam.cs +++ b/Projectiles/Magic/SolarElementalBeam.cs @@ -2,6 +2,7 @@ using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using Terraria; using Terraria.ModLoader; @@ -13,9 +14,9 @@ namespace CalamityMod.Projectiles.Magic public override float MaxLaserLength => 1000f; public override float Lifetime => 30f; public override Color LightCastColor => Color.White; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { diff --git a/Projectiles/Magic/StardustElementalBeam.cs b/Projectiles/Magic/StardustElementalBeam.cs index 7d53c28c0e..7c127f1fce 100644 --- a/Projectiles/Magic/StardustElementalBeam.cs +++ b/Projectiles/Magic/StardustElementalBeam.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -13,9 +14,9 @@ namespace CalamityMod.Projectiles.Magic public override float MaxLaserLength => 1000f; public override float Lifetime => 30f; public override Color LightCastColor => Color.White; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { diff --git a/Projectiles/Magic/TerraBeam.cs b/Projectiles/Magic/TerraBeam.cs index a7d31a19e6..ce67e547f7 100644 --- a/Projectiles/Magic/TerraBeam.cs +++ b/Projectiles/Magic/TerraBeam.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using Terraria; using Terraria.ModLoader; @@ -12,9 +13,9 @@ namespace CalamityMod.Projectiles.Magic public override float MaxLaserLength => 1200f; public override float Lifetime => 30f; public override Color LightCastColor => Color.White; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd", AssetRequestMode.ImmediateLoad).Value; public ref float ShardCooldown => ref Projectile.ai[1]; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; diff --git a/Projectiles/Magic/WyvernProjectile.cs b/Projectiles/Magic/WyvernProjectile.cs index 7091fca994..3eb4e56901 100644 --- a/Projectiles/Magic/WyvernProjectile.cs +++ b/Projectiles/Magic/WyvernProjectile.cs @@ -51,11 +51,11 @@ namespace CalamityMod.Projectiles.Magic } if (Main.netMode != NetmodeID.Server) { - int head = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("Gores/WyvernWeapons/WyvernHead").Type); + int head = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("WyvernHead").Type); Main.gore[head].timeLeft /= 10; - int body = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("Gores/WyvernWeapons/WyvernBody").Type); + int body = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("WyvernBody").Type); Main.gore[body].timeLeft /= 10; - int tail = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("Gores/WyvernWeapons/WyvernTail").Type); + int tail = Gore.NewGore(Projectile.Center, Projectile.velocity * 0.8f, Mod.Find("WyvernTail").Type); Main.gore[tail].timeLeft /= 10; } } diff --git a/Projectiles/Melee/EonBolt.cs b/Projectiles/Melee/EonBolt.cs index 4c54f9b710..c4f44e43de 100644 --- a/Projectiles/Melee/EonBolt.cs +++ b/Projectiles/Melee/EonBolt.cs @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Melee if (TrailDrawer is null) TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]); - GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 30); Texture2D texture = Request("CalamityMod/Projectiles/Melee/GalaxiaBolt").Value; diff --git a/Projectiles/Melee/PrismTooth.cs b/Projectiles/Melee/PrismTooth.cs index fcf11c5439..5966919c56 100644 --- a/Projectiles/Melee/PrismTooth.cs +++ b/Projectiles/Melee/PrismTooth.cs @@ -132,7 +132,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.oldPos[1] = oldPosition; Main.spriteBatch.EnterShaderRegion(); - GameShaders.Misc["CalamityMod:PrismaticStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:PrismaticStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f + generalOffset - Main.screenPosition, 65); Main.spriteBatch.ExitShaderRegion(); diff --git a/Projectiles/Melee/PrismaticBeam.cs b/Projectiles/Melee/PrismaticBeam.cs index a29f23c848..cefd910b4c 100644 --- a/Projectiles/Melee/PrismaticBeam.cs +++ b/Projectiles/Melee/PrismaticBeam.cs @@ -7,6 +7,7 @@ using Terraria.Enums; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; +using ReLogic.Content; namespace CalamityMod.Projectiles.Melee { @@ -49,9 +50,9 @@ namespace CalamityMod.Projectiles.Melee public override float Lifetime => 300f; public override float MaxScale => 1.5f; public override float MaxLaserLength => 2200f; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { diff --git a/Projectiles/Melee/RendingNeedle.cs b/Projectiles/Melee/RendingNeedle.cs index 8178a34012..b60e8e1f51 100644 --- a/Projectiles/Melee/RendingNeedle.cs +++ b/Projectiles/Melee/RendingNeedle.cs @@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Melee if (TrailDrawer is null) TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]); - GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Utils.SafeNormalize(Projectile.velocity, Vector2.Zero) * 30.5f - Main.screenPosition, 30); Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, Color.Lerp(lightColor, Color.White, 0.5f), Projectile.rotation, texture.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); diff --git a/Projectiles/Melee/TaintedBladeSlasher.cs b/Projectiles/Melee/TaintedBladeSlasher.cs index ccac49ee3b..f69d1d4164 100644 --- a/Projectiles/Melee/TaintedBladeSlasher.cs +++ b/Projectiles/Melee/TaintedBladeSlasher.cs @@ -242,7 +242,7 @@ namespace CalamityMod.Projectiles.Melee // Draw the trail behind the blade. if (Owner.itemAnimation > 0) { - GameShaders.Misc["CalamityMod:FadingSolidTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/BladeTrailUVMap").Value); + GameShaders.Misc["CalamityMod:FadingSolidTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/BladeTrailUVMap")); GameShaders.Misc["CalamityMod:FadingSolidTrail"].Shader.Parameters["shouldFlip"].SetValue((float)(Owner.direction == -1).ToInt()); Vector2 bottom = BladeCenterPosition - BladeOffsetDirection * BladeFrame.Height * 0.5f - Main.screenPosition; diff --git a/Projectiles/Melee/ViolenceSlashProjectile.cs b/Projectiles/Melee/ViolenceSlashProjectile.cs index 82653bee55..04a5a24507 100644 --- a/Projectiles/Melee/ViolenceSlashProjectile.cs +++ b/Projectiles/Melee/ViolenceSlashProjectile.cs @@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Melee if (SliceAfterimageDrawer is null) SliceAfterimageDrawer = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction, specialShader: GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"]); - GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/SwordSlashTexture").Value); + GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/SwordSlashTexture")); Texture2D spearProjectile = ModContent.Request(Texture).Value; diff --git a/Projectiles/Melee/ViolenceThrownProjectile.cs b/Projectiles/Melee/ViolenceThrownProjectile.cs index 528e43306c..9adfade565 100644 --- a/Projectiles/Melee/ViolenceThrownProjectile.cs +++ b/Projectiles/Melee/ViolenceThrownProjectile.cs @@ -198,7 +198,7 @@ namespace CalamityMod.Projectiles.Melee if (StreakDrawer is null) StreakDrawer = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]); - GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/FabstaffStreak").Value); + GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/FabstaffStreak")); Texture2D spearProjectile = ModContent.Request(Texture).Value; diff --git a/Projectiles/Ranged/PrismaticEnergyBlast.cs b/Projectiles/Ranged/PrismaticEnergyBlast.cs index 3f858f9079..26cb3cbaff 100644 --- a/Projectiles/Ranged/PrismaticEnergyBlast.cs +++ b/Projectiles/Ranged/PrismaticEnergyBlast.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using Terraria; using Terraria.ModLoader; @@ -19,9 +20,9 @@ namespace CalamityMod.Projectiles.Ranged public override float Lifetime => 50f; public override Color LaserOverlayColor => Color.White; public override Color LightCastColor => LaserOverlayColor; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/PrismLaserStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/PrismLaserMid").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/PrismLaserEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/PrismLaserStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/PrismLaserMid", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/PrismLaserEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { diff --git a/Projectiles/Ranged/TelluricGlareArrow.cs b/Projectiles/Ranged/TelluricGlareArrow.cs index bf57061621..3393c1969c 100644 --- a/Projectiles/Ranged/TelluricGlareArrow.cs +++ b/Projectiles/Ranged/TelluricGlareArrow.cs @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Ranged if (TrailDrawer is null) TrailDrawer = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]); - GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/TelluricGlareStreak").Value); + GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/TelluricGlareStreak")); Vector2 overallOffset = Projectile.Size * 0.5f - Main.screenPosition; overallOffset += Projectile.velocity * 1.4f; TrailDrawer.Draw(Projectile.oldPos, overallOffset, 92); // 58 diff --git a/Projectiles/Ranged/TheMaelstromShark.cs b/Projectiles/Ranged/TheMaelstromShark.cs index d4cca08fc5..c37d92211b 100644 --- a/Projectiles/Ranged/TheMaelstromShark.cs +++ b/Projectiles/Ranged/TheMaelstromShark.cs @@ -71,9 +71,9 @@ namespace CalamityMod.Projectiles.Ranged SoundEngine.PlaySound(SoundID.NPCDeath1, Projectile.Center); if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("Gores/MaelstromReaperShark1").Type, Projectile.scale); - Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("Gores/MaelstromReaperShark2").Type, Projectile.scale); - Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("Gores/MaelstromReaperShark3").Type, Projectile.scale); + Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("MaelstromReaperShark1").Type, Projectile.scale); + Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("MaelstromReaperShark2").Type, Projectile.scale); + Gore.NewGore(Projectile.position, Projectile.velocity, Mod.Find("MaelstromReaperShark3").Type, Projectile.scale); } for (int i = 0; i < 12; i++) { @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Ranged if (LightningTrailDrawer is null) LightningTrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]); - GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); LightningTrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 60); Main.EntitySpriteDraw(texture, drawPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, direction, 0); return false; diff --git a/Projectiles/Ranged/UltimaRay.cs b/Projectiles/Ranged/UltimaRay.cs index eb305e6a27..dfd3955418 100644 --- a/Projectiles/Ranged/UltimaRay.cs +++ b/Projectiles/Ranged/UltimaRay.cs @@ -1,6 +1,7 @@ using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using System; using Terraria; using Terraria.ModLoader; @@ -20,9 +21,9 @@ namespace CalamityMod.Projectiles.Ranged public override float Lifetime => 50f; public override Color LaserOverlayColor => Main.hslToRgb((float)Math.Sin(Main.GlobalTimeWrappedHourly * 2.3f + HueOffset) * 0.5f + 0.5f, 1f, 0.775f) * Utils.GetLerpValue(Lifetime, 0f, Time, true); public override Color LightCastColor => LaserOverlayColor; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayMid", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { diff --git a/Projectiles/Rogue/RefractionRotorProjectile.cs b/Projectiles/Rogue/RefractionRotorProjectile.cs index 4c795b0e25..6bcc1c69b2 100644 --- a/Projectiles/Rogue/RefractionRotorProjectile.cs +++ b/Projectiles/Rogue/RefractionRotorProjectile.cs @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.netMode != NetmodeID.Server) { - int goreType = Mod.Find("Gores/PrismShurikenBlade").Type; + int goreType = Mod.Find("PrismShurikenBlade").Type; for (int i = 0; i < 6; i++) { Vector2 shootDirection = (MathHelper.TwoPi * i / 6f + Projectile.rotation + MathHelper.PiOver2).ToRotationVector2(); diff --git a/Projectiles/Rogue/ScarletDevilProjectile.cs b/Projectiles/Rogue/ScarletDevilProjectile.cs index f1719005fb..5aff8b4a4d 100644 --- a/Projectiles/Rogue/ScarletDevilProjectile.cs +++ b/Projectiles/Rogue/ScarletDevilProjectile.cs @@ -178,7 +178,7 @@ namespace CalamityMod.Projectiles.Rogue if (TrailDrawer is null) TrailDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, PrimitiveTrail.RigidPointRetreivalFunction, GameShaders.Misc["CalamityMod:OverpoweredTouhouSpearShader"]); - GameShaders.Misc["CalamityMod:OverpoweredTouhouSpearShader"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:OverpoweredTouhouSpearShader"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); TrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition + Projectile.velocity.SafeNormalize(Vector2.Zero) * 86f, 60); Texture2D spearTexture = ModContent.Request(Texture).Value; diff --git a/Projectiles/Rogue/SeraphimBeamLarge.cs b/Projectiles/Rogue/SeraphimBeamLarge.cs index 0c6814288c..81f84f7653 100644 --- a/Projectiles/Rogue/SeraphimBeamLarge.cs +++ b/Projectiles/Rogue/SeraphimBeamLarge.cs @@ -6,6 +6,7 @@ using System.Linq; using Terraria; using Terraria.ModLoader; using Terraria.Audio; +using ReLogic.Content; namespace CalamityMod.Projectiles.Rogue { @@ -33,9 +34,9 @@ namespace CalamityMod.Projectiles.Rogue } } public override Color LightCastColor => Color.Transparent; - public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/Projectiles/Rogue/SeraphimBeamLarge").Value; - public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/SeraphimBeamLargeMiddle").Value; - public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/SeraphimBeamLargeEnd").Value; + public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/Projectiles/Rogue/SeraphimBeamLarge", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserMiddleTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/SeraphimBeamLargeMiddle", AssetRequestMode.ImmediateLoad).Value; + public override Texture2D LaserEndTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/SeraphimBeamLargeEnd", AssetRequestMode.ImmediateLoad).Value; public override void SetStaticDefaults() { diff --git a/Projectiles/Summon/AndromedaDeathRay.cs b/Projectiles/Summon/AndromedaDeathRay.cs index 49a5f8dfdf..acb43562d4 100644 --- a/Projectiles/Summon/AndromedaDeathRay.cs +++ b/Projectiles/Summon/AndromedaDeathRay.cs @@ -6,6 +6,8 @@ using Terraria; using Terraria.ID; using Terraria.Enums; using Terraria.ModLoader; +using ReLogic.Content; + namespace CalamityMod.Projectiles.Summon { // TODO -- Make this use BaseLaserbeamProjectile @@ -151,9 +153,9 @@ namespace CalamityMod.Projectiles.Summon { return false; } - Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AndromedaDeathrayBegin").Value; - Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AndromedaDeathrayMid").Value; - Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AndromedaDeathrayEnd").Value; + Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AndromedaDeathrayBegin", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AndromedaDeathrayMid", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/AndromedaDeathrayEnd", AssetRequestMode.ImmediateLoad).Value; float laserLength = Projectile.localAI[1]; Color drawColor = new Color(1f, 1f, 1f) * 0.9f; diff --git a/Projectiles/Summon/EndoBeam.cs b/Projectiles/Summon/EndoBeam.cs index 35f9f638d4..734bcab70b 100644 --- a/Projectiles/Summon/EndoBeam.cs +++ b/Projectiles/Summon/EndoBeam.cs @@ -1,5 +1,6 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using System; using System.IO; using Terraria; @@ -140,9 +141,9 @@ namespace CalamityMod.Projectiles.Summon { return false; } - Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/LaserBegin").Value; - Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/LaserMid").Value; - Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/LaserEnd").Value; + Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/LaserBegin", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/LaserMid", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/LaserEnd", AssetRequestMode.ImmediateLoad).Value; float laserLength = Projectile.localAI[1]; Color drawColor = new Color(1f, 1f, 1f) * 0.9f; diff --git a/Projectiles/Summon/MidnightSunBeam.cs b/Projectiles/Summon/MidnightSunBeam.cs index 82eaaa5f65..7bff9a5bbf 100644 --- a/Projectiles/Summon/MidnightSunBeam.cs +++ b/Projectiles/Summon/MidnightSunBeam.cs @@ -6,6 +6,8 @@ using Terraria; using Terraria.ID; using Terraria.Enums; using Terraria.ModLoader; +using ReLogic.Content; + namespace CalamityMod.Projectiles.Summon { public class MidnightSunBeam : ModProjectile @@ -110,9 +112,9 @@ namespace CalamityMod.Projectiles.Summon { return false; } - Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/MidnightSunBeamBegin").Value; - Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/MidnightSunBeamMid").Value; - Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/MidnightSunBeamEnd").Value; + Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/MidnightSunBeamBegin", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/MidnightSunBeamMid", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/MidnightSunBeamEnd", AssetRequestMode.ImmediateLoad).Value; float laserLength = Projectile.localAI[1]; Color drawColor = new Color(1f, 1f, 1f) * 0.9f; diff --git a/Projectiles/Summon/UniverseSplitterHugeBeam.cs b/Projectiles/Summon/UniverseSplitterHugeBeam.cs index 0082ed7c8e..85478e7298 100644 --- a/Projectiles/Summon/UniverseSplitterHugeBeam.cs +++ b/Projectiles/Summon/UniverseSplitterHugeBeam.cs @@ -8,6 +8,7 @@ using Terraria.ModLoader; using CalamityMod.Buffs.DamageOverTime; using Terraria.GameContent.Events; using Terraria.Audio; +using ReLogic.Content; namespace CalamityMod.Projectiles.Summon { @@ -132,8 +133,8 @@ namespace CalamityMod.Projectiles.Summon { return false; } - Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterHugeBeamEnd").Value; - Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterHugeBeamMid").Value; + Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterHugeBeamEnd", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterHugeBeamMid", AssetRequestMode.ImmediateLoad).Value; float laserLength = Projectile.localAI[1]; Color drawColor = new Color(1f, 1f, 1f) * 0.9f; diff --git a/Projectiles/Summon/UniverseSplitterSmallBeam.cs b/Projectiles/Summon/UniverseSplitterSmallBeam.cs index 9f28fc512f..b868312156 100644 --- a/Projectiles/Summon/UniverseSplitterSmallBeam.cs +++ b/Projectiles/Summon/UniverseSplitterSmallBeam.cs @@ -6,6 +6,8 @@ using Terraria; using Terraria.ID; using Terraria.Enums; using Terraria.ModLoader; +using ReLogic.Content; + namespace CalamityMod.Projectiles.Summon { public class UniverseSplitterSmallBeam : ModProjectile @@ -99,9 +101,9 @@ namespace CalamityMod.Projectiles.Summon { return false; } - Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterSmallBeamBegin").Value; - Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterSmallBeamMid").Value; - Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterSmallBeamEnd").Value; + Texture2D laserTailTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterSmallBeamBegin", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserBodyTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterSmallBeamMid", AssetRequestMode.ImmediateLoad).Value; + Texture2D laserHeadTexture = ModContent.Request("CalamityMod/ExtraTextures/Lasers/UniverseSplitterSmallBeamEnd", AssetRequestMode.ImmediateLoad).Value; float laserLength = Projectile.localAI[1]; Color drawColor = new Color(1f, 1f, 1f) * 0.9f; diff --git a/Projectiles/Typeless/GemTechArmorGem.cs b/Projectiles/Typeless/GemTechArmorGem.cs index 5d3606eed5..f35826c967 100644 --- a/Projectiles/Typeless/GemTechArmorGem.cs +++ b/Projectiles/Typeless/GemTechArmorGem.cs @@ -142,7 +142,7 @@ namespace CalamityMod.Projectiles.Typeless FlameTrailDrawer = new PrimitiveTrail(TrailWidth, TrailColor, null, GameShaders.Misc["CalamityMod:ImpFlameTrail"]); // Prepare the flame trail shader with its map texture. - GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); Texture2D texture; switch (Variant) diff --git a/Projectiles/Typeless/MythrilFlare.cs b/Projectiles/Typeless/MythrilFlare.cs index 2f9d87a1a5..39c2d0514d 100644 --- a/Projectiles/Typeless/MythrilFlare.cs +++ b/Projectiles/Typeless/MythrilFlare.cs @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Typeless FlameTrailDrawer = new PrimitiveTrail(TrailWidth, TrailColor, null, GameShaders.Misc["CalamityMod:ImpFlameTrail"]); // Prepare the flame trail shader with its map texture. - GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/EternityStreak").Value); + GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/EternityStreak")); FlameTrailDrawer.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 74); return false; } diff --git a/Projectiles/Typeless/SuicideBomberDemon.cs b/Projectiles/Typeless/SuicideBomberDemon.cs index 0a9315b90c..d6df421214 100644 --- a/Projectiles/Typeless/SuicideBomberDemon.cs +++ b/Projectiles/Typeless/SuicideBomberDemon.cs @@ -229,7 +229,7 @@ namespace CalamityMod.Projectiles.Typeless FlameTrailDrawer = new PrimitiveTrail(FlameTrailWidthFunction, FlameTrailColorFunction, null, GameShaders.Misc["CalamityMod:ImpFlameTrail"]); // Prepare the flame trail shader with its map texture. - GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak").Value); + GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/ScarletDevilStreak")); Texture2D texture = ModContent.Request("CalamityMod/Projectiles/Typeless/SuicideBomberDemon").Value; Texture2D glowmask = ModContent.Request("CalamityMod/Projectiles/Typeless/SuicideBomberDemonGlowmask").Value; diff --git a/Scenes/ExoMechBackgroundScene.cs b/Scenes/ExoMechBackgroundScene.cs index b9bee153eb..913fd5d43e 100644 --- a/Scenes/ExoMechBackgroundScene.cs +++ b/Scenes/ExoMechBackgroundScene.cs @@ -1,5 +1,6 @@ using CalamityMod.Skies; using Terraria; +using Terraria.Graphics.Effects; using Terraria.ModLoader; namespace CalamityMod.Systems @@ -13,7 +14,12 @@ namespace CalamityMod.Systems public override void SpecialVisuals(Player player) { - player.ManageSpecialBiomeVisuals("CalamityMod:ExoMechs", IsSceneEffectActive(player)); + bool useExoMechs = IsSceneEffectActive(player); + player.ManageSpecialBiomeVisuals("CalamityMod:ExoMechs", useExoMechs); + if (useExoMechs) + SkyManager.Instance.Activate("CalamityMod:ExoMechs", player.Center); + else + SkyManager.Instance.Deactivate("CalamityMod:ExoMechs"); } } } diff --git a/Sounds/NPCKilled/AstrumDeusDeath.cs b/Sounds/NPCKilled/AstrumDeusDeath.cs index 87bb3b9feb..ef887eda0a 100644 --- a/Sounds/NPCKilled/AstrumDeusDeath.cs +++ b/Sounds/NPCKilled/AstrumDeusDeath.cs @@ -1,4 +1,4 @@ -using Terraria.Audio; +using Terraria.Audio; using Terraria.Audio; using Terraria.Audio; using Microsoft.Xna.Framework.Audio; @@ -7,7 +7,7 @@ using Terraria.ModLoader; namespace CalamityMod.Sounds.NPCKilled { - public class AstralBeaconUse : ModSound + public class AstrumDeusDeath : ModSound { public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan) { diff --git a/Systems/WorldgenManagementSystem.cs b/Systems/WorldgenManagementSystem.cs index 39b57009d1..be1fea77fb 100644 --- a/Systems/WorldgenManagementSystem.cs +++ b/Systems/WorldgenManagementSystem.cs @@ -205,8 +205,7 @@ namespace CalamityMod.Systems // An Astral Meteor always falls at the beginning of Hardmode. public override void ModifyHardmodeTasks(List tasks) { - // Yes, this internal identifier is misspelled in vanilla. - int announceIndex = tasks.FindIndex(match => match.Name == "Hardmode Announcment"); + int announceIndex = tasks.FindIndex(match => match.Name == "Hardmode Announcement"); // Insert the Astral biome generation right before the final hardmode announcement. tasks.Insert(announceIndex, new PassLegacy("AstralMeteor", (progress, config) => diff --git a/Tiles/Abyss/SulphurousColumn.cs b/Tiles/Abyss/SulphurousColumn.cs index b1fa565ab3..5a8db43e89 100644 --- a/Tiles/Abyss/SulphurousColumn.cs +++ b/Tiles/Abyss/SulphurousColumn.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Tiles.Abyss { Gore.NewGore(new Vector2(i, j) * 16f, Vector2.One.RotatedByRandom(MathHelper.TwoPi) * WorldGen.genRand.NextFloat(1.4f, 3.2f), - Mod.Find($"Gores/SulphSeaGen/SulphurousRockGore{WorldGen.genRand.Next(3) + 1}").Type); + Mod.Find($"SulphurousRockGore{WorldGen.genRand.Next(3) + 1}").Type); } } } diff --git a/Tiles/CalamityGlobalTile.cs b/Tiles/CalamityGlobalTile.cs index cf334680ce..81bca74bc5 100644 --- a/Tiles/CalamityGlobalTile.cs +++ b/Tiles/CalamityGlobalTile.cs @@ -188,8 +188,8 @@ namespace CalamityMod.Tiles for (int k = 0; k < Main.rand.Next(1, 2 + 1); k++) { - Gore.NewGore(new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find("Gores/SulphSeaGen/AbyssPotGore1").Type); - Gore.NewGore(new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find("Gores/SulphSeaGen/AbyssPotGore2").Type); + Gore.NewGore(new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find("AbyssPotGore1").Type); + Gore.NewGore(new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find("AbyssPotGore2").Type); } } else if (type == ModContent.TileType()) @@ -198,8 +198,8 @@ namespace CalamityMod.Tiles for (int k = 0; k < Main.rand.Next(1, 2 + 1); k++) { - Gore.NewGore(new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find("Gores/SulphSeaGen/SulphPotGore1").Type); - Gore.NewGore(new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find("Gores/SulphSeaGen/SulphPotGore2").Type); + Gore.NewGore(new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find("SulphPotGore1").Type); + Gore.NewGore(new Vector2(i, j) * 16, Main.rand.NextVector2CircularEdge(3f, 3f), Mod.Find("SulphPotGore2").Type); } } else if (type == TileID.DemonAltar && Main.hardMode) diff --git a/Tiles/Plates/Chaosplate.cs b/Tiles/Plates/Chaosplate.cs index f0dd7b5264..a2fb8e0e1b 100644 --- a/Tiles/Plates/Chaosplate.cs +++ b/Tiles/Plates/Chaosplate.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Tiles.Plates { PulseTexture = ModContent.Request("CalamityMod/Tiles/Plates/ChaosplatePulse", AssetRequestMode.ImmediateLoad).Value; PulseColors = new Color[PulseTexture.Width]; - PulseTexture.GetData(PulseColors); + Main.QueueMainThreadAction(() => PulseTexture.GetData(PulseColors)); GlowTexture = ModContent.Request("CalamityMod/Tiles/Plates/ChaosplateGlow", AssetRequestMode.ImmediateLoad).Value; } Main.tileSolid[Type] = true; diff --git a/Tiles/Plates/Cinderplate.cs b/Tiles/Plates/Cinderplate.cs index a7dc92bdfe..90e38211cb 100644 --- a/Tiles/Plates/Cinderplate.cs +++ b/Tiles/Plates/Cinderplate.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.Plates { PulseTexture = ModContent.Request("CalamityMod/Tiles/Plates/CinderplatePulse", AssetRequestMode.ImmediateLoad).Value; PulseColors = new Color[PulseTexture.Width]; - PulseTexture.GetData(PulseColors); + Main.QueueMainThreadAction(() => PulseTexture.GetData(PulseColors)); GlowTexture = ModContent.Request("CalamityMod/Tiles/Plates/CinderplateGlow", AssetRequestMode.ImmediateLoad).Value; } Main.tileSolid[Type] = true; diff --git a/Tiles/Plates/Elumplate.cs b/Tiles/Plates/Elumplate.cs index 7b6fdbe8f3..ba16c9cdae 100644 --- a/Tiles/Plates/Elumplate.cs +++ b/Tiles/Plates/Elumplate.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.Plates { PulseTexture = ModContent.Request("CalamityMod/Tiles/Plates/ElumplatePulse", AssetRequestMode.ImmediateLoad).Value; PulseColors = new Color[PulseTexture.Width]; - PulseTexture.GetData(PulseColors); + Main.QueueMainThreadAction(() => PulseTexture.GetData(PulseColors)); GlowTexture = ModContent.Request("CalamityMod/Tiles/Plates/ElumplateGlow", AssetRequestMode.ImmediateLoad).Value; } Main.tileSolid[Type] = true; diff --git a/Tiles/Plates/Navyplate.cs b/Tiles/Plates/Navyplate.cs index 0010eae5af..d3f1895795 100644 --- a/Tiles/Plates/Navyplate.cs +++ b/Tiles/Plates/Navyplate.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.Plates { PulseTexture = ModContent.Request("CalamityMod/Tiles/Plates/NavyplatePulse", AssetRequestMode.ImmediateLoad).Value; PulseColors = new Color[PulseTexture.Width]; - PulseTexture.GetData(PulseColors); + Main.QueueMainThreadAction(() => PulseTexture.GetData(PulseColors)); GlowTexture = ModContent.Request("CalamityMod/Tiles/Plates/NavyplateGlow", AssetRequestMode.ImmediateLoad).Value; } Main.tileSolid[Type] = true; diff --git a/Tiles/Plates/PlagueContainmentCells.cs b/Tiles/Plates/PlagueContainmentCells.cs index a2aa9c8045..8668db8d95 100644 --- a/Tiles/Plates/PlagueContainmentCells.cs +++ b/Tiles/Plates/PlagueContainmentCells.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Tiles.Plates { PulseTexture = ModContent.Request("CalamityMod/Tiles/Plates/PlagueContainmentCellsPulse", AssetRequestMode.ImmediateLoad).Value; PulseColors = new Color[PulseTexture.Width]; - PulseTexture.GetData(PulseColors); + Main.QueueMainThreadAction(() => PulseTexture.GetData(PulseColors)); GlowTexture = ModContent.Request("CalamityMod/Tiles/Plates/PlagueContainmentCellsGlow", AssetRequestMode.ImmediateLoad).Value; } Main.tileSolid[Type] = true; diff --git a/Utilities/DrawingUtils.cs b/Utilities/DrawingUtils.cs index e69fa76ff8..d8324dcfa2 100644 --- a/Utilities/DrawingUtils.cs +++ b/Utilities/DrawingUtils.cs @@ -1,5 +1,6 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using ReLogic.Graphics; using System; using System.Collections.Generic; @@ -550,7 +551,7 @@ namespace CalamityMod } // Cached for efficiency purposes. - internal static readonly FieldInfo UImageFieldMisc = typeof(MiscShaderData).GetField("_uImage", BindingFlags.NonPublic | BindingFlags.Instance); + internal static readonly FieldInfo UImageFieldMisc = typeof(MiscShaderData).GetField("_uImage1", BindingFlags.NonPublic | BindingFlags.Instance); internal static readonly FieldInfo UImageFieldArmor = typeof(ArmorShaderData).GetField("_uImage", BindingFlags.NonPublic | BindingFlags.Instance); /// @@ -558,9 +559,9 @@ namespace CalamityMod /// /// The shader to bind the texture to. /// The texture to bind. - public static MiscShaderData SetShaderTexture(this MiscShaderData shader, Texture2D texture) + public static MiscShaderData SetShaderTexture(this MiscShaderData shader, Asset texture) { - UImageFieldMisc.SetValue(shader, new Ref(texture)); + UImageFieldMisc.SetValue(shader, texture); return shader; } @@ -569,9 +570,9 @@ namespace CalamityMod /// /// The shader to bind the texture to. /// The texture to bind. - public static ArmorShaderData SetShaderTexture(this ArmorShaderData shader, Texture2D texture) + public static ArmorShaderData SetShaderTextureArmor(this ArmorShaderData shader, Asset texture) { - UImageFieldArmor.SetValue(shader, new Ref(texture)); + UImageFieldArmor.SetValue(shader, texture); return shader; } diff --git a/Waters/AbyssWater.cs b/Waters/AbyssWater.cs index 8529f66c66..a6d848a409 100644 --- a/Waters/AbyssWater.cs +++ b/Waters/AbyssWater.cs @@ -7,7 +7,7 @@ namespace CalamityMod.Waters { public override int ChooseWaterfallStyle() { - return ModContent.Find("CalamityMod/Waters/AbyssWaterflow").Slot; + return ModContent.Find("CalamityMod/AbyssWaterflow").Slot; } public override int GetSplashDust() diff --git a/Waters/AstralWater.cs b/Waters/AstralWater.cs index be30c14135..75ef019ee3 100644 --- a/Waters/AstralWater.cs +++ b/Waters/AstralWater.cs @@ -7,7 +7,7 @@ namespace CalamityMod.Waters { public override int ChooseWaterfallStyle() { - return ModContent.Find("CalamityMod/Waters/AstralWaterflow").Slot; + return ModContent.Find("CalamityMod/AstralWaterflow").Slot; } public override int GetSplashDust() @@ -17,7 +17,7 @@ namespace CalamityMod.Waters public override int GetDropletGore() { - return ModContent.Find("CalamityMod/Gores/AstralWaterDroplet").Type; + return ModContent.Find("CalamityMod/AstralWaterDroplet").Type; } public override Color BiomeHairColor() diff --git a/Waters/CragsLavaStyle.cs b/Waters/CragsLavaStyle.cs index 6682a92601..8208101505 100644 --- a/Waters/CragsLavaStyle.cs +++ b/Waters/CragsLavaStyle.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Waters public override bool ChooseLavaStyle() => Main.LocalPlayer.Calamity().ZoneCalamity; - public override int ChooseWaterfallStyle() => ModContent.Find("CalamityMod/Waters/CragsLavaflow").Slot; + public override int ChooseWaterfallStyle() => ModContent.Find("CalamityMod/CragsLavaflow").Slot; public override int GetSplashDust() => 0; diff --git a/Waters/SulphuricWater.cs b/Waters/SulphuricWater.cs index bb8d15fdda..2e3de550c8 100644 --- a/Waters/SulphuricWater.cs +++ b/Waters/SulphuricWater.cs @@ -7,7 +7,7 @@ namespace CalamityMod.Waters { public override int ChooseWaterfallStyle() { - return ModContent.Find("CalamityMod/Waters/SulphuricWaterflow").Slot; + return ModContent.Find("CalamityMod/SulphuricWaterflow").Slot; } public override int GetSplashDust() diff --git a/Waters/SunkenSeaWater.cs b/Waters/SunkenSeaWater.cs index ca2057d6c2..6d37df53a9 100644 --- a/Waters/SunkenSeaWater.cs +++ b/Waters/SunkenSeaWater.cs @@ -7,7 +7,7 @@ namespace CalamityMod.Waters { public override int ChooseWaterfallStyle() { - return ModContent.Find("CalamityMod/Waters/SunkenSeaWaterflow").Slot; + return ModContent.Find("CalamityMod/SunkenSeaWaterflow").Slot; } public override int GetSplashDust()