From 3adf8138382dcdeb06d0fc58f37864d66a8d52e4 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Fri, 14 Jul 2023 15:23:08 -0500 Subject: [PATCH] Phantoplasm > Polterplasm --- CalPlayer/CalamityPlayer.cs | 4 ++-- Dusts/CalamityDusts.cs | 2 +- Items/Accessories/EldritchSoulArtifact.cs | 2 +- Items/Accessories/StatisNinjaBelt.cs | 2 +- Items/CalamityGlobalItemLoot.cs | 2 +- Items/Dyes/{PhantoplasmDye.cs => PolterplasmDye.cs} | 8 +++++--- .../Dyes/{PhantoplasmDye.png => PolterplasmDye.png} | Bin Items/Materials/AscendantSpiritEssence.cs | 2 +- Items/Materials/BloodstoneCore.cs | 2 +- Items/Materials/{Phantoplasm.cs => Polterplasm.cs} | 4 +++- .../Materials/{Phantoplasm.png => Polterplasm.png} | Bin Items/PermanentBoosters/PhantomHeart.cs | 2 +- Items/Potions/SupremeManaPotion.cs | 2 +- Items/SummonItems/CosmicWorm.cs | 2 +- Items/SummonItems/NecroplasmicBeacon.cs | 2 +- Items/TreasureBags/PolterghastBag.cs | 2 +- Items/Weapons/Magic/Fabstaff.cs | 2 +- Items/Weapons/Magic/StaffofBlushie.cs | 2 +- Items/Weapons/Melee/IridescentExcalibur.cs | 1 + Items/Weapons/Ranged/Phangasm.cs | 2 +- Items/Weapons/Ranged/Seadragon.cs | 2 +- Items/Weapons/Rogue/PhantasmalRuin.cs | 2 +- Items/Weapons/Rogue/TimeBolt.cs | 2 +- .../en-US/Mods.CalamityMod.Items.Dyes.hjson | 4 ++-- .../en-US/Mods.CalamityMod.Items.Materials.hjson | 4 ++-- NPCs/CalamityGlobalNPCLoot.cs | 2 +- NPCs/NormalNPCs/OverloadedSoldier.cs | 8 ++++---- NPCs/NormalNPCs/PhantomSpirit.cs | 8 ++++---- NPCs/NormalNPCs/PhantomSpiritL.cs | 8 ++++---- NPCs/NormalNPCs/PhantomSpiritM.cs | 8 ++++---- NPCs/NormalNPCs/PhantomSpiritS.cs | 8 ++++---- NPCs/Polterghast/PhantomFuckYou.cs | 2 +- NPCs/Polterghast/PolterPhantom.cs | 2 +- NPCs/Polterghast/Polterghast.cs | 8 ++++---- Projectiles/Magic/SmallSpirit.cs | 10 +++++----- 35 files changed, 64 insertions(+), 59 deletions(-) rename Items/Dyes/{PhantoplasmDye.cs => PolterplasmDye.cs} (84%) rename Items/Dyes/{PhantoplasmDye.png => PolterplasmDye.png} (100%) rename Items/Materials/{Phantoplasm.cs => Polterplasm.cs} (90%) rename Items/Materials/{Phantoplasm.png => Polterplasm.png} (100%) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 7976db12da..9581470458 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -2709,7 +2709,7 @@ namespace CalamityMod.CalPlayer SoundEngine.PlaySound(BloodflareHeadRanged.ActivationSound, Player.Center); for (int d = 0; d < 64; d++) { - int dust = Dust.NewDust(new Vector2(Player.position.X, Player.position.Y + 16f), Player.width, Player.height - 16, (int)CalamityDusts.Phantoplasm, 0f, 0f, 0, default, 1f); + int dust = Dust.NewDust(new Vector2(Player.position.X, Player.position.Y + 16f), Player.width, Player.height - 16, (int)CalamityDusts.Polterplasm, 0f, 0f, 0, default, 1f); Main.dust[dust].velocity *= 3f; Main.dust[dust].scale *= 1.15f; } @@ -2719,7 +2719,7 @@ namespace CalamityMod.CalPlayer Vector2 source = Vector2.Normalize(Player.velocity) * new Vector2((float)Player.width / 2f, (float)Player.height) * 0.75f; source = source.RotatedBy((double)((float)(d - (dustAmt / 2 - 1)) * MathHelper.TwoPi / (float)dustAmt), default) + Player.Center; Vector2 dustVel = source - Player.Center; - int phanto = Dust.NewDust(source + dustVel, 0, 0, (int)CalamityDusts.Phantoplasm, dustVel.X * 1.5f, dustVel.Y * 1.5f, 100, default, 1.4f); + int phanto = Dust.NewDust(source + dustVel, 0, 0, (int)CalamityDusts.Polterplasm, dustVel.X * 1.5f, dustVel.Y * 1.5f, 100, default, 1.4f); Main.dust[phanto].noGravity = true; Main.dust[phanto].noLight = true; Main.dust[phanto].velocity = dustVel; diff --git a/Dusts/CalamityDusts.cs b/Dusts/CalamityDusts.cs index f894ef9f72..702f83fc3c 100644 --- a/Dusts/CalamityDusts.cs +++ b/Dusts/CalamityDusts.cs @@ -9,7 +9,7 @@ SulfurousSeaAcid = 75, Brimstone = 235, Ectoplasm = 180, - Phantoplasm = 60, + Polterplasm = 60, Plague = 46, ProfanedFire = 244, Nightwither = 185, diff --git a/Items/Accessories/EldritchSoulArtifact.cs b/Items/Accessories/EldritchSoulArtifact.cs index c0d4c05fdd..6ce853aca8 100644 --- a/Items/Accessories/EldritchSoulArtifact.cs +++ b/Items/Accessories/EldritchSoulArtifact.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Accessories CreateRecipe(). AddIngredient(25). AddIngredient(25). - AddIngredient(5). + AddIngredient(5). AddTile(TileID.DemonAltar). Register(); } diff --git a/Items/Accessories/StatisNinjaBelt.cs b/Items/Accessories/StatisNinjaBelt.cs index 4bc9f40c24..e6999438a6 100644 --- a/Items/Accessories/StatisNinjaBelt.cs +++ b/Items/Accessories/StatisNinjaBelt.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Accessories AddIngredient(ItemID.MasterNinjaGear). AddIngredient(ItemID.FrogGear). AddIngredient(50). - AddIngredient(5). + AddIngredient(5). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs index 9aa685845c..43a2861c81 100644 --- a/Items/CalamityGlobalItemLoot.cs +++ b/Items/CalamityGlobalItemLoot.cs @@ -309,7 +309,7 @@ namespace CalamityMod.Items case ItemID.DungeonFishingCrate: case ItemID.DungeonFishingCrateHard: loot.AddIf(() => NPC.downedPlantBoss, ItemID.Ectoplasm, 10, 1, 5); // 10% 1-5 Ectoplasm - loot.AddIf(() => DownedBossSystem.downedPolterghast, ModContent.ItemType(), 10, 1, 5); // 10% 1-5 Phantoplasm + loot.AddIf(() => DownedBossSystem.downedPolterghast, ModContent.ItemType(), 10, 1, 5); // 10% 1-5 Polterplasm break; case ItemID.JungleFishingCrate: diff --git a/Items/Dyes/PhantoplasmDye.cs b/Items/Dyes/PolterplasmDye.cs similarity index 84% rename from Items/Dyes/PhantoplasmDye.cs rename to Items/Dyes/PolterplasmDye.cs index 1749b0a840..3841428464 100644 --- a/Items/Dyes/PhantoplasmDye.cs +++ b/Items/Dyes/PolterplasmDye.cs @@ -9,10 +9,12 @@ using ReLogic.Content; namespace CalamityMod.Items.Dyes { - public class PhantoplasmDye : BaseDye + [LegacyName("PhantoplasmDye")] + public class PolterplasmDye : BaseDye { - public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref(Mod.Assets.Request("Effects/Dyes/PhantoplasmDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass"). + public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref(Mod.Assets.Request("Effects/Dyes/PolterplasmDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass"). UseColor(new Color(245, 143, 182)).UseSecondaryColor(new Color(119, 238, 255)).UseImage("Images/Misc/Perlin"); + public override void SafeSetStaticDefaults() { Item.ResearchUnlockCount = 3; @@ -28,7 +30,7 @@ namespace CalamityMod.Items.Dyes { CreateRecipe(2). AddIngredient(ItemID.BottledWater, 2). - AddIngredient(3). + AddIngredient(3). AddTile(TileID.DyeVat). Register(); } diff --git a/Items/Dyes/PhantoplasmDye.png b/Items/Dyes/PolterplasmDye.png similarity index 100% rename from Items/Dyes/PhantoplasmDye.png rename to Items/Dyes/PolterplasmDye.png diff --git a/Items/Materials/AscendantSpiritEssence.cs b/Items/Materials/AscendantSpiritEssence.cs index f39e8348e0..db0a2a70ed 100644 --- a/Items/Materials/AscendantSpiritEssence.cs +++ b/Items/Materials/AscendantSpiritEssence.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Materials public override void AddRecipes() { CreateRecipe(). - AddIngredient(2). + AddIngredient(2). AddIngredient(5). AddIngredient(5). AddIngredient(2). diff --git a/Items/Materials/BloodstoneCore.cs b/Items/Materials/BloodstoneCore.cs index 2957a696ad..1c74a7bd0d 100644 --- a/Items/Materials/BloodstoneCore.cs +++ b/Items/Materials/BloodstoneCore.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Materials CreateRecipe(2). AddIngredient(5). AddIngredient(). - AddIngredient(). + AddIngredient(). AddTile(TileID.AdamantiteForge). Register(); } diff --git a/Items/Materials/Phantoplasm.cs b/Items/Materials/Polterplasm.cs similarity index 90% rename from Items/Materials/Phantoplasm.cs rename to Items/Materials/Polterplasm.cs index 1a3e43ebbf..b976bece02 100644 --- a/Items/Materials/Phantoplasm.cs +++ b/Items/Materials/Polterplasm.cs @@ -6,9 +6,11 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Materials { - public class Phantoplasm : ModItem, ILocalizedModType + [LegacyName("Phantoplasm")] + public class Polterplasm : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Materials"; + public override void SetStaticDefaults() { Item.ResearchUnlockCount = 25; diff --git a/Items/Materials/Phantoplasm.png b/Items/Materials/Polterplasm.png similarity index 100% rename from Items/Materials/Phantoplasm.png rename to Items/Materials/Polterplasm.png diff --git a/Items/PermanentBoosters/PhantomHeart.cs b/Items/PermanentBoosters/PhantomHeart.cs index e28300c69e..92c959f711 100644 --- a/Items/PermanentBoosters/PhantomHeart.cs +++ b/Items/PermanentBoosters/PhantomHeart.cs @@ -70,7 +70,7 @@ namespace CalamityMod.Items.PermanentBoosters { CreateRecipe(). AddIngredient(5). - AddIngredient(25). + AddIngredient(25). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Items/Potions/SupremeManaPotion.cs b/Items/Potions/SupremeManaPotion.cs index 249e2ffc51..581ee3f289 100644 --- a/Items/Potions/SupremeManaPotion.cs +++ b/Items/Potions/SupremeManaPotion.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Potions { CreateRecipe(15). AddIngredient(ItemID.SuperManaPotion, 15). - AddIngredient(). + AddIngredient(). AddTile(TileID.Bottles). Register() .DisableDecraft(); diff --git a/Items/SummonItems/CosmicWorm.cs b/Items/SummonItems/CosmicWorm.cs index 21df78b0d2..879f20c269 100644 --- a/Items/SummonItems/CosmicWorm.cs +++ b/Items/SummonItems/CosmicWorm.cs @@ -68,7 +68,7 @@ namespace CalamityMod.Items.SummonItems CreateRecipe(). AddIngredient(ItemID.LunarBar, 40). AddIngredient(10). - AddIngredient(40). + AddIngredient(40). AddTile(TileID.LunarCraftingStation). Register() .DisableDecraft(); diff --git a/Items/SummonItems/NecroplasmicBeacon.cs b/Items/SummonItems/NecroplasmicBeacon.cs index e21a1d73b6..70b6bfdf97 100644 --- a/Items/SummonItems/NecroplasmicBeacon.cs +++ b/Items/SummonItems/NecroplasmicBeacon.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Items.SummonItems { CreateRecipe(). AddRecipeGroup("Wood", 25). - AddIngredient(50). + AddIngredient(50). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Items/TreasureBags/PolterghastBag.cs b/Items/TreasureBags/PolterghastBag.cs index 6aa96b6805..c8dc0e1ae3 100644 --- a/Items/TreasureBags/PolterghastBag.cs +++ b/Items/TreasureBags/PolterghastBag.cs @@ -66,7 +66,7 @@ namespace CalamityMod.Items.TreasureBags // Materials itemLoot.Add(ModContent.ItemType(), 1, 10, 20); - itemLoot.Add(ModContent.ItemType(), 1, 40, 50); + itemLoot.Add(ModContent.ItemType(), 1, 40, 50); // Weapons itemLoot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, new int[] diff --git a/Items/Weapons/Magic/Fabstaff.cs b/Items/Weapons/Magic/Fabstaff.cs index 685efc196c..518c973d80 100644 --- a/Items/Weapons/Magic/Fabstaff.cs +++ b/Items/Weapons/Magic/Fabstaff.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Magic { CreateRecipe(). AddIngredient(ItemID.RainbowRod). - AddIngredient(10). + AddIngredient(10). AddIngredient(5). AddTile(). Register(); diff --git a/Items/Weapons/Magic/StaffofBlushie.cs b/Items/Weapons/Magic/StaffofBlushie.cs index d57fae231d..16dbfa42f5 100644 --- a/Items/Weapons/Magic/StaffofBlushie.cs +++ b/Items/Weapons/Magic/StaffofBlushie.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Magic { CreateRecipe(). AddIngredient(ItemID.SapphireStaff). - AddIngredient(10). + AddIngredient(10). AddIngredient(5). AddTile(). Register(); diff --git a/Items/Weapons/Melee/IridescentExcalibur.cs b/Items/Weapons/Melee/IridescentExcalibur.cs index d474aa3634..30079ad282 100644 --- a/Items/Weapons/Melee/IridescentExcalibur.cs +++ b/Items/Weapons/Melee/IridescentExcalibur.cs @@ -11,6 +11,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Melee { + [LegacyName("ElementalExcalibur")] public class IridescentExcalibur : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; diff --git a/Items/Weapons/Ranged/Phangasm.cs b/Items/Weapons/Ranged/Phangasm.cs index f8a09f23db..0f2a7cd606 100644 --- a/Items/Weapons/Ranged/Phangasm.cs +++ b/Items/Weapons/Ranged/Phangasm.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Items.Weapons.Ranged CreateRecipe(). AddIngredient(ItemID.Phantasm). AddIngredient(8). - AddIngredient(20). + AddIngredient(20). AddIngredient(20). AddTile(). Register(); diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index d607ff61a1..5e382de81d 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -102,7 +102,7 @@ namespace CalamityMod.Items.Weapons.Ranged { CreateRecipe(). AddIngredient(). - AddIngredient(9). + AddIngredient(9). AddIngredient(3). AddIngredient(10). AddTile(TileID.LunarCraftingStation). diff --git a/Items/Weapons/Rogue/PhantasmalRuin.cs b/Items/Weapons/Rogue/PhantasmalRuin.cs index 42033568a3..14c4a67902 100644 --- a/Items/Weapons/Rogue/PhantasmalRuin.cs +++ b/Items/Weapons/Rogue/PhantasmalRuin.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Rogue AddIngredient(). AddIngredient(500). AddIngredient(4). - AddIngredient(20). + AddIngredient(20). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Items/Weapons/Rogue/TimeBolt.cs b/Items/Weapons/Rogue/TimeBolt.cs index bba3f2ba4f..3f5ac89429 100644 --- a/Items/Weapons/Rogue/TimeBolt.cs +++ b/Items/Weapons/Rogue/TimeBolt.cs @@ -51,7 +51,7 @@ namespace CalamityMod.Items.Weapons.Rogue AddIngredient(). AddIngredient(ItemID.FastClock). AddIngredient(5). - AddIngredient(20). + AddIngredient(20). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Dyes.hjson b/Localization/en-US/Mods.CalamityMod.Items.Dyes.hjson index c854749001..92ee611144 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Dyes.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Dyes.hjson @@ -118,8 +118,8 @@ NightmareDye: { Tooltip: "" } -PhantoplasmDye: { - DisplayName: Phantoplasm Dye +PolterplasmDye: { + DisplayName: Polterplasm Dye Tooltip: "" } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Materials.hjson b/Localization/en-US/Mods.CalamityMod.Items.Materials.hjson index 86f32068c7..915209eafd 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Materials.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Materials.hjson @@ -242,8 +242,8 @@ PerennialBar: { Tooltip: "" } -Phantoplasm: { - DisplayName: Phantoplasm +Polterplasm: { + DisplayName: Polterplasm Tooltip: It churns and seethes with ghastly malice } diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index b628e1c3b4..c82f196dde 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1958,7 +1958,7 @@ namespace CalamityMod.NPCs CalamityNetcode.SyncWorld(); } - // Spawn Exodium planetoids and send messages about Providence, Bloodstone, Phantoplasm, etc. if ML has not been killed yet + // Spawn Exodium planetoids and send messages about Providence, Bloodstone, Polterplasm, etc. if ML has not been killed yet if (!NPC.downedMoonlord) { CalamityUtils.DisplayLocalizedText(key5, messageColor5); diff --git a/NPCs/NormalNPCs/OverloadedSoldier.cs b/NPCs/NormalNPCs/OverloadedSoldier.cs index 272b058f9b..310f346e3c 100644 --- a/NPCs/NormalNPCs/OverloadedSoldier.cs +++ b/NPCs/NormalNPCs/OverloadedSoldier.cs @@ -47,7 +47,7 @@ namespace CalamityMod.NPCs.NormalNPCs BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Underground, // Will move to localization whenever that is cleaned up. - new FlavorTextBestiaryInfoElement("Phantoplasm bulges through the corroded armor in the place of rotting flesh, as this creature reanimated by vengeful spirits treks the caverns of the world.") + new FlavorTextBestiaryInfoElement("Polterplasm bulges through the corroded armor in the place of rotting flesh, as this creature reanimated by vengeful spirits treks the caverns of the world.") }); } @@ -391,13 +391,13 @@ namespace CalamityMod.NPCs.NormalNPCs { for (int k = 0; k < 3; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, hit.HitDirection, -1f, 0, default, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, hit.HitDirection, -1f, 0, default, 1f); } if (NPC.life <= 0) { for (int k = 0; k < 15; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, hit.HitDirection, -1f, 0, default, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, hit.HitDirection, -1f, 0, default, 1f); } } } @@ -406,7 +406,7 @@ namespace CalamityMod.NPCs.NormalNPCs { npcLoot.Add(ModContent.ItemType()); LeadingConditionRule postML = npcLoot.DefineConditionalDropSet(DropHelper.PostML()); - postML.Add(ModContent.ItemType()); + postML.Add(ModContent.ItemType()); } } } diff --git a/NPCs/NormalNPCs/PhantomSpirit.cs b/NPCs/NormalNPCs/PhantomSpirit.cs index 1117de3290..63501b65af 100644 --- a/NPCs/NormalNPCs/PhantomSpirit.cs +++ b/NPCs/NormalNPCs/PhantomSpirit.cs @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.NormalNPCs { float speed = CalamityWorld.death ? 22f : CalamityWorld.revenge ? 19.5f : 17f; CalamityAI.DungeonSpiritAI(NPC, Mod, speed, -MathHelper.PiOver2); - int num822 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, 0f, 0f, 0, default, 1f); + int num822 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, 0f, 0f, 0, default, 1f); Dust dust = Main.dust[num822]; dust.velocity *= 0.1f; dust.scale = 1.3f; @@ -62,13 +62,13 @@ namespace CalamityMod.NPCs.NormalNPCs { for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, hit.HitDirection, -1f, 0, default, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, hit.HitDirection, -1f, 0, default, 1f); } if (NPC.life <= 0) { for (int num288 = 0; num288 < 50; num288++) { - int num289 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, NPC.velocity.X, NPC.velocity.Y, 0, default, 1f); + int num289 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, NPC.velocity.X, NPC.velocity.Y, 0, default, 1f); Dust dust = Main.dust[num289]; dust.velocity *= 2f; dust.noGravity = true; @@ -79,6 +79,6 @@ namespace CalamityMod.NPCs.NormalNPCs public override Color? GetAlpha(Color drawColor) => new Color(200, 200, 200, 0); - public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType()); + public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType()); } } diff --git a/NPCs/NormalNPCs/PhantomSpiritL.cs b/NPCs/NormalNPCs/PhantomSpiritL.cs index a762d53292..e6b9fe2957 100644 --- a/NPCs/NormalNPCs/PhantomSpiritL.cs +++ b/NPCs/NormalNPCs/PhantomSpiritL.cs @@ -65,7 +65,7 @@ namespace CalamityMod.NPCs.NormalNPCs { float speed = (CalamityWorld.death || BossRushEvent.BossRushActive) ? 16f : CalamityWorld.revenge ? 14f : 12f; CalamityAI.DungeonSpiritAI(NPC, Mod, speed, -MathHelper.PiOver2); - int num822 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, 0f, 0f, 0, default, 1f); + int num822 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, 0f, 0f, 0, default, 1f); Dust dust = Main.dust[num822]; dust.velocity *= 0.1f; dust.scale = 1.3f; @@ -96,13 +96,13 @@ namespace CalamityMod.NPCs.NormalNPCs { for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, hit.HitDirection, -1f, 0, default, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, hit.HitDirection, -1f, 0, default, 1f); } if (NPC.life <= 0) { for (int num288 = 0; num288 < 50; num288++) { - int num289 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, NPC.velocity.X, NPC.velocity.Y, 0, default, 1f); + int num289 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, NPC.velocity.X, NPC.velocity.Y, 0, default, 1f); Dust dust = Main.dust[num289]; dust.velocity *= 2f; dust.noGravity = true; @@ -113,6 +113,6 @@ namespace CalamityMod.NPCs.NormalNPCs public override Color? GetAlpha(Color drawColor) => new Color(200, 200, 200, 0); - public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType(), 1, 2, 4); + public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType(), 1, 2, 4); } } diff --git a/NPCs/NormalNPCs/PhantomSpiritM.cs b/NPCs/NormalNPCs/PhantomSpiritM.cs index 68f58ef132..a1f1e8d601 100644 --- a/NPCs/NormalNPCs/PhantomSpiritM.cs +++ b/NPCs/NormalNPCs/PhantomSpiritM.cs @@ -61,7 +61,7 @@ namespace CalamityMod.NPCs.NormalNPCs { float speed = CalamityWorld.death ? 18f : CalamityWorld.revenge ? 15.75f : 13.5f; CalamityAI.DungeonSpiritAI(NPC, Mod, speed, -MathHelper.PiOver2); - int num822 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, 0f, 0f, 0, default, 1f); + int num822 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, 0f, 0f, 0, default, 1f); Dust dust = Main.dust[num822]; dust.velocity *= 0.1f; dust.scale = 1.3f; @@ -73,13 +73,13 @@ namespace CalamityMod.NPCs.NormalNPCs { for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, hit.HitDirection, -1f, 0, default, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, hit.HitDirection, -1f, 0, default, 1f); } if (NPC.life <= 0) { for (int num288 = 0; num288 < 50; num288++) { - int num289 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, NPC.velocity.X, NPC.velocity.Y, 0, default, 1f); + int num289 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, NPC.velocity.X, NPC.velocity.Y, 0, default, 1f); Dust dust = Main.dust[num289]; dust.velocity *= 2f; dust.noGravity = true; @@ -90,6 +90,6 @@ namespace CalamityMod.NPCs.NormalNPCs public override Color? GetAlpha(Color drawColor) => new Color(200, 200, 200, 0); - public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType(), 1, 1, 3); + public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType(), 1, 1, 3); } } diff --git a/NPCs/NormalNPCs/PhantomSpiritS.cs b/NPCs/NormalNPCs/PhantomSpiritS.cs index 2960a9a704..19fb88dfb8 100644 --- a/NPCs/NormalNPCs/PhantomSpiritS.cs +++ b/NPCs/NormalNPCs/PhantomSpiritS.cs @@ -60,7 +60,7 @@ namespace CalamityMod.NPCs.NormalNPCs { float speed = CalamityWorld.death ? 20f : CalamityWorld.revenge ? 17.5f : 15f; CalamityAI.DungeonSpiritAI(NPC, Mod, speed, -MathHelper.PiOver2); - int num822 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, 0f, 0f, 0, default, 1f); + int num822 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, 0f, 0f, 0, default, 1f); Dust dust = Main.dust[num822]; dust.velocity *= 0.1f; dust.scale = 1.3f; @@ -71,13 +71,13 @@ namespace CalamityMod.NPCs.NormalNPCs { for (int k = 0; k < 5; k++) { - Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, hit.HitDirection, -1f, 0, default, 1f); + Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, hit.HitDirection, -1f, 0, default, 1f); } if (NPC.life <= 0) { for (int num288 = 0; num288 < 50; num288++) { - int num289 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, NPC.velocity.X, NPC.velocity.Y, 0, default, 1f); + int num289 = Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, NPC.velocity.X, NPC.velocity.Y, 0, default, 1f); Dust dust = Main.dust[num289]; dust.velocity *= 2f; dust.noGravity = true; @@ -88,6 +88,6 @@ namespace CalamityMod.NPCs.NormalNPCs public override Color? GetAlpha(Color drawColor) => new Color(200, 200, 200, 0); - public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType(), 1, 1, 2); + public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType(), 1, 1, 2); } } diff --git a/NPCs/Polterghast/PhantomFuckYou.cs b/NPCs/Polterghast/PhantomFuckYou.cs index 030bb30127..13114f31d9 100644 --- a/NPCs/Polterghast/PhantomFuckYou.cs +++ b/NPCs/Polterghast/PhantomFuckYou.cs @@ -190,7 +190,7 @@ namespace CalamityMod.NPCs.Polterghast NPC.position.Y = NPC.position.Y - (NPC.height / 2); for (int num621 = 0; num621 < 2; num621++) { - int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, 0f, 0f, 100, default, 2f); + int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, 0f, 0f, 100, default, 2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { diff --git a/NPCs/Polterghast/PolterPhantom.cs b/NPCs/Polterghast/PolterPhantom.cs index 83c2c8dd06..9a05d34a14 100644 --- a/NPCs/Polterghast/PolterPhantom.cs +++ b/NPCs/Polterghast/PolterPhantom.cs @@ -549,7 +549,7 @@ namespace CalamityMod.NPCs.Polterghast NPC.position.Y = NPC.position.Y - (NPC.height / 2); for (int num621 = 0; num621 < 10; num621++) { - int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, 0f, 0f, 100, default, 2f); + int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, 0f, 0f, 100, default, 2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 99f2b09206..15ea5c85c2 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -826,7 +826,7 @@ namespace CalamityMod.NPCs.Polterghast for (int num621 = 0; num621 < 10; num621++) { - int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, 0f, 0f, 100, default, 2f); + int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, 0f, 0f, 100, default, 2f); Main.dust[num622].velocity *= 3f; Main.dust[num622].noGravity = true; if (Main.rand.NextBool(2)) @@ -980,7 +980,7 @@ namespace CalamityMod.NPCs.Polterghast for (int num621 = 0; num621 < 10; num621++) { - int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, 0f, 0f, 100, default, 2f); + int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, 0f, 0f, 100, default, 2f); Main.dust[num622].velocity *= 3f; Main.dust[num622].noGravity = true; if (Main.rand.NextBool(2)) @@ -1137,7 +1137,7 @@ namespace CalamityMod.NPCs.Polterghast // Materials normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType(), 1, 7, 15)); - normalOnly.Add(ModContent.ItemType(), 1, 30, 40); + normalOnly.Add(ModContent.ItemType(), 1, 30, 40); // Vanity normalOnly.Add(ModContent.ItemType(), 7); @@ -1367,7 +1367,7 @@ namespace CalamityMod.NPCs.Polterghast NPC.position.Y = NPC.position.Y - (NPC.height / 2); for (int num621 = 0; num621 < 10; num621++) { - int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Phantoplasm, 0f, 0f, 100, default, 2f); + int num622 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, (int)CalamityDusts.Polterplasm, 0f, 0f, 100, default, 2f); Main.dust[num622].velocity *= 3f; if (Main.rand.NextBool(2)) { diff --git a/Projectiles/Magic/SmallSpirit.cs b/Projectiles/Magic/SmallSpirit.cs index 98be9bb36a..42c160bcc6 100644 --- a/Projectiles/Magic/SmallSpirit.cs +++ b/Projectiles/Magic/SmallSpirit.cs @@ -118,11 +118,11 @@ namespace CalamityMod.Projectiles.Magic { for (int i = 0; i < 6; i++) { - Dust phantoplasm = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(12f, 12f), 261); - phantoplasm.color = Color.Lerp(Color.LightPink, Color.Red, Main.rand.NextFloat(0.67f)); - phantoplasm.scale = 1.2f; - phantoplasm.fadeIn = 0.55f; - phantoplasm.noGravity = true; + Dust polterplasm = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(12f, 12f), 261); + polterplasm.color = Color.Lerp(Color.LightPink, Color.Red, Main.rand.NextFloat(0.67f)); + polterplasm.scale = 1.2f; + polterplasm.fadeIn = 0.55f; + polterplasm.noGravity = true; } } }