From af2100de7a7799d4ecda612cbd3f105ec5d10b17 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Fri, 18 Jul 2025 17:22:41 -0400 Subject: [PATCH 01/36] Death and worm spawning fx - Proper telegraph of the hive slowing down before spawning worms is next. Will likely be accompanied by a very small health buff to compensate for dead time. --- NPCs/Perforator/PerforatorHive.cs | 106 ++++++++++++++++++++++-------- 1 file changed, 78 insertions(+), 28 deletions(-) diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 35876de3ff..28d410e0e9 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -18,6 +18,7 @@ using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Particles; using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -43,6 +44,10 @@ namespace CalamityMod.NPCs.Perforator public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/PerfHiveDeath"); public static Asset GlowTexture; + // Squash n' stretch won't affect actual hitbox size + private const int Width = 110; + private const int Height = 100; + private int biomeEnrageTimer = CalamityGlobalNPC.biomeEnrageTimerMax; private bool small = false; @@ -50,6 +55,12 @@ namespace CalamityMod.NPCs.Perforator private bool large = false; private int wormsAlive = 0; + private float squash; + private float addedStretch; + private int squashTimer = 0; // Tracks current progress in scaling animation + private const int squashInterval = 24; + private const float maxSquash = 0.3f; // Upper intensity + public override void SetStaticDefaults() { Main.npcFrameCount[Type] = 10; @@ -68,8 +79,8 @@ namespace CalamityMod.NPCs.Perforator NPC.Calamity().canBreakPlayerDefense = true; NPC.npcSlots = 18f; NPC.GetNPCDamage(); - NPC.width = 110; - NPC.height = 100; + NPC.width = Width; + NPC.height = Height; NPC.defense = 4; NPC.LifeMaxNERB(4800, 5750, 270000); NPC.aiStyle = -1; @@ -242,6 +253,9 @@ namespace CalamityMod.NPCs.Perforator if (NPC.ai[3] == 0f && NPC.life > 0) NPC.ai[3] = NPC.lifeMax; + float stretch = NPC.velocity.Y * 0.03f; + // stretch = Math.Abs(stretch) + addedStretch; + bool canSpawnWorms = !small || !medium || !large || CalamityWorld.LegendaryMode; if (NPC.life > 0 && canSpawnWorms) { @@ -250,23 +264,51 @@ namespace CalamityMod.NPCs.Perforator int wormSpawnGateValue = (int)(NPC.lifeMax * (CalamityWorld.LegendaryMode ? 0.15 : 0.25)); if ((NPC.life + wormSpawnGateValue) < NPC.ai[3]) { + // Blood vars change based on worm spawned + Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f)); + int bloodAmt = 0; + float minScale = 1f; + float maxScale = 1.8f; + NPC.ai[3] = NPC.life; int wormType = ModContent.NPCType(); if (!small) { small = true; + bloodAmt = 12; } else if (!medium) { medium = true; wormType = ModContent.NPCType(); + bloodColor = Color.Lerp(Color.Yellow, Color.Orange, Main.rand.NextFloat(0.9f)); + bloodAmt = 12; + minScale = 1.5f; + maxScale = 2.4f; } else if (!large) { large = true; wormType = ModContent.NPCType(); + bloodAmt = 18; + minScale = 1.4f; + maxScale = 2.2f; } + squashTimer = squashInterval; + for (int i = 0; i < bloodAmt; ++i) + { + int bloodLifetime = Main.rand.Next(80, 140); + float bloodScale = Main.rand.NextFloat(minScale, maxScale); + + float randomSpeedMultiplier = Main.rand.NextFloat(1.4f, 2.2f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 4 * randomSpeedMultiplier; + bloodVelocity.Y -= 5f; + BloodParticle blood = new BloodParticle(NPC.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + + if (CalamityWorld.LegendaryMode && lifeRatio < 0.5f) { if (lifeRatio > 0.35f) @@ -291,22 +333,20 @@ namespace CalamityMod.NPCs.Perforator NPC.TargetClosest(); SoundEngine.PlaySound(WormSpawn, NPC.Center); - - for (int i = 0; i < 16; i++) - Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Ichor); - - for (int j = 0; j < 32; j++) - { - int bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood); - Main.dust[bloodDust].noGravity = true; - Main.dust[bloodDust].scale = 3f; - bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood); - Main.dust[bloodDust].scale = 2f; - } } } } + if (squashTimer > 0) + { + squashTimer--; + addedStretch = MathHelper.Lerp(0f, maxSquash, (float) squashTimer / squashInterval); + } + else + { + addedStretch = 0f; + } + if (Math.Abs(NPC.Center.X - player.Center.X) > 10f) { float playerLocation = NPC.Center.X - player.Center.X; @@ -529,22 +569,19 @@ namespace CalamityMod.NPCs.Perforator public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { - SpriteEffects spriteEffects = SpriteEffects.None; - if (NPC.spriteDirection == 1) - spriteEffects = SpriteEffects.FlipHorizontally; + SpriteEffects spriteEffects = NPC.spriteDirection == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + Texture2D texture = TextureAssets.Npc[Type].Value; + Color drawColorAlpha = NPC.GetAlpha(drawColor); - Texture2D texture2D15 = TextureAssets.Npc[Type].Value; - Vector2 halfSizeTexture = new Vector2((float)(TextureAssets.Npc[Type].Value.Width / 2), (float)(TextureAssets.Npc[Type].Value.Height / Main.npcFrameCount[Type] / 2)); + Vector2 scaleStretch = new Vector2(1f - addedStretch, 1f + addedStretch) * NPC.scale; + float yOffset = addedStretch * 0.5f * NPC.height; // offset from stretching - Vector2 drawLocation = NPC.Center - screenPos; - drawLocation -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[Type])) * NPC.scale / 2f; - drawLocation += halfSizeTexture * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, drawLocation, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, halfSizeTexture, NPC.scale, spriteEffects, 0f); - - texture2D15 = GlowTexture.Value; + spriteBatch.Draw(texture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY - yOffset), NPC.frame, drawColorAlpha, NPC.rotation, NPC.frame.Size() * 0.5f, scaleStretch, spriteEffects, 0f); + texture = GlowTexture.Value; Color glowmaskColor = Color.Lerp(Color.White, Color.Yellow, 0.5f); - spriteBatch.Draw(texture2D15, drawLocation, NPC.frame, glowmaskColor, NPC.rotation, halfSizeTexture, NPC.scale, spriteEffects, 0f); + // done again to fix glowmask not matching sprite + spriteBatch.Draw(texture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY - yOffset), NPC.frame, glowmaskColor, NPC.rotation, NPC.frame.Size() * 0.5f, scaleStretch, spriteEffects, 0f); return false; } @@ -660,7 +697,7 @@ namespace CalamityMod.NPCs.Perforator NPC.height = 100; NPC.position.X = NPC.position.X - (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2); - for (int i = 0; i < 40; i++) + for (int i = 0; i < 12; i++) { int ichorDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f); Main.dust[ichorDust].velocity *= 3f; @@ -670,7 +707,7 @@ namespace CalamityMod.NPCs.Perforator Main.dust[ichorDust].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; } } - for (int j = 0; j < 70; j++) + for (int j = 0; j < 20; j++) { int bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f); Main.dust[bloodDust].noGravity = true; @@ -678,6 +715,19 @@ namespace CalamityMod.NPCs.Perforator bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f); Main.dust[bloodDust].velocity *= 2f; } + // Blood burst + for (int i = 0; i < 16; ++i) + { + int bloodLifetime = Main.rand.Next(90, 160); + float bloodScale = Main.rand.NextFloat(1.7f, 3f); + Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f)); + float randomSpeedMultiplier = Main.rand.NextFloat(0.6f, 1.1f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 8 * randomSpeedMultiplier; + bloodVelocity.Y -= 5f; + + BloodParticle blood = new BloodParticle(NPC.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } } } } From 54ebbbf183907a1c380a872c8f086a60b050c5a0 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Fri, 18 Jul 2025 19:35:03 -0400 Subject: [PATCH 02/36] Why on earth would you do this --- NPCs/Perforator/PerforatorHive.cs | 59 ++++++++++++++++--------------- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 28d410e0e9..fed8fe0e84 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -50,9 +50,9 @@ namespace CalamityMod.NPCs.Perforator private int biomeEnrageTimer = CalamityGlobalNPC.biomeEnrageTimerMax; - private bool small = false; - private bool medium = false; - private bool large = false; + private bool smallSpawned = false; + private bool mediumSpawned = false; + private bool largeSpawned = false; private int wormsAlive = 0; private float squash; @@ -119,9 +119,9 @@ namespace CalamityMod.NPCs.Perforator { writer.Write(biomeEnrageTimer); writer.Write(wormsAlive); - writer.Write(small); - writer.Write(medium); - writer.Write(large); + writer.Write(smallSpawned); + writer.Write(mediumSpawned); + writer.Write(largeSpawned); writer.Write(NPC.localAI[2]); } @@ -129,9 +129,9 @@ namespace CalamityMod.NPCs.Perforator { biomeEnrageTimer = reader.ReadInt32(); wormsAlive = reader.ReadInt32(); - small = reader.ReadBoolean(); - medium = reader.ReadBoolean(); - large = reader.ReadBoolean(); + smallSpawned = reader.ReadBoolean(); + mediumSpawned = reader.ReadBoolean(); + largeSpawned = reader.ReadBoolean(); NPC.localAI[2] = reader.ReadSingle(); } @@ -163,6 +163,10 @@ namespace CalamityMod.NPCs.Perforator // Phases based on life percentage bool phase2 = lifeRatio < 0.7f; + bool spawnSmall = CalamityWorld.LegendaryMode ? lifeRatio < 0.85f : lifeRatio < 0.75f; + bool spawnMedium = CalamityWorld.LegendaryMode ? lifeRatio < 0.60f : lifeRatio < 0.50f; + bool spawnLarge = CalamityWorld.LegendaryMode ? lifeRatio < 0.45f : lifeRatio < 0.25f; + // Enrage if ((!player.ZoneCrimson || (NPC.position.Y / 16f) < Main.worldSurface) && !BossRushEvent.BossRushActive) { @@ -206,6 +210,8 @@ namespace CalamityMod.NPCs.Perforator return; } } + + // Natural despawn prevention else if (NPC.timeLeft < 1800) NPC.timeLeft = 1800; @@ -250,19 +256,14 @@ namespace CalamityMod.NPCs.Perforator NPC.Calamity().DR = wormsAlive * 0.3f; - if (NPC.ai[3] == 0f && NPC.life > 0) - NPC.ai[3] = NPC.lifeMax; - float stretch = NPC.velocity.Y * 0.03f; - // stretch = Math.Abs(stretch) + addedStretch; - bool canSpawnWorms = !small || !medium || !large || CalamityWorld.LegendaryMode; + bool canSpawnWorms = !smallSpawned || !mediumSpawned || !largeSpawned || CalamityWorld.LegendaryMode; if (NPC.life > 0 && canSpawnWorms) { if (Main.netMode != NetmodeID.MultiplayerClient) { - int wormSpawnGateValue = (int)(NPC.lifeMax * (CalamityWorld.LegendaryMode ? 0.15 : 0.25)); - if ((NPC.life + wormSpawnGateValue) < NPC.ai[3]) + if (spawnSmall || spawnMedium || spawnLarge) { // Blood vars change based on worm spawned Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f)); @@ -270,25 +271,25 @@ namespace CalamityMod.NPCs.Perforator float minScale = 1f; float maxScale = 1.8f; - NPC.ai[3] = NPC.life; + // NPC.ai[3] = NPC.life; int wormType = ModContent.NPCType(); - if (!small) + if (!smallSpawned) { - small = true; + smallSpawned = true; bloodAmt = 12; } - else if (!medium) + else if (!mediumSpawned) { - medium = true; + mediumSpawned = true; wormType = ModContent.NPCType(); bloodColor = Color.Lerp(Color.Yellow, Color.Orange, Main.rand.NextFloat(0.9f)); bloodAmt = 12; minScale = 1.5f; maxScale = 2.4f; } - else if (!large) + else if (!largeSpawned) { - large = true; + largeSpawned = true; wormType = ModContent.NPCType(); bloodAmt = 18; minScale = 1.4f; @@ -359,7 +360,7 @@ namespace CalamityMod.NPCs.Perforator // Emit ichor blobs if (phase2) { - if (wormsAlive == 0 || large || floatAboveToFireBlobs || CalamityWorld.LegendaryMode) + if (wormsAlive == 0 || largeSpawned || floatAboveToFireBlobs || CalamityWorld.LegendaryMode) { NPC.ai[2] += 1f; if (NPC.ai[2] >= blobPhaseGateValue) @@ -388,7 +389,7 @@ namespace CalamityMod.NPCs.Perforator Main.dust[ichorDust].scale = 0.5f; } - bool ichorBlobBigWormPhase = wormsAlive > 0 && large; + bool ichorBlobBigWormPhase = wormsAlive > 0 && largeSpawned; int numBlobs = expertMode ? (ichorBlobBigWormPhase ? 4 : 6) : (ichorBlobBigWormPhase ? 2 : 4); if (CalamityWorld.LegendaryMode) numBlobs *= 2; @@ -504,11 +505,11 @@ namespace CalamityMod.NPCs.Perforator // Set damage NPC.damage = NPC.defDamage; - if (large || death) + if (largeSpawned || death) Movement(player, 13f + velocityEnrageIncrease, death ? 0.115f : 0.1f, 20f); - else if (medium) + else if (mediumSpawned) Movement(player, 12f + velocityEnrageIncrease, death ? 0.11f : 0.095f, 30f); - else if (small) + else if (smallSpawned) Movement(player, 11f + velocityEnrageIncrease, death ? 0.105f : 0.09f, 40f); else Movement(player, 10f + velocityEnrageIncrease, death ? 0.1f : 0.085f, 50f); @@ -722,7 +723,7 @@ namespace CalamityMod.NPCs.Perforator float bloodScale = Main.rand.NextFloat(1.7f, 3f); Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f)); float randomSpeedMultiplier = Main.rand.NextFloat(0.6f, 1.1f); - Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 8 * randomSpeedMultiplier; + Vector2 bloodVelocity = Main.rand.NextVector2Unit(5) * 5 * randomSpeedMultiplier; bloodVelocity.Y -= 5f; BloodParticle blood = new BloodParticle(NPC.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); From cab794838638ce0fd3d3e51b2fecb4e149bd469d Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Fri, 18 Jul 2025 20:30:12 -0400 Subject: [PATCH 03/36] Bugfix + touchups --- NPCs/Perforator/PerforatorHive.cs | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index fed8fe0e84..ead5d67c4b 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -256,8 +256,6 @@ namespace CalamityMod.NPCs.Perforator NPC.Calamity().DR = wormsAlive * 0.3f; - float stretch = NPC.velocity.Y * 0.03f; - bool canSpawnWorms = !smallSpawned || !mediumSpawned || !largeSpawned || CalamityWorld.LegendaryMode; if (NPC.life > 0 && canSpawnWorms) { @@ -270,33 +268,36 @@ namespace CalamityMod.NPCs.Perforator int bloodAmt = 0; float minScale = 1f; float maxScale = 1.8f; + int wormType = -1; - // NPC.ai[3] = NPC.life; - int wormType = ModContent.NPCType(); if (!smallSpawned) { + smallSpawned = true; + wormType = ModContent.NPCType(); + bloodAmt = 12; } - else if (!mediumSpawned) + else if (!mediumSpawned && spawnMedium) { mediumSpawned = true; wormType = ModContent.NPCType(); + bloodColor = Color.Lerp(Color.Yellow, Color.Orange, Main.rand.NextFloat(0.9f)); bloodAmt = 12; minScale = 1.5f; maxScale = 2.4f; } - else if (!largeSpawned) + else if (!largeSpawned && spawnLarge) { largeSpawned = true; wormType = ModContent.NPCType(); + bloodAmt = 18; minScale = 1.4f; maxScale = 2.2f; } - squashTimer = squashInterval; for (int i = 0; i < bloodAmt; ++i) { int bloodLifetime = Main.rand.Next(80, 140); @@ -319,8 +320,10 @@ namespace CalamityMod.NPCs.Perforator else if (lifeRatio > 0.05f) NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType(), 1); } - else + if (wormType != -1) { + squashTimer = squashInterval; // Start scaling animation + NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), wormType, 1); // Spawn two small worms in Death @@ -717,14 +720,14 @@ namespace CalamityMod.NPCs.Perforator Main.dust[bloodDust].velocity *= 2f; } // Blood burst - for (int i = 0; i < 16; ++i) + for (int i = 0; i < 24; ++i) { int bloodLifetime = Main.rand.Next(90, 160); - float bloodScale = Main.rand.NextFloat(1.7f, 3f); + float bloodScale = Main.rand.NextFloat(1.2f, 2.4f); Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f)); - float randomSpeedMultiplier = Main.rand.NextFloat(0.6f, 1.1f); - Vector2 bloodVelocity = Main.rand.NextVector2Unit(5) * 5 * randomSpeedMultiplier; - bloodVelocity.Y -= 5f; + float randomSpeedMultiplier = Main.rand.NextFloat(4.5f, 9f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit(6) * 2.5f * randomSpeedMultiplier; + bloodVelocity.Y -= 14f; BloodParticle blood = new BloodParticle(NPC.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); GeneralParticleHandler.SpawnParticle(blood); From 0364b1832af8466abba46737732013a036ab56c0 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Fri, 18 Jul 2025 22:40:34 -0400 Subject: [PATCH 04/36] Proper telegraph for spawning worms --- NPCs/Perforator/PerforatorHive.cs | 219 +++++++++++++++++++----------- 1 file changed, 141 insertions(+), 78 deletions(-) diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index ead5d67c4b..e483dcc7af 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -60,6 +60,7 @@ namespace CalamityMod.NPCs.Perforator private int squashTimer = 0; // Tracks current progress in scaling animation private const int squashInterval = 24; private const float maxSquash = 0.3f; // Upper intensity + private float wormSpawnStateTimer = 0f; // For managing worm spawn animation public override void SetStaticDefaults() { @@ -123,6 +124,7 @@ namespace CalamityMod.NPCs.Perforator writer.Write(mediumSpawned); writer.Write(largeSpawned); writer.Write(NPC.localAI[2]); + writer.Write(wormSpawnStateTimer); } public override void ReceiveExtraAI(BinaryReader reader) @@ -133,6 +135,7 @@ namespace CalamityMod.NPCs.Perforator mediumSpawned = reader.ReadBoolean(); largeSpawned = reader.ReadBoolean(); NPC.localAI[2] = reader.ReadSingle(); + wormSpawnStateTimer = reader.ReadSingle(); } public override void AI() @@ -256,89 +259,129 @@ namespace CalamityMod.NPCs.Perforator NPC.Calamity().DR = wormsAlive * 0.3f; - bool canSpawnWorms = !smallSpawned || !mediumSpawned || !largeSpawned || CalamityWorld.LegendaryMode; - if (NPC.life > 0 && canSpawnWorms) + if (Main.netMode != NetmodeID.MultiplayerClient && wormSpawnStateTimer == 0f) { - if (Main.netMode != NetmodeID.MultiplayerClient) + if ((!smallSpawned && spawnSmall) || + (!mediumSpawned && spawnMedium) || + (!largeSpawned && spawnLarge)) { - if (spawnSmall || spawnMedium || spawnLarge) + wormSpawnStateTimer = 1f; // Start slowing down to spawn a worm + NPC.netUpdate = true; + } + } + + if (wormSpawnStateTimer > 0f) + { + + NPC.velocity *= 0.94f; // Slow down + NPC.rotation = NPC.velocity.X * 0.04f; // Update rotation to match velocity + + NPC.damage = 0; + + wormSpawnStateTimer++; + + int slowDownDuration = 20; + int waitBeforeSpawnDuration = 40; + int totalStateDuration = slowDownDuration + waitBeforeSpawnDuration; + + if (wormSpawnStateTimer >= slowDownDuration && wormSpawnStateTimer < totalStateDuration) + { + if (Main.rand.NextBool(5)) { - // Blood vars change based on worm spawned - Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f)); - int bloodAmt = 0; - float minScale = 1f; - float maxScale = 1.8f; - int wormType = -1; + int bloodLifetime = Main.rand.Next(20, 50); + float bloodScale = Main.rand.NextFloat(0.5f, 1f); + Color bloodColor = Color.Lerp(Color.Yellow, Color.DarkRed, Main.rand.NextFloat(0.7f)); + float randomSpeedMultiplier = Main.rand.NextFloat(1f, 2f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit(5) * 1.5f * randomSpeedMultiplier; + bloodVelocity.Y -= 8f; - if (!smallSpawned) - { + Vector2 randomOffset = Main.rand.NextVector2Unit() * Main.rand.NextFloat(25f, 50f); + Vector2 spawnPosition = NPC.Center + randomOffset; - smallSpawned = true; - wormType = ModContent.NPCType(); - - bloodAmt = 12; - } - else if (!mediumSpawned && spawnMedium) - { - mediumSpawned = true; - wormType = ModContent.NPCType(); - - bloodColor = Color.Lerp(Color.Yellow, Color.Orange, Main.rand.NextFloat(0.9f)); - bloodAmt = 12; - minScale = 1.5f; - maxScale = 2.4f; - } - else if (!largeSpawned && spawnLarge) - { - largeSpawned = true; - wormType = ModContent.NPCType(); - - bloodAmt = 18; - minScale = 1.4f; - maxScale = 2.2f; - } - - for (int i = 0; i < bloodAmt; ++i) - { - int bloodLifetime = Main.rand.Next(80, 140); - float bloodScale = Main.rand.NextFloat(minScale, maxScale); - - float randomSpeedMultiplier = Main.rand.NextFloat(1.4f, 2.2f); - Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 4 * randomSpeedMultiplier; - bloodVelocity.Y -= 5f; - BloodParticle blood = new BloodParticle(NPC.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); - GeneralParticleHandler.SpawnParticle(blood); - } - - - if (CalamityWorld.LegendaryMode && lifeRatio < 0.5f) - { - if (lifeRatio > 0.35f) - NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType(), 1); - else if (lifeRatio > 0.2f) - NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType(), 1); - else if (lifeRatio > 0.05f) - NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType(), 1); - } - if (wormType != -1) - { - squashTimer = squashInterval; // Start scaling animation - - NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), wormType, 1); - - // Spawn two small worms in Death - if (death) - { - if (wormType == ModContent.NPCType()) - NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), wormType, 1); - } - } - - NPC.TargetClosest(); - - SoundEngine.PlaySound(WormSpawn, NPC.Center); + BloodParticle blood = new BloodParticle(spawnPosition, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); } } + + else if (wormSpawnStateTimer >= totalStateDuration) + { + // Blood vars change based on worm spawned + Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f)); + int bloodAmt = 0; + float minScale = 1f; + float maxScale = 1.8f; + int wormType = -1; + + if (!smallSpawned) + { + + smallSpawned = true; + wormType = ModContent.NPCType(); + + bloodAmt = 12; + } + else if (!mediumSpawned && spawnMedium) + { + mediumSpawned = true; + wormType = ModContent.NPCType(); + + bloodColor = Color.Lerp(Color.Yellow, Color.Orange, Main.rand.NextFloat(0.9f)); + bloodAmt = 12; + minScale = 1.5f; + maxScale = 2.4f; + } + else if (!largeSpawned && spawnLarge) + { + largeSpawned = true; + wormType = ModContent.NPCType(); + + bloodAmt = 18; + minScale = 1.4f; + maxScale = 2.2f; + } + + for (int i = 0; i < bloodAmt; ++i) + { + int bloodLifetime = Main.rand.Next(80, 140); + float bloodScale = Main.rand.NextFloat(minScale, maxScale); + + float randomSpeedMultiplier = Main.rand.NextFloat(1.4f, 2.2f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 4 * randomSpeedMultiplier; + bloodVelocity.Y -= 5f; + BloodParticle blood = new BloodParticle(NPC.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + + + if (CalamityWorld.LegendaryMode && lifeRatio < 0.5f) + { + if (lifeRatio > 0.35f) + NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType(), 1); + else if (lifeRatio > 0.2f) + NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType(), 1); + else if (lifeRatio > 0.05f) + NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType(), 1); + } + if (wormType != -1) + { + squashTimer = squashInterval; // Start scaling animation + + NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), wormType, 1); + + // Spawn two small worms in Death + if (death) + { + if (wormType == ModContent.NPCType()) + NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), wormType, 1); + } + } + + NPC.TargetClosest(); + SoundEngine.PlaySound(WormSpawn, NPC.Center); + wormSpawnStateTimer = 0f; // Resets for next time its called + NPC.netUpdate = true; + } + return; // Don't progress in the AI loop until a worm has finished spawning } if (squashTimer > 0) @@ -374,7 +417,27 @@ namespace CalamityMod.NPCs.Perforator NPC.velocity *= 0.96f; else NPC.ai[2] = blobPhaseGateValue + 300f; + } + + if (NPC.ai[2] < blobPhaseGateValue + 180f) + { + if (Main.rand.NextBool(4)) + { + int bloodLifetime = Main.rand.Next(25, 35); + float bloodScale = Main.rand.NextFloat(0.6f, 0.95f); + Color bloodColor = Color.Lerp(Color.Yellow, Color.Orange, Main.rand.NextFloat(0.8f)); + float randomSpeedMultiplier = Main.rand.NextFloat(1.5f, 2.5f); + Vector2 bloodVelocity = Main.rand.NextVector2Unit() * randomSpeedMultiplier; + + Vector2 spawnPosition = NPC.Center; + spawnPosition.Y += 42; + + BloodParticle blood = new BloodParticle(spawnPosition, bloodVelocity, bloodLifetime, bloodScale, bloodColor); + GeneralParticleHandler.SpawnParticle(blood); + } + } + else { NPC.ai[2] = 0f; @@ -722,8 +785,8 @@ namespace CalamityMod.NPCs.Perforator // Blood burst for (int i = 0; i < 24; ++i) { - int bloodLifetime = Main.rand.Next(90, 160); - float bloodScale = Main.rand.NextFloat(1.2f, 2.4f); + int bloodLifetime = Main.rand.Next(120, 200); + float bloodScale = Main.rand.NextFloat(1.3f, 2.6f); Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f)); float randomSpeedMultiplier = Main.rand.NextFloat(4.5f, 9f); Vector2 bloodVelocity = Main.rand.NextVector2Unit(6) * 2.5f * randomSpeedMultiplier; From 17ff7d1524c579b8856f3420b22d7cd0938885e6 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Fri, 18 Jul 2025 22:51:58 -0400 Subject: [PATCH 05/36] Better ichor blob fx --- NPCs/Perforator/PerforatorHive.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index e483dcc7af..782f8c2daf 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -286,12 +286,12 @@ namespace CalamityMod.NPCs.Perforator if (wormSpawnStateTimer >= slowDownDuration && wormSpawnStateTimer < totalStateDuration) { - if (Main.rand.NextBool(5)) + if (Main.rand.NextBool(7)) { - int bloodLifetime = Main.rand.Next(20, 50); + int bloodLifetime = Main.rand.Next(20, 45); float bloodScale = Main.rand.NextFloat(0.5f, 1f); Color bloodColor = Color.Lerp(Color.Yellow, Color.DarkRed, Main.rand.NextFloat(0.7f)); - float randomSpeedMultiplier = Main.rand.NextFloat(1f, 2f); + float randomSpeedMultiplier = Main.rand.NextFloat(0.8f, 1.6f); Vector2 bloodVelocity = Main.rand.NextVector2Unit(5) * 1.5f * randomSpeedMultiplier; bloodVelocity.Y -= 8f; From bd48c3d262d398d2ce7b92837dbc68bf8733a0bc Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:28:03 +0700 Subject: [PATCH 06/36] Driftwood furniture loc --- .../Mods.CalamityMod.Items.Placeables.hjson | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index c62fea1db5..2802a66389 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -1888,6 +1888,101 @@ CosmiliteWorkBench: { Tooltip: "" } +DriftwoodBaroqueCello: { + DisplayName: Driftwood Baroque Cello + Tooltip: "" +} + +DriftwoodBathtub: { + DisplayName: Driftwood Bathtub + Tooltip: "" +} + +DriftwoodBed: { + DisplayName: Driftwood Bed + Tooltip: "" +} + +DriftwoodBookcase: { + DisplayName: Driftwood Bookcase + Tooltip: "" +} + +DriftwoodCandelabra: { + DisplayName: Driftwood Candelabra + Tooltip: "" +} + +DriftwoodCandle: { + DisplayName: Driftwood Candle + Tooltip: "" +} + +DriftwoodChair: { + DisplayName: Driftwood Chair + Tooltip: "" +} + +DriftwoodChandelier: { + DisplayName: Driftwood Chandelier + Tooltip: "" +} + +DriftwoodChest: { + DisplayName: Driftwood Chest + Tooltip: "" +} + +DriftwoodDoor: { + DisplayName: Driftwood Door + Tooltip: "" +} + +DriftwoodDresser: { + DisplayName: Driftwood Dresser + Tooltip: "" +} + +DriftwoodLamp: { + DisplayName: Driftwood Lamp + Tooltip: "" +} + +DriftwoodLantern: { + DisplayName: Driftwood Lantern + Tooltip: "" +} + +DriftwoodPlatform: { + DisplayName: Driftwood Platform + Tooltip: "" +} + +DriftwoodSink: { + DisplayName: Driftwood Sink + Tooltip: Counts as a water source +} + +DriftwoodSofa: { + DisplayName: Driftwood Sofa + Tooltip: "" +} + +DriftwoodSundial: { + DisplayName: Driftwood Sundial + Tooltip: "" +} + +DriftwoodTable: { + DisplayName: Driftwood Table + Tooltip: "" +} + +DriftwoodWorkBench: { + DisplayName: Driftwood Work Bench + Tooltip: "" +} + AncientSmoothNavystone: { DisplayName: Ancient Smooth Navystone Tooltip: "" From 3949f175087b153341bc3e5d39bc1f6561c4dd4f Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Jul 2025 11:16:01 +0700 Subject: [PATCH 07/36] small debuff oversight --- NPCs/NormalNPCs/PlanterasFreeTentacle.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs index 950a290c46..99a3439020 100644 --- a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs +++ b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs @@ -188,12 +188,6 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.damage = (int)(NPC.damage * 1.15f); } - public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) - { - if (hurtInfo.Damage > 0) - target.AddBuff(BuffID.Poisoned, 180); - } - public override void HitEffect(NPC.HitInfo hit) { if (NPC.life > 0) From 3050c03475d77173c3a9c70cdf599f03755299fe Mon Sep 17 00:00:00 2001 From: Heart-Plus-Up <85328817+Heart-Plus-Up@users.noreply.github.com> Date: Wed, 23 Jul 2025 02:43:50 -0700 Subject: [PATCH 08/36] Wulfrum Furniture and Driftwood adjustments --- .../FurnitureDriftwood/DriftwoodToilet.cs | 25 ++++++ .../FurnitureDriftwood/DriftwoodToilet.png | Bin 0 -> 336 bytes .../AnodizedWulfrumBathtub.cs | 26 ++++++ .../AnodizedWulfrumBathtub.png | Bin 0 -> 500 bytes .../AnodizedWulfrumBookcase.cs | 27 ++++++ .../AnodizedWulfrumBookcase.png | Bin 0 -> 795 bytes .../AnodizedWulfrumChair.cs | 26 ++++++ .../AnodizedWulfrumChair.png | Bin 0 -> 449 bytes .../AnodizedWulfrumChandelier.cs | 27 ++++++ .../AnodizedWulfrumChandelier.png | Bin 0 -> 547 bytes .../AnodizedWulfrumChest.cs | 26 ++++++ .../AnodizedWulfrumChest.png | Bin 0 -> 833 bytes .../AnodizedWulfrumClock.png | Bin 0 -> 482 bytes .../AnodizedWulfrumDeskLight.cs | 26 ++++++ .../AnodizedWulfrumDeskLight.png | Bin 0 -> 363 bytes .../AnodizedWulfrumDoor.cs | 26 ++++++ .../AnodizedWulfrumDoor.png | Bin 0 -> 508 bytes .../AnodizedWulfrumDresser.cs | 26 ++++++ .../AnodizedWulfrumDresser.png | Bin 0 -> 599 bytes .../AnodizedWulfrumJukebox.cs | 25 ++++++ .../AnodizedWulfrumJukebox.png | Bin 0 -> 937 bytes .../AnodizedWulfrumLamp.cs | 26 ++++++ .../AnodizedWulfrumLamp.png | Bin 0 -> 449 bytes .../AnodizedWulfrumLantern.cs | 26 ++++++ .../AnodizedWulfrumLantern.png | Bin 0 -> 468 bytes .../AnodizedWulfrumSink.cs | 26 ++++++ .../AnodizedWulfrumSink.png | Bin 0 -> 652 bytes .../AnodizedWulfrumSleepingPod.cs | 26 ++++++ .../AnodizedWulfrumSleepingPod.png | Bin 0 -> 647 bytes .../AnodizedWulfrumSofa.cs | 26 ++++++ .../AnodizedWulfrumSofa.png | Bin 0 -> 648 bytes .../AnodizedWulfrumTable.cs | 25 ++++++ .../AnodizedWulfrumTable.png | Bin 0 -> 556 bytes .../AnodizedWulfrumToilet.cs | 26 ++++++ .../AnodizedWulfrumToilet.png | Bin 0 -> 377 bytes .../AnodizedWulfrumWorkBench.cs | 26 ++++++ .../AnodizedWulfrumWorkBench.png | Bin 0 -> 422 bytes .../DriftwoodBaroqueCello.cs | 2 +- Tiles/FurnitureDriftwood/DriftwoodToilet.cs | 79 ++++++++++++++++++ Tiles/FurnitureDriftwood/DriftwoodToilet.png | Bin 0 -> 501 bytes .../DriftwoodToilet_Highlight.png | Bin 0 -> 189 bytes .../ChargedWulfrumWallMountedBulb.cs | 12 +-- .../AnodizedWulfrumBathtub.cs | 24 ++++++ .../AnodizedWulfrumBathtub.png | Bin 0 -> 1323 bytes .../AnodizedWulfrumBookcase.cs | 24 ++++++ .../AnodizedWulfrumBookcase.png | Bin 0 -> 1877 bytes .../AnodizedWulfrumChair.cs | 38 +++++++++ .../AnodizedWulfrumChair.png | Bin 0 -> 688 bytes .../AnodizedWulfrumChair_Highlight.png | Bin 0 -> 211 bytes .../AnodizedWulfrumChandelier.cs | 68 +++++++++++++++ .../AnodizedWulfrumChandelier.png | Bin 0 -> 1429 bytes .../AnodizedWulfrumChandelier_Glow.png | Bin 0 -> 703 bytes .../AnodizedWulfrumChest.cs | 51 +++++++++++ .../AnodizedWulfrumChest.png | Bin 0 -> 1354 bytes .../AnodizedWulfrumChest_Glow.png | Bin 0 -> 676 bytes .../AnodizedWulfrumChest_Highlight.png | Bin 0 -> 280 bytes .../AnodizedWulfrumClock.png | Bin 0 -> 717 bytes .../AnodizedWulfrumClock_Glow.png | Bin 0 -> 500 bytes .../AnodizedWulfrumClock_Highlight.png | Bin 0 -> 196 bytes .../AnodizedWulfrumDeskLight.cs | 77 +++++++++++++++++ .../AnodizedWulfrumDeskLight.png | Bin 0 -> 573 bytes .../AnodizedWulfrumDeskLight_Glow.png | Bin 0 -> 395 bytes .../AnodizedWulfrumDoorClosed.cs | 39 +++++++++ .../AnodizedWulfrumDoorClosed.png | Bin 0 -> 489 bytes .../AnodizedWulfrumDoorClosed_Highlight.png | Bin 0 -> 233 bytes .../AnodizedWulfrumDoorOpen.cs | 40 +++++++++ .../AnodizedWulfrumDoorOpen.png | Bin 0 -> 1503 bytes .../AnodizedWulfrumDoorOpen_Highlight.png | Bin 0 -> 260 bytes .../AnodizedWulfrumDresser.cs | 52 ++++++++++++ .../AnodizedWulfrumDresser.png | Bin 0 -> 905 bytes .../AnodizedWulfrumDresser_Glow.png | Bin 0 -> 238 bytes .../AnodizedWulfrumDresser_Highlight.png | Bin 0 -> 206 bytes .../AnodizedWulfrumJukebox.cs | 55 ++++++++++++ .../AnodizedWulfrumJukebox.png | Bin 0 -> 1516 bytes .../AnodizedWulfrumJukebox_Glow.png | Bin 0 -> 1401 bytes .../AnodizedWulfrumLamp.cs | 63 ++++++++++++++ .../AnodizedWulfrumLamp.png | Bin 0 -> 921 bytes .../AnodizedWulfrumLamp_Glow.png | Bin 0 -> 436 bytes .../AnodizedWulfrumLantern.cs | 67 +++++++++++++++ .../AnodizedWulfrumLantern.png | Bin 0 -> 737 bytes .../AnodizedWulfrumLantern_Glow.png | Bin 0 -> 431 bytes .../AnodizedWulfrumSink.cs | 24 ++++++ .../AnodizedWulfrumSink.png | Bin 0 -> 742 bytes .../AnodizedWulfrumSleepingPod.cs | 49 +++++++++++ .../AnodizedWulfrumSleepingPod.png | Bin 0 -> 2172 bytes .../AnodizedWulfrumSleepingPodActive.png | Bin 0 -> 1976 bytes .../AnodizedWulfrumSleepingPodActive_Glow.png | Bin 0 -> 769 bytes .../AnodizedWulfrumSleepingPod_Glow.png | Bin 0 -> 787 bytes .../AnodizedWulfrumSleepingPod_Highlight.png | Bin 0 -> 357 bytes .../AnodizedWulfrumSofa.cs | 56 +++++++++++++ .../AnodizedWulfrumSofa.png | Bin 0 -> 921 bytes .../AnodizedWulfrumSofa_Glow.png | Bin 0 -> 279 bytes .../AnodizedWulfrumSofa_Highlight.png | Bin 0 -> 179 bytes .../AnodizedWulfrumTable.cs | 42 ++++++++++ .../AnodizedWulfrumTable.png | Bin 0 -> 895 bytes .../AnodizedWulfrumTable_Glow.png | Bin 0 -> 240 bytes .../AnodizedWulfrumToilet.cs | 79 ++++++++++++++++++ .../AnodizedWulfrumToilet.png | Bin 0 -> 578 bytes .../AnodizedWulfrumToilet_Highlight.png | Bin 0 -> 198 bytes .../AnodizedWulfrumWorkBench.cs | 24 ++++++ .../AnodizedWulfrumWorkBench.png | Bin 0 -> 526 bytes .../WulfrumWallMountedBulb.cs | 12 +-- 102 files changed, 1421 insertions(+), 23 deletions(-) create mode 100644 Items/Placeables/FurnitureDriftwood/DriftwoodToilet.cs create mode 100644 Items/Placeables/FurnitureDriftwood/DriftwoodToilet.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumClock.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoor.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoor.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.png create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs create mode 100644 Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.png create mode 100644 Tiles/FurnitureDriftwood/DriftwoodToilet.cs create mode 100644 Tiles/FurnitureDriftwood/DriftwoodToilet.png create mode 100644 Tiles/FurnitureDriftwood/DriftwoodToilet_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumClock.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumClock_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumClock_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPodActive.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPodActive_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable_Glow.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet_Highlight.png create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs create mode 100644 Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.png diff --git a/Items/Placeables/FurnitureDriftwood/DriftwoodToilet.cs b/Items/Placeables/FurnitureDriftwood/DriftwoodToilet.cs new file mode 100644 index 0000000000..5b5863386e --- /dev/null +++ b/Items/Placeables/FurnitureDriftwood/DriftwoodToilet.cs @@ -0,0 +1,25 @@ +using CalamityMod.Items.Placeables.SunkenSea; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureDriftwood +{ + public class DriftwoodToilet : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 30); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(4). + AddTile(TileID.Sawmill). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureDriftwood/DriftwoodToilet.png b/Items/Placeables/FurnitureDriftwood/DriftwoodToilet.png new file mode 100644 index 0000000000000000000000000000000000000000..65321ca8fb97455630fa59138bff12f5699253fd GIT binary patch literal 336 zcmV-W0k8gvP)Px$3Q0skR7i>KluK*EKomxgk}kwWY@6DY2#rb?MX;#5{(rg>i-HvqAB9R&e087_ zK`>p!fl(^>7>JAB)t%Qjhwt7Q_>br#_TWAS0A}I>fNHA|J47IUDuE%BLN*70@RtEV zXVBVyS5!B!AcW>RCKOx0r(d4_0sjm zM)_7`$2R*tO$0Kz&o}^7N>2ccM`Hl28*Af$oYzM%@H_xs8Z}TnNSR4cypeB3j)lL} zM6g{22yc2WmO=I4wGN6``m4|tKL9M&9=v}H0qD)cj`Mc>7y7DDa@>$$izv@0DAlp^ icL0dDwjP4$1%3gVxmSC3=W^8m0000 "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 60); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(14). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.png new file mode 100644 index 0000000000000000000000000000000000000000..c8ab44889a8a9fd88e178a30a5d46ad5b17664ea GIT binary patch literal 500 zcmVPx$u1Q2eR7i=^0LJ*lLm6BRy(t{qW+hRQ8$h8-U_rJM!&YU?j=Qn3&9Mo7VOY?8`n z`st0MyuYE=3;0QmwF*4o51IhOV*vp2*_^U}w3q;w@lywOAmI3g&%Y!D0?sD@h9*K# zMq)4V26iA&s)6O%Nwd78)!S(~pv~*~HsC|{-qJ3aSE~L5WUmHCg8+Dp4gh>T-I`-} zm-kPBQ|YYMzP(BTaG$vYU@vhDwjdxsn+MkbxO{m4j2D%`c&{6P#CaTm{$@W|5Rr@% zugWh|_yFKDlGgl=l5bkuJ_JO~9;c;aW#-9|X|2DHUG-B+xJYba4uI(4i83dzwQ=<) zAa^og0(e9106gd3m9@GNJ#uw)iM{=oxm5XM2Lcxy+<1W0000 "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 60); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(20). + AddIngredient(ItemID.Book, 10). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.png new file mode 100644 index 0000000000000000000000000000000000000000..57cf58bd966ce394db32db92241a6df03c365571 GIT binary patch literal 795 zcmV+$1LXXPP)Px%)k#D_R7i=I9&-tq*|w`J0w}&*v8ajHgBcc=>z|_CV?!LWNAf+6KV=fgwwxLZCQPrZ`n6 zpzKk67=YxP6zo7+afH?C!XIq`;BNQ=*l?0gW^D_MnLeOPp5k29d7S+t32||i=dkN^ zcpD&gy$1lduO4>HRXH-lC|Y8-TeHLg-6!6hTf;;+_9_96a;U5v*@ONP01scUTk>xI zjR5e>n6MT|T0@t&&JsJ1P+8yMQvftZbXgb?B=wpHfbNX=JKfUFi_5}QaZ0$`)a~n5 z9$`=2ZvZ-sRRCrZU*%5yWdMFnh*kzeR{*HdLXtQ89)N4T(v?q!=K-iac^rUJLMF7M zFABhh`5fmsJku+4xSWyhZ1x)f6kO7c`uDfu+m~d+J?XxuAB4N;MbX}TCTG_1Tk6h? z%E>vWG=rg|04yzJ07$GiSQ5|vlJ0X=ixQ2v(g3u0egfe0xn$o|4FIY)T22Vkce88Y zD2IkFb608#${VlAnYXryR(d|Q1JGU&BwB0*fT~78)apG3fWLnWfYf-G)Ky9|dr-7g zS$0~GgfF=P$bS?>1xc2#7v>yP&TsQ3Z?QU*StXfmKG_(6j3-XF1 Z{0GFv>T3-H`UwC4002ovPDHLkV1nmAb8`Ry literal 0 HcmV?d00001 diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs new file mode 100644 index 0000000000..d04b562a4e --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs @@ -0,0 +1,26 @@ +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumChair : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 30); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(4). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.png new file mode 100644 index 0000000000000000000000000000000000000000..649e6f9e8211aa018fb7f7f57505e367a58b272a GIT binary patch literal 449 zcmV;y0Y3hTP)Px$dr3q=R7i=%l+Q{+K@^8Swd6u5SsMNc7f}*Hf`Kb(87!hSyhC!q)crLGP@PZH%OEF^JG@S8x9z|=PHm|*oA zeDgrnLDaMqCP&kC0QQ4^6Cghrc-$pu_S)j4c+w*1kH^*(QdgIC;hdmr7y#(%y_-(} z#J6@VLPe<0WRFO>bApFt3V;pm4FF>|2EcnPYP-N_iC!7jM=lYl$ze7FKsYAup2=k` z!k0(kO}i=bh5DU41fRWqkV=~X$I^?4^kQ3j@hb1$d2Ru4TW+{qiM483&`6TRC>5w2O+Ur*Tp)AjXV@>?R;h{LAuyg`diC3q40GwT3ScKPd ryvbuSS2yl^P$}Nq3RN$B4aWo@ "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(silver: 1); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(4). + AddIngredient(ItemID.Torch, 4). + AddIngredient(ItemID.Chain). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.png new file mode 100644 index 0000000000000000000000000000000000000000..94b71006d0359d8fb22665f2df2ba3e9950da4be GIT binary patch literal 547 zcmV+;0^I$HP)Px$-AP12R7i>Cl}k%oQ51#0TO4UM){3H&s7ka{S6NN z4N8ANAv7TBz>z2t1T|nlL3}?Z2}+~U7(45Aus!0vsP_uh6L5{rYp;D4YoD_XTo5!v z7Qk?{34rRl8USkQYXLY*p91hFa|S>>aR|WP?uPLk?+3TUuZ0q~1M22+umIZo%K)gz zX8^b=`~@I$aAP~~hT>K1MB`NffS%qi08;rR0F&v>7x5IoVyD+xa}|Jv-)pvguh6FW z{UyHl<$GU;^%e<#&aD_|t!nibH-|&EjkeAR0I6kpr-LH{o(N}Rvya9r1ov+&v?~4@ z2?DTF{tp0iCz!ZxBOg@fUGC?KLOBk&;r2XQTC2c;>~Zuw>wn{ zfXb&&an2{XePJnTr6d*h0gyY9{a>5Xef$AgPaXSgMANg|GVsW!PjO-*ZUAJfMl672 zgLt;SBwl{G6z}UpvTinrXHJjH{NiDHGNSrZYJ~3KV "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(silver: 1); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(8). + AddRecipeGroup("IronBar", 2). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.png new file mode 100644 index 0000000000000000000000000000000000000000..44df951fe54a1f4612b41342db01780d806609fa GIT binary patch literal 833 zcmV-H1HSx;P)Px%`$a;C!GN0B^1rfQ9)50LGU_0r2=eD*%b< z1pI>{8CPJ<(<$?dSAqc4mo}y~q)I3{!!H1cJe-0wN@QGtKVm?cw_T`CxnZv93;_9k z_fpPlENHBBuFi;EyAsY*z~lD-;LCAa#?{Am=Js2l(0)Tj4ggVqJmmqLqd;X?v* zd!qpC*_&%dgi$CgOcrOpS`6trRW2G|24LjPJOJ5+Zp(MZM#C-~r9iD)e7VJ(^hk>j zfY5|6Rwl3WWlQj+HAe3CEdtOI7iCnT?L}Jwh#KYeJ7Z>F<`qz%6qIZOAUZ3)Q|21Q z-G))HNfdb1_uXPh$DDJ7#|x2mW(p3W#7yW zuf@=%qmuw!@7MuJ3Mw`ag#aihDVBlpFW@Kz=3=t|96EK(vfx4Qgr(ncI}3mtS0^pw zHy@Xo)@MkHdS84RfV{>!07m);%{oyq;|i=+CXLF==k^0ocTnno=`Qiv^Cwc@yPgdL zFj|X z)Vmk}({JSkH2iW1fT87$kW>rwHjVU4F3h+BtG7T;rqEjObV8VQUAqN9TX|keLwbvT zGnU)ptFqPteJv}TqktXuT5#Vm@C3an*GD`*0Z5ovurDC{?C%CUoTGrPx$oJmAMR7i=u=La4;fibg3qZ+Tv~1|KL!6MK%Ra z1|cLRh)ZBbWFh@P+9EX`WDpK*g$>VJ-5WiT@X^`sIq!VW_ndRjxz9lhiA;_(tnA6_ z2Zxott5tx%it{&vU>;dtwMK}=8(3u0@eF=MU7Me20L(3h0ocozECE(R69D86vjFU* z&m>IydLU{pn3pbZ0C4MlmH?%M`JM2qRSl^po$rBqTSU#>dM^N1=Wmk3)U;F5>&veI z9B-QAB6^aH#jz!WwgUwGbprl+=K{1V&i)}yQn>mD3?0pP+rAlU`3 z{k!PaW2*Ef<8;mifKhQ-0tvqbMQ`66j0Xb%gqKVXkN0H&d>f~h0Ojpj00u{W0A%-% z0Jtj@!ImC~oe_ZsfJgHJ5C{bU*xIcCpbd9Rjz;AjfM}C>F<+3F+qR27Z_(F_l#$-x zXeb1LPm||`=J6nr0^lT-QE*JLe-6}4o{cB?)*B&0uhv`@``=_$#GI%*t5!AOKl~Sc Y08&1L_d+Wp4gdfE07*qoM6N<$f`a$ZsQ>@~ literal 0 HcmV?d00001 diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs new file mode 100644 index 0000000000..8c7552f15a --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs @@ -0,0 +1,26 @@ +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumDeskLight : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 60); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(4). + AddIngredient(ItemID.Torch). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.png new file mode 100644 index 0000000000000000000000000000000000000000..fad6a339c0b2993a8a3a30ed94dbdfa980ce53bc GIT binary patch literal 363 zcmV-x0hIoUP)Px$B}qgTlQB!fP!xr~s36!Snyrf&qJ<8H3T~Dzbu1R7AUL@D8yx)&{sTb} zCs%RF7_i{rlpzkfh>4-JAgIsby(_-pB6(*zT+Yiq_uLzg3VO$51@OAIXw`%K6M*>a z()(RssD9wTSQ64cIZyzjqYnVKqZdnrgH{Bj~iPV4FH(* zLjZzYzjK#CH!T0|Y#{X{90Tx(UPgTfe)$E!B=Z4?&8$@?F(!jdXW*A_jvNSS-07K; zQ14q(7swrmt~B-94u0->c(|_snjPI~wxukgbbh`s0JuKCa&(D8n#B_Ut!V(jO8RaI z=hJ0Pj80JB!Nz7s0d$8g0A_<6fOb?^LfOLJ&MpAA>D "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 40); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(6). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoor.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoor.png new file mode 100644 index 0000000000000000000000000000000000000000..dd4f7de09c2d0e2311c1eb71caa44b4b31429315 GIT binary patch literal 508 zcmVPx$wn;=mR7i=vmQ5%`Q5462BWipbF`3DR@wu2OgHmEjRupAr#g474*;!jE*47pl zYBp+0Vu2b(q2yy8W@Pe}k@PIyoN4ZpLCt&r%{%9R?|J>+z3-l`1CyqQdUUgwOUoNO zj_kbPKgEAhp#+O_Q#!!t_{hIr&>CFV0cICg9M%xZnsxMc1F(4<0ida@MVWZ^a-!r~ zG6g_?x^65G)~z9wAa;HUz(9WpfYt4A&O)!tsnm(`PnfvAQ4Co_E%^q(Yf$|yOZS!E z4j%^TVXD$1!k-3&Y+`Up@n<5F0Q3oAd6hD5A7O@Q-XQXwe;7tX5dcrO#u`(u&bN=y zyqhBT)`Jmr)B+IK?v!!s2{*Sj0NUECA!|1Y$kPRY7EJ>efP>{!r#a$>WY=T z#^VOS?>w-HP{_&q8HZQzP "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(silver: 1); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(16). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.png new file mode 100644 index 0000000000000000000000000000000000000000..b0f8cc58c4a3dfc8f565a997a806d80da00bc843 GIT binary patch literal 599 zcmV-d0;v6oP)Px%5lKWrR7i={mrYMoK@^6c8WyM^A%)rxt)Njiq^1##3H|{$ELgbqSGi{G!o(H7 zKw|_YR%582p;#`Isy z`qy8s0#IGJ2SE9%&8*PaioD~6=8pydt?gZ_|3mL}pP(62qyDZ2iM^mbq8W)n^=rm@ zrokPrcg7V+x86PA1{pqFqRt~D8YWK2SB&kJu|MGH(16-+>SzZ z+Oow^u`&t3{Pju8f46K`oA9==YT0Yw|Co3+6Hg2(U$nkwjUOJyF6GYyAU)Pzs;`); z>Qs*a_&8-=oqP4dw%h-_wippZV$97agv;2M&$Ue4HfQC^*)NERJNM1={TtK&(ts)*?xaFNBHeON0O`=|jSFUccd$8Sqc#Bb zZ--V~_pDWZAza2z=~#@DHIE^k+4%hzJpTk~(4D^7oAAbUZyn+5m>Q>;bM8$i{#f_; ldN^Q;34eSC2|t9)*fAqL>_>99BKH6Q002ovPDHLkV1m)oA8G&q literal 0 HcmV?d00001 diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs new file mode 100644 index 0000000000..6f56e7c777 --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs @@ -0,0 +1,25 @@ +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumJukebox : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 60); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.png new file mode 100644 index 0000000000000000000000000000000000000000..672db05d5a5d89dbcaa079973ef744642d2e129b GIT binary patch literal 937 zcmV;a16KTrP)Px&V@X6oR9J=0mQP4jQ5431P9bKFQ&iKRF;k~3Dw0B4M3I5HFoOOp5`?0#5JD;n zf@skqC88pXqAUtp8AXZ<7lWWt6xEcJQ7V`^X4*8S&R9m&OpEib%pIR5RQS$n?sv{T zbHDGN^UjT9g0{7AX9QrtVbkzo|9sPU@4fQ4iR86SAm+c?)Uh0~j2+vP0Vv76GH$|? zH6H-ThDbC%mLij`z^GFx<{itE062f5Li4|AD+J(WyFgJ8mZM)x-WUOkg_1)`9ufpANWY!7_` zz-AZb;aaJFjGC~m+YdlapgDpi6i`3bqziM^-vh3n5XF4PU>JZYZ+ifESM}A{S*#_r zCrQ;0VKARH7XY8f4?t?36M%prm~|9THqzIegDB=7TY3Qq21DZ}RDPGS9x@ad9zJIv zX9b@v-C#Wh@c#gyeB*im9J!8BA!auCMQZ5oH@k)xr3lA8b*-lREU18Cm9L)yFlBKr z0IS0<0Pw!=2O!uxti>nKo2IR^Gh~KbYv|W-U)zwjwypw=&HDgY%}rSwN<0iz190`i zXNZ~^Eu}sH3J+!hP~PgF&;cf20lUj??%5{&+vhF?z}Zr78m6XV@q;-UuBK|XTWa87 zS&HUQ3N(Wy6i`3ZNh_W403`RHHauql@OG{MV1vC*;_h$L5-I$8*KPsg6AjPtaSvb} z1!8UB$zlM4Go^3U6l?Sx0wCh*v8 zqy;z^$oJsls{{?t`}tg3w "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(silver: 1); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.Torch). + AddIngredient(3). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.png new file mode 100644 index 0000000000000000000000000000000000000000..a19882f1b346c8eca94a5bca8fe7f0e31a369f27 GIT binary patch literal 449 zcmV;y0Y3hTP)Px$dr3q=R5*?0)X!=ZK@i9B&jdj+1|u=xs)t2l76J)uASc~hJc$=^ArBykzJM2x zUVMTe_yCfCPas|vK^Sl$LeTt?2+E40FZ{|4qJwn4se3amXD1rP5&%94mjT6fw7 z?9CR3NG(r;$HYA7&Yle4OaH-%(P-9p4wFj7bzX0Scjd996T4fXhE7>iBz2TEZq-ZA z-9+N(&OR7^8U8)5hrY$rjD3vz(SLB_>wF!Y-98So{tQ?>HyqXBOqujO_n4aA4wp9oXm(Y4rb`H@%P5S#4gL1Gmfl#icM&$+Mb8()6+Lu8yCt rfw9^d@TK<=e16{puYQEraA4w33UY6G9Kj4400000NkvXXu0mjf8Z6F4 literal 0 HcmV?d00001 diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs new file mode 100644 index 0000000000..8f6b1827e4 --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs @@ -0,0 +1,26 @@ +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumLantern : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 30); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(6). + AddIngredient(ItemID.Torch). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.png new file mode 100644 index 0000000000000000000000000000000000000000..8e530f9b953be94dced357151e17a6d04f8a5e65 GIT binary patch literal 468 zcmV;_0W1EAP)Px$j!8s8R7i=%lub(lK^(?^n?a$3SP`U`J!~35f`Ye%h&qLrN(lM}eW3adc`2e( z5rhPRpkUykEV`%>Wxk-)A-BWKM6*CHStF z#v=gd)jj~XH)R801eY3h8fxaXt#!>WT^1z4mF9a#pw^TFTR0~GOwY~$uzzr+)p<|g z)b*PWfbhiN&jDN${Qm&IX3(v50jLj~z)*K!#qt9XOU424N8YuGBE&pt4#nFtXHkDPz?dFbhqd+fjZlzW4{d$tBDLMk$_fc$PA8(r!bWFpdN~d z4|(=`mVQJ6oq=8_<(?q3vuOi_<09qgMhk$Ha~I5z{1R;j(a*aKdP!TGIn9|~X{`cK zN(RM$Sv2kmT0t?!vf2K5W+~+t%q#$hvY&Sulpe&|@^Y "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 60); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(6). + AddIngredient(ItemID.WaterBucket). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.png new file mode 100644 index 0000000000000000000000000000000000000000..c96f440a2bcd162ec9438faab6ca93256426d44e GIT binary patch literal 652 zcmV;70(1R|P)Px%MoC0LR9J=8m%(cjK@`S+6%Vbn4Iw6G6Rj9*4MGD^1A=%FdQnj*9{dmdoBSIT z!Gm4|4+T+aHIRa66-8?{HC2jf(A?r-=d&|I6WUVP&3D8{|!L)WB@=W$OG_xxej~K#ON{LV|K36$6}&ftAfRV51*0P88~{_2DJ+WUmJ_i z$6_Km3`pIAJolkUjt9A2=Rdq{fTaa7GDs8gGawb0YbCHE%N0%lP&_jOK>fus0Jrbn z8fx&dc~-B~0BC;s20%Of0l?2z8-Uqfs!t*q(2JiVY2e(23Rs@MTzWm!pw@{oX+o#v z4x&mLI|Ki#lC&Tc3wdYZRB;M`$=vu*gWYxyfbHhC^Sv3m_2J`MBVlzw@FNeZSpcT< z695#_6GIJ#`M&^k3{$Q8reoJJ@u%(@0EKiE`HK18HFkVW z2+3hUs>GaDW#hRIMLu)NJ1f?shnVo8+*|*FL^0q)Ig^@|Q%WYnb$7iYU-`TRK-k!F z>Jil`oxeB_)?IMn&JAb%vxiT>>Zme7)E7K3433@#boa}e+_u9gGIhD? mcm)4Gu+w3shB^>C1OEVi(9+1$@Ag&z0000 "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(silver: 4); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(15). + AddIngredient(ItemID.Silk, 5). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.png new file mode 100644 index 0000000000000000000000000000000000000000..b43829424195b6dbc9f26f67850392fc74dd04e9 GIT binary patch literal 647 zcmV;20(kw2P)Px%K}keGR7i={mrqF4Q4q&J8y$>Xx82Bew|^_81+|M7(nYbT2q}UNojQ1`L(m~Q zMVBreI|LCLL6#RT(Q&Nkr?VWUoEZRO(YjUHjb$?duYAp)1oJ--C>5OVJXi#9!Z83YojqQW z!%!pyK>z3y0NS@EDzfXob_0N>7O}hCI|Lr4tz&qtF3K^hU+#x|>nQ-9^<4$vWU{Ry zyZ$?u0cbmM6o6QK8vuvX834wzqHiC=rxV+Ycyfl|H$$O&Z~%b$nNI-J)U5;HKtmXS zoz;zo{>ZC>E1z3cK+0_C&1#(XF|3Q)=w<+3ew+qid_j`t>C#sKlATomEFx|BW-153 zMVH|HsfXaXiSdT)iULqOgA0U$yQMrO)VLEDj!J~T*dZhrB(BNG7JPse}jSnU;2_r_GN`%+B3e(SEJTWqYC z8RWyH)Rw&r=clFWsabC*-0PM7tt%6Tyywvl08H)j@MBibzhvJn>&H5V1G^d%MSy)( zlB=_kCIIT2HvzDFPvo!uU^FcKT>l}p-|N0-U=V=#{2~A^hMxoQAoIq~Y3;{6tW4|6 zAQ%f)8$ejZp!d)?L7R;i=&k3 he+_-hDXf3feFrY>v10Q>CuRTu002ovPDHLkV1hP#EYJV| literal 0 HcmV?d00001 diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs new file mode 100644 index 0000000000..f528d0b28a --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs @@ -0,0 +1,26 @@ +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumSofa : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 60); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(5). + AddIngredient(ItemID.Silk, 2). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.png new file mode 100644 index 0000000000000000000000000000000000000000..c848b79b7cfed88dcc70bc5e823bedf85d38afd7 GIT binary patch literal 648 zcmV;30(bq1P)Px%LP)) z9_!VEF`kTGG#>RtK@+0Vm~7irZH2b98t8g>Z%E&=MQ*Nhc{?+2X7+t==EWExcP+~g zvscCsL-!XC$Is*s%F|9K7G{r+`muj4CysGHmGS}RlPLf?{R05ng8=}^!Fd2a#(x8_ zr1h+SbgF+w`_pm7!b(g4;QGD~@UYu8$VHae@n1?$t!q*uwSx`--9VrhQ=zUO+KMCn zlHH!L4Evj&svtcVSz^aMR(9sps`ZW9E)0=sj*Xd-y5~;V|K>kZy(Ya|vS*cjO8a*< zA=1Pa7FT_MwOcCybQ*mCO7GN$>-7o%S$)z}FoU*_6zva^e^Dp`;5r2W(r#KJd?HOu zKDMUS=Z%6~_5uJi&pyM@6iw>&LLzad0zdoe2KM!I%anToQk7*rrTV6#Pi*6!>Vnq~ z)Vt%XDstQ01R(wVWoUv?KdP9~3D|-+hq8)upVVJ5y@kytQc9 zKh5nJdbQOL=sly3kj=fS0pRI<(IQc1b{nx1%OO8b85onYb&Aly{1Xh+f}3+ i)x1%+{Pqh(nb;rs0>tlY2jC9?0000 "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 60); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(8). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.png new file mode 100644 index 0000000000000000000000000000000000000000..b24d1203262a369dfbb10a0be7b84cd960417254 GIT binary patch literal 556 zcmV+{0@MA8P)Px$=1D|BR7i>Cmpw~cQ5=V#h=bHf5H*??UmA>-QX_(PXg9&3id>mxp%91DAI&`;V{q|CpXJ{Bzvmvf55NDt=LGo2 zt5kml2VL=qt4v3v$8+5o2|LG$qhc9=<6;Sb!-Jx8+|us%06abzFxP{tH}K@rnc8NJ#`sPo`)*<*;qg)GACkDlcBa)Tg?fA z;T8ZscQym?T0Kl8Kad4Otdz<^92mv(2dM)YV(7pP&v?qVbIh+nh{g9|ytl<*zqWHh0IEu+7$fCSb>DcR-7_wo>C$P1dzCR68fh{AK "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 30); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(4). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.png new file mode 100644 index 0000000000000000000000000000000000000000..5483bcf85a0919b5000c3c9e14d11201061ee95f GIT binary patch literal 377 zcmV-<0fzpGP)Px$Gf6~2R5*>rmBC8GKoEw%R1a%)Ye9`oBZY!WE-4uB1w8mJKAX?ssbE1bQa!4% zsRb1&xkx;0rkGHol7;@a%*^im8NS_h$aQo)$oL_hi~+cQOC2iIs7n4t>(V(??*Qx_ zcmPb*eqJ)ks+`n!Af1EL69DdpBLHsGZ2-calrDEt-@$JM;zTo9ny>9(^&2c^FpFPS zJ(>b`cE#aJ%Ld`u$#^aC9{UV8`o7 z1S<|4xev|`o23p#2`4fGabAB0_v0G}!0(=C06JX*V9Qkiv^pCAe6%)A=Z84}vd$g{ zPtWEb178F1nWO~=@?DmF5<~R`z^>;4;A+D~(r*; "Items.Placeables"; + public override void SetDefaults() + { + Item.DefaultToPlaceableTile(ModContent.TileType()); + Item.value = Item.sellPrice(copper: 30); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(10). + AddTile(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.png b/Items/Placeables/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.png new file mode 100644 index 0000000000000000000000000000000000000000..b066974f66761cc24fa95d85b2235cdadd11acaa GIT binary patch literal 422 zcmV;X0a^ZuP)_8o00001b5ch_0Itp) z=>Px$U`a$lR7i=xe!Ds=AK}j^C z_aQ<|@B_NDV29iuCs4`$o4vW+naTX;W7k6A;_Ng6cz+Fuqqyy8@}^VP*gvR80B)r`Q$bM63?QW| zB+~nzoc7=ILrrc!Gz{s2c?Ys?7J&7V4M48E20&#)R$DvYe=GptghK$nx+4HwwV!0d z90nvOKx!>WBuV%m!-X74B6a#`OCX^txkYqw?LNG|=zIEMB+SOnl14&H!-OfO4 zB9_!dl)GXw>p#^5w7&sp&9QGj12Vg1mG?m}7Yzlzs}klp&n QUjP6A07*qoM6N<$f`8qy CalamityUtils.ChairSitInfo(i, j, ref info, shitter: true); + + public override bool RightClick(int i, int j) => CalamityUtils.ChairRightClick(i, j); + + public override void MouseOver(int i, int j) => CalamityUtils.ChairMouseOver(i, j, ModContent.ItemType()); + + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) + { + return settings.player.IsWithinSnappngRangeToTile(i, j, PlayerSittingHelper.ChairSittingMaxDistance); + } + + public override void HitWire(int i, int j) // I hate this please make it stop. - Merkalto + { + Tile tile = Main.tile[i, j]; + + int spawnX = i; + int spawnY = j - tile.TileFrameY / 18; + + Wiring.SkipWire(spawnX, spawnY); + Wiring.SkipWire(spawnX, spawnY + 1); + + if (Wiring.CheckMech(spawnX, spawnY, 60)) + { + Projectile.NewProjectile(Wiring.GetProjectileSource(spawnX, spawnY), spawnX * 16 + 8, spawnY * 16 + 12, 0f, 0f, ProjectileID.ToiletEffect, 0, 0f, Main.myPlayer); + } + } + } +} diff --git a/Tiles/FurnitureDriftwood/DriftwoodToilet.png b/Tiles/FurnitureDriftwood/DriftwoodToilet.png new file mode 100644 index 0000000000000000000000000000000000000000..cb478a22140f33441c8cee72a3478a44a933c9eb GIT binary patch literal 501 zcmVPx$uSrBfR9J=Wm)kD`K@`S+>+(<@D8))8EsY?g6i@#DcoMguZ3JyXEE?@5nl@=z z53@&hCuLig7_#5f&YsK6`R1E5yAUHrj2OQQtKWd_mAnVwwmJZuSBe(EVs^y?7)uNT zuva|pJ2$|Y03yr39g zMbAA#`cTFm2jH-L0YI&OZvmu|(;mRaQVxKs(|~``hqjm3JOC`Uwu<9?>jc7_j;w8~ z2k!-dz0!$=kqiklat8_IHW$b(o}QQipkX&bX$S%pzuDcUA351IkIZ*^bs4f7$dHfB zTpEC_!g|P|_D};LHI)jD^~&DMqsQxc&1XooQoX(bVE1?*0$PyUTQo5~HVR!%ql_h9 z_t*2uSl6m~42kMx?**cPjK9}9b5W-Z6cao7O$ch};3zbo`5KZ3(U9!%b467?SigmU zCfb8fA11tTmA&ozOWw<->c~#S7o~X&iOQdovj8;wJx%+}NX3FgVg!KFJEyFW&H~W( r-%EUsFw=HU&F5-=FUBzxFDMGH74*JXEnMQg00000NkvXXu0mjfML6KW literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureDriftwood/DriftwoodToilet_Highlight.png b/Tiles/FurnitureDriftwood/DriftwoodToilet_Highlight.png new file mode 100644 index 0000000000000000000000000000000000000000..784cd7f73c0c759291907a9281cdf2924651820c GIT binary patch literal 189 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbB7>k44ofy`glX(f`lzX~3hD5Z! zz3Rx("CalamityMod/Tiles/FurnitureWulfrum/ChargedWulfrumWallMountedBulb_Glow").Value; Tile tile = Main.tile[i, j]; Rectangle frame = new Rectangle(tile.TileFrameX, tile.TileFrameY, 16, 16); - TileFramingSystem.SlopedGlowmask(in tile, i, j, tex, frame, CalamityUtils.ApplyPaint(Main.tile[i, j].TileColor, Color.White * transparency, false), default); + TileFramingSystem.SlopedGlowmask(in tile, i, j, tex, frame, CalamityUtils.ApplyPaint(Main.tile[i, j].TileColor, Color.White, false), default); } public override void KillMultiTile(int i, int j, int frameX, int frameY) { diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs new file mode 100644 index 0000000000..a77d579cf6 --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs @@ -0,0 +1,24 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumBathtub : ModTile + { + public override void SetStaticDefaults() => this.SetUpBathtub(ModContent.ItemType()); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.png new file mode 100644 index 0000000000000000000000000000000000000000..552c86a3e510c4c5b5b05283d0f5bca4d8b5ab3f GIT binary patch literal 1323 zcmV+`1=RY9P)Px(3ddo$C% z&fqlnx0&2~-@EtBdGGx1z30wkm?ylk>)9f}zTTr5fSxBd76GpQItswY`AeC4*s-ni zt|CC|iYx#JkDtlJ**9Of1nUYy;9FrMd6Hj-aCVC;-c{%bm}j71<&YMW~e> z8qXs8dPc`;YDc~C3gk&e!$!e9YdVVn+c&QSVDRiYh^%$g-qG|Y0P7xF55UCe7|fvp zSmlu&12>ieFg%pc5Lp|^jt@>>aM~LcuRxwuH2fOKDvu~dcBn+Hq4G#6q)@X}0Nt%Y9R)GHrVFT4VIQc;Qq zyK523s3u`EtrKRgk;HA;HmAIM@1YF9{x@GPM(ckc9WUFD9nWT>ldy`Ew005RKk@$Y z3gk(}0!7x=)r$aFmJRYMdUMx4(COUJmb=|4A3S~rfUf7C1fcK3&z!R5&O72GcK6;x z06ep!JGTAumH0J`9dBQliQfEFmvh~C;kVfP6`9(lfxA2N{wePtuRxwuly+fu&a-8` ziAi&=-gHH#%9_g+nIpekE^E*?Uw&J*U6CR??0Djb?*?M;pT29tl;d|%-aqmF@e1Ve zcs!m4Wm+C6iT0eEw`gu}2H@D?k1_x+zP7UnFnaE))4sT^sVYO>d+V^%PbH?tZvb$8 zhxpn5i|9VUjunk zQQC#syoX3q9?O#D3jvr4+jE^QPJ6CpVO0jLyZ6?z?S;v|o$-D&5hV7!z8!$~5A+7t z{j~%l-^WH;rBnH8{j+w_H2`+Jx(fmYitVpn{waj@DqHkCr9?CJk5?d1Dylw>x5|?= zciVbJR<6aZU%hw@L^7{?H~_#)n;wTqX7#73q1bU0X|k)M=^p@&h3(3xC_mF3=374b z>S9&jccyedayLZsFE*be`v#03Ywe#(&q-?~t3=h}708o{X$q7y*H^n+&>TH@{to~) ztaRsk8(BZ!@1Du1yo$b{;!5zLNK>S$f2}3DIv<9}S&vYr_w6IWnUr0#%=8zDN&Zp) zue`7^_CB3OP2_`2^0l!*A!_X(Jr608#XeW7K$ZOC708o{#5GXl&2u76`2>rNsDgF@ zlffKo=XkN|`@XVei~7^9LTiZq?|$xFcly(yAA9Po-9_4eLnQe}XIdIx$i5Aa=3>83 z?fl~^QWDDF&D1|$fjp_GxC={)w4{7c|Ak42DA9?p!%Rdee-Z8)!nr%?_b+yrp~zAs zZQYb}`nPj=p`{&wcaFHH*K_?pEW0Msc+KtY&ULac$^KgTN6*7zGu5+IX0Je=R8*Y@ zD*X#$C=W5a5Y3^=ME8gFnv45S1(Bv*Q=uj3Cui~)C(fS=+QW#_?xB#MbnaK=+DH this.SetUpBookcase(ModContent.ItemType(), true); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.png new file mode 100644 index 0000000000000000000000000000000000000000..93e13605b4c033d9baadde0309e00766018b2afa GIT binary patch literal 1877 zcmV-b2demqP)Px+4@pEpRA_%G%gtec;khSJOCSCetrlb&>Vn!U^I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55S(!-Z4UmR-aUY_3e#9t6-7JIdM?lY))Cf#u(?Xlt`%AIhz%G8MH!obUintb;fqT zyEoH{tU|q6yT3I|dt`EKz4Y`zIK&=fikk(?0cdmH0f(#6Yi-{~xc-sKQ9Z_r*kR0$ zmM1$*h4YHvZrcICrmb6y_DH?rXmZpmDs$nYdPVForqCEn&zn9dUQzYZe{O_B>@lWj zh?9CCSEXk0e|bgKV`QHGMeH#){2OkTOG7X#OiwwFG0f~;V`Mp+FOFtgis)rbqv6Cv z`Ja|Dq${J*emW_x0xHVoy;trNbMHx!vC7f?OTA+tD0Rq~`KQDL#vA?tmWUuScvwS! P00000NkvXXu0mjf20)=b literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs new file mode 100644 index 0000000000..043eaeea75 --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs @@ -0,0 +1,38 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.GameContent; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumChair : ModTile + { + public override void SetStaticDefaults() => this.SetUpChair(ModContent.ItemType(), true); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifySittingTargetInfo(int i, int j, ref TileRestingInfo info) => CalamityUtils.ChairSitInfo(i, j, ref info); + + public override bool RightClick(int i, int j) => CalamityUtils.ChairRightClick(i, j); + + public override void MouseOver(int i, int j) => CalamityUtils.ChairMouseOver(i, j, ModContent.ItemType()); + + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) + { + return settings.player.IsWithinSnappngRangeToTile(i, j, PlayerSittingHelper.ChairSittingMaxDistance); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.png new file mode 100644 index 0000000000000000000000000000000000000000..6ee3ada599aa719fb87525a39e27abeada23a5a1 GIT binary patch literal 688 zcmV;h0#E&kP)Px%YDq*vR9J=WmrrXGK^Vq=o7%7lNgA8f{1HXzKMIYsP!NI_K|FX9?RV%W@;g-U z=D|xYA_##LQjn-Ysn|_OVy!KdrD3}sW@hUwn{F&3Bjma4WZq|!g zJ5DEU$^&MEU93OjQkSB&S0c&;G&fAmGaD>hdynH2GC9)QN6tBtP?#TUw0L-V8KEU?Tk#^e5 zb4b-40{FZP&%vjPXO{aieu^3+9#ThaeF8@WlQT70Om^90Vv&VXAI{dcc-8Y{j z1(!G00LT@^=~}C9Xz~3o;`H?#5wEr1X>sEm3d-%1$}RDA5&G}r_D&dadnv5swOUEMDSzEmKv@SWpsvMt_dbJq7xelocyR~@_BJLn~1;7jW zITBZ?pWVL$z{97HwfL5NKHrYkG1no54~-@OgHBKDZ`F5XD>IhxIbVmm%SORChkgMM W#OYm_IfRJ-0000|k1|%Oc%$NbB7>k44ofy`glX(f`^m@8DhD5Z! zoo2|_V8Fx7`RIQP4qtD#KEno this.SetUpChandelier(ModContent.ItemType(), true); + + public override bool PreDraw(int i, int j, SpriteBatch spriteBatch) => CalamityUtils.DrawSwayingMultiTile(i, j); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + if (Main.tile[i, j].TileFrameX < 18) + { + r = 201f / 255f; + g = 226f / 255f; + b = 122f / 255f; + } + else + { + r = 0f; + g = 0f; + b = 0f; + } + } + + public override void HitWire(int i, int j) + { + CalamityUtils.LightHitWire(Type, i, j, 3, 3); + } + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + if (Main.tile[i, j].IsTileActuallyInvisible()) + return; + + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y - 2) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.png new file mode 100644 index 0000000000000000000000000000000000000000..b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zRfnZpd%6QWk+Y{={O1b zQC;)_0F#kvNBeT}(pK7{%CLrqukHAM%G3_QC`>bwR_i5Vzh6;fQGZ!E07qBU*mLtz z>WH?-9xGx*5i+~8saLbSu{JeIt<#6YD9T-K z)*9pL2>5D;U=*eqp6A2Dmj<%h!P;7*VkJpg7IHmO(*wYKn$5@A+TlgI2=+q8n%NDd zppKSm$Ni){iu*}z_+f`pm}dBX0&{FmjZI-|ta2+&Rw~BkYOE{kew&aJyz(a@(>!Xg z7=>wu?BxIUL?G>Xi&B$4F%SwgJngp3mWx7IPx%c}YY;RCt{2+09E-Q5?qcuVrYOj!kdm#-V0h7!?UE2U|!4(xO5T+O&xNia>(? z1{Xol#t@6^U3$Vq=i*STq$89BA%)q zmbhnn!-L@^0J6*g;4loplbI9%tCtUigv`RvmG5u>RW^@Dk>@ zD}6ONRsqPR%zlTo=^1waGe5TuKt7NRZ~xS1veBRN@1HFDJ)M1~NAqPm3&5M=Xa(SD(ws<~D4M&y{KQnv747vN_sq{G%ii62+@vfFnk1GAwbx9u zb;O+#7BN)`vz#V-!=I&435%G}5@vhNK;QkE`zOoWhq+IV)uZ-C35%G2wz>x%nv;rb*D>F? l^W!J%+Gok$C}AQZo()); + AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName(), CalamityUtils.GetMapChestName); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; + + public override LocalizedText DefaultContainerName(int frameX, int frameY) => CalamityUtils.GetItemName(); + public override void MouseOver(int i, int j) => CalamityUtils.ChestMouseOver(i, j); + public override void MouseOverFar(int i, int j) => CalamityUtils.ChestMouseFar(i, j); + public override void KillMultiTile(int i, int j, int frameX, int frameY) => Chest.DestroyChest(i, j); + public override bool RightClick(int i, int j) => CalamityUtils.ChestRightClick(i, j); + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + if (Main.tile[i, j].IsTileActuallyInvisible()) + return; + + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.png new file mode 100644 index 0000000000000000000000000000000000000000..b34000a60313ad19ae34841885b96845f1ba147e GIT binary patch literal 1354 zcmV-Q1-1H#P)Px)1W80eRCt{2nr}>%RUF4ZH(XLmq#(*g??e*J0wNXawj5Tv`DfXm)mX8$V!CDZ zCfoY=B45;eQRdo;EvdB4HVpa$i`=e3&WaY05I6!AVi*@8@+Ppt{@q^u&Y}A}!hO2B zwnsSMH_tui{Lb$_=X-wVch33l@em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WulfrumChest_Glow.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest_Glow.png new file mode 100644 index 0000000000000000000000000000000000000000..a415184891df4441b2db582ac4f77774027a5cfc GIT binary patch literal 676 zcmV;V0$crwP)Px%UP(kjRCt{2*u860Q5?qcZ?xhdB2tso7R4Y4YMOK^5~R7lM5u^@I&^UIrG-+| zqLWLK$v;4w!D^8bFqBx(MQp9TIuyxbV}oL$Sfh<5HZFD%lsM!bh)_swP`vT}KHK4U zE*u`t;lcw#2qCP^VfKTqo|Yg$v)icwWM0fg0lfR#!vNpD7IlF4^SNjB9B55FAN@@= zC**8%1p!+6yLAA6XA=PN&>aWBnaOh{fOP5y0L!-@YXG0#eKwVp!3dj@H4Zd0~8C(|Hr>f2qA1A^C-Z9P*)h>RrXf0xL}nQHak%O;KPlO&05%X&SM%C$*3e0wN~?wqer#!WTdeZ64liF z%33?lh5-Wc>k)wL!U_PX6FVIMoevgD0D(hp0LJ!Ti~!_jM{Lr~^Q7MfLCJmi+x3)^S9R zi-q^I-s*}|OpcukTmqCd1dptH>A6z#%~Z{tqaxdqxT+O1X6RpUT5w{!?d~@V9WEHW z-_*5SM_>wv7mI3>kmDPpR$rgQ=`#<7`6TKCjd~g-Ao6ot`gB_n4yk9cVIQZk0u_Nx b?ugYF>Zy;Z+O2#C=sN~aS3j3^P6Px%heJOQ@kKsx{O_Hfs0co@n!W@DaIq ziNJoM#I8jEUPrcSaqoGC+pHs0QzdyH+}z!-FMb9fb>b%g`J!5}WjzuNpS~ReIC?Xs z*-&cj%&{T>7p^q{&>wCAU?e>R0lU9-HRQQ$Vb%fP9@gKeGI>&*17D`O4`J{T6PfN4 zcMUvkRr7@#wfW_FrtBpodjF;XKs?z8K-ZLt5BzNxQbOR45f=%Wt|>)kTTHK=QnHtj zcfJA_AfL?v5Kkrm=vz`5Ub&@QCN(1xBI3f!(GJxRQx};}YNu-c7?-`Jc>*=hV^Rw( z&1x^&xwj_-@bPV08~5V*EAai3%lS-HHH4PA%si`0X5XAI0PH@{4nW=*_u$?`?Oxn! zt~ZrVu=W!YnVE?DBxCdcX|+U5Sx2a*n%1g6V=MZpP)z9<00000NkvXXu0mjfzd1+7 literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumClock_Glow.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumClock_Glow.png new file mode 100644 index 0000000000000000000000000000000000000000..8c0bf62db6b075137de004a14be6c45fc5a35216 GIT binary patch literal 500 zcmVPx$u1Q2eR9J=Wmc2{EP!vZ`)IqdRU5bK22iGbNcGDJ87r{wzQEB|Z#nI6r$)JCP z_=$FO5?riMb*n-tt_}qU!9@h!lsY6=^2C^m2#w@S&Fjrg?&1BCKt#mv(ER?W*XvG! zrj|_3Ol91kS%Blhk?pRV?s~~xKlk?exS-~HNdQ`YKEvPA7E~Y;4sIAGKs?=MDFp>= zfVk16tn0cV$2JX^5yE3gCQ7a6O@JZS%>CUP01x---l&#e0Z8;Z=S_@0TL8J;c`30Q zxuNhFk~GBw%m_nirsmj$?4+y5silSwM+MGI$A3*hRu8$8B@&*_tNZ5ET3({KA*GeXlD z3jAUe=88)u9#g`YcBTPb)OF{dHQr_~R`(kX^kW8lU7#W;BlLa^&-?jl}PZv#` q6qaz(cm7qs&>4z|h=_=2cHRM};fgl%p@kd(0000|k1|%Oc%$NbB7>k44ofy`glX(f`)Oor%hD5Z! zz2VK(V8Fu?@c8e0o4gngg=fi8N@s4bG+EZ%wN}QH;e(BsV5Rl^(lEBQPtGl}`uu7~ zA?M73+p+m|PIphHyzckz;B8%7SGMT8^mGB~Pa71o4!@t!$Xj_MK this.SetUpCandle(ModContent.ItemType(), true); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + if (Main.tile[i, j].TileFrameX < 18) + { + r = 201f / 255f; + g = 226f / 255f; + b = 122f / 255f; + } + else + { + r = 0f; + g = 0f; + b = 0f; + } + } + + public override void HitWire(int i, int j) + { + CalamityUtils.LightHitWire(Type, 1, j, 1, 1); + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.cursorItemIconEnabled = true; + player.cursorItemIconID = ModContent.ItemType(); + } + + public override bool RightClick(int i, int j) + { + CalamityUtils.RightClickBreak(i, j); + return true; + } + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + if (Main.tile[i, j].IsTileActuallyInvisible()) + return; + + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y - 5) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.png new file mode 100644 index 0000000000000000000000000000000000000000..3acbbd1bee26f47cccb8096e34fb6225e73a12da GIT binary patch literal 573 zcmV-D0>b@?P)Px$_en%SR7i>Kl}$?g46iQd_M8uLV3V{d;;zx>6nD|AKhG|6cW4gF=igz*zuF5QWHgo3Q_q=eQIp+@i zkM7aqT*%DkEr448Lv1}+zX71I_@%AJEpk(nR=547PhVYq9^A+LUq-Ja$@vc!!26kN z0MhX@O;{{H1)$cibXyCbT~8=v!oy168qq=dN~$b}(m6?akC61t%P}7S>39Wz3@f@a zo&{iiEDAuduIi+xI+2;qE^0O(nFSz>(m6?akB}s(XcOGX*dgo1XdZxr_5p=EWJ=#! z0QgFC+J4DY>luHaYrXdf1)8@2tXBd66zpDck}6>LP(}4np!v(yP^Kuhe+9sfaj5Ob zB7WsJ^jp0<>b*xu5;<8hs=8mMNHC@Dh#_(%(5}qUU zcU10s!&WyM(B)qwK0j?zgWv1gzCWUqSzBB7_)RTIxM2X0FoOU*DPL;BbMvuEY+a|= zF75&Fc2jlPvlk%%f}!UC)Q(jBS^dbh-g|^zzZtdwQn>^Gt*rXy$#_E(%9KsK8wX&u zd~N~k?QZk{h)+KA3V?yoAONY+wB}>%t9$9RdIG@a#ShKLbAPx$MM*?KR7i>Kl|M_vKp4h<{u^vj(smGB%#bb)f`yJDi?|7b6ag98bvy^X&f#mTq6#Wg9Cl0mzU?ldq1A{0{{A1Qv8(vJb~kIyn^^3=4>kN-xqvRG~HCIH*b5dd}PSuq9=B>;M5;k!RN)k4ZVLNYTe zUJ-!069V9Jr8=Dr06LxxK&3Cv<((<>2+3mIj^H~osboK}8vs0J7c>`{N63oC0CYkN z06)#jBq^UXL!ro!6}@U1$UH)_D7Hl=0$aQ{a;v1|J0yLPrh$wj^tCEmdpilh@|qy= zQA-q~B-6cl0pQ}~{BOL}nOknUwF7{;#aQVN-^Abl(r+K?9LQWk)#{Q55SIj*h53@E~EDQ<&+}%E1>lny5LZ5#aO>R+8V#ojh002ovPDHLkV1nB{qQC$E literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.cs new file mode 100644 index 0000000000..307a2a8b76 --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.cs @@ -0,0 +1,39 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumDoorClosed : ModTile + { + public override void SetStaticDefaults() + { + this.SetUpDoorClosed(ModContent.ItemType(), true); + TileID.Sets.OpenDoorID[Type] = ModContent.TileType(); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.cursorItemIconEnabled = true; + player.cursorItemIconID = ModContent.ItemType(); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.png new file mode 100644 index 0000000000000000000000000000000000000000..90a41c9acafa0537caabc72f0481aa4b41b60e48 GIT binary patch literal 489 zcmeAS@N?(olHy`uVBq!ia0vp^W+2SL1|)l2v+e>Z#^NA%Cx&(BWL^T?m;berMBJ)2=QxjdqvZNnU}{o>FgvBcfi%r@We?^fG6Q!P123UOYlQZkM*og7j<0r__Iyj3=Mbp<|ghBTiK_&1|-z+?Q*sjXUNMP&m)#!^;2!s zk}a31uJ1ed>9+TG|3j-v-;}S3xWmu5VE#v8=HEZhYUHKavNTlvHTu}QzPoR4-_vVc ziVQ#Q&#mNG#=x*NLgDRtrLM*2P2Wr3dk`fqn=PB{b9nLQog1eL=S^vfOsu{8OW<1h zc3*{uH!rvzzm=Yo@##fr)kW7e&RgDl-_zdp^2Te4xt9ZG{J96G=;cTD{7gUO@x1XD@#UV2N(ThdNYm;MUWELbYJJ>ptP5hX_|I-)dxZY3j=PPgddwH{TLW`t7 z(CYbydS^^_7+ijE$jAAY{FgtMoS@!RivWA`yUcE@{T?6>XUk6ZyI~S4yx8yYt``xn dC6cA$gZ#^NA%Cx&(BWL^R}i#=T&LoyoQ z-g4w>FyL_seEj#lj5(Lmk!?XaYJau|XQl8=)yaxJaQAOrZkpKI+RdxZ{d=l9>CcsF z`|P=!WR+(~HLX+x5+`5H<%oK{>B`F68!z6}t~!d literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.cs new file mode 100644 index 0000000000..04c3bc9166 --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.cs @@ -0,0 +1,40 @@ +using CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumDoorOpen : ModTile + { + public override void SetStaticDefaults() + { + this.SetUpDoorOpen(ModContent.ItemType(), true); + TileID.Sets.CloseDoorID[Type] = ModContent.TileType(); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.cursorItemIconEnabled = true; + player.cursorItemIconID = ModContent.ItemType(); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.png new file mode 100644 index 0000000000000000000000000000000000000000..98e854a8cc59c490a3baf1ecd1296e7473a4b1d8 GIT binary patch literal 1503 zcmV<51t9u~P)Px)nMp)JRA_#DlnuK7@p(V48t}%6En%eGcW+SILh`7Bt&+qA;bD#5^=ee}r zbUtsMo##B~cYbH*d(Ziu-+gWd3ok$QaG|(-<>w&)rruMhJ-7YK?=n%(CvE2irbM9Y}0T}r4K%|1qb{8+HnLPa2 zK>*&~`FZ3FiXTg#Uk<>`8FjIKxcsrT+qrc|tRG%M4kpMS@|hLo$bWn|{|f-W4h;ja z_gHVFp$+fsitVWP`%?f+sjGz|Wt{2iDFE!xUC02eYQ9%fPS3F}01gNJpBlS0)(@LM zO%;D>`-Az*iTq`Ly8gU^93)myHi%d;;t*lpL-kr& zX0~d2Rir)1?Afr@i#^l+yx`j3m(%5v zlvj|0vhzVEcTQ6?b?tI|eRST=O;YfHMkOS*37Uo%k_(zl@@sAnN+9F&*W`1;VS}F%6 zLn-ZD{Rk58m~okm$F(a9UO^60f3unvnL&wY&z5DSG$Kx_B%$0hnOBel=UL2DPSTk( zm181ryEawy0MH-YZ>soRt7qURtzB9rNxk?ZXM6C}W3y^B!?K3-hVArU*>oN_3=zMLC@O1y)Ml5)`XQM9B=y5Qg9%QMjy literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen_Highlight.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen_Highlight.png new file mode 100644 index 0000000000000000000000000000000000000000..ca767aed7b4f3e7c3d5e7e5510860afebeefe316 GIT binary patch literal 260 zcmeAS@N?(olHy`uVBq!ia0vp^9zbly!3HE#j^6(Uq!^2X+?^QKos)S9yUwngX81B?`6cJ1QyyTM{JsLGwkehQxUC{JAP*@pWobCp4_wX)6etor^eTp zm;N*UKJ{qj)cC#G|0B|;TfSM4A6t4n>u&5biyMxP3lstbG&n?9xR_WQn;d{#ftcj! z+g|`BE7+hSXbM1Fmg_g3&fkMe(dshG)Xk@5$^tBGbDtl1I9ZmZ{wu>GvHe@6ChFt^ PeZt`B>gTe~DWM4fGAUqI literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs new file mode 100644 index 0000000000..91ca0bb56b --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs @@ -0,0 +1,52 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; +using Terraria.Localization; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumDresser : ModTile + { + public override void SetStaticDefaults() + { + this.SetUpDresser(ModContent.ItemType()); + AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName(), CalamityUtils.GetMapChestName); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; + + public override LocalizedText DefaultContainerName(int frameX, int frameY) => CalamityUtils.GetItemName(); + public override void MouseOver(int i, int j) => CalamityUtils.DresserMouseOver(); + public override void MouseOverFar(int i, int j) => CalamityUtils.DresserMouseFar(); + public override void KillMultiTile(int i, int j, int frameX, int frameY) => Chest.DestroyChest(i, j); + public override bool RightClick(int i, int j) => CalamityUtils.DresserRightClick(); + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + if (Main.tile[i, j].IsTileActuallyInvisible()) + return; + + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.png new file mode 100644 index 0000000000000000000000000000000000000000..d37893dd8dd56c6b2622e8d837a4920332b88ddf GIT binary patch literal 905 zcmV;419tq0P)Px&LrFwIR9J=Wn9oa8Q545N6E5tBhNR}ql$lU&a>CM(Y8ALBK_sG8P~f8fq1L%= z7qpNHil9Z9fh`0v`hlb+%}8jPmFbN6EAm$^5?kDNhPlW0#$RoG<9Bo4x$oX{FXwyD zz2}?&4lYIxEt7(R13}!dFIWV?RALN(yRDr8fEx|<*8Kcnq3e9XWMbTs8=IN~0M{>6 zFT1UyF)@;`lU_AcQ8YhS?b}j=9e2xb2HDmJ8{~-z~ zXImh?AeIsawU3BJrQIk*uVzTEC-Cw?|1;J;xBx);NDrjB6$RQ-n$fjF=4rj-adWE* zQ+hqQ6=REgUG@5(v2e)v)-Bt&i+)5i6vt<9|Qodv^7{6^v8F`m#$r&w-&trWH$iEPuV{9u%;;h zP=4#G$)MX3uIuW3i7a`Tz_&h@rI{)_Z!%^5;%k(Angbx_$V;vEEn4E-s@-?8Rlk|H zG->y1yrcnS}-&AC+!3sLkhg!z4i9%m~gH0H2lw)mxTmkDS7!N z%J1kf|0OElC?rb|AD5G}8bir_XKX%}yloWZ>`R-wYsUKDeec!(+0n~h01^wiR=3W> zR*Px<&zLYV<5)y8V#%{~)UE4}x-z?NI2Glj-Y=%MqO%CSFRypjzl^2CSXQjp;&FB* zHtU=IZS_kfd9GIh;Sr(URUYss*MsmzNNPx#s7XXYR9J=W)IkaXVHn2o|HwkIlv9wM8@PfJMLB`Bg)FR{KvASz!42%hDP&1m zC>ENUDT`^E)%gE*-~08weVgY2Ns=T<`4D8as4*W*qv!hV1;C|RB+2|dSu zWm0;nGZtnl%trq(dPnb1$8VN~ok#55YF`GR*@|au(_RL@_NJBFjAhn}-ElA0iudai ofJ&`IlKF12wG|~vk|h0;5A0DU3YPL!>Hq)$07*qoM6N<$f_dL&EC2ui literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser_Highlight.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser_Highlight.png new file mode 100644 index 0000000000000000000000000000000000000000..6e319547404a70242090b7c93f15168b70bf7a28 GIT binary patch literal 206 zcmeAS@N?(olHy`uVBq!ia0vp^W2))u6!Bnt1*9{?EHE>ak7SvgzE9{ihvnW^$ZbQ~K`RTQ=j(XMQdJCi%KuH~7r@ z%I~GJk%sO!`viS>4_*;~5e=>(_fykLuiGZCn%h<3xLSFJRMSeu8M8JW("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.png new file mode 100644 index 0000000000000000000000000000000000000000..02f87edf42c308e12bbf61ea917a6928d501693a GIT binary patch literal 1516 zcmVPx)rb$FWRA_yNKnnZMQsHYD)tYsKF)`Xlg=Ytcd*p3K&hOff$WQ zsw4^mAyKdzk@yN=69_`11|>oOg_1O8L8-yiSc^@q586FyEEt9b7$`Vo|$vbELgB$!GZ+~7A#n>U}12;cDoGa=H~eUdZxu|{oO6e zruq)=NdU^qT(@lufw12RqZTYgj)=eSU|%}EZJ!Nb$&u&%0ME?X7M7iLC5-_1KK}@S z%Kb&QK>N4qdxO@;!hS1{FMiSw5dW+b0+`9O#n=E`{=fYIztt}W;FmM;rgp9-Zv-H9 z!bq)ui^E|9$T?K+$Arm9F=!dPt1pFMrk2fV0HD%fMq$;)WdJxm>IHWI(A{%?ki}vE z+!^x$NXtvqq_ZAL0-&5%0LTVE{a`No7*nfL!!!o~TMedm9Gw6_`)6&MzSDCBfVPwo z0A%GT)29Kbt63qzP zCQP-(>+d9(Ddme-DFt8`F9A@8FlVpH2f)|5N3-KAm9~4X$dwN^l;3M;xWbxP^f0D; zEA@#uqo*B!>WUixI1Q#0Lkh~rsw<>_2f}b&O`V}3O!;a{q}eIHWRJ}^E@0qE%H4C}#4FC~OLImQD(L-&V9 z&-(y$jR|jc9JGvC7-;CV7pQ$~ezELhdrAr+Ahw$_z7>G3ma709-hIGEKo-znC_7KD zT$23Z@vRzMEir*$NF3qX}P8~m*wRG5I;)xx5K*+0Pxn!i%f6#<}3hU zOvNDp+AqrfxbI4=u4vdKUA#El!S>1R($Fung) zVKJs~;`BrSaweP0JDR%z7&2EFif5QEFBN$(a|-1*t^*j^T>oJ)reMGJFaSNLKGFKC z>@xwV9(fjk?MBU`VEtGCW;`VMS5wsm0A?@G0-&g_i+<}7>iAbHP=*F zC_7MVy2Na(ExxJx_O~w>zvNo*{a8(|s$j3aF72(a$tlbSOPr?m)JbSxh#tliveRWh z393jCcWHz1>s_tC=hRUEa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 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs new file mode 100644 index 0000000000..8223cf4a72 --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs @@ -0,0 +1,63 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumLamp : ModTile + { + public override void SetStaticDefaults() => this.SetUpLamp(ModContent.ItemType(), true); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + if (Main.tile[i, j].TileFrameX < 18) + { + r = 201f / 255f; + g = 226f / 255f; + b = 122f / 255f; + } + else + { + r = 0f; + g = 0f; + b = 0f; + } + } + + public override void HitWire(int i, int j) + { + CalamityUtils.LightHitWire(Type, i, j, 1, 3); + } + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + if (Main.tile[i, j].IsTileActuallyInvisible()) + return; + + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.png new file mode 100644 index 0000000000000000000000000000000000000000..0d0d621ae0e64482b262188c0ac89afef925f4d5 GIT binary patch literal 921 zcmV;K17`e*P)Px&Q%OWYR9J=Wn9oa;K^(?ETS=y^8k*^DGrha&F2o%6xxBkG-|zFz zJnwv;ciwTJq2}h1d+f^klgbSCtpJcccvXCQ7Y0`N>1e@OqhNo){gWa9ny~`ETszjzbpMtx2jBU?+e47x}wq- z1*n<&2*BY!9{^eIH6`$8csBrt)XpY}vxZvyWdIZu7Xnasq(R{cPYUOr zoB0Ajd*^_{W850r@PKAtNfhAd$>Wfq%KD!?2cSDNZR&}NA1)U}yn|56YU zW9~`v2HWK^S0VkoO5ev^vaao&Y-z`sERVSgNlfNs1JDtAt+X$#{DPRTh_TU7LgHk3 z%vWf6ZWVx>qCK|l`k7%oB+Fx-LjRsx4Dp)JeqS00000NkvXXu0mjf=1#(p literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp_Glow.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp_Glow.png new file mode 100644 index 0000000000000000000000000000000000000000..b1d96c163894493bf06d58bf6af4c192b6754631 GIT binary patch literal 436 zcmV;l0ZaagP)Px$Zb?KzR9J=Wl)p;DP!xy1Rz<9~wo`G@fUSd@1;^6G7f>kp0D|BPxHvet_yU69 z0|0N`}Gp*CckA>lW?Ny%o@1%Q4^WhXxI z?kjBfRNP{{7yvhw#$^}{8JD3iyJUWLrT`Ef_iy6CtLpu}@eqm`jd6wqK@bE%5ClOG e1VIpl|IG(%BUOkK@Yv!20000 this.SetUpLantern(ModContent.ItemType(), true); + public override bool PreDraw(int i, int j, SpriteBatch spriteBatch) => CalamityUtils.DrawSwayingMultiTile(i, j); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + if (Main.tile[i, j].TileFrameX < 18) + { + r = 201f / 255f; + g = 226f / 255f; + b = 122f / 255f; + } + else + { + r = 0f; + g = 0f; + b = 0f; + } + } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + if (Main.tile[i, j].IsTileActuallyInvisible()) + return; + + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y - 4) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + + public override void HitWire(int i, int j) + { + CalamityUtils.LightHitWire(Type, i, j, 1, 2); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.png new file mode 100644 index 0000000000000000000000000000000000000000..99ca6f27d17daf55a0714f3468075cb2b6c355bf GIT binary patch literal 737 zcmV<70v`Q|P)Px%n@L1LR9J=Wmr-kyQ5eU6wxXDs*ea$*7`ZtH6BLA?MiSOVv76Q)=%R}*f_;Wv z_7y6+=%R}tk|Kz@h%p8h2!et^tkSkc)3KVZnWL!oc5&V#p10R@dC>{{-*|kUbDnd~ z&vTyV=)ly#VAuc{+4UKKp;&}Qt(KPom?>-k@aA>ifsHziv&}B(ztncCLGI|(`Ll{W z_dEl@Od;J?;J=NdFCqC`CczMv#{lf}9suCRy|mJ=nL3T5FCnX5eC+|i=i2OOg005U zj!<_&t<>}kRhOy&lscSXt8ug=2P&5ocum79UabsyG03XXM03=gyp&_4G zYuNsSUI6;M{k9V~t7+O1s-L0ASO|bxq5{Bh@RQOpQ}6(Ayf^|4gshS^OlIcDv6$jt zntuntN=f*wHBCE0UA0oZ;$As()S!)9_9~kP;O3KbTQ5fIZIid_!}~G-5Auuu$&0b% z@r#C8m1{vYi96Rf)qYJh6dM3w?(hx(D$m5Nr6}@^%P+=PH};q#7M1b(5gNNVZUFeg zBF_w-TLU0w%|ii?*%F^)h;fhZ+;;%Pux>ywiM#F~`f2#UL*exWb^dlr2xdm}HQs!B)l1gEop@o2HS+@=7 z%!djkJaJ9&*QO^$BWu4P?FiND$new!1K{$dA7Gb<%=gf(+XCv#t9NZ{nKiG; zGbJSnmhvLL%wtme5|SF7oG<`Z_x33EzRFJkQrDAz{BJKMNi~y|jFfhSx@x6g5cKU& T9AMYx00000NkvXXu0mjfszzZO literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern_Glow.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern_Glow.png new file mode 100644 index 0000000000000000000000000000000000000000..cb80de710c108c6b7f72cd9bceadd8975c257492 GIT binary patch literal 431 zcmV;g0Z{&lP)Px$X-PyuR9J=WmAy&>K@fnym{=Hpj!TN57G9B9T0|^^7Pe`WfZ!YW65>nv238^n zwl?9)U;Dw*cK72!XG1eOKmHenhH|;gHbCG804&aZDTVKY1OUlF5`eqg$Fh!wj5B1J z#Bhc-v#ZAd>E#RnvrBW@u=rc(@+|tZcXd^z-T-ny-q| z=Xx7}tFw!-9X1V&Gn5!Lv%c2>U@O~J3M-x)MdDdRoSU{O^9;#A&Wtou;99NB?gCKD zJL0{rry=tUbsW*tj@O0X%tXk1#VY}D>FBwOd4^6 literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs new file mode 100644 index 0000000000..94e35f30b6 --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs @@ -0,0 +1,24 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumSink : ModTile + { + public override void SetStaticDefaults() => this.SetUpSink(ModContent.ItemType(), true); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.png new file mode 100644 index 0000000000000000000000000000000000000000..ea91bbf73b75775cb3639e15ff7c900d4f1480a3 GIT binary patch literal 742 zcmVPx%ph-kQR9J=Wm_ch3K@`V-D;`>D8)8h%CT+!FYZMxY8YqY!gkDq>iiqL|C?4%+ zD7|{N;87G5(Su%u9t2ToHIRa66vf7DYFY`VL34|T-Pi7niD?4DRQz9d-|Xxo^V|QM zeH)7|HFbKt0dV8-3(Fs`eklQPKlj<{Chv}Jf6(93&Q5O-5+}}1fJ+E~kR4TyQ-iib zaH}$oP{+@CGPSP(uv8BK@IIfj{Nv$48+@eRE@YttPi=oftu!*4Y54t!n` zVy!$SGLMi{M>3ND-^wGgy#U1b4+D^WwgABSOXrjX(=&5T#~*sf^zjS;#ZSusl%1~t ztd+_DjMM`SeEXSsgyckjw&J0KM^fNh(etM-nl;PSOA%Kf!+9f0-Xx-!4$s5`h+m&iB|{q`=?$=K;I z00Yrp0Aj)3riqe=b}O+H{Ru$TBU;L?D*1I%BJ&A}#4|$XSR$xgKhQU-#3zT`{pv$4 z4?ryFl3Dbw*SvhXr*xT1$me$V-R7-Gmyj7AQoDhTxZoaylrHg(UR@${3F(q&Emb03 zAmOdNpw3?|xbG+-v-q(BfRn2z`P#{RLb{hkQYG^%?*6hEttj{1$+>U)s&`%AsoQx+ zWIiF0PU_UIsvCJ=LRED~59Qa~6R&q3@W$tzA9}t&YWon9uMp|A4<8)^;LWQg046S+ z0bus#10{ZP?-BTV^N{U!j(0uM|Bi>`-;J>6iL&FaSiY~MR~AXEf3a@%>T2)YO2!fT Y1^jFJo7M--Qvd(}07*qoM6N<$g42{-1poj5 literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs new file mode 100644 index 0000000000..9b46e41aac --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs @@ -0,0 +1,49 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumSleepingPod : ModTile + { + public override void SetStaticDefaults() => this.SetUpBed(ModContent.ItemType(), true); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + + public override bool RightClick(int i, int j) => CalamityUtils.BedRightClick(i, j); + + public override void MouseOver(int i, int j) => CalamityUtils.MouseOver(i, j, ModContent.ItemType()); + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + if (Main.tile[i, j].IsTileActuallyInvisible()) + return; + + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.png new file mode 100644 index 0000000000000000000000000000000000000000..76a7a63f3ec9e621d83fe670d3dc0f6f3bdf683f GIT binary patch literal 2172 zcmV-?2!r>DP)Px-Hc3Q5RCt{2oNsJaR~^SckC4a&%1T?LEi06b(Gj53vOiID9S)p07*X~@Y9iSb zBa6P+oF>K>GcijhPLml&z_9QF+_Ev#6^9!b>~vcO6e{h)_$O>+JjK${t$!3F%j1i4 zzt5g?dT;N2o?8>MobQ|aoO{pT-|w97`JLZ6=gCkcT3S}-3d0>8`!Zqgi-nudh3v)9 zc&ATwXVR4O|B87xE)JDnZOu&hAIjN%Uo1Y6rZOHL6XPPNr%tV%3P8=`a`P;|229Td z;Ewh4OR7Lk`6Mf!>ZU3HS|4Zxp!4hi04M)=UP*F%jF?EwBc_@E@W|>B|C7Xr1D&SWe5HRz|`8WMqc2>yxTu1sO`it9)?h>k%RgHK1tYJw>k0g<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XlIPx%yGcYrRCt{2+D%9lVI0TtuOWG`P)qGiu!00Du@{i&vP&u5Bf1n66m{@a-ip}u zkhkj8At@{{h>$LO3YFGNgislqNrshRTA6Q{2P4=HJ57mSK3fAQVFgrRP1sHrc(vzvi z%JNn1t_T3E-&z&~nE&}3fVVGV&7_z=uhwLuv9fxl9f9o5Ej@oM3J|;cAP?Yl=ec;| zb#Ho|JAVFQcMwIQ6=RX7;MCD5Ky6*V>wJ5|y*z-L>u2HsKkhya;v*6%0*NpA%ecm6 z<0j`n)$Z)rLb*j8W9J8+IoG2Iv?A=Cr+Q)hljp_Q{Pac26oEuUWHm~A6;@SK9Rj%c zWKS5NX;(+eRoI34&j4I%m<$8F?0Vgtp*G7u9IW3T0=U(=Aq>#kwcT~zR$(_joQMP5 zIo=-z7>o^gnjgIbi7#od!louCq5$_F7rM$V;uyR0M~C{OKHDg17#$jm0v7AxC35HT#a`?8!M-J=;OOePzT|-q=zB313L&n(`yHA%KqV(r{wAwR^FC+IKt2 zyr6o=7{M9dn+@wun3DX72=z)Vb=#Bd=V?xhDSJ z$x$`7>~odRKXUrp7I9C7^}jEv|H#V=U#U;U|ul{Rz_+v9E#w*(tfy9?Tr40aZ<*)Ei00000NkvXXu0mjf&2(*C literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod_Glow.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod_Glow.png new file mode 100644 index 0000000000000000000000000000000000000000..22a6ed63e933941a4a9295b713eb3a6dc321c8fe GIT binary patch literal 787 zcmV+u1MK{XP)Px%%}GQ-RCt{2+D%AQQ5eSY|AZuDB3XWvE_9J#C4GU^rWsIaAJL{Dp(w~zv@61q zs9m%wND2!KBBG5eQE6;b2$5kX7^0Alj;12!LJOwFofo`=hI8*YBl!F_!`u%z=bk&y z+;iRwA|fIpA|fIpA|fK2Dd6?Q{gtIbfXUIRUVtN~YMKFZcjo}G7@dg#41XW*O;=-O z@t550GeM+uY>_RLeAxc6H>leDPchD=I4v0?bTIyJ}%(Hs;jA{MK5;8><-Dx}C9FSn~LJr34ZY5fKqd zk>^>MUwIWJL4dOSLg#&<#7d~Gbnnb_mZ(;i+|}guwtHPk%{1$u*=RqLug}EdTm)cg zESA+-u4ZB4OU4t(lBcq?I0W$IV{sVZOrR$K@F89o2WWaw4nX6DCD-}3f|~rMU1wuQ zh%~HgY!+K5J9e)&yn4I6ud`l1AKxB_HLlN%)6-#q(W&XICXo_Id`Y<$=9m3aRua!X zmNdq`FTd^!1GIIxo47dX{8IZn+_ku^F7`7P0qDQm=Sm>!Pg_!d?AfOYcVgM~Sy_q# zu%)wi|KZDKmt+;UA7y5~@&9gSgu`*!An$%J%jbV~&JFTP|DEl6KRv(P z{9@tvSDyPF1%q>^zw>$jydH*|q{SXC)1FOPzt6!cy zm;c#wAaTuMf`EbthkyzThY%Cg9H#~aMTZGG_2&CT-~U{A@x1uiKA;niNw#t5%ZDg< z^qC4w this.SetUpSofa(ModContent.ItemType(), true); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifySittingTargetInfo(int i, int j, ref TileRestingInfo info) => CalamityUtils.BenchSitInfo(i, j, ref info); + + public override bool RightClick(int i, int j) => CalamityUtils.ChairRightClick(i, j); + + public override void MouseOver(int i, int j) => CalamityUtils.BenchMouseOver(i, j, ModContent.ItemType()); + + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) + { + return settings.player.IsWithinSnappngRangeToTile(i, j, PlayerSittingHelper.ChairSittingMaxDistance); + } + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + if (Main.tile[i, j].IsTileActuallyInvisible()) + return; + + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.png new file mode 100644 index 0000000000000000000000000000000000000000..136844ea321023914b59a264dad0a59c7a343112 GIT binary patch literal 921 zcmV;K17`e*P)Px&Q%OWYR9J=Wn9ENSQ54311vG`WJciGng^h%*sIxBZscY3vqIu*m-j^?;kf2>C89o)~@Q22y;n&bA#QAj)MyWQE{ z+B^E0%nMVUp(_3R$e?W;_cB&n*JuDV-#7z6Vn*F3o&Cz-{L~nvX~yResLs59aL|?` zEcQpuvGt_9si*`X60QIs5DAEj0q}KXP^*rvWh{%m29Id0{#-2p;l>gGzPug>pr!u< z*z|0Id$ZFXfXBzHGj`=pSYAzNaUL8lH?ZkZpGT@mUuQfT2Ot`og8ihi)IBzKO7&o2 zbDXL=W_7eORahY1+cW^hUhh9HWm+3azPQP#R71hs)sTAWnzD`Ne#Y9{)XmX*Ur9x@ zHq3PZ0tg~D76qTqQ zT%P&~K=VbVx=&>{?IUzN0idU~MVl_H$hS3@xU%z7-RM;(;^pbHkfw1tIkCY7Esm_$ z3GQdC^zEd2`O|{|5L-|?T;C7`AY7tr=xK*~-nn)OfTCd0juJ1;F9Gl^F#^1FL#!}t=l^WGil$s133Y7s+7A^-MQguvol52|+chp^3a~00000NkvXXu0mjf6KTG~ literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa_Glow.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa_Glow.png new file mode 100644 index 0000000000000000000000000000000000000000..ea27a6db33f9dc9ceb9e206d23a91ee8186bd8ea GIT binary patch literal 279 zcmeAS@N?(olHy`uVBq!ia0vp^Wm$ZzloO^ z*8IG5Y?I_+=X-hYf9}4YpJT9z(IV%2+>FMiA3y)>S^p;|`MdQqi%8}TQMx6^U0htA b80TFtw<`Yfbn0uM=NLR){an^LB{Ts5?hts( literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa_Highlight.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa_Highlight.png new file mode 100644 index 0000000000000000000000000000000000000000..ee7b74d4f020b543c959207459039af66e485687 GIT binary patch literal 179 zcmeAS@N?(olHy`uVBq!ia0vp^WpX(&YKFe zsmj+s&yYM@{_j}X{gAcOzu)MM>^YWXvE}}TYp3ep9dmgs-Mmqv_h^QWTe6{4_r(aH cU4gdfE literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs new file mode 100644 index 0000000000..9ec03c16f4 --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs @@ -0,0 +1,42 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumTable : ModTile + { + public override void SetStaticDefaults() => this.SetUpTable(ModContent.ItemType(), true); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + if (Main.tile[i, j].IsTileActuallyInvisible()) + return; + + int xFrameOffset = Main.tile[i, j].TileFrameX; + int yFrameOffset = Main.tile[i, j].TileFrameY; + Texture2D glowmask = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable_Glow").Value; + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.IsHalfBlock && trackTile.Slope == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.IsHalfBlock) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.png new file mode 100644 index 0000000000000000000000000000000000000000..6cd39083405aabd425b402b7b80695f60aa799c4 GIT binary patch literal 895 zcmV-_1AzRAP)Px&IY~r8R9J=WnM+7iQ5eU6w+yU&5SpoDW|lof4J#vzNQ7EMgaqx{xriQ%Xz8}7 zMT;Pi$QHGcs36277lJ}!50%70!Uy@PQS(96gt-u=#krr|bG)OY&c@sPHg~@Byz~9f zcOLgx*jy;u6~e*xtPH2g)VFch^ha+#SOAyL9uEPeWTb2PsTpZR!p++?7C=>HMF?PK zd}7IdC0%&sAF-VFhKPDyhgf<0ib4PvPv(M)hto2505CcB9f0B!B>)75Mgh2V^_B(D z()d_YJbS0^;pNy1yk6eGg%Jd=h|{t%Cpz^!qKmtXQ1<=|mJp2+YlDh;Wan%|AN z_Pg+&_A@Z%9{b)`%rQnoI6NYX9nDpqtM~r^p#0z|yTm;JItNwyaDDd z+By3ABI(`jTlIQ2H|{E>M48&^ZY_T~rG)=SF+n^s(C^pMWp8QDMq>M#l>HQ?Ty@p3 zR_@xJEC5oP)XqU>Uz13c35RDDi?QBV)%e8`YZ3!xWoNY5Gj}j1=8odo{aVYd-PPjR z7+aH9oQS7QrDP`}n7jMljsb{*LMAcABE?iL9BW;tmcz4(h243q6*I<4<2Hd~77TZe ziWV`&mcxuKImd}oa-Qq7%O5Dold4f!w@hM+MT*2$Qu=0aC?$y9Y<$CrHl9^%#p7CH zsW4uhgyoha+P5v{xA>LfS;ZobF;S{~?-l@3GSv4!{38JDKU@TkZ}-04*|5Z|i`=IC zqXvNdBZUB5v6X)KVs*1-Ofg~cEr-Iq6_MMLfUTg3}Q VQPMSt#NGe^002ovPDHLkV1lg)wnhK| literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable_Glow.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable_Glow.png new file mode 100644 index 0000000000000000000000000000000000000000..39b2d14fc7c0ebdd756ce4d765d7425a568baea1 GIT binary patch literal 240 zcmeAS@N?(olHy`uVBq!ia0vp^Wc?c!`>xvE3lnY}lQ`>rbY-Z2z>&?jQzRtZypIMNaJd~!U|qcSH<+aXa}Y>aLqdXq ZA;4E@#pk?#hCo*{c)I$ztaD0e0st0US~>s# literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs new file mode 100644 index 0000000000..66acbb185d --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs @@ -0,0 +1,79 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.Enums; +using Terraria.GameContent; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; +using Terraria.Localization; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumToilet : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileWaterDeath[Type] = false; + TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 18 }; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; + TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.StyleMultiplier = 2; + TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); + TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight; + TileObjectData.addAlternate(1); + TileObjectData.addTile(Type); + + // Toilets count as Chairs + AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair); + AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Toilet")); + TileID.Sets.CanBeSatOnForNPCs[Type] = true; + TileID.Sets.CanBeSatOnForPlayers[Type] = true; + TileID.Sets.HasOutlines[Type] = true; + AdjTiles = new int[] { TileID.Chairs }; + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Granite, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifySittingTargetInfo(int i, int j, ref TileRestingInfo info) => CalamityUtils.ChairSitInfo(i, j, ref info, shitter: true); + + public override bool RightClick(int i, int j) => CalamityUtils.ChairRightClick(i, j); + + public override void MouseOver(int i, int j) => CalamityUtils.ChairMouseOver(i, j, ModContent.ItemType()); + + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) + { + return settings.player.IsWithinSnappngRangeToTile(i, j, PlayerSittingHelper.ChairSittingMaxDistance); + } + + public override void HitWire(int i, int j) // I hate this please make it stop. - Merkalto + { + Tile tile = Main.tile[i, j]; + + int spawnX = i; + int spawnY = j - tile.TileFrameY / 18; + + Wiring.SkipWire(spawnX, spawnY); + Wiring.SkipWire(spawnX, spawnY + 1); + + if (Wiring.CheckMech(spawnX, spawnY, 60)) + { + Projectile.NewProjectile(Wiring.GetProjectileSource(spawnX, spawnY), spawnX * 16 + 8, spawnY * 16 + 12, 0f, 0f, ProjectileID.ToiletEffect, 0, 0f, Main.myPlayer); + } + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.png new file mode 100644 index 0000000000000000000000000000000000000000..890177b446463fa7861986b7b39daed146a3ae19 GIT binary patch literal 578 zcmV-I0=@l-P)Px${7FPXR9J=WmrY9>K^Vt>z8uz|2=8{09p2VvkpwJKDXA}Gg-U@;k zA%PMTp;)RhtAf^IbCLBh^8|NxlPtb5hy9JU9ZNspEu<*z4NfjnB&n{YlwRNF+0R zElEC?c3(g12&EsC>ZOYGf?j)9qyy`|v|BwL0{B*12;%JKY8|wl;JS5@D6#Bmg-E<{YB2UT`v?gcnbCCC1E9RI9&$YU^&0^HT-oKvi`39n%a08hR71y=s*YC# zeje6h<9qcf`v`S!5Bf~}^~X1*nDE&fzbWVK0@-N9_d4>kC=S}lHEq0o6kBzk9CdJQ!qxS Q761SM07*qoM6N<$f<`e6DgXcg literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet_Highlight.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet_Highlight.png new file mode 100644 index 0000000000000000000000000000000000000000..5c2fc8b88a0b0e92a9059e9830ff6010a69d5378 GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbB7>k44ofy`glX(f`G*5yN)G|Si?$Kj-`}jUD>hW(eAIe( z{?+~o-Y?E^zZH8kd-ImcjD0aqW-S{OH_L7dOrJgL>dC(g*RS+9Enzd=7Uxv2I$2Ux wb@~Ke#hi|`@XPDYP4qs|CXkoa!mB8^cV+vl2@H1~fNo*%boFyt=akR{0C>Jk2><{9 literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs new file mode 100644 index 0000000000..cd6b51f818 --- /dev/null +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs @@ -0,0 +1,24 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum +{ + public class AnodizedWulfrumWorkBench : ModTile + { + public override void SetStaticDefaults() => this.SetUpWorkBench(ModContent.ItemType(), true); + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.png b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.png new file mode 100644 index 0000000000000000000000000000000000000000..94cbc92609af9e1cac100c703c805d3703af6961 GIT binary patch literal 526 zcmV+p0`dKcP)Px$$Vo&&R7i={mOCs2K^Vt>D~cl?5gd2t5fLQfu2E2ER2~r#m0nPZUepqeM066h zPDDha6$#=|91)M4$8mR@SG4?tNCI%5xW+F3@Whw_(AqHoK!#nCzm(A%s!Rj4bhm+J zMfHtA00LDN+5;8kIfb=l8aqJy11tuG{wQh8cD7MH{(nVG3!cki;yp9bUxaskNkdH~2P%>uw*V74r8 z08rIlqdj+jS_FXa`W=AR@Ru*-IzqNi2dJqvD|gWIq{Zd`NX|I<9~$lN(N24(Gs|griCjnM6X}|!yXC>7 QUjP6A07*qoM6N<$g4V(1jsO4v literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/WulfrumWallMountedBulb.cs b/Tiles/FurnitureWulfrum/WulfrumWallMountedBulb.cs index b13c236cc4..384d860146 100644 --- a/Tiles/FurnitureWulfrum/WulfrumWallMountedBulb.cs +++ b/Tiles/FurnitureWulfrum/WulfrumWallMountedBulb.cs @@ -98,22 +98,12 @@ namespace CalamityMod.Tiles.FurnitureWulfrum if (Main.tile[i, j].IsTileActuallyInvisible()) return; - float brightness = MathHelper.Clamp(0.2f - (j / 680), 0f, 0.2f); - - float time = Main.GameUpdateCount; - float waveScale1 = time * 0.094f; - int scalar = i - (j / 2); - float wave1 = waveScale1 * -50 + scalar * 12; - float wave1angle = 0.30f + 0.25f * MathF.Sin(MathHelper.ToRadians(wave1)); - - float transparency = 0.05f + wave1angle; - Texture2D tex = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/WulfrumWallMountedBulb_Glow").Value; Tile tile = Main.tile[i, j]; Rectangle frame = new Rectangle(tile.TileFrameX, tile.TileFrameY, 16, 16); - TileFramingSystem.SlopedGlowmask(in tile, i, j, tex, frame, CalamityUtils.ApplyPaint(Main.tile[i, j].TileColor, Color.White * transparency, false), default); + TileFramingSystem.SlopedGlowmask(in tile, i, j, tex, frame, CalamityUtils.ApplyPaint(Main.tile[i, j].TileColor, Color.White, false), default); } public override void KillMultiTile(int i, int j, int frameX, int frameY) { From ae66c7239dd2f025eec47e8a3ddc804bdf7d5571 Mon Sep 17 00:00:00 2001 From: Heart-Plus-Up <85328817+Heart-Plus-Up@users.noreply.github.com> Date: Wed, 23 Jul 2025 02:50:06 -0700 Subject: [PATCH 09/36] Dusty Ahh Wulfrum --- .../FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumChest.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs | 2 +- .../FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs | 3 +-- .../FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs | 2 +- .../FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs | 3 +-- 18 files changed, 18 insertions(+), 34 deletions(-) diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs index a77d579cf6..34ed84e662 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBathtub.cs @@ -11,8 +11,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.cs index da6dba3c65..fd1e3426de 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumBookcase.cs @@ -11,8 +11,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs index 043eaeea75..7ca49b489d 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChair.cs @@ -14,8 +14,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.cs index eb084e6564..025b515bc4 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChandelier.cs @@ -17,8 +17,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.cs index c33b1a3bb6..6b0de18f35 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumChest.cs @@ -18,8 +18,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs index 0a2a484e39..f7d2e1aca5 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDeskLight.cs @@ -12,8 +12,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.cs index 307a2a8b76..cd6f07a065 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorClosed.cs @@ -16,8 +16,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.cs index 04c3bc9166..5df9264a7a 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDoorOpen.cs @@ -17,8 +17,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs index 91ca0bb56b..6d78abbe7c 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumDresser.cs @@ -18,8 +18,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs index a40a2b322d..d181d7d589 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumJukebox.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 235, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs index 8223cf4a72..9818d57552 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLamp.cs @@ -12,8 +12,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs index 79e475621b..ef14085edf 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumLantern.cs @@ -15,8 +15,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs index 94e35f30b6..ae6d74a64a 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSink.cs @@ -11,8 +11,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs index 9b46e41aac..ea86bba509 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSleepingPod.cs @@ -13,8 +13,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs index cbcc17d768..b63d062ebf 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumSofa.cs @@ -15,8 +15,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs index 9ec03c16f4..f1cb1bd42e 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumTable.cs @@ -12,8 +12,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs index 66acbb185d..3dd8ae69af 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumToilet.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Granite, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } diff --git a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs index cd6b51f818..8281656683 100644 --- a/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs +++ b/Tiles/FurnitureWulfrum/FurnitureAnodizedWulfrum/AnodizedWulfrumWorkBench.cs @@ -11,8 +11,7 @@ namespace CalamityMod.Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum public override bool CreateDust(int i, int j, ref int type) { - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Blue, 0f, 0f, 1, new Color(255, 255, 255), 1f); - Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Firework_Pink, 0f, 0f, 1, new Color(255, 255, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Tungsten, 0f, 0f, 1, new Color(255, 255, 255), 1f); return false; } From 766f416a095b8571db78aad633168c85064637ad Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Jul 2025 21:06:38 +0700 Subject: [PATCH 10/36] trap nerf oversight + eol stuff --- NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs | 2 +- Tiles/Abyss/AbyssAmbient/PirateCrate.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs index d83d57355d..3ec6ba5b7e 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs @@ -22,7 +22,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Vanilla sets her defDamage to 184 (80 * 2 * 1.15) in Expert Mode // However, some weird contraption in her Expert AI that knocks her base contact damage to the intended value of 110 // This hasn't been found anywhere so our solution for now is avoid using defDamage altogether - public static int ContactDamageCorrection = 110; + public static int ContactDamageCorrection = Main.masterMode ? 248 : 110; public static int CalculateDamageForEnrage(this int damage) => NPC.ShouldEmpressBeEnraged() ? damage * 2 : damage; diff --git a/Tiles/Abyss/AbyssAmbient/PirateCrate.cs b/Tiles/Abyss/AbyssAmbient/PirateCrate.cs index 4aa4856eb8..935afa9232 100644 --- a/Tiles/Abyss/AbyssAmbient/PirateCrate.cs +++ b/Tiles/Abyss/AbyssAmbient/PirateCrate.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.Abyss.AbyssAmbient //explode when broken (troll!) //also instakill players in for the worthy Vector2 spawnPosition = new(i * 16f + 24f, j * 16f - 4f); - // NOTE: The damage of ProjectileID.Explosives is reduced in CalamityPlayerHitHurt, this actually deals 52 / 67 / 101 damage. + // NOTE: The damage of ProjectileID.Explosives is reduced in CalamityPlayerHitHurt, this actually deals 105 / 210 / 315 damage. int blastDamage = (Main.getGoodWorld ? 99999 : 150) * (Main.masterMode ? 3 : Main.expertMode ? 2 : 1); Projectile.NewProjectile(new EntitySource_WorldEvent(), spawnPosition.X, spawnPosition.Y, 0, 0, ProjectileID.Explosives, blastDamage, 0f); From 154154f2fa5cd6cbe70b5c36943393caa874756d Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Jul 2025 22:51:07 +0700 Subject: [PATCH 11/36] new furniture localization --- .../Mods.CalamityMod.Items.Placeables.hjson | 92 ++++++++++++++++++- .../en-US/Mods.CalamityMod.Tiles.hjson | 2 + 2 files changed, 93 insertions(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 2802a66389..3c53bad4f1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -1978,6 +1978,11 @@ DriftwoodTable: { Tooltip: "" } +DriftwoodToilet: { + DisplayName: Driftwood Toilet + Tooltip: "" +} + DriftwoodWorkBench: { DisplayName: Driftwood Work Bench Tooltip: "" @@ -3364,7 +3369,7 @@ WulfrumPlating: { WulfrumSink: { DisplayName: Wulfrum Sink - Tooltip: "" + Tooltip: Counts as a water source } WulfrumSofa: { @@ -3387,6 +3392,91 @@ WulfrumWorkBench: { Tooltip: "" } +AnodizedWulfrumBathtub: { + DisplayName: Anodized Wulfrum Bathtub + Tooltip: "" +} + +AnodizedWulfrumBookcase: { + DisplayName: Anodized Wulfrum Bookcase + Tooltip: "" +} + +AnodizedWulfrumChair: { + DisplayName: Anodized Wulfrum Chair + Tooltip: "" +} + +AnodizedWulfrumChandelier: { + DisplayName: Anodized Wulfrum Chandelier + Tooltip: "" +} + +AnodizedWulfrumChest: { + DisplayName: Anodized Wulfrum Chest + Tooltip: "" +} + +AnodizedWulfrumDeskLight: { + DisplayName: Anodized Wulfrum Desk Light + Tooltip: "" +} + +AnodizedWulfrumDoor: { + DisplayName: Anodized Wulfrum Door + Tooltip: "" +} + +AnodizedWulfrumDresser: { + DisplayName: Anodized Wulfrum Dresser + Tooltip: "" +} + +AnodizedWulfrumJukebox: { + DisplayName: Anodized Wulfrum Jukebox + Tooltip: "" +} + +AnodizedWulfrumLamp: { + DisplayName: Anodized Wulfrum Lamp + Tooltip: "" +} + +AnodizedWulfrumLantern: { + DisplayName: Anodized Wulfrum Lantern + Tooltip: "" +} + +AnodizedWulfrumSink: { + DisplayName: Anodized Wulfrum Sink + Tooltip: Counts as a water source +} + +AnodizedWulfrumSleepingPod: { + DisplayName: Anodized Wulfrum Sleeping Pod + Tooltip: "" +} + +AnodizedWulfrumSofa: { + DisplayName: Anodized Wulfrum Sofa + Tooltip: "" +} + +AnodizedWulfrumTable: { + DisplayName: Anodized Wulfrum Table + Tooltip: "" +} + +AnodizedWulfrumToilet: { + DisplayName: Anodized Wulfrum Toilet + Tooltip: "" +} + +AnodizedWulfrumWorkBench: { + DisplayName: Anodized Wulfrum Work Bench + Tooltip: "" +} + HardenedAstralSand: { DisplayName: Hardened Astral Sand Tooltip: "" diff --git a/Localization/en-US/Mods.CalamityMod.Tiles.hjson b/Localization/en-US/Mods.CalamityMod.Tiles.hjson index 32316202fc..a88b068345 100644 --- a/Localization/en-US/Mods.CalamityMod.Tiles.hjson +++ b/Localization/en-US/Mods.CalamityMod.Tiles.hjson @@ -9,6 +9,8 @@ PirateCrate: Abandoned Crate // Basic Calamity Furniture Basin: Basin LavaFountain: Lava Fountain +BaroqueCello: Baroque Cello +Jukebox: Jukebox PipeOrgan: Pipe Organ Sconce: Sconce // Draedon Lab Furniture From 5e28f8459852ae62d59efc3472ca27f97eb7fb4b Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Jul 2025 22:52:46 +0700 Subject: [PATCH 12/36] fix small qs projectile damage --- NPCs/VanillaNPCAIOverrides/Bosses/QueenSlimeAI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/QueenSlimeAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/QueenSlimeAI.cs index e93ba283b7..c16a8274e0 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/QueenSlimeAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/QueenSlimeAI.cs @@ -13,8 +13,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses public static class QueenSlimeAI { // Vanilla values - public static int SmallGelDamage = 15; // 60 - public static int SpikeDamage = 15; // 60 + public static int SmallGelDamage = Main.masterMode ? 20 : 17; // 68 + public static int SpikeDamage = Main.masterMode ? 20 : 17; // 68 public static int LargeGelDamage = 30; // 120 public static int SlamDamage = 40; // 160 From 805f1e2447d4da79c5e431da48fcf415c4801e6b Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Jul 2025 23:44:09 +0700 Subject: [PATCH 13/36] other mech tier stuff. hi done --- NPCs/AquaticScourge/AquaticScourgeBody.cs | 3 ++- NPCs/AquaticScourge/AquaticScourgeHead.cs | 11 +++++------ NPCs/AquaticScourge/AquaticScourgeTail.cs | 2 +- NPCs/BrimstoneElemental/BrimstoneElemental.cs | 3 ++- NPCs/Cryogen/Cryogen.cs | 4 ++-- Projectiles/Boss/SandPoisonCloud.cs | 2 +- Projectiles/Boss/ToxicCloud.cs | 4 +--- Projectiles/CalamityGlobalProjectileTweaks.cs | 1 - Projectiles/Enemy/SulphuricAcidMist.cs | 2 +- 9 files changed, 15 insertions(+), 17 deletions(-) diff --git a/NPCs/AquaticScourge/AquaticScourgeBody.cs b/NPCs/AquaticScourge/AquaticScourgeBody.cs index e985444bac..f1a458519a 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBody.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBody.cs @@ -27,11 +27,12 @@ namespace CalamityMod.NPCs.AquaticScourge this.HideFromBestiary(); } - public static int ToothDamage = 23; // 92 + public static int ToothDamage = 25; // 100 public override void SetDefaults() { NPC.damage = 52; // 104 + NPC.Calamity().canBreakPlayerDefense = true; NPC.width = 32; NPC.height = 32; NPC.defense = 20; diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index e0b2b61f7b..e7664d27cd 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -54,13 +54,12 @@ namespace CalamityMod.NPCs.AquaticScourge NPCID.Sets.MPAllowedEnemies[Type] = true; } - public static int MistDamage = 23; // 92 - public static int SandCloudDamage = 28; // 112 - public static int ToxicCloudDamage = 32; // 128 + public static int MistDamage = 25; // 100 + public static int CloudDamage = 28; // 112; applies to both Sand and Toxic public override void SetDefaults() { - NPC.damage = 80; // 160 + NPC.damage = 90; // 180 NPC.Calamity().canBreakPlayerDefense = true; NPC.width = 90; NPC.height = 90; @@ -252,7 +251,7 @@ namespace CalamityMod.NPCs.AquaticScourge for (int k = 0; k < totalProjectiles; k++) { Vector2 vector255 = spinningPoint.RotatedBy(radians * k); - Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + vector255.SafeNormalize(Vector2.UnitY) * 5f, vector255, type, ToxicCloudDamage, 0f, Main.myPlayer); + Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + vector255.SafeNormalize(Vector2.UnitY) * 5f, vector255, type, CloudDamage, 0f, Main.myPlayer); } } } @@ -366,7 +365,7 @@ namespace CalamityMod.NPCs.AquaticScourge if (expertMode) velocity *= 1f + (maximumVelocityMult * (0.5f - lifeRatio)); - Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + velocity.SafeNormalize(Vector2.UnitY) * 5f, velocity, type, SandCloudDamage, 0f, Main.myPlayer); + Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + velocity.SafeNormalize(Vector2.UnitY) * 5f, velocity, type, CloudDamage, 0f, Main.myPlayer); } } } diff --git a/NPCs/AquaticScourge/AquaticScourgeTail.cs b/NPCs/AquaticScourge/AquaticScourgeTail.cs index 98ccd53ce6..c4373b88ef 100644 --- a/NPCs/AquaticScourge/AquaticScourgeTail.cs +++ b/NPCs/AquaticScourge/AquaticScourgeTail.cs @@ -355,7 +355,7 @@ namespace CalamityMod.NPCs.AquaticScourge public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 180, true); + target.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index 968dda7bda..342e570ab3 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -75,6 +75,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental { NPC.npcSlots = 64f; NPC.damage = 52; // 104 + NPC.Calamity().canBreakPlayerDefense = true; NPC.width = 100; NPC.height = 150; NPC.defense = 15; @@ -839,7 +840,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { - target.AddBuff(ModContent.BuffType(), 360); + target.AddBuff(ModContent.BuffType(), 240); } public override void FindFrame(int frameHeight) // 9 total frames diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index bb6198de1e..53fa4fd862 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -89,8 +89,8 @@ namespace CalamityMod.NPCs.Cryogen } } - public static int IceBlastDamage = 22; // 88; Also applies to GFB darts - public static int IceRainDamage = 22; // 88; Also applies to GFB darts + public static int IceBlastDamage = 23; // 92; Also applies to GFB darts + public static int IceRainDamage = 23; // 92; Also applies to GFB darts public static int IceBombDamage = 30; // 120; Also applies to GFB fireblasts public override void SetDefaults() diff --git a/Projectiles/Boss/SandPoisonCloud.cs b/Projectiles/Boss/SandPoisonCloud.cs index 6db2345c81..2b5d10c0b6 100644 --- a/Projectiles/Boss/SandPoisonCloud.cs +++ b/Projectiles/Boss/SandPoisonCloud.cs @@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 240, true); + target.AddBuff(BuffID.Venom, 180); } } } diff --git a/Projectiles/Boss/ToxicCloud.cs b/Projectiles/Boss/ToxicCloud.cs index 8b54687e48..f0286ca08f 100644 --- a/Projectiles/Boss/ToxicCloud.cs +++ b/Projectiles/Boss/ToxicCloud.cs @@ -87,9 +87,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(BuffID.Poisoned, 240); - target.AddBuff(BuffID.Venom, 240); - target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 480); } } } diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index c0ea3af4d8..13374f4ac5 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -313,7 +313,6 @@ namespace CalamityMod.Projectiles { ProjectileID.PhantasmalDeathray, defenseDamage }, { ProjectileID.PhantasmalSphere, defenseDamage }, { ProjectileID.Present, defenseDamage }, // Falling present bombs in Frost Moon - { ProjectileID.QueenSlimeSmash, defenseDamage }, { ProjectileID.RockGolemRock, defenseDamage }, { ProjectileID.RuneBlast, defenseDamage }, // Rune Wizard shots { ProjectileID.SaucerDeathray, defenseDamage }, diff --git a/Projectiles/Enemy/SulphuricAcidMist.cs b/Projectiles/Enemy/SulphuricAcidMist.cs index f1f5d6b825..2ad2cea566 100644 --- a/Projectiles/Enemy/SulphuricAcidMist.cs +++ b/Projectiles/Enemy/SulphuricAcidMist.cs @@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Enemy return; if (Projectile.Opacity >= 0.9f) - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 300); } } } From 445d8c5217f58257b21d5aea2c2b5de8ee35ccb0 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Jul 2025 23:50:05 +0700 Subject: [PATCH 14/36] both types can have defense damage. hi shark --- NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs index 7527eadeb1..340f384947 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs @@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.AquaticScourge public override void SetDefaults() { NPC.damage = 48; // 96 + NPC.Calamity().canBreakPlayerDefense = true; NPC.width = 32; NPC.height = 32; NPC.defense = 15; From afbb1c00ddbe049bf6a97ab2a91f400ac5539dbe Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Thu, 24 Jul 2025 00:11:50 +0700 Subject: [PATCH 15/36] lost phase 2 eol damage --- .../Bosses/EmpressofLightAI.cs | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs index 3ec6ba5b7e..f46e3b4c60 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs @@ -18,6 +18,10 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses public static int EverlastingRainbowDamage = 30; // 120 public static int EtherealLanceDamage = 30; // 120 public static int SunDanceDamage = 35; // 140 + public static int Phase2PrismaticBoltDamage = 35; // 140 + public static int Phase2EverlastingRainbowDamage = 35; // 140 + public static int Phase2EtherealLanceDamage = 35; // 140 + public static int Phase2SunDanceDamage = 40; // 160 // Vanilla sets her defDamage to 184 (80 * 2 * 1.15) in Expert Mode // However, some weird contraption in her Expert AI that knocks her base contact damage to the intended value of 110 @@ -47,6 +51,11 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses bool phase2 = npc.AI_120_HallowBoss_IsInPhase2(); bool phase3 = lifeRatio <= phase3LifeRatio; + int boltDamage = (phase2 ? Phase2PrismaticBoltDamage : PrismaticBoltDamage).CalculateDamageForEnrage(); + int rainbowDamage = (phase2 ? Phase2EverlastingRainbowDamage : EverlastingRainbowDamage).CalculateDamageForEnrage(); + int lanceDamage = (phase2 ? Phase2EtherealLanceDamage : EtherealLanceDamage).CalculateDamageForEnrage(); + int sunDanceDamage = (phase2 ? Phase2SunDanceDamage : SunDanceDamage).CalculateDamageForEnrage(); + bool shouldBeInPhase2ButIsStillInPhase1 = lifeRatio <= phase2LifeRatio && !phase2; if (shouldBeInPhase2ButIsStillInPhase1) calamityGlobalNPC.DR = 0.99f; @@ -417,7 +426,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if ((int)npc.ai[1] % streakSpawnFrequency == 0 && npc.ai[1] < 60f) { int projectileType = ProjectileID.HallowBossRainbowStreak; - int projectileDamage = PrismaticBoltDamage.CalculateDamageForEnrage(); + int projectileDamage = boltDamage float ai3 = npc.ai[1] / 60f; Vector2 rainbowStreakVelocity = new Vector2(0f, death ? -10f : -8f).RotatedBy(MathHelper.PiOver2 * Main.rand.NextFloatDirection()); @@ -551,7 +560,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } int projectileType = ProjectileID.FairyQueenLance; - int projectileDamage = EtherealLanceDamage.CalculateDamageForEnrage(); + int projectileDamage = lanceDamage; Vector2 v3 = targetHoverPos - spawnLocation; if (Main.netMode != NetmodeID.MultiplayerClient) @@ -631,9 +640,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses for (float i = 0f; i < 1f; i += 1f / totalProjectiles) { int projectileType = ProjectileID.HallowBossLastingRainbow; - int projectileDamage = EverlastingRainbowDamage.CalculateDamageForEnrage(); + int projectileDamage = rainbowDamage; int projectileType2 = ProjectileID.HallowBossRainbowStreak; - int projectileDamage2 = PrismaticBoltDamage.CalculateDamageForEnrage(); + int projectileDamage2 = boltDamage; float projRotationMultiplier = i; Vector2 spinningpoint = Vector2.UnitY.RotatedBy(MathHelper.PiOver2 + MathHelper.TwoPi * projRotationMultiplier + projRotation); @@ -704,7 +713,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (npc.ai[1] % sunDanceGateValue == 0f && npc.ai[1] < totalSunDancePhaseTime) { int projectileType = ProjectileID.FairyQueenSunDance; - int projectileDamage = SunDanceDamage.CalculateDamageForEnrage(); + int projectileDamage = sunDanceDamage; int sunDanceExtension = (int)(npc.ai[1] / sunDanceGateValue); int targetFloatDirection = (targetData2.Center.X > npc.Center.X) ? 1 : 0; @@ -824,7 +833,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } int projectileType = ProjectileID.FairyQueenLance; - int projectileDamage = EtherealLanceDamage.CalculateDamageForEnrage(); + int projectileDamage = lanceDamage; for (float i = 0f; i <= 1f; i += 1f / totalProjectiles) { @@ -906,7 +915,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if ((npc.ai[1] - 1f) % rainbowStreakGateValue == 0f) { int projectileType = ProjectileID.HallowBossRainbowStreak; - int projectileDamage = PrismaticBoltDamage.CalculateDamageForEnrage(); + int projectileDamage = boltDamage; float ai3 = (npc.ai[1] - chargeGateValue - 1f) / chargeDuration; Vector2 rainbowStreakVelocity = new Vector2(0f, death ? -5f : -4f).RotatedBy(MathHelper.PiOver2 * Main.rand.NextFloatDirection()); @@ -1077,7 +1086,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } int projectileType = ProjectileID.FairyQueenLance; - int projectileDamage = EtherealLanceDamage.CalculateDamageForEnrage(); + int projectileDamage = lanceDamage; Vector2 v = straightLanceSpawnPredict - straightLanceSpawnDirection; if (Main.netMode != NetmodeID.MultiplayerClient) @@ -1154,7 +1163,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if ((int)npc.ai[1] % stationaryStreakSpawnFrequency == 0 && shouldSpawnStreaks) { int projectileType = ProjectileID.HallowBossRainbowStreak; - int projectileDamage = PrismaticBoltDamage.CalculateDamageForEnrage(); + int projectileDamage = boltDamage; Vector2 vector = new Vector2(0f, (death ? -24f : -22f) - (phase3 ? ((death ? 6f : 4f) * streakHomeTime) : 0f)).RotatedBy(MathHelper.TwoPi * streakHomeTime); if (Main.netMode != NetmodeID.MultiplayerClient) From 5f0fa65e00ffd91c413bb0e8f09112840766bbe1 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Thu, 24 Jul 2025 00:15:58 +0700 Subject: [PATCH 16/36] accidentally removed a semicolon hi compile error --- NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs index f46e3b4c60..3ab24ea7db 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs @@ -426,7 +426,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if ((int)npc.ai[1] % streakSpawnFrequency == 0 && npc.ai[1] < 60f) { int projectileType = ProjectileID.HallowBossRainbowStreak; - int projectileDamage = boltDamage + int projectileDamage = boltDamage; float ai3 = npc.ai[1] / 60f; Vector2 rainbowStreakVelocity = new Vector2(0f, death ? -10f : -8f).RotatedBy(MathHelper.PiOver2 * Main.rand.NextFloatDirection()); From 928b51dd054c8752d6a28e9b2c6f59d37e909c4b Mon Sep 17 00:00:00 2001 From: Big E Date: Wed, 23 Jul 2025 14:37:37 -0400 Subject: [PATCH 17/36] + Fixed issues with transformation accessories not always appearing when certain accessory slots weren't unlocked --- Items/BaseItems/TransformationAccessory.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Items/BaseItems/TransformationAccessory.cs b/Items/BaseItems/TransformationAccessory.cs index 01af6d62e9..ae73e80dbc 100644 --- a/Items/BaseItems/TransformationAccessory.cs +++ b/Items/BaseItems/TransformationAccessory.cs @@ -120,7 +120,13 @@ namespace CalamityMod.Items.BaseItems self.Transformation().currentTransformation = transformation; } - if (self.Transformation().currentTransformation != null && itemSlot == 19) // last item slot, can set equip slots to our transformation if one is equipped + int finalSlot = 17; + if (self.CanDemonHeartAccessoryBeShown()) + finalSlot = 18; + if (self.CanMasterModeAccessoryBeShown()) + finalSlot = 19; + + if (self.Transformation().currentTransformation != null && itemSlot == finalSlot) // last item slot, can set equip slots to our transformation if one is equipped { TransformationAccessory trans = self.Transformation().currentTransformation; bool[] list = new bool[15]; @@ -135,6 +141,7 @@ namespace CalamityMod.Items.BaseItems } if(trans.ShouldHideAccessories) self.HideAccessories(); + } self.Transformation().prevSlot = itemSlot; From 2e3512ac08b8567d3ebe34da04ccc966ec4f6f15 Mon Sep 17 00:00:00 2001 From: Big E Date: Wed, 23 Jul 2025 15:57:37 -0400 Subject: [PATCH 18/36] + Transformation Accessories now work properly with modded extra accessory slots --- Items/BaseItems/TransformationAccessory.cs | 39 ++++++++++++++-------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/Items/BaseItems/TransformationAccessory.cs b/Items/BaseItems/TransformationAccessory.cs index ae73e80dbc..f929462815 100644 --- a/Items/BaseItems/TransformationAccessory.cs +++ b/Items/BaseItems/TransformationAccessory.cs @@ -84,11 +84,13 @@ namespace CalamityMod.Items.BaseItems { public override void Load() { + On_Player.ResetVisibleAccessories += ResetTransformation; On_Player.UpdateVisibleAccessory += SetTransformationItem; } internal TransformationAccessory currentTransformation = null; - int prevSlot = -1; + int previousHighest = -1; + int currentHighest = -1; public int Type { @@ -107,26 +109,36 @@ namespace CalamityMod.Items.BaseItems } } + private void ResetTransformation(On_Player.orig_ResetVisibleAccessories orig, Player self) + { + orig(self); + + Reset(self); + } + + private void Reset(Player p) + { + previousHighest = currentHighest; + currentHighest = -1; + + if (p.Transformation().currentTransformation != null && !p.Transformation().currentTransformation.IsForced) + p.Transformation().currentTransformation = null; + } + private void SetTransformationItem(On_Player.orig_UpdateVisibleAccessory orig, Player self, int itemSlot, Item item, bool modded) { orig(self, itemSlot, item, modded); if (self.Transformation().currentTransformation == null || !self.Transformation().currentTransformation.IsForced) { - if (self.Transformation().prevSlot > itemSlot) //determines if we're on the first visible slot (as this isnt called on non-visible slots) - self.Transformation().currentTransformation = null; - if (item.ModItem is TransformationAccessory transformation && transformation.ShouldTransform.Invoke(self) && (currentTransformation == null || transformation.Priority >= currentTransformation.Priority)) self.Transformation().currentTransformation = transformation; } - int finalSlot = 17; - if (self.CanDemonHeartAccessoryBeShown()) - finalSlot = 18; - if (self.CanMasterModeAccessoryBeShown()) - finalSlot = 19; + if (currentHighest < itemSlot) + currentHighest = itemSlot; - if (self.Transformation().currentTransformation != null && itemSlot == finalSlot) // last item slot, can set equip slots to our transformation if one is equipped + if (self.Transformation().currentTransformation != null && itemSlot == previousHighest) // last item slot, can set equip slots to our transformation if one is equipped { TransformationAccessory trans = self.Transformation().currentTransformation; bool[] list = new bool[15]; @@ -139,12 +151,9 @@ namespace CalamityMod.Items.BaseItems list[(int)Type] = true; } } - if(trans.ShouldHideAccessories) + if (trans.ShouldHideAccessories) self.HideAccessories(); - } - - self.Transformation().prevSlot = itemSlot; } public override void UpdateAutopause() @@ -158,6 +167,8 @@ namespace CalamityMod.Items.BaseItems SetEquipSlot(Player, EquipType.Head, Mod, name); } } + + Reset(Player); } public override void ModifyDrawInfo(ref PlayerDrawSet drawInfo) From 033499e87c7fab9016e8d9662deec37f149c4b0f Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Thu, 24 Jul 2025 10:01:49 -0400 Subject: [PATCH 19/36] Small Laudanum Confused buff --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index bd3711c406..e846889fbd 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -4409,7 +4409,7 @@ namespace CalamityMod.CalPlayer break; case BuffID.Confused: Player.confused = false; - Player.statDefense += 10; + Player.statDefense += 15; break; case BuffID.Cursed: Player.cursed = false; From e21fdf0479ac1eba94a80a8ecc3b8d3036221bdc Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Thu, 24 Jul 2025 11:52:24 -0500 Subject: [PATCH 20/36] Modernizing Caustic Croaker - Caustic Croaker explodes immediately when an enemy is within 6 tiles - Instead of dying, exploding has a two-second cooldown and causes the frog to hop. - When spawned, the cooldown is 0.75 seconds, which is the same as previous behavior - When getting ready to explode, the frog glows and gains a green outline to signify it is ready to explode - Explosions now slightly aim at the target enemy --- Projectiles/Summon/EXPLODINGFROG.cs | 119 ++++++++++++++++++++++------ 1 file changed, 94 insertions(+), 25 deletions(-) diff --git a/Projectiles/Summon/EXPLODINGFROG.cs b/Projectiles/Summon/EXPLODINGFROG.cs index a54e7caea0..dc5e5ecb1f 100644 --- a/Projectiles/Summon/EXPLODINGFROG.cs +++ b/Projectiles/Summon/EXPLODINGFROG.cs @@ -1,6 +1,10 @@ -using CalamityMod.Buffs.DamageOverTime; +using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Dusts; +using CalamityMod.Items.Weapons.Summon; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; using Terraria.ID; @@ -11,8 +15,8 @@ namespace CalamityMod.Projectiles.Summon public class EXPLODINGFROG : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; - public const float MinExplodeDistance = 120f; - public const float ExplodeWaitTime = 45f; + public const float MinExplodeDistance = 96f; + public const float ExplodeWaitTime = 120f; public const float ExplosionAngleVariance = 0.8f; public override void SetStaticDefaults() { @@ -35,6 +39,11 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { + if (Projectile.ai[1] == 0) + { + Projectile.ai[0] = 75; + Projectile.ai[1] = 1; + } if (Projectile.frameCounter++ > 5) { Projectile.frame++; @@ -46,39 +55,56 @@ namespace CalamityMod.Projectiles.Summon } Player player = Main.player[Projectile.owner]; bool canExplode = Projectile.Center.ClosestNPCAt(MinExplodeDistance) != null; - if (player.HasMinionAttackTargetNPC) + if (player.HasMinionAttackTargetNPC && !canExplode) { canExplode = Main.npc[player.MinionAttackTargetNPC].Distance(Projectile.Center) < MinExplodeDistance; } - if (canExplode) + if (Projectile.ai[0] < ExplodeWaitTime) Projectile.ai[0]++; if (Projectile.ai[0] >= ExplodeWaitTime) { - if (Main.myPlayer == Projectile.owner) + if (canExplode) { - // Goop projectiles - for (int i = 0; i < 3; i++) + if (Main.myPlayer == Projectile.owner) { + Vector2 rotOffset = -Vector2.UnitY; + if (player.HasMinionAttackTargetNPC && Main.npc[player.MinionAttackTargetNPC].Distance(Projectile.Center) < MinExplodeDistance + Math.Max(Main.npc[player.MinionAttackTargetNPC].width * 0.5f, Main.npc[player.MinionAttackTargetNPC].height * 0.5f)) + rotOffset = (Projectile.DirectionTo(Main.npc[player.MinionAttackTargetNPC].Center)); + else + { + var tar = Projectile.Center.ClosestNPCAt(MinExplodeDistance); + if (tar != null) + rotOffset = (Projectile.DirectionTo(tar.Center)); + } + // Goop projectiles + Vector2 direction = Vector2.Lerp(-Vector2.UnitY, rotOffset, 0.25f).SafeNormalize(-Vector2.UnitY); + for (int i = 0; i < 3; i++) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, + (direction * Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), + ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, + (direction * Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), + ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + } Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, - new Vector2(0f, -Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), - ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + (direction * Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), + ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, - new Vector2(0f, -Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), - ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + (direction * Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), + ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, + (direction * Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), + ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); } - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, - new Vector2(0f, -Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), - ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, - new Vector2(0f, -Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), - ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, - new Vector2(0f, -Main.rand.NextFloat(6f, 10f)).RotatedByRandom(ExplosionAngleVariance), - ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + // WoF vomit sound. + SoundEngine.PlaySound(SoundID.NPCDeath13, Projectile.Center); + Projectile.ai[0] = 0; + + //do a little hop + if (Projectile.velocity.Length() < 0.1f) + Projectile.velocity.Y -= 5; } - // WoF vomit sound. - SoundEngine.PlaySound(SoundID.NPCDeath13, Projectile.Center); - Projectile.Kill(); } Projectile.velocity.Y += 0.5f; @@ -91,12 +117,55 @@ namespace CalamityMod.Projectiles.Summon public override bool? CanDamage() => false; // Don't die on tile collision - public override bool OnTileCollide(Vector2 oldVelocity) => false; + public override bool OnTileCollide(Vector2 oldVelocity) + { + Projectile.velocity *= 0.8f; + return false; + } public override bool TileCollideStyle(ref int width, ref int height, ref bool fallThrough, ref Vector2 hitboxCenterFrac) { fallThrough = false; return true; } + private static Texture2D GlowOutline = null; + public static Texture2D GetGlowOutline() + { + if (GlowOutline == null) + { + var texture = ModContent.Request("CalamityMod/Projectiles/Summon/EXPLODINGFROG").Value; + GlowOutline = new Texture2D(Main.graphics.GraphicsDevice, texture.Width, texture.Height); + + var BaseArray = new Color[GlowOutline.Width * GlowOutline.Height]; + var ColorArray = new Color[GlowOutline.Width * GlowOutline.Height]; + texture.GetData(BaseArray); + for (var i = 0; i < BaseArray.Length; i++) + { + ColorArray[i] = new Color(255, 255, 255) * (((float)BaseArray[i].A) / 255f); + } + GlowOutline.SetData(ColorArray); + } + return GlowOutline; + } + + public void ApplyGlowOutline(Texture2D tex, Rectangle? frame = null, float rotationOffset = 0, float borderPixels = 1, float opacity = 1) + { + Color color = Color.GreenYellow; + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition + new Vector2(2, 0) * borderPixels, frame, color * opacity, Projectile.rotation - rotationOffset, new Vector2(frame.Value.Width,frame.Value.Height) *0.5f, Projectile.scale, (Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None), 0); + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition + new Vector2(0, 2) * borderPixels, frame, color * opacity, Projectile.rotation - rotationOffset, new Vector2(frame.Value.Width, frame.Value.Height) * 0.5f, Projectile.scale, (Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None), 0); + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition + new Vector2(-2, 0) * borderPixels, frame, color * opacity, Projectile.rotation - rotationOffset, new Vector2(frame.Value.Width, frame.Value.Height) * 0.5f, Projectile.scale, (Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None), 0); + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition + new Vector2(0, -2) * borderPixels, frame, color * opacity, Projectile.rotation - rotationOffset, new Vector2(frame.Value.Width, frame.Value.Height) * 0.5f, Projectile.scale, (Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None), 0); + } + public override bool PreDraw(ref Color lightColor) + { + var tex = GetGlowOutline(); + var frame = tex.Frame(1, 5, 0, Projectile.frame); + ApplyGlowOutline(tex, frame, 0, MathF.Pow(Math.Clamp((Projectile.ai[0]-90)/(ExplodeWaitTime-90), 0, 1), 2),1); + + Lighting.AddLight(Projectile.Center, Color.GreenYellow.ToVector3()*(MathF.Pow(Math.Clamp((Projectile.ai[0] - 90) / (ExplodeWaitTime - 90), 0, 1), 2))); + tex = Terraria.GameContent.TextureAssets.Projectile[Type].Value; + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, frame, lightColor * Projectile.Opacity, Projectile.rotation, new Vector2(frame.Width, frame.Height) * 0.5f, Projectile.scale, (Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None), 0); + return false; + } } } From 4ced44c122f299a8d0f9a74a254d721230ea5ad2 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 24 Jul 2025 13:14:21 -0400 Subject: [PATCH 21/36] Add Traveling Merchant name Postman Hiss for donor --- NPCs/CalamityGlobalTownNPC.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 1c27253fff..1d3e80c398 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -248,6 +248,7 @@ namespace CalamityMod.NPCs "Stan Pines", "Intergaze", // <@!923504188615450654> (intergaze) "Borgus", // <@!539127427482255376> (therealmeepman) + "Postman Hiss", // <@!454638106122125312> (karinthefairy) }; private static readonly string[] TruffleNames = { From 54d6a005056c5d5c951f32c8c215938b30fcea1c Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 24 Jul 2025 13:16:23 -0400 Subject: [PATCH 22/36] Change donor name Woah to Sevenfold per request --- Systems/Collections/DonatorsNameList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Systems/Collections/DonatorsNameList.cs b/Systems/Collections/DonatorsNameList.cs index 9ae253c576..258a4fbd64 100644 --- a/Systems/Collections/DonatorsNameList.cs +++ b/Systems/Collections/DonatorsNameList.cs @@ -615,6 +615,7 @@ namespace CalamityMod.Systems.Collections "Scribbles", "Scrumlet", "Seanツ", + "Sevenfold", // previously "Woah" "Shadoku", "SharZz", "Shaun", @@ -719,7 +720,6 @@ namespace CalamityMod.Systems.Collections "William", "WillyDilly", "WinterTire", - "Woah", "Wodernet", "Wolfmaw", "WrathOfOlympus", From 2e40725bd503b8bd0217e2ad00a5adce2a0b1f3c Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 25 Jul 2025 03:41:51 +0700 Subject: [PATCH 23/36] plant on brimstone fire --- CalPlayer/CalamityPlayerHitHurt.cs | 2 +- NPCs/BrimstoneElemental/BrimstoneElemental.cs | 6 +++--- NPCs/CalClone/CalamitasClone.cs | 8 ++++---- NPCs/CalClone/Cataclysm.cs | 2 +- NPCs/CalClone/Catastrophe.cs | 6 +++--- NPCs/NormalNPCs/PlanterasFreeTentacle.cs | 3 +-- NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs | 4 +++- Projectiles/Boss/BrimstoneBall.cs | 2 +- Projectiles/Boss/BrimstoneBarrage.cs | 2 +- Projectiles/Boss/BrimstoneFire.cs | 2 +- Projectiles/Boss/BrimstoneHellblast.cs | 2 +- Projectiles/Boss/BrimstoneHellblast2.cs | 2 +- Projectiles/Boss/BrimstoneHellfireball.cs | 3 +-- Projectiles/Boss/BrimstoneRay.cs | 2 +- Projectiles/Boss/SporeGasPlantera.cs | 1 - Projectiles/Boss/ThornBallSpike.cs | 2 +- 16 files changed, 24 insertions(+), 25 deletions(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 86a5ce0a88..a5740086f5 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1374,7 +1374,7 @@ namespace CalamityMod.CalPlayer } else if (proj.type == ProjectileID.ThornBall) { - Player.AddBuff(BuffID.Poisoned, 420); + Player.AddBuff(BuffID.Venom, 120); } else if (proj.type == ProjectileID.CultistBossFireBall) { diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index 342e570ab3..23a420108b 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -66,9 +66,9 @@ namespace CalamityMod.NPCs.BrimstoneElemental } // These values are all applied alongside their respective GFB attacks (too many to list) - public static int DartDamage = 21; // 84 - public static int HellblastDamage = 25; // 100 - public static int HellfireballDamage = 25; // 100 + public static int DartDamage = 19; // 76 + public static int HellblastDamage = 22; // 88 + public static int HellfireballDamage = 22; // 88 public static int RayDamage = 35; // 140 public override void SetDefaults() diff --git a/NPCs/CalClone/CalamitasClone.cs b/NPCs/CalClone/CalamitasClone.cs index 021a8c990e..39cb2d3b99 100644 --- a/NPCs/CalClone/CalamitasClone.cs +++ b/NPCs/CalClone/CalamitasClone.cs @@ -61,9 +61,9 @@ namespace CalamityMod.NPCs.CalClone } } - public static int DartDamage = 23; // 92 - public static int HellblastDamage = 27; // 108 - public static int HellfireballDamage = 27; // 108 + public static int DartDamage = 22; // 88 + public static int HellblastDamage = 25; // 100 + public static int HellfireballDamage = 25; // 100 public static int FireblastDamage = 35; // 140; Also applies to GFB Gigablasts public override void SetDefaults() @@ -1008,7 +1008,7 @@ namespace CalamityMod.NPCs.CalClone public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 360); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/NPCs/CalClone/Cataclysm.cs b/NPCs/CalClone/Cataclysm.cs index a010422f10..fbbb1a72b2 100644 --- a/NPCs/CalClone/Cataclysm.cs +++ b/NPCs/CalClone/Cataclysm.cs @@ -552,7 +552,7 @@ namespace CalamityMod.NPCs.CalClone public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/NPCs/CalClone/Catastrophe.cs b/NPCs/CalClone/Catastrophe.cs index 3853a09347..a11b491bf1 100644 --- a/NPCs/CalClone/Catastrophe.cs +++ b/NPCs/CalClone/Catastrophe.cs @@ -43,13 +43,13 @@ namespace CalamityMod.NPCs.CalClone } } - public static int BallDamage = 27; // 108 + public static int BallDamage = 22; // 88 public override void SetDefaults() { NPC.BossBar = Main.BigBossProgressBar.NeverValid; NPC.Calamity().canBreakPlayerDefense = true; - NPC.damage = 50; // 100 + NPC.damage = 45; // 90 NPC.npcSlots = 5f; NPC.width = 120; NPC.height = 120; @@ -542,7 +542,7 @@ namespace CalamityMod.NPCs.CalClone public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs index 99a3439020..0ab71a7709 100644 --- a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs +++ b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs @@ -28,10 +28,9 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetDefaults() { - NPC.Calamity().canBreakPlayerDefense = true; + NPC.damage = 60; NPC.aiStyle = -1; AIType = -1; - NPC.damage = 60; NPC.width = 24; NPC.height = 24; NPC.defense = 20; diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs index 6a643fd94b..d99e35d489 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs @@ -32,12 +32,13 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses public static int PinkSeedDamage = 19; // 76 public static int PoisonSeedDamage = 24; // 96 public static int ThornBallDamage = 27; // 108 - public static int ThornBallSpikeDamage = 22; // 88 // Rev+ exclusive + public static int ThornBallSpikeDamage = 22; // 88 public static int GasBulbDamage = 27; // 108 public static int PinkCloudDamage = 22; // 88 public static int GreenCloudDamage = 24; // 96 + public static float DashDamageMult = 1.25f; // 175 public static bool BuffedPlanteraAI(NPC npc, Mod mod) { @@ -433,6 +434,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Emit spore gas in phase 3 else if (npc.ai[3] <= BeginChargeGateValue) { + npc.damage = (int)Math.Round(npc.defDamage * Phase2ContactDamageMult * DashDamageMult); float sporeGasDashGateValue = death ? 6f : 9f; if (phase3 && npc.ai[3] % sporeGasDashGateValue == 0f) { diff --git a/Projectiles/Boss/BrimstoneBall.cs b/Projectiles/Boss/BrimstoneBall.cs index 8009e83729..a171fbf0b7 100644 --- a/Projectiles/Boss/BrimstoneBall.cs +++ b/Projectiles/Boss/BrimstoneBall.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 90); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/BrimstoneBarrage.cs b/Projectiles/Boss/BrimstoneBarrage.cs index 9758d7eedb..59e57349d3 100644 --- a/Projectiles/Boss/BrimstoneBarrage.cs +++ b/Projectiles/Boss/BrimstoneBarrage.cs @@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.ai[0] == 0f || Main.zenithWorld) target.AddBuff(ModContent.BuffType(), 180); else - target.AddBuff(ModContent.BuffType(), 90); + target.AddBuff(ModContent.BuffType(), 120); } public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Boss/BrimstoneFire.cs b/Projectiles/Boss/BrimstoneFire.cs index 2fb7384d2e..52038731eb 100644 --- a/Projectiles/Boss/BrimstoneFire.cs +++ b/Projectiles/Boss/BrimstoneFire.cs @@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 150); + target.AddBuff(ModContent.BuffType(), 240); // Cook you up (still scales with player size in case it's manipulated) int smokeCount = 4 + (int)MathHelper.Clamp(target.width * 0.1f, 0f, 20f); diff --git a/Projectiles/Boss/BrimstoneHellblast.cs b/Projectiles/Boss/BrimstoneHellblast.cs index 2b2c2d18c1..dee61c274d 100644 --- a/Projectiles/Boss/BrimstoneHellblast.cs +++ b/Projectiles/Boss/BrimstoneHellblast.cs @@ -126,7 +126,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.ai[0] == 0f || Main.zenithWorld) target.AddBuff(ModContent.BuffType(), 180); else - target.AddBuff(ModContent.BuffType(), 90); + target.AddBuff(ModContent.BuffType(), 120); } public override void OnKill(int timeLeft) diff --git a/Projectiles/Boss/BrimstoneHellblast2.cs b/Projectiles/Boss/BrimstoneHellblast2.cs index 92cded34d9..36f5a082d3 100644 --- a/Projectiles/Boss/BrimstoneHellblast2.cs +++ b/Projectiles/Boss/BrimstoneHellblast2.cs @@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.ai[0] == 0f || Main.zenithWorld) target.AddBuff(ModContent.BuffType(), 180); else - target.AddBuff(ModContent.BuffType(), 90); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/BrimstoneHellfireball.cs b/Projectiles/Boss/BrimstoneHellfireball.cs index c35f3e1f66..ce7f33d38b 100644 --- a/Projectiles/Boss/BrimstoneHellfireball.cs +++ b/Projectiles/Boss/BrimstoneHellfireball.cs @@ -19,7 +19,6 @@ namespace CalamityMod.Projectiles.Boss public override void SetDefaults() { - Projectile.Calamity().DealsDefenseDamage = true; Projectile.width = 34; Projectile.height = 34; Projectile.hostile = true; @@ -83,7 +82,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 150); + target.AddBuff(ModContent.BuffType(), 240); } public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Boss/BrimstoneRay.cs b/Projectiles/Boss/BrimstoneRay.cs index 2b3d547aa0..de5275700d 100644 --- a/Projectiles/Boss/BrimstoneRay.cs +++ b/Projectiles/Boss/BrimstoneRay.cs @@ -233,7 +233,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 150); + target.AddBuff(ModContent.BuffType(), 240); } public override bool CanHitPlayer(Player target) => Projectile.scale >= 0.5f; diff --git a/Projectiles/Boss/SporeGasPlantera.cs b/Projectiles/Boss/SporeGasPlantera.cs index f1527b37fd..37da7212b3 100644 --- a/Projectiles/Boss/SporeGasPlantera.cs +++ b/Projectiles/Boss/SporeGasPlantera.cs @@ -28,7 +28,6 @@ namespace CalamityMod.Projectiles.Boss public override void SetDefaults() { - Projectile.Calamity().DealsDefenseDamage = true; Projectile.width = 32; Projectile.height = 32; Projectile.hostile = true; diff --git a/Projectiles/Boss/ThornBallSpike.cs b/Projectiles/Boss/ThornBallSpike.cs index 790a4288bb..e60fdf23eb 100644 --- a/Projectiles/Boss/ThornBallSpike.cs +++ b/Projectiles/Boss/ThornBallSpike.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Boss Projectile.rotation = (float)Math.Atan2(Projectile.velocity.Y, Projectile.velocity.X) + MathHelper.PiOver2; } - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Venom, 90); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Venom, 120); public override Color? GetAlpha(Color lightColor) => new Color(200, 200, 200, Projectile.alpha); From dbb156296be8c7d51d8876a0c0bb41b64cedc54c Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 25 Jul 2025 03:59:19 +0700 Subject: [PATCH 24/36] plant damage corrected --- NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs index d99e35d489..196ddcf11e 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs @@ -33,6 +33,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses public static int PoisonSeedDamage = 24; // 96 public static int ThornBallDamage = 27; // 108 + // Expert AI has uses a magic number which we have to correct for + public static int ContactDamageCorrection = 100; + // Rev+ exclusive public static int ThornBallSpikeDamage = 22; // 88 public static int GasBulbDamage = 27; // 108 @@ -63,8 +66,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses bool vomitFreeTentacles = lifeRatio < 0.25f && death; bool phase4 = lifeRatio < 0.2f; - if (phase2) - npc.damage = (int)Math.Round(npc.defDamage * Phase2ContactDamageMult); + npc.damage = (int)Math.Round(ContactDamageCorrection * (phase2 ? Phase2ContactDamageMult : 1f)); // Variables and target bool enrage = false; @@ -434,7 +436,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Emit spore gas in phase 3 else if (npc.ai[3] <= BeginChargeGateValue) { - npc.damage = (int)Math.Round(npc.defDamage * Phase2ContactDamageMult * DashDamageMult); + npc.damage = (int)Math.Round(ContactDamageCorrection * Phase2ContactDamageMult * DashDamageMult); float sporeGasDashGateValue = death ? 6f : 9f; if (phase3 && npc.ai[3] % sporeGasDashGateValue == 0f) { From 2cbf71e97b69b21fa8036b6fffcdcbf5c726b51f Mon Sep 17 00:00:00 2001 From: Heart-Plus-Up <85328817+Heart-Plus-Up@users.noreply.github.com> Date: Fri, 25 Jul 2025 00:50:41 -0700 Subject: [PATCH 25/36] Smooth Navystone Wall --- .../Walls/AncientSmoothNavystoneWall .cs | 25 ++++++++++++++++ .../Walls/AncientSmoothNavystoneWall.png | Bin 0 -> 372 bytes .../Placeables/Walls/SmoothNavystoneWall.png | Bin 372 -> 427 bytes Walls/AncientSmoothNavystoneWall.cs | 27 ++++++++++++++++++ Walls/AncientSmoothNavystoneWall.png | Bin 0 -> 10086 bytes Walls/SmoothNavystoneWall.png | Bin 10086 -> 8879 bytes 6 files changed, 52 insertions(+) create mode 100644 Items/Placeables/Walls/AncientSmoothNavystoneWall .cs create mode 100644 Items/Placeables/Walls/AncientSmoothNavystoneWall.png create mode 100644 Walls/AncientSmoothNavystoneWall.cs create mode 100644 Walls/AncientSmoothNavystoneWall.png diff --git a/Items/Placeables/Walls/AncientSmoothNavystoneWall .cs b/Items/Placeables/Walls/AncientSmoothNavystoneWall .cs new file mode 100644 index 0000000000..7de0d88898 --- /dev/null +++ b/Items/Placeables/Walls/AncientSmoothNavystoneWall .cs @@ -0,0 +1,25 @@ +using CalamityMod.Items.Placeables.FurnitureEutrophic; +using Terraria.ID; +using Terraria.ModLoader; +using WallTiles = CalamityMod.Walls; +namespace CalamityMod.Items.Placeables.Walls +{ + public class AncientSmoothNavystoneWall : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 400; + } + + public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType()); + + public override void AddRecipes() + { + CreateRecipe(4). + AddIngredient(). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/Walls/AncientSmoothNavystoneWall.png b/Items/Placeables/Walls/AncientSmoothNavystoneWall.png new file mode 100644 index 0000000000000000000000000000000000000000..d867a30eb6b9dfa371cd28b6b9cc36e07c13c373 GIT binary patch literal 372 zcmV-)0gL{LP)=C`2U~amslOgu~-BuHU%Fx`;bWA+IU|w*@WcY-Mvhra&-^D zu{I-TM0Pum0OE5VI)y};=Z_@->oRdRY-Ut+$@jiJ#be96K|C0H~TkEWcQ!sDju0tg`Ha5Ok7tRNHDf7>vcH*ko^hYNiz6L(} zb`LV)IAqh5MAn3F-zkxuZmwPet*~5 S^D&120000a%BYyw^b5ch_0Itp)=>Px$Wl2OqR7i=vl0QpAQ5eR5W?7faLNYXL z2nuQwiom5c8rqurI!%3z2B)B*KnxlRB8m(NiUtXy%;*krv${%%4fh`5J)Jf^&vNc_ z-aqGkp8H0e%v=W`Hj$*4@M{kM4D__C0fXve`|d&n+-eno^M8X=aX&OOBKXf!Q`|4- zRsh&p%7aw}#k~Rm>zi95A-}N-z*Xf^OxQ(E(&OEI!R;yVZfXD&DG1)KyQ1KzR53P+ zW>Us{dkWOcUdX-jEdcT9DF8lS-h%VP``ZObho{O@u%|%191ppgJh>LGN$9;>e-;g# z(J{ewh4vKa=zn?{POi9`IGz|c=WDR1KzXkA*)3lOr{;MolLdp01E&B07*qoM6N<$f}$q7f&c&j delta 346 zcmV-g0j2({1M~urBYy!qNkl=C`2U~amslOgu~-Bu zHU%Fx`;bWA+IU|w*@WcY-Mvhra&-^Du{I-TM0Pum0OE5VI)y};=Z_@->oRdRY-Ut+$@jiJ#be96K|9_JC$6M>Hhf^?bVWqx60Uu#+O!!_C43q zMOs7CyFLl0ATBxpzH?!;jO1=#QSqRhWK^fCqNJSxaIk$CPC@fBI19T`=6`Z-amw*N z!uvpTuL@2vPg5$XnL0j6CHMd5WS?nfNBv8xvayq{GPuz0Be#KC93Q?0%2;!(8(M#( sg;@z@znj!O7grEn>QymI<1nv^Un+io*V*$ihX4Qo07*qoM6N<$f*kmvqyPW_ diff --git a/Walls/AncientSmoothNavystoneWall.cs b/Walls/AncientSmoothNavystoneWall.cs new file mode 100644 index 0000000000..ec71f2f560 --- /dev/null +++ b/Walls/AncientSmoothNavystoneWall.cs @@ -0,0 +1,27 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Walls +{ + public class AncientSmoothNavystoneWall : ModWall, IVisibleThroughWater + { + int IVisibleThroughWater.WaterMapEntry { get; set; } + + public override void SetStaticDefaults() + { + Main.wallHouse[Type] = true; + + this.AddMapEntryWithWaterVisibility(new Color(27, 35, 36)); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.SnowBlock, 0f, 0f, 1, new Color(54, 69, 72), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; + } +} diff --git a/Walls/AncientSmoothNavystoneWall.png b/Walls/AncientSmoothNavystoneWall.png new file mode 100644 index 0000000000000000000000000000000000000000..585d059bc89c788422d476fc7077cb5c47d6fa53 GIT binary patch literal 10086 zcmZWvdpy(o|5u%kI-N*#Q>IYsN+*?uSr<%{6=so3a?35b&xUn7p=7xwVhXuzST37f z#wod9mY89oav8gj%jPoMejlCse$VfG_s1UN@%X&oulwuydcHobI0ZJ{LKrFdj?KCV&F zRuq0Dl~y@?lH#27z8a_1_YOzP%?Gx6Mq{3QU9;P7Tgv*Ny=yn)&nkWltKGOaer;Hu z>86ytvu>xg?tfuvtEpkCcjX3A0|J9Vn-riizMd1Ivy&SY6zpqji(awYt90&o=RO5F zinYVATbqJCCstjMjy#Eq+8WYjJ8bc^bHd}a;qeMu&>-y8E(L{7Z{0QM{pHU_izxOd?A_%W{U;Dk^j?{t+T(;})ZT z@sW-T!L@}OC@A|`#Jt0tjInyUud7`F)U)=GD<47@({bYGn6bCX8D1Lb>0yL9ma^>? z5z3}$5y4Y$i2VT$B6;a@V<{#Tq~%x(yQWuDw9S>SWtg`judKs``~9%dipQ7qqpGa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;$Jz(CL1`-VH9yzZBKLrN#Rx}I z)rb(WtV?`$J9*WA$%%b?)hbU(qobmp%JLQqyE~sY<&=NA+!g+o|ISjlz$o1~{Jyoc z2-p!9eBTi>IuDWDhtX$+E@1gSjv?H)2L|((e%ibFaugVb{mkEJT@4lFW}TtOB}9Q$ zLPBw}n^Qn@dXI$&C+KE1*T#gWyo_C<&V_6HYn=04$J zQtm-Z%i}u>C&~h)wS+g=akl=$0M2S?o)QB}09qbm#1> znl1xP=+1e455%#IY`W-!k)U_@GQDd5$>cl?FO=1Zj11)`u&c_CJK-C(l4A6b0-i2G z|2VTCQ{nz~)Sthqhtw+D^sWG*46sU*CqVZoRaKT924-lKbfHAmQONVE4if+d_=(LP zU7`@{H~MAAA-zoc)Vte`a1I=-)V)G(*WE_q-}AJ*u(M!qK!+Vcy%2!Vh?4!_O94fM zXHoUWHJm*|&^PqLeqoLN__h6XX1wtx#+?419XCvkiIoF;Q_@K1bV~Z3k#y+Vo}$1p zk1bxzk+#A-;1mV~0|>%ho^gc%f-%vHC8{zHWxUn^9$DFu>&iY|SxE<`Xh%9hg=JIh z)PXGshk0A%3O)?A=h?*#WIPT#VpH29p~1g>?exmY1l06V)%+bj{u9{60(U+|bb7Qjb*+x(qLmO;Om#^jy=Q_=>cY&VFHtc{O+r~ilhUrocxDHnq~C0-#fNL2X$)KLgqJG!nfL-+q|mQ};+MBxjc+9Dh=(zI|9@G9D4vOyN^ sMky|}r;92HEyVmx-v90Mw^0&U@W>VGxt!J&@?GY Date: Fri, 25 Jul 2025 08:10:52 -0400 Subject: [PATCH 26/36] Config gone --- CalamityConfig.cs | 12 ------------ .../en-US/Mods.CalamityMod.Configs.hjson | 16 ---------------- Systems/World/WorldgenManagementSystem.cs | 7 ------- 3 files changed, 35 deletions(-) diff --git a/CalamityConfig.cs b/CalamityConfig.cs index 50d1ea2d39..8b9662f7ff 100644 --- a/CalamityConfig.cs +++ b/CalamityConfig.cs @@ -45,18 +45,6 @@ namespace CalamityMod } } - #region Multi-Threading Settings - [Header("Multithreading")] - - [BackgroundColor(192, 54, 64, 192)] - [SliderColor(224, 165, 56, 128)] - [Range(0f, 2f)] - [DefaultValue(0f)] - [Increment(1f)] - [DrawTicks] - public float SunkenSeaMultiThreading { get; set; } - #endregion - #region Graphics Changes [Header("Graphics")] diff --git a/Localization/en-US/Mods.CalamityMod.Configs.hjson b/Localization/en-US/Mods.CalamityMod.Configs.hjson index f1558562c2..4e198237fe 100644 --- a/Localization/en-US/Mods.CalamityMod.Configs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Configs.hjson @@ -7,7 +7,6 @@ CalamityClientConfig: { UI: UI Changes MeterPositions: Meter Positions MusicToggles: Music Toggles - Multithreading: Multi-Threading } AbyssLayer3Alt: { @@ -389,21 +388,6 @@ CalamityClientConfig: { Label: "[i:Book] Wiki Status Message" Tooltip: Enable or disable the status message promoting the Official Calamity Wiki that plays on world entry. } - - MultiThreadingType: { - Label: Sunken Sea Multi-Threading Option - Tooltip: - ''' - Option 0 will disable worldgen multi-threading. - Option 1 will enable ReLogic's multi-threading. - Option 2 will enable custom multi-threading. - ''' - } - - SunkenSeaMultiThreading: { - Label: Sunken Sea Multi Threading - Tooltip: "" - } } CalamityServerConfig: { diff --git a/Systems/World/WorldgenManagementSystem.cs b/Systems/World/WorldgenManagementSystem.cs index be629644b2..4afdf26048 100644 --- a/Systems/World/WorldgenManagementSystem.cs +++ b/Systems/World/WorldgenManagementSystem.cs @@ -224,13 +224,6 @@ namespace CalamityMod.Systems int sunkenSeaX = (GenVars.UndergroundDesertLocation.Left + GenVars.UndergroundDesertLocation.Right) / 2; int sunkenSeaY = Main.maxTilesY / 2; - SunkenSea.ForLoop = CalamityClientConfig.Instance.SunkenSeaMultiThreading switch - { - 2 => SunkenSea.CSharpParallelFor, - 1 => SunkenSea.ReLogicParallelFor, - _ => SunkenSea.NormalForLoop, - }; - // place each piece of the sunken sea based on the above positons // messages intentionally in the "incorrect" order for the player's experience. From 8010fa7fff9772c261ad37483d8b6b7a36c50883 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Fri, 25 Jul 2025 09:01:26 -0400 Subject: [PATCH 27/36] 'Housekeeping' --- World/SunkenSea.cs | 152 ++++++++++++++++++--------------------------- 1 file changed, 62 insertions(+), 90 deletions(-) diff --git a/World/SunkenSea.cs b/World/SunkenSea.cs index 31de2c97fe..bfd794e460 100644 --- a/World/SunkenSea.cs +++ b/World/SunkenSea.cs @@ -45,35 +45,6 @@ namespace CalamityMod.World action.Invoke(i); } - public static void ReLogicParallelFor(int fromInclusive, int toExclusive, int step, Action action) - { - FastParallel.For(fromInclusive, toExclusive, (start, end, _) => - { - for (int i = start; i < end; i += step) - action.Invoke(i); - }); - } - - public static void CSharpParallelFor(int fromInclusive, int toExclusive, int step, Action action) - { - var partitioner = Partitioner.Create(fromInclusive, toExclusive, step); - Parallel.ForEach(partitioner, (range, _) => - { - for (int i = range.Item1; i < range.Item2; i += step) - action.Invoke(i); - }); - } - - /// - /// The delegate that describes the method of a type of for loop. - /// - public delegate void ForLoopMethod(int fromInclusive, int toExclusive, int step, Action action); - - /// - /// The current type of for loop used to generate the Sunken Sea. - /// - public static ForLoopMethod ForLoop; - public static void PlaceTimelessShores(int startPosX, int startPosY) { int biomeSize = 250 + (Main.maxTilesX / 180); @@ -91,7 +62,7 @@ namespace CalamityMod.World else return -steepness * x + steepness; } - ForLoop.Invoke(startPosX - biomeSize - 5, startPosX + biomeSize + 20, 15, (X) => + for (int X = startPosX - biomeSize - 5; X < startPosX + biomeSize + 20; X += 15) { float height = MathHelper.Lerp(startPosY + 35, startPosY - 15, trapezoidLateralSteep(Utils.GetLerpValue(startPosX - biomeSize - 20, startPosX + biomeSize + 20, X))); for (int Y = startPosY + 25; Y >= height; Y -= 10) @@ -104,13 +75,13 @@ namespace CalamityMod.World })); WorldUtils.Gen(new Point(X, Y), new ModShapes.All(circle), new Actions.SetTile((ushort)ModContent.TileType())); } - }); + } // // Makes the bottom borders of the Timeless Shores curved downwards. // const int totalCuveDepth = 90; - ForLoop.Invoke(startPosX - biomeSize - 10, startPosX - biomeSize + 200, 10, (x) => + for (int x = startPosX - biomeSize - 10; x < startPosX - biomeSize + 200; x += 10) { int curveDepth = (int)MathHelper.Lerp(totalCuveDepth, 0f, MathF.Sqrt(Utils.GetLerpValue(startPosX - biomeSize - 17, startPosX - biomeSize + 200, x, true))); for (int y = startPosY + 50; y <= startPosY + 70 + curveDepth; y += 5) @@ -123,8 +94,9 @@ namespace CalamityMod.World })); WorldUtils.Gen(new Point(x, y), new ModShapes.All(circle), new Actions.SetTile((ushort)ModContent.TileType())); } - }); - ForLoop.Invoke(startPosX + biomeSize - 200, startPosX + biomeSize + 10, 5, (x) => + } + + for (int x = startPosX + biomeSize - 200; x < startPosX + biomeSize + 10; x += 5) { int curveDepth = (int)MathHelper.Lerp(totalCuveDepth, 0f, MathF.Sqrt(Utils.GetLerpValue(startPosX + biomeSize + 20, startPosX + biomeSize - 200, x, true))); for (int y = startPosY + 50; y <= startPosY + 70 + curveDepth; y += 5) @@ -137,11 +109,11 @@ namespace CalamityMod.World })); WorldUtils.Gen(new Point(x, y), new ModShapes.All(circle), new Actions.SetTile((ushort)ModContent.TileType())); } - }); + } // Clear a smaller square out of the center where the biomes stuff will be // Added curves to the top of the biome via curve depth -hpu 02/19/25 - ForLoop.Invoke(startPosX - biomeSize + 10, startPosX + biomeSize - 10, 1, (X) => + for (int X = startPosX - biomeSize + 10; X < startPosX + biomeSize - 10; X += 1) { int curveDepth = (int)MathHelper.Lerp(totalCuveDepth, 0f, MathF.Sqrt(Utils.GetLerpValue(startPosX + biomeSize + 20, startPosX + biomeSize - 200, X, true))); int curveDepth2 = (int)MathHelper.Lerp(totalCuveDepth, 0f, MathF.Sqrt(Utils.GetLerpValue(startPosX - biomeSize - 17, startPosX - biomeSize + 200, X, true))); @@ -161,12 +133,12 @@ namespace CalamityMod.World new Actions.Clear() })); } - }); + } // // Places slopes at the sides of the shores to actually make shores. // - ForLoop.Invoke(startPosX - biomeSize - 15, startPosX - biomeSize + 200, 20, (moundX) => + for (int moundX = startPosX - biomeSize - 15; moundX < startPosX - biomeSize + 200; moundX += 20) { int RandomX = Main.rand.Next(15, 20); ShapeData mound = new(); @@ -177,8 +149,9 @@ namespace CalamityMod.World WorldUtils.Gen(new Point(moundX, moundY), new Shapes.Mound(30, moundHeight), blotchMod); WorldUtils.Gen(new Point(moundX, moundY), new ModShapes.All(mound), new Actions.SetTile((ushort)ModContent.TileType())); WorldUtils.Gen(new Point(moundX, moundY), new ModShapes.All(mound), new Actions.PlaceWall((ushort)ModContent.WallType())); - }); - ForLoop.Invoke(startPosX + biomeSize - 200, startPosX + biomeSize - 15, 20, (moundX) => + } + + for (int moundX = startPosX + biomeSize - 200; moundX < startPosX + biomeSize - 15; moundX += 20) { ShapeData mound = new(); GenAction blotchMod = new Modifiers.Blotches().Output(mound); @@ -187,8 +160,7 @@ namespace CalamityMod.World WorldUtils.Gen(new Point(moundX, moundY), new Shapes.Mound(30, moundHeight), blotchMod); WorldUtils.Gen(new Point(moundX, moundY), new ModShapes.All(mound), new Actions.SetTile((ushort)ModContent.TileType())); - }); - + } // // Makes a large platform in the middle of the Timeless Shores. @@ -196,7 +168,7 @@ namespace CalamityMod.World const int platformSize = 130; const int platformHeight = 35; // Remember that because of Terraria's coordinate system, making it lower actually makes it higher. const int platformDepth = 35; // How deep it goes. Like above, the higher it is, the lower it goes. - ForLoop.Invoke(startPosX - platformSize / 2, startPosX + platformSize / 2, 5, (platformX) => + for (int platformX = startPosX - platformSize / 2; platformX < startPosX + platformSize / 2; platformX += 5) { // This makes the "stem" of the platform be thinner towards the base and then expand on the top. int thickness = (int)(MathF.Pow(CalamityUtils.Convert01To010(Utils.GetLerpValue(startPosX - platformSize / 2, startPosX + platformSize / 2, platformX)), 3f) * platformDepth) + platformHeight; @@ -209,16 +181,16 @@ namespace CalamityMod.World new Actions.PlaceTile((ushort)ModContent.TileType()) })); } - }); - ForLoop.Invoke(startPosX - platformSize / 2, startPosX + platformSize / 2, 1, (x) => + } + for (int x = startPosX - platformSize / 2; x < startPosX + platformSize / 2; x += 1) { float interpolator = CalamityUtils.Convert01To010(Utils.GetLerpValue(startPosX - platformSize / 2, startPosX + platformSize / 2, x, true)); int elevation = (int)MathHelper.Lerp(4f, 1f, interpolator); WorldUtils.Gen(new Point(x, startPosY + platformHeight - 7), new Shapes.Circle(elevation), Actions.Chain(new GenAction[] { new Actions.Clear(), })); - }); + } // Plateau - ForLoop.Invoke(startPosX - biomeSize, startPosX + biomeSize, 100, (wallPillarX) => + for (int wallPillarX = startPosX - biomeSize; wallPillarX < startPosX + biomeSize; wallPillarX += 100) { int randomDisplacement = WorldGen.genRand.Next(-27, 46); int RandomX = Main.rand.Next(15, 20); @@ -246,23 +218,23 @@ namespace CalamityMod.World ; } - }); + } //place water below the clear barrier for the islands so that theres water inbetween them - ForLoop.Invoke(startPosX - biomeSize + 35, startPosX + biomeSize - 35, 1, (WaterX) => + for (int WaterX = startPosX - biomeSize + 35; WaterX < startPosX + biomeSize - 35; WaterX += 1) { for (int WaterY = startPosY + 37; WaterY <= startPosY + 60; WaterY++) { Main.tile[WaterX, WaterY].Get().LiquidType = LiquidID.Water; Main.tile[WaterX, WaterY].LiquidAmount = byte.MaxValue; } - }); + } // // Generates pillars made out of walls at random points in the Timeless Shores. // const int furthestDistanceFromCenter = 100; - ForLoop.Invoke(startPosX - (biomeSize / 2) - furthestDistanceFromCenter, startPosX + (biomeSize / 2) + furthestDistanceFromCenter, 100, (wallPillarX) => + for (int wallPillarX = startPosX - (biomeSize / 2) - furthestDistanceFromCenter; wallPillarX < startPosX + (biomeSize / 2) + furthestDistanceFromCenter; wallPillarX += 100) { int randomDisplacementX = WorldGen.genRand.Next(-10, 10); int RandomX = Main.rand.Next(3, 6); @@ -288,13 +260,13 @@ namespace CalamityMod.World })) ; } - }); + } // // Makes the transition area to the Timeless Shores. // Replaces tiles, walls, and places some water spots. // - ForLoop.Invoke(startPosX - biomeSize - 30, startPosX + biomeSize + 30, 20, (x) => + for (int x = startPosX - biomeSize - 30; x < startPosX + biomeSize + 30; x += 20) { int curveDepth = (int)MathHelper.Lerp(totalCuveDepth, 0f, MathF.Sqrt(Utils.GetLerpValue(startPosX + biomeSize + 30, startPosX + biomeSize - 200, x, true))); int curveDepth2 = (int)MathHelper.Lerp(totalCuveDepth, 0f, MathF.Sqrt(Utils.GetLerpValue(startPosX - biomeSize - 30, startPosX - biomeSize + 200, x, true))); @@ -360,7 +332,7 @@ namespace CalamityMod.World } // Place layer of sand on valid runestone blocks. - ForLoop.Invoke(startPosX - biomeSize, startPosX + biomeSize, 1, (X) => + for (int X = startPosX - biomeSize; X < startPosX + biomeSize; X += 1) { for (int Y = startPosY - 100; Y <= startPosY + 100; Y++) { @@ -409,16 +381,16 @@ namespace CalamityMod.World //} } - }); + } // Slope tiles - ForLoop.Invoke(startPosX - biomeSize, startPosX + biomeSize, 1, (X) => + for (int X = startPosX - biomeSize; X < startPosX + biomeSize; X += 1) { for (int Y = startPosY - 300; Y <= startPosY + 200; Y++) Tile.SmoothSlope(X, Y); - }); - }); + } + } } // Sides of the sunken sea (radiant reefs) @@ -506,7 +478,7 @@ namespace CalamityMod.World } // Cleanup - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y++) { @@ -526,10 +498,10 @@ namespace CalamityMod.World WorldGen.KillTile(X, Y); } } - }); + } // Place layer of sand blocks on valid surfaces - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y++) { @@ -546,10 +518,10 @@ namespace CalamityMod.World PlaceSand(X, Y, 5, ModContent.TileType()); } } - }); + } // Cleanup again - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y++) { @@ -578,7 +550,7 @@ namespace CalamityMod.World Tile.SmoothSlope(X, Y); } } - }); + } } // Middle of the sunken sea (polyp forest) @@ -682,7 +654,7 @@ namespace CalamityMod.World } //cleanup - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y++) { @@ -706,10 +678,10 @@ namespace CalamityMod.World } } } - }); + } //place extra tiles - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 20; Y <= origin.Y + verticalRadius + 20; Y++) { @@ -731,8 +703,8 @@ namespace CalamityMod.World } } - }); - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + } + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 20; Y <= origin.Y + verticalRadius + 20; Y++) { @@ -753,11 +725,11 @@ namespace CalamityMod.World } } } - }); + } //cleanup again - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y++) { @@ -790,7 +762,7 @@ namespace CalamityMod.World Tile.SmoothSlope(X, Y); } } - }); + } } //bottom of the biome (gleaming burrows) public static void PlaceGleamingBurrows(int startPosX, int startPosY) @@ -816,7 +788,7 @@ namespace CalamityMod.World Vector2 bottomFoci = center + fociOffset; //place another barrier so the gleaming burrows doesnt just burst into the gully - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 10, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 10) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y += 2) { @@ -845,7 +817,7 @@ namespace CalamityMod.World } } } - }); + } @@ -927,7 +899,7 @@ namespace CalamityMod.World //cleanup the perlin caves - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y++) { @@ -951,11 +923,11 @@ namespace CalamityMod.World } } } - }); + } //place extra tiles - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y++) { @@ -975,7 +947,7 @@ namespace CalamityMod.World } } } - }); + } //cleanup again, also place geodes for (int X = origin.X - biomeSize - 3; X <= origin.X + biomeSize + 3; X++) @@ -1103,7 +1075,7 @@ namespace CalamityMod.World //cleanup the perlin caves - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y++) { @@ -1127,11 +1099,11 @@ namespace CalamityMod.World } } } - }); + } //place extra tiles - ForLoop.Invoke(origin.X - biomeSize - 3, origin.X + biomeSize + 3, 1, (X) => + for (int X = origin.X - biomeSize - 3; X < origin.X + biomeSize + 3; X += 1) { for (int Y = (int)(origin.Y - verticalRadius * 0.4f) - 3; Y <= origin.Y + verticalRadius + 3; Y++) { @@ -1151,7 +1123,7 @@ namespace CalamityMod.World } } } - }); + } //cleanup again for (int X = origin.X - biomeSize - 3; X <= origin.X + biomeSize + 3; X++) @@ -1198,7 +1170,7 @@ namespace CalamityMod.World int XLeft = GenVars.UndergroundDesertLocation.Left + 40; int XRight = GenVars.UndergroundDesertLocation.Right - 70; //place blocks of basalt all the way down to hell, here it just places one block and wall so it doesnt hurt preformance - ForLoop.Invoke(startPosX - biomeSize - 60, startPosX + biomeSize + 60, 1, (X) => + for (int X = startPosX - biomeSize - 60; X < startPosX + biomeSize + 60; X += 1) { //const int totalCuveDepth = -120; //const int totalCuveDepth2 = 120; @@ -1229,7 +1201,7 @@ namespace CalamityMod.World WorldGen.PlaceTile(X, Y, (ushort)ModContent.TileType()); WorldGen.PlaceWall(X, Y, ModContent.WallType()); } - }); + } //place caverns and lava for (int X = startPosX - biomeSize - (Main.maxTilesX / 25); X <= startPosX + biomeSize + (Main.maxTilesX / 25); X++) @@ -1256,7 +1228,7 @@ namespace CalamityMod.World } //place sand blocks - ForLoop.Invoke(startPosX - biomeSize - (Main.maxTilesX / 25), startPosX + biomeSize + (Main.maxTilesX / 25), 1, (X) => + for (int X = startPosX - biomeSize - (Main.maxTilesX / 25); X < startPosX + biomeSize + (Main.maxTilesX / 25); X += 1) { for (int Y = startPosY; Y <= Main.maxTilesY - 210; Y++) { @@ -1273,10 +1245,10 @@ namespace CalamityMod.World PlaceSand(X, Y, 3, ModContent.TileType()); } } - }); + } //cleanup - ForLoop.Invoke(startPosX - biomeSize - (Main.maxTilesX / 25), startPosX + biomeSize + (Main.maxTilesX / 25), 1, (X) => + for(int X = startPosX - biomeSize - (Main.maxTilesX / 25); X < startPosX + biomeSize + (Main.maxTilesX / 25); X += 1) { for (int Y = startPosY; Y <= Main.maxTilesY - 210; Y++) { @@ -1305,7 +1277,7 @@ namespace CalamityMod.World } Tile.SmoothSlope(X, Y); } - }); + } } //cleanup is done separately because for whatever reason it keeps placing water inside of the gully if the cleanup is done before it @@ -1902,7 +1874,7 @@ namespace CalamityMod.World getAttachedPoints(x, y - 1, points); } - ForLoop.Invoke(20, Main.maxTilesX - 20, 1, (x) => + for (int x = 20; x < Main.maxTilesX - 20; x += 1) { for (int y = 20; y < Main.maxTilesY - 20; y++) { @@ -1922,7 +1894,7 @@ namespace CalamityMod.World } } } - }); + } } From 090b1077d8ebb82cee88ee12632eddda02e9261c Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 12 Jul 2025 01:16:40 +0700 Subject: [PATCH 28/36] everything except iron and tungsten --- Items/CalamityGlobalItemTooltip.cs | 62 +------------------ .../CopperArmorSetChange.cs | 11 +--- .../VanillaArmorChanges/GoldArmorSetChange.cs | 28 +-------- .../VanillaArmorChanges/IronArmorSetChange.cs | 7 --- .../VanillaArmorChanges/LeadArmorSetChange.cs | 12 ---- .../PlatinumArmorSetChange.cs | 24 +------ .../SilverArmorSetChange.cs | 14 +---- .../VanillaArmorChanges/TinArmorSetChange.cs | 15 +---- .../TungstenArmorSetChange.cs | 9 --- .../Mods.CalamityMod.Vanilla.Armor.hjson | 26 +++----- .../en-US/Mods.CalamityMod.Vanilla.hjson | 23 ------- 11 files changed, 19 insertions(+), 212 deletions(-) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 0456e7c775..1ac0abc245 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -980,64 +980,8 @@ namespace CalamityMod.Items EditTooltipByNum(1, (line) => line.Text = EditedTooltip("Gi")); #endregion - // Pre-Hardmode ore armor tooltip edits - #region Pre-Hardmode Ore Armor - // Copper - if (item.type == ItemID.CopperHelmet) - AddTooltip("CopperHelmet"); - if (item.type == ItemID.CopperChainmail) - AddTooltip("CopperChainmail"); - if (item.type == ItemID.CopperGreaves) - AddTooltip("CopperGreaves"); - - // Tin - if (item.type == ItemID.TinHelmet) - AddTooltip("TinHelmet"); - if (item.type == ItemID.TinChainmail) - AddTooltip("TinChainmail"); - if (item.type == ItemID.TinGreaves) - AddTooltip("TinGreaves"); - - // Iron - if (item.type == ItemID.IronHelmet || item.type == ItemID.AncientIronHelmet || item.type == ItemID.IronChainmail || item.type == ItemID.IronGreaves) - AddTooltip("IronPieces"); - - // Lead - if (item.type == ItemID.LeadHelmet || item.type == ItemID.LeadChainmail || item.type == ItemID.LeadGreaves) - AddTooltip("LeadPieces"); - - // Silver - if (item.type == ItemID.SilverHelmet) - AddTooltip("SilverHelmet"); - if (item.type == ItemID.SilverChainmail) - AddTooltip("SilverChainmail"); - if (item.type == ItemID.SilverGreaves) - AddTooltip("SilverGreaves"); - - // Tungsten - if (item.type == ItemID.TungstenHelmet) - AddTooltip("TungstenHelmet"); - if (item.type == ItemID.TungstenChainmail) - AddTooltip("TungstenChainmail"); - if (item.type == ItemID.TungstenGreaves) - AddTooltip("TungstenGreaves"); - - // Gold - if (item.type == ItemID.GoldHelmet || item.type == ItemID.AncientGoldHelmet) - AddTooltip("GoldHelmet"); - if (item.type == ItemID.GoldChainmail) - AddTooltip("GoldChainmail"); - if (item.type == ItemID.GoldGreaves) - AddTooltip("GoldGreaves"); - - // Platinum - if (item.type == ItemID.PlatinumHelmet) - AddTooltip("PlatinumHelmet"); - if (item.type == ItemID.PlatinumChainmail) - AddTooltip("PlatinumChainmail"); - if (item.type == ItemID.PlatinumGreaves) - AddTooltip("PlatinumGreaves"); - + // Pre-Hardmode armor tooltip edits + #region Pre-Hardmode Armor // Jungle if (item.type == ItemID.JungleHat || item.type == ItemID.AncientCobaltHelmet) { @@ -1065,7 +1009,7 @@ namespace CalamityMod.Items #endregion // Hardmode armor tooltip edits - #region Hardmode Ore Armor + #region Hardmode Armor // Cobalt if (item.type == ItemID.CobaltHat) EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("40", $"{CobaltArmorSetChange.MaxManaBoost + 40}")); diff --git a/Items/VanillaArmorChanges/CopperArmorSetChange.cs b/Items/VanillaArmorChanges/CopperArmorSetChange.cs index fbf35b1549..295c4fa1e6 100644 --- a/Items/VanillaArmorChanges/CopperArmorSetChange.cs +++ b/Items/VanillaArmorChanges/CopperArmorSetChange.cs @@ -15,20 +15,11 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Copper"; - public const float HeadDamage = 0.05f; - public const float ChestCrit = 3f; - public const float LegsMoveSpeed = 0.05f; public const float SetBonusFlatDamage = 2.0f; - public override void ApplyHeadPieceEffect(Player player) => player.GetDamage() += HeadDamage; - - public override void ApplyBodyPieceEffect(Player player) => player.GetCritChance() += ChestCrit; - - public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed; - public override void UpdateSetBonusText(ref string setBonusText) { - setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}"; + setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusFlatDamage.ToString("N0"))}"; } public override void ApplyArmorSetBonus(Player player) diff --git a/Items/VanillaArmorChanges/GoldArmorSetChange.cs b/Items/VanillaArmorChanges/GoldArmorSetChange.cs index fbb7771b69..3fb3c9beef 100644 --- a/Items/VanillaArmorChanges/GoldArmorSetChange.cs +++ b/Items/VanillaArmorChanges/GoldArmorSetChange.cs @@ -17,43 +17,17 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Gold"; - public const float HeadDamage = 0.05f; - public const float ChestDR = 0.05f; - public const float LegsMoveSpeed = 0.1f; public const float GoldDropChanceFromEnemies = 0.02f; public const int GoldFromBosses = 3; - public const float SetBonusCritPerGoldCoin = 0.1f; // 10 gold coins = +1% crit chance - public const float MaximumCritBonus = 7f; - - public override void ApplyHeadPieceEffect(Player player) => player.GetDamage() += HeadDamage; - - public override void ApplyBodyPieceEffect(Player player) => player.endurance += ChestDR; - - public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed; public override void UpdateSetBonusText(ref string setBonusText) { - setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}"; + setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(GoldDropChanceFromEnemies.ToPercent(), GoldFromBosses)}"; } public override void ApplyArmorSetBonus(Player player) { player.Calamity().goldArmorGoldDrops = true; - float critFromGold; - - // Give the crit chance from gold in inventory. - // If you have any platinum, this guarantees the max boost. - if (player.InventoryHas(ItemID.PlatinumCoin)) - critFromGold = MaximumCritBonus; - else - { - // 13FEB2024: Ozzatron: this function doesn't cap at its second argument, it just stops counting if it exceeds that number - // so this can give up to 100 gold coins - int goldCoins = player.CountItem(ItemID.GoldCoin, 90); - critFromGold = Math.Min(goldCoins * SetBonusCritPerGoldCoin, MaximumCritBonus); - } - - player.GetCritChance() += critFromGold; } } } diff --git a/Items/VanillaArmorChanges/IronArmorSetChange.cs b/Items/VanillaArmorChanges/IronArmorSetChange.cs index ea739abcf5..1c6bb219ae 100644 --- a/Items/VanillaArmorChanges/IronArmorSetChange.cs +++ b/Items/VanillaArmorChanges/IronArmorSetChange.cs @@ -16,16 +16,9 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Iron"; - public const float ArmorPieceDR = 0.03f; public const float SetBonusDR = 0.06f; public const int SetBonusLifeRegen = 2; - public override void ApplyHeadPieceEffect(Player player) => player.endurance += ArmorPieceDR; - - public override void ApplyBodyPieceEffect(Player player) => player.endurance += ArmorPieceDR; - - public override void ApplyLegPieceEffect(Player player) => player.endurance += ArmorPieceDR; - public override void UpdateSetBonusText(ref string setBonusText) { setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}"; diff --git a/Items/VanillaArmorChanges/LeadArmorSetChange.cs b/Items/VanillaArmorChanges/LeadArmorSetChange.cs index 4fc7541f41..07dfe7c7e6 100644 --- a/Items/VanillaArmorChanges/LeadArmorSetChange.cs +++ b/Items/VanillaArmorChanges/LeadArmorSetChange.cs @@ -13,16 +13,6 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Lead"; - public const float ArmorPieceDR = 0.02f; - public const float SetBonusDR = 0.04f; - public const int SetBonusLifeRegen = 1; - - public override void ApplyHeadPieceEffect(Player player) => player.endurance += ArmorPieceDR; - - public override void ApplyBodyPieceEffect(Player player) => player.endurance += ArmorPieceDR; - - public override void ApplyLegPieceEffect(Player player) => player.endurance += ArmorPieceDR; - public override void UpdateSetBonusText(ref string setBonusText) { setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}"; @@ -30,8 +20,6 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void ApplyArmorSetBonus(Player player) { - player.endurance += SetBonusDR; - player.lifeRegen += SetBonusLifeRegen; player.noKnockback = true; } } diff --git a/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs b/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs index 18fee450a0..dcb5953e67 100644 --- a/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs +++ b/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs @@ -15,34 +15,16 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Platinum"; - public const float HeadDamage = 0.06f; - public const float ChestCrit = 3f; - public const float LegsMoveSpeed = 0.1f; - public const float SetBonusDamagePerDefense = 0.1f; // 10 defense = +1% damage, this gets divided by 100 - public const int SetBonusDefenseCap = 50; - - public override void ApplyHeadPieceEffect(Player player) => player.GetDamage() += HeadDamage; - - public override void ApplyBodyPieceEffect(Player player) => player.GetCritChance() += ChestCrit; - - public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed; + public const float SetBonusDR = 0.1f; public override void UpdateSetBonusText(ref string setBonusText) { - setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}"; + setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusDR.ToPercent())}"; } public override void ApplyArmorSetBonus(Player player) { - // 07MAY2024: Ozzatron: Platinum armor doesn't count its own defense for its set bonus - // CIT 1MAR2025: Platinum armor should not count its set bonus defense here, because it hasn't been applied yet - int defenseBesidesThisArmor = player.statDefense - (5 + 6 + 5); - if (defenseBesidesThisArmor <= 0) - return; - - if (defenseBesidesThisArmor > SetBonusDefenseCap) - defenseBesidesThisArmor = SetBonusDefenseCap; - player.GetDamage() += (float)Math.Floor(defenseBesidesThisArmor * SetBonusDamagePerDefense) * 0.01f; + player.endurance += SetBonusDR; } } } diff --git a/Items/VanillaArmorChanges/SilverArmorSetChange.cs b/Items/VanillaArmorChanges/SilverArmorSetChange.cs index 9c9bc580e9..05372ca492 100644 --- a/Items/VanillaArmorChanges/SilverArmorSetChange.cs +++ b/Items/VanillaArmorChanges/SilverArmorSetChange.cs @@ -16,29 +16,17 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Silver"; - public const float HeadCrit = 5f; - public const int ChestLifeRegen = 2; - public const float LegsMoveSpeed = 0.08f; - public const int SetBonusLifeRegen = 1; - public const double SetBonusMinimumDamageToHeal = 20.0; public const int SetBonusHealTime = 120; public const int SetBonusHealAmount = 10; - public override void ApplyHeadPieceEffect(Player player) => player.GetCritChance() += HeadCrit; - - public override void ApplyBodyPieceEffect(Player player) => player.lifeRegen += ChestLifeRegen; - - public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed; - public override void UpdateSetBonusText(ref string setBonusText) { - setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}"; + setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusHealTime.FramesToSeconds(), SetBonusMinimumDamageToHeal.ToString("N0"), SetBonusHealAmount)}"; } public override void ApplyArmorSetBonus(Player player) { - player.lifeRegen += SetBonusLifeRegen; player.Calamity().silverMedkit = true; } diff --git a/Items/VanillaArmorChanges/TinArmorSetChange.cs b/Items/VanillaArmorChanges/TinArmorSetChange.cs index 12a2c7f88e..db16816512 100644 --- a/Items/VanillaArmorChanges/TinArmorSetChange.cs +++ b/Items/VanillaArmorChanges/TinArmorSetChange.cs @@ -15,25 +15,16 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Tin"; - public const float HeadCrit = 4f; - public const int ChestLifeRegen = 1; - public const float LegsMoveSpeed = 0.05f; - public const float SetBonusArmorPen = 5.0f; - - public override void ApplyHeadPieceEffect(Player player) => player.GetCritChance() += HeadCrit; - - public override void ApplyBodyPieceEffect(Player player) => player.lifeRegen += ChestLifeRegen; - - public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed; + public const float SetBonusCrit = 10f; public override void UpdateSetBonusText(ref string setBonusText) { - setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}"; + setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusCrit.ToPercent())}"; } public override void ApplyArmorSetBonus(Player player) { - player.GetArmorPenetration() += SetBonusArmorPen; + player.GetCritChance() += SetBonusCrit; } } } diff --git a/Items/VanillaArmorChanges/TungstenArmorSetChange.cs b/Items/VanillaArmorChanges/TungstenArmorSetChange.cs index 50c4be4121..b3da924e8e 100644 --- a/Items/VanillaArmorChanges/TungstenArmorSetChange.cs +++ b/Items/VanillaArmorChanges/TungstenArmorSetChange.cs @@ -16,18 +16,9 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Tungsten"; - public const float HeadDamage = 0.07f; - public const int ChestLifeRegen = 1; - public const float LegsMoveSpeed = 0.08f; public const float KnockbackMultiplier = 1.33f; public const float MaxKnockbackCritConversion = 10f; - public override void ApplyHeadPieceEffect(Player player) => player.GetDamage() += HeadDamage; - - public override void ApplyBodyPieceEffect(Player player) => player.lifeRegen += ChestLifeRegen; - - public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed; - public override void UpdateSetBonusText(ref string setBonusText) { Player player = Main.LocalPlayer; diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson index 70f143bf9a..c0716ee7eb 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson @@ -28,7 +28,7 @@ SetBonus: { Melee: 10% increased melee damage } - Copper: Increases all damage by 2 + Copper: Increases all damage by {0} Crimson: ''' Greatly increased natural life regen @@ -65,8 +65,8 @@ SetBonus: { ''' Gold: ''' - All enemies have a 2% chance to drop 1 gold; bosses killed drop 3 gold - You gain 1% critical strike chance for every 10 gold in your inventory, capped at 7% + All enemies have a {0}% chance to drop 1 extra gold + All bosses drop {1} extra gold ''' Iron: ''' @@ -74,12 +74,7 @@ SetBonus: { +1 HP/s life regen ''' Jungle: 10% reduced mana costs - Lead: - ''' - Increases damage reduction by 4% - +0.5 HP/s life regen - Grants immunity to knockback - ''' + Lead: Grants immunity to knockback Meteor: All magic guns cost 33% mana Mining: Mining ore will sometimes have additional yield Molten: @@ -125,20 +120,13 @@ SetBonus: { Grants +2 HP/s life regeneration after striking an enemy This life regeneration bypasses negative life regeneration ''' - PlatinumChainmail: 3% increased critical strike chance - Platinum: - ''' - Every 10 extra defense gives you 1% increased damage - The 20 defense from the Platinum Armor itself does not contribute to this effect - Bonus damage caps at 50 extra defense - ''' + Platinum: Increases damage reduction by {0}% Silver: ''' - +0.5 HP/s life regen - Two seconds after getting hit for 20 or more damage, you heal for 10 + {0} seconds after getting hit for {1} or more damage, you heal for {2} Getting hit again resets the timer, delaying the heal ''' - Tin: Increases armor penetration by 5 + Tin: "{0}% increased critical strike chance" Tungsten: ''' Increases your critical strike chance by 100% of the knockback of your held weapon diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson index 1fd56d4db0..4bf03df40e 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson @@ -59,29 +59,6 @@ AddedTooltip: { YoyoGlove: Secondary yoyos will do 50% less damage DefensePrefix: +{0}% damage reduction LuckyPrefix: +0.05 luck - /* - Armor - */ - CopperHelmet: 5% increased damage - CopperChainmail: 3% increased critical strike chance - CopperGreaves: 5% increased movement speed - TinHelmet: 3% increased critical strike chance - TinChainmail: +0.5 HP/s life regen - TinGreaves: 5% increased movement speed - IronPieces: Increases damage reduction by 3% - LeadPieces: Increases damage reduction by 2% - SilverHelmet: 5% increased critical strike chance - SilverChainmail: +1 HP/s life regen - SilverGreaves: 8% increased movement speed - TungstenHelmet: 7% increased damage - TungstenChainmail: +0.5 HP/s life regen - TungstenGreaves: 8% increased movement speed - GoldHelmet: 5% increased damage - GoldChainmail: Increases damage reduction by 5% - GoldGreaves: 10% increased movement speed - PlatinumHelmet: 6% increased damage - PlatinumChainmail: 3% increased critical strike chance - PlatinumGreaves: 10% increased movement speed CrimsonBreastplate: +1 HP/s life regen CrimsonOtherPieces: +0.5 HP/s life regen Picksaw: Can mine Scoria Ore located in the Abyss From 300538ea03b67028e369420d7a78485ac732e9e2 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 25 Jul 2025 04:43:56 +0700 Subject: [PATCH 29/36] tungsten and iron --- CalPlayer/CalamityPlayer.cs | 4 + .../CopperArmorSetChange.cs | 3 +- .../VanillaArmorChanges/IronArmorSetChange.cs | 12 +-- .../PlatinumArmorSetChange.cs | 4 +- .../VanillaArmorChanges/TinArmorSetChange.cs | 5 +- .../TungstenArmorSetChange.cs | 22 +---- .../Mods.CalamityMod.Items.Placeables.hjson | 95 +++++++++++++++++++ .../Mods.CalamityMod.Vanilla.Armor.hjson | 14 +-- Projectiles/CalamityGlobalProjectile.cs | 5 + 9 files changed, 119 insertions(+), 45 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 03081717c2..a133cd33c7 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1067,6 +1067,8 @@ namespace CalamityMod.CalPlayer /// Calamity's Silver armor set bonus; taking over 20 damage heals 10 health if the player avoids damage for 2 seconds. public bool silverMedkit = false; public int silverMedkitTimer = 0; + /// Calamity's Tungsten armor set bonus; makes grappling hooks fly and retract faster. + public bool tungstenArmorHookBoost = false; /// Calamity's Gold armor set bonus; makes enemies drop Gold Coins. public bool goldArmorGoldDrops = false; /// Calamity's Mining armor set bonus; gives a chance for extra items to drop when mining ores. @@ -2362,6 +2364,7 @@ namespace CalamityMod.CalPlayer forbiddenCirclet = false; silverMedkit = false; + tungstenArmorHookBoost = false; goldArmorGoldDrops = false; miningSet = false; @@ -3071,6 +3074,7 @@ namespace CalamityMod.CalPlayer #region Armor Set Bonuses silverMedkit = false; silverMedkitTimer = 0; + tungstenArmorHookBoost = false; goldArmorGoldDrops = false; miningSet = false; miningSetCooldown = 0; diff --git a/Items/VanillaArmorChanges/CopperArmorSetChange.cs b/Items/VanillaArmorChanges/CopperArmorSetChange.cs index 295c4fa1e6..6f4d3ea46a 100644 --- a/Items/VanillaArmorChanges/CopperArmorSetChange.cs +++ b/Items/VanillaArmorChanges/CopperArmorSetChange.cs @@ -1,5 +1,4 @@ -using System.Text; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/VanillaArmorChanges/IronArmorSetChange.cs b/Items/VanillaArmorChanges/IronArmorSetChange.cs index 1c6bb219ae..3906498ffb 100644 --- a/Items/VanillaArmorChanges/IronArmorSetChange.cs +++ b/Items/VanillaArmorChanges/IronArmorSetChange.cs @@ -1,6 +1,6 @@ -using System.Text; -using Terraria; +using Terraria; using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.Items.VanillaArmorChanges { @@ -16,18 +16,16 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Iron"; - public const float SetBonusDR = 0.06f; - public const int SetBonusLifeRegen = 2; + public const float KnockbackMultiplier = 1.5f; public override void UpdateSetBonusText(ref string setBonusText) { - setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}"; + setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(KnockbackMultiplier)}"; } public override void ApplyArmorSetBonus(Player player) { - player.endurance += SetBonusDR; - player.lifeRegen += SetBonusLifeRegen; + player.GetKnockback() *= KnockbackMultiplier; } } } diff --git a/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs b/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs index dcb5953e67..ace816e610 100644 --- a/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs +++ b/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs @@ -1,7 +1,5 @@ -using System; -using Terraria; +using Terraria; using Terraria.ID; -using Terraria.ModLoader; namespace CalamityMod.Items.VanillaArmorChanges { diff --git a/Items/VanillaArmorChanges/TinArmorSetChange.cs b/Items/VanillaArmorChanges/TinArmorSetChange.cs index db16816512..a46b8b9f21 100644 --- a/Items/VanillaArmorChanges/TinArmorSetChange.cs +++ b/Items/VanillaArmorChanges/TinArmorSetChange.cs @@ -1,5 +1,4 @@ -using System.Text; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +18,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { - setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusCrit.ToPercent())}"; + setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusCrit)}"; } public override void ApplyArmorSetBonus(Player player) diff --git a/Items/VanillaArmorChanges/TungstenArmorSetChange.cs b/Items/VanillaArmorChanges/TungstenArmorSetChange.cs index b3da924e8e..fc4a333b7e 100644 --- a/Items/VanillaArmorChanges/TungstenArmorSetChange.cs +++ b/Items/VanillaArmorChanges/TungstenArmorSetChange.cs @@ -1,6 +1,4 @@ -using System.Text; -using Microsoft.Xna.Framework; -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -16,28 +14,16 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Tungsten"; - public const float KnockbackMultiplier = 1.33f; - public const float MaxKnockbackCritConversion = 10f; + public const float HookBoost = 0.5f; public override void UpdateSetBonusText(ref string setBonusText) { - Player player = Main.LocalPlayer; - float kb = player.GetWeaponKnockback(player.ActiveItem()); - float bonus = MathHelper.Clamp(kb, 0f, MaxKnockbackCritConversion); - - string bonusText = bonus.ToString("n2"); - string kbText = kb.ToString("n2"); - setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(bonusText, kbText)}"; + setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(HookBoost.ToPercent())}"; } public override void ApplyArmorSetBonus(Player player) { - // Apply the 33% knockback boost first, so it applies to the following crit boost - player.GetKnockback() *= KnockbackMultiplier; - - // Give the player crit chance equal to the (now boosted) knockback of their held weapon. - float kbToUse = player.GetWeaponKnockback(player.ActiveItem()); - player.GetCritChance() += MathHelper.Clamp(kbToUse, 0f, MaxKnockbackCritConversion); + player.Calamity().tungstenArmorHookBoost = true; } } } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 3c53bad4f1..95a0d0f2fb 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -4519,3 +4519,98 @@ OldDukeMonolith: { DisplayName: Elden Diorama Tooltip: "" } + +DriftwoodWorkBench: { + Tooltip: "" + DisplayName: Driftwood Work Bench +} + +DriftwoodTable: { + Tooltip: "" + DisplayName: Driftwood Table +} + +DriftwoodSundial: { + Tooltip: "" + DisplayName: Driftwood Sundial +} + +DriftwoodSofa: { + Tooltip: "" + DisplayName: Driftwood Sofa +} + +DriftwoodSink: { + Tooltip: "" + DisplayName: Driftwood Sink +} + +DriftwoodPlatform: { + Tooltip: "" + DisplayName: Driftwood Platform +} + +DriftwoodLantern: { + Tooltip: "" + DisplayName: Driftwood Lantern +} + +DriftwoodLamp: { + Tooltip: "" + DisplayName: Driftwood Lamp +} + +DriftwoodDresser: { + Tooltip: "" + DisplayName: Mods.CalamityMod.Items.Placeables.DriftwoodDresser.DisplayName +} + +DriftwoodDoor: { + Tooltip: "" + DisplayName: Driftwood Door +} + +DriftwoodChest: { + Tooltip: "" + DisplayName: Mods.CalamityMod.Items.Placeables.DriftwoodChest.DisplayName +} + +DriftwoodChandelier: { + Tooltip: "" + DisplayName: Driftwood Chandelier +} + +DriftwoodChair: { + Tooltip: "" + DisplayName: Driftwood Chair +} + +DriftwoodCandle: { + Tooltip: "" + DisplayName: Driftwood Candle +} + +DriftwoodCandelabra: { + Tooltip: "" + DisplayName: Driftwood Candelabra +} + +DriftwoodBookcase: { + Tooltip: "" + DisplayName: Driftwood Bookcase +} + +DriftwoodBed: { + Tooltip: "" + DisplayName: Driftwood Bed +} + +DriftwoodBathtub: { + Tooltip: "" + DisplayName: Driftwood Bathtub +} + +DriftwoodBaroqueCello: { + Tooltip: "" + DisplayName: Driftwood Baroque Cello +} diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson index c0716ee7eb..d38575b653 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson @@ -68,11 +68,7 @@ SetBonus: { All enemies have a {0}% chance to drop 1 extra gold All bosses drop {1} extra gold ''' - Iron: - ''' - Increases damage reduction by 6% - +1 HP/s life regen - ''' + Iron: Multiplies all player-inflicted knockback by {0}x Jungle: 10% reduced mana costs Lead: Grants immunity to knockback Meteor: All magic guns cost 33% mana @@ -127,13 +123,7 @@ SetBonus: { Getting hit again resets the timer, delaying the heal ''' Tin: "{0}% increased critical strike chance" - Tungsten: - ''' - Increases your critical strike chance by 100% of the knockback of your held weapon - This effect caps at Insane knockback, which gives 10% increased critical strike chance - Increases all knockback by 33%, this counts for the above boost - Current bonus: {0}% critical strike chance from {1} knockback - ''' + Tungsten: Grappling hooks pull and retract {0}% faster MagicHat: Increases maximum mana by 40 Wizard: 4% increased magic critical strike chance CrystalAssassin: diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index aaadbd554a..a211a8a134 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -14,6 +14,7 @@ using CalamityMod.ExtraTextures; using CalamityMod.Items.Accessories; using CalamityMod.Items.Ammo; using CalamityMod.Items.Potions.Alcohol; +using CalamityMod.Items.VanillaArmorChanges; using CalamityMod.NPCs; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.NPCs.PlagueEnemies; @@ -3975,6 +3976,8 @@ namespace CalamityMod.Projectiles float mult = 1f; if (player.Calamity().reaverSpeed) mult += 0.5f; + if (player.Calamity().tungstenArmorHookBoost) + mult += TungstenArmorSetChange.HookBoost; if (player.Calamity().bloomStone) mult += 0.5f; speed *= mult; @@ -3992,6 +3995,8 @@ namespace CalamityMod.Projectiles float mult = 1f; if (player.Calamity().reaverSpeed) mult += 0.5f; + if (player.Calamity().tungstenArmorHookBoost) + mult += TungstenArmorSetChange.HookBoost; if (player.Calamity().bloomStone) mult += 0.5f; speed *= mult; From 51eebb5be2293b814f3e48513b35575304ebba5e Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 25 Jul 2025 04:58:01 +0700 Subject: [PATCH 30/36] gold hand return --- .../VanillaArmorChanges/GoldArmorSetChange.cs | 19 ++++++++++++++++++- .../Mods.CalamityMod.Vanilla.Armor.hjson | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Items/VanillaArmorChanges/GoldArmorSetChange.cs b/Items/VanillaArmorChanges/GoldArmorSetChange.cs index 3fb3c9beef..9b34eb9fc9 100644 --- a/Items/VanillaArmorChanges/GoldArmorSetChange.cs +++ b/Items/VanillaArmorChanges/GoldArmorSetChange.cs @@ -19,15 +19,32 @@ namespace CalamityMod.Items.VanillaArmorChanges public const float GoldDropChanceFromEnemies = 0.02f; public const int GoldFromBosses = 3; + public const float SetBonusCritPerGoldCoin = 0.2f; // 5 gold coins = +1% crit chance + public const float MaximumCritBonus = 5f; public override void UpdateSetBonusText(ref string setBonusText) { - setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(GoldDropChanceFromEnemies.ToPercent(), GoldFromBosses)}"; + setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(GoldDropChanceFromEnemies.ToPercent(), GoldFromBosses, SetBonusCritPerGoldCoin, MaximumCritBonus)}"; } public override void ApplyArmorSetBonus(Player player) { player.Calamity().goldArmorGoldDrops = true; + float critFromGold; + + // Give the crit chance from gold in inventory. + // If you have any platinum, this guarantees the max boost. + if (player.InventoryHas(ItemID.PlatinumCoin)) + critFromGold = MaximumCritBonus; + else + { + // 13FEB2024: Ozzatron: this function doesn't cap at its second argument, it just stops counting if it exceeds that number + // so this can give up to 100 gold coins + int goldCoins = player.CountItem(ItemID.GoldCoin, 90); + critFromGold = Math.Min(goldCoins * SetBonusCritPerGoldCoin, MaximumCritBonus); + } + + player.GetCritChance() += critFromGold; } } } diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson index d38575b653..355cc01366 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson @@ -67,6 +67,7 @@ SetBonus: { ''' All enemies have a {0}% chance to drop 1 extra gold All bosses drop {1} extra gold + You gain {2}% critical strike chance for every gold in your inventory, capped at {3}% ''' Iron: Multiplies all player-inflicted knockback by {0}x Jungle: 10% reduced mana costs From 8cea638710e9e54ff3edb6a07e07792d51296a25 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 25 Jul 2025 05:09:00 +0700 Subject: [PATCH 31/36] removed autogenerated localization --- .../Mods.CalamityMod.Items.Placeables.hjson | 95 ------------------- 1 file changed, 95 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 95a0d0f2fb..3c53bad4f1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -4519,98 +4519,3 @@ OldDukeMonolith: { DisplayName: Elden Diorama Tooltip: "" } - -DriftwoodWorkBench: { - Tooltip: "" - DisplayName: Driftwood Work Bench -} - -DriftwoodTable: { - Tooltip: "" - DisplayName: Driftwood Table -} - -DriftwoodSundial: { - Tooltip: "" - DisplayName: Driftwood Sundial -} - -DriftwoodSofa: { - Tooltip: "" - DisplayName: Driftwood Sofa -} - -DriftwoodSink: { - Tooltip: "" - DisplayName: Driftwood Sink -} - -DriftwoodPlatform: { - Tooltip: "" - DisplayName: Driftwood Platform -} - -DriftwoodLantern: { - Tooltip: "" - DisplayName: Driftwood Lantern -} - -DriftwoodLamp: { - Tooltip: "" - DisplayName: Driftwood Lamp -} - -DriftwoodDresser: { - Tooltip: "" - DisplayName: Mods.CalamityMod.Items.Placeables.DriftwoodDresser.DisplayName -} - -DriftwoodDoor: { - Tooltip: "" - DisplayName: Driftwood Door -} - -DriftwoodChest: { - Tooltip: "" - DisplayName: Mods.CalamityMod.Items.Placeables.DriftwoodChest.DisplayName -} - -DriftwoodChandelier: { - Tooltip: "" - DisplayName: Driftwood Chandelier -} - -DriftwoodChair: { - Tooltip: "" - DisplayName: Driftwood Chair -} - -DriftwoodCandle: { - Tooltip: "" - DisplayName: Driftwood Candle -} - -DriftwoodCandelabra: { - Tooltip: "" - DisplayName: Driftwood Candelabra -} - -DriftwoodBookcase: { - Tooltip: "" - DisplayName: Driftwood Bookcase -} - -DriftwoodBed: { - Tooltip: "" - DisplayName: Driftwood Bed -} - -DriftwoodBathtub: { - Tooltip: "" - DisplayName: Driftwood Bathtub -} - -DriftwoodBaroqueCello: { - Tooltip: "" - DisplayName: Driftwood Baroque Cello -} From 783b505b735c0d03cf3fbbe57a44b627b0f07c1d Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Wed, 23 Jul 2025 13:28:33 -0500 Subject: [PATCH 32/36] modernization --- Items/CalamityGlobalItem.cs | 35 --- Items/Weapons/Summon/IgneousExaltation.cs | 82 ++++--- Projectiles/Summon/IgneousBlade.cs | 287 +++++++++++++++------- Projectiles/Summon/IgneousBladeStrike.cs | 25 +- 4 files changed, 266 insertions(+), 163 deletions(-) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index ab284938c8..38d58361c6 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -731,41 +731,6 @@ namespace CalamityMod.Items { return false; } - if (player.ActiveItem().type == ModContent.ItemType()) - { - bool hasBlades = false; - foreach (Projectile p in Main.ActiveProjectiles) - { - if (p.type == ModContent.ProjectileType() && p.owner == player.whoAmI && p.localAI[1] == 0f) - { - hasBlades = true; - break; - } - } - if (hasBlades) - { - foreach (Projectile p in Main.ActiveProjectiles) - { - if (p.ModProjectile is IgneousBlade) - { - if (p.ModProjectile().Firing) - continue; - } - if (p.type == ModContent.ProjectileType() && p.owner == player.whoAmI && p.localAI[1] == 0f) - { - p.rotation = MathHelper.PiOver2 + MathHelper.PiOver4; - // 14NOV2024: Ozzatron: clamped mouse position unnecessary, only used for direction - p.velocity = p.SafeDirectionTo(Main.MouseWorld, Vector2.UnitY) * 22f; - p.rotation += p.velocity.ToRotation(); - p.ai[0] = 180f; - p.ModProjectile().Firing = true; - p.tileCollide = true; - p.netUpdate = true; - } - } - } - return false; - } if (player.ActiveItem().type == ModContent.ItemType() && player.ownedProjectileCounts[ModContent.ProjectileType()] == 0) { foreach (Projectile p in Main.ActiveProjectiles) diff --git a/Items/Weapons/Summon/IgneousExaltation.cs b/Items/Weapons/Summon/IgneousExaltation.cs index 1fb197c03a..c8bbf9f428 100644 --- a/Items/Weapons/Summon/IgneousExaltation.cs +++ b/Items/Weapons/Summon/IgneousExaltation.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -10,10 +11,32 @@ namespace CalamityMod.Items.Weapons.Summon { public class IgneousExaltation : ModItem, ILocalizedModType { + public static int ChargeDuration = 30; + public static int ChargeCooldown = 120; public new string LocalizationCategory => "Items.Weapons.Summon"; + private static Texture2D BladeOutline = null; + public static Texture2D GetBladeOutlineTex() + { + if (BladeOutline == null) + { + var texture = ModContent.Request("CalamityMod/Projectiles/Summon/IgneousBlade").Value; + BladeOutline = new Texture2D(Main.graphics.GraphicsDevice, texture.Width, texture.Height); + + var BaseArray = new Color[BladeOutline.Width * BladeOutline.Height]; + var ColorArray = new Color[BladeOutline.Width * BladeOutline.Height]; + texture.GetData(BaseArray); + for (var i = 0; i < BaseArray.Length; i++) + { + ColorArray[i] = new Color(255, 255, 255) * (((float)BaseArray[i].A) / 255f); + } + BladeOutline.SetData(ColorArray); + } + return BladeOutline; + } public override void SetStaticDefaults() { Item.staff[Type] = true; + ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; } public override void SetDefaults() @@ -34,54 +57,42 @@ namespace CalamityMod.Items.Weapons.Summon Item.shootSpeed = 10f; Item.DamageType = DamageClass.Summon; } + + public override bool AltFunctionUse(Player player) + { + return true;// base.AltFunctionUse(player);// player.ownedProjectileCounts[Item.shoot] > 0; + } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - float totalMinionSlots = 0f; - foreach (Projectile pro in Main.ActiveProjectiles) + if (player.altFunctionUse == 2) { - if (pro.minion && pro.owner == player.whoAmI) + foreach (Projectile pro in Main.ActiveProjectiles) { - totalMinionSlots += pro.minionSlots; + if (pro.type == type && pro.owner == player.whoAmI && pro.ai[1] >= 0 && pro.ai[0] == 0) + { + pro.ModProjectile().CurrentState = IgneousBlade.AIState.TransitionToLaunch; + pro.netUpdate = true; + } } } - if (player.altFunctionUse != 2 && totalMinionSlots < player.maxMinions) + else { - position = player.ClampedMouseWorld(); - int p = Projectile.NewProjectile(source, position, Vector2.Zero, type, damage, knockback, player.whoAmI); + + int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, 1f); if (Main.projectile.IndexInRange(p)) + { Main.projectile[p].originalDamage = Item.damage; - int swordCount = 0; + } + + int bladeIndex = 0; foreach (Projectile pro in Main.ActiveProjectiles) { if (pro.type == type && pro.owner == player.whoAmI) { - if ((pro.ModProjectile as IgneousBlade).Firing) - continue; - swordCount++; - for (int j = 0; j < 22; j++) - { - Dust dust = Dust.NewDustDirect(pro.position, pro.width, pro.height, DustID.Torch); - dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool().ToDirectionInt(); - dust.noGravity = true; - } - } - } - float angleVariance = MathHelper.TwoPi / swordCount; - float angle = 0f; - foreach (Projectile pro in Main.ActiveProjectiles) - { - if (pro.type == type && pro.owner == player.whoAmI && pro.localAI[1] == 0f) - { - if ((pro.ModProjectile as IgneousBlade).Firing) - continue; - pro.ai[0] = angle; - angle += angleVariance; - for (int j = 0; j < 22; j++) - { - Dust dust = Dust.NewDustDirect(pro.position, pro.width, pro.height, DustID.Torch); - dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool().ToDirectionInt(); - dust.noGravity = true; - } + pro.ModProjectile().BladeIndex = bladeIndex++; + pro.ModProjectile().AITimer = -ChargeCooldown; + pro.ModProjectile().CurrentState = IgneousBlade.AIState.CircleOwner; + pro.netUpdate = true; } } } @@ -91,6 +102,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void AddRecipes() { CreateRecipe(). + AddIngredient(). AddIngredient(10). AddIngredient(5). AddTile(TileID.MythrilAnvil). diff --git a/Projectiles/Summon/IgneousBlade.cs b/Projectiles/Summon/IgneousBlade.cs index ce02852948..3666b7b10c 100644 --- a/Projectiles/Summon/IgneousBlade.cs +++ b/Projectiles/Summon/IgneousBlade.cs @@ -1,108 +1,194 @@ -using System.IO; +using System; +using System.IO; using CalamityMod.Buffs.Summon; -using CalamityMod.CalPlayer; +using CalamityMod.Items.Weapons.Summon; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Graphics; +using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { + //Based off Virid Vanguard projectile code for circling and drawing logic public class IgneousBlade : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; - public bool Firing = false; + public enum AIState + { + CircleOwner, + TransitionToLaunch, + LaunchAtPos + } + + public int BladeIndex; + + public VertexStrip TrailDrawer; + + public Vector2 ChargeStartingPosition; + + public float BladeHoverOffsetAngle + { + get + { + float projectileCounts = Owner.ownedProjectileCounts[Type]; + if (projectileCounts <= 1f) + projectileCounts = 1f; + + return MathHelper.TwoPi * BladeIndex / projectileCounts + AITimer / 10f; + } + } + + public AIState CurrentState + { + get => (AIState)Projectile.ai[0]; + set => Projectile.ai[0] = (int)value; + } + + public Player Owner => Main.player[Projectile.owner]; + + public ref float AITimer => ref Projectile.ai[1]; + + public ref float BladeGleamInterpolant => ref Projectile.localAI[0]; + + public Vector2 ChargeTargetPos = Vector2.Zero; + public Vector2 ChargeStartPos = Vector2.Zero; + public override void SetStaticDefaults() { - ProjectileID.Sets.TrailingMode[Type] = 0; - ProjectileID.Sets.TrailCacheLength[Type] = 7; + ProjectileID.Sets.MinionSacrificable[Type] = true; + ProjectileID.Sets.TrailingMode[Type] = 2; + ProjectileID.Sets.TrailCacheLength[Type] = 45; } public override void SetDefaults() { - Projectile.width = 52; - Projectile.height = 86; + + Projectile.width = 84; + Projectile.height = 84; Projectile.netImportant = true; Projectile.friendly = true; Projectile.ignoreWater = true; - Projectile.minionSlots = 1f; - Projectile.timeLeft = 18000; + Projectile.timeLeft = 90000; Projectile.penetrate = -1; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 7; Projectile.tileCollide = false; - Projectile.timeLeft *= 5; Projectile.minion = true; + Projectile.minionSlots = 1f; Projectile.DamageType = DamageClass.Summon; + Projectile.stopsDealingDamageAfterPenetrateHits = true; } + public override void SendExtraAI(BinaryWriter writer) { - writer.Write(Firing); + writer.Write(BladeIndex); + writer.WriteVector2(ChargeStartingPosition); } + public override void ReceiveExtraAI(BinaryReader reader) { - Firing = reader.ReadBoolean(); + BladeIndex = reader.ReadInt32(); + ChargeStartingPosition = reader.ReadVector2(); } + + public override void AI() { - Player player = Main.player[Projectile.owner]; - CalamityPlayer modPlayer = player.Calamity(); - bool isProperProjectile = Projectile.type == ModContent.ProjectileType(); - player.AddBuff(ModContent.BuffType(), 3600); - if (isProperProjectile) + // Decide whether the minion should still exist. + HandleMinionBools(); + + // Reset extra updates. + Projectile.MaxUpdates = 1; + + // Have the gleam interpolant dissipate. + BladeGleamInterpolant = MathHelper.Lerp(BladeGleamInterpolant, 0f, 0.1f); + if (BladeGleamInterpolant <= 0.02f) + BladeGleamInterpolant = 0f; + + NPC potentialTarget = Projectile.Center.MinionHoming(ViridVanguard.MaxTargetingDistance, Owner); + switch (CurrentState) { - if (player.dead) - { - modPlayer.igneousExaltation = false; - } - if (modPlayer.igneousExaltation) - { + case AIState.CircleOwner: + CircleOwner(); + break; + case AIState.TransitionToLaunch: + ChargeTargetPos = Owner.Calamity().mouseWorld; + ChargeStartPos = Owner.Center; + CurrentState = AIState.LaunchAtPos; + AITimer = 0; + Projectile.penetrate = 50; + LaunchAtTargetPos(); + break; + case AIState.LaunchAtPos: + LaunchAtTargetPos(); + break; + } + + AITimer++; + } + + public void CircleOwner() + { + Vector2 hoverDestination = Owner.Center + BladeHoverOffsetAngle.ToRotationVector2() * (AITimer < 0 ? MathHelper.Lerp(200, 100, 1 - (-AITimer) / IgneousExaltation.ChargeCooldown) : 100f); + Projectile.Center = Vector2.Lerp(Projectile.Center, hoverDestination, 0.04f).MoveTowards(hoverDestination, 20f); + Projectile.velocity *= 0.8f; + + // Teleport to the owner if sufficiently far away. + if (!Projectile.WithinRange(Owner.Center, 3200f)) + { + Projectile.Center = hoverDestination; + Projectile.netUpdate = true; + } + + // Aim away from the target. + Projectile.rotation = Projectile.AngleFrom(Owner.Center) + MathHelper.PiOver2; + } + + public void LaunchAtTargetPos() + { + Projectile.damage = Projectile.originalDamage; + if (Projectile.penetrate > 40) //First 10 hits do 2x damage + Projectile.damage *= 2; + int chargeTime = IgneousExaltation.ChargeDuration * 2; + int chargeLength = 2000; + float circleWidth = Math.Min(75, Owner.ownedProjectileCounts[Type] * 4); + var CurrentPlace = Vector2.Lerp(ChargeStartPos, ChargeStartPos + ChargeStartPos.DirectionTo(ChargeTargetPos) * chargeLength, MathF.Pow(AITimer / chargeTime, 3)); + Projectile.Center = CurrentPlace + BladeHoverOffsetAngle.ToRotationVector2() * Math.Max(MathHelper.Lerp(100f, 25f, AITimer / 10f), circleWidth); + Projectile.rotation = Projectile.AngleFrom(CurrentPlace) + MathHelper.PiOver2; + if (AITimer >= chargeTime) + { + Projectile.damage = Projectile.originalDamage; + AITimer = -IgneousExaltation.ChargeCooldown; + CurrentState = AIState.CircleOwner; + Projectile.penetrate = -1; + } + } + + public void HandleMinionBools() + { + Owner.AddBuff(ModContent.BuffType(), 3600); + if (Projectile.type == ModContent.ProjectileType()) + { + if (Owner.dead) + Owner.Calamity().igneousExaltation = false; + + if (Owner.Calamity().igneousExaltation) Projectile.timeLeft = 2; - } - } - - // Orbiting. 1 = Shooting - if (!Firing) - { - const float outwardPosition = 180f; - Projectile.Center = player.Center + Projectile.ai[0].ToRotationVector2() * outwardPosition + Vector2.UnitY * player.gfxOffY; - Projectile.rotation = Projectile.ai[0] + MathHelper.PiOver2 + MathHelper.PiOver4; - Projectile.ai[0] -= MathHelper.ToRadians(4f); - } - else - { - if (Projectile.penetrate == -1) //limit penetration for worm memes - Projectile.penetrate = 3; - - Projectile.ai[0]--; - if (Projectile.ai[0] == 1) - Projectile.Kill(); - - if (Projectile.ai[0] % 10f == 9f) - { - for (int i = 0; i < 20; i++) - { - float angle = MathHelper.TwoPi / 20f * i; - Dust dust = Dust.NewDustPerfect(Projectile.position + angle.ToRotationVector2().RotatedBy(Projectile.rotation) * new Vector2(14f, 21f), 6); - dust.velocity = angle.ToRotationVector2().RotatedBy(Projectile.rotation) * 2f; - dust.noGravity = true; - } - } } } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - if (Firing) - { + if (Projectile.penetrate >= 40 && CurrentState != AIState.CircleOwner) //The first 10 hits per launch can spawn blades if (Main.myPlayer == Projectile.owner) { - Projectile.ai[0] = 50; - for (int i = 0; i < 3; i++) + for (int i = 0; i < 1; i++) { - Vector2 spawnPosition = target.Center - new Vector2(0f, 550f).RotatedByRandom(MathHelper.ToRadians(8f)); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), spawnPosition, Vector2.Normalize(target.Center - spawnPosition) * 24f, ModContent.ProjectileType(), + Vector2 spawnPosition = Projectile.Center - new Vector2(0f, 550f).RotatedByRandom(6.283f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), spawnPosition, Vector2.Normalize(Projectile.Center - spawnPosition) * 24f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); } for (int i = 0; i < Main.rand.Next(28, 41); i++) @@ -114,44 +200,65 @@ namespace CalamityMod.Projectiles.Summon } Projectile.netUpdate = true; } - } + base.OnHitNPC(target, hit, damageDone); } - public override void OnKill(int timeLeft) + public Color TrailColorFunction(float completionRatio) { - for (int j = 0; j < 40; j++) - { - Dust dust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, DustID.Torch); - dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool().ToDirectionInt(); - dust.noGravity = true; - } + float opacity = (float)Math.Pow(Utils.GetLerpValue(1f, 0.45f, completionRatio, true), 4D) * Projectile.Opacity * 0.48f; + var redColor = new Color(166, 46, 61); + return Color.Lerp(redColor, new(64, 51, 66), MathHelper.Clamp(completionRatio * 1.4f, 0f, 1f)) * opacity; } + + public float TrailWidthFunction(float completionRatio) => Projectile.height * (1f - completionRatio) * 0.3f; + public override bool PreDraw(ref Color lightColor) { - if (Firing) + Texture2D texture = Terraria.GameContent.TextureAssets.Projectile[Type].Value; + Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + Vector2 origin = frame.Size() * 0.5f; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + SpriteEffects direction = Projectile.spriteDirection == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + + + // Draw the afterimage trail. + TrailDrawer ??= new(); + GameShaders.Misc["EmpressBlade"].UseImage0("Images/Extra_201"); + GameShaders.Misc["EmpressBlade"].UseImage1("Images/Extra_193"); + GameShaders.Misc["EmpressBlade"].UseShaderSpecificData(new Vector4(1f, 0f, 0f, 0.6f)); + GameShaders.Misc["EmpressBlade"].Apply(null); + TrailDrawer.PrepareStrip(Projectile.oldPos, Projectile.oldRot, TrailColorFunction, TrailWidthFunction, Projectile.Size * 0.5f - Main.screenPosition, Projectile.oldPos.Length, true); + TrailDrawer.DrawTrail(); + Main.pixelShader.CurrentTechnique.Passes[0].Apply(); + + // Draw the blade. + float outlineOpacity = 1; + float outlineWidth = 1; + if ((CurrentState == AIState.CircleOwner && AITimer < 0)) { - Texture2D texture = ModContent.Request("CalamityMod/Projectiles/Summon/IgneousBlade").Value; - - Rectangle rectangle = new Rectangle(0, 0, texture.Width, texture.Height); - - if (Lighting.NotRetro) - { - for (int i = 0; i < Projectile.oldPos.Length; i++) - { - Vector2 drawPos = Projectile.oldPos[i] + Projectile.Size / 2f - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY); - Color color = Color.Lerp(Color.White, Color.Red, i / (float)Projectile.oldPos.Length) * - ((Projectile.oldPos.Length - i) / (float)Projectile.oldPos.Length); - float scale = MathHelper.Lerp(Projectile.scale * 1.35f, Projectile.scale * 0.6f, i / (float)Projectile.oldPos.Length); - Main.EntitySpriteDraw(texture, drawPos, new Rectangle?(rectangle), color, - Projectile.rotation, - rectangle.Size() / 2f, scale, SpriteEffects.None, 0); - } - } - Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Rectangle?(rectangle), Color.White, - Projectile.rotation, - rectangle.Size() / 2f, 1.35f, SpriteEffects.None, 0); - return false; + outlineWidth = Math.Clamp(MathF.Pow(1 - (AITimer) / -IgneousExaltation.ChargeCooldown, 3), 0, 100); + outlineOpacity = 0.75f; } - return true; + var outlineTex = IgneousExaltation.GetBladeOutlineTex(); + Main.EntitySpriteDraw(outlineTex, drawPosition + new Vector2(2, 0) * outlineWidth, frame, new Color(166, 46, 61) * outlineOpacity, Projectile.rotation - MathHelper.PiOver4, origin, Projectile.scale, direction, 0); + Main.EntitySpriteDraw(outlineTex, drawPosition + new Vector2(0, 2) * outlineWidth, frame, new Color(166, 46, 61) * outlineOpacity, Projectile.rotation - MathHelper.PiOver4, origin, Projectile.scale, direction, 0); + Main.EntitySpriteDraw(outlineTex, drawPosition + new Vector2(-2, 0) * outlineWidth, frame, new Color(166, 46, 61) * outlineOpacity, Projectile.rotation - MathHelper.PiOver4, origin, Projectile.scale, direction, 0); + Main.EntitySpriteDraw(outlineTex, drawPosition + new Vector2(0, -2) * outlineWidth, frame, new Color(166, 46, 61) * outlineOpacity, Projectile.rotation - MathHelper.PiOver4, origin, Projectile.scale, direction, 0); + Main.EntitySpriteDraw(texture, drawPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation - MathHelper.PiOver4, origin, Projectile.scale, direction, 0); + + // Draw the gleam at the tip of the blade. + Texture2D shineTex = ModContent.Request("CalamityMod/Particles/HalfStar").Value; + Vector2 shineScale = new Vector2(1.67f, 3f) * Projectile.scale; + shineScale *= MathHelper.Lerp(0.9f, 1.1f, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 7.4f + Projectile.identity) * 0.5f + 0.5f); + + Vector2 lensFlareWorldPosition = Projectile.Center + (Projectile.rotation - MathHelper.PiOver2).ToRotationVector2() * Projectile.width * Projectile.scale * 0.88f; + Color lensFlareColor = Color.Lerp(Color.LimeGreen, Color.Yellow, 0.23f) with { A = 0 } * BladeGleamInterpolant; + Main.EntitySpriteDraw(shineTex, lensFlareWorldPosition - Main.screenPosition, null, lensFlareColor, 0f, shineTex.Size() * 0.5f, shineScale * 0.6f, 0, 0); + Main.EntitySpriteDraw(shineTex, lensFlareWorldPosition - Main.screenPosition, null, lensFlareColor, MathHelper.PiOver2, shineTex.Size() * 0.5f, shineScale, 0, 0); + + // Reset textures for shaders, since they're only defined once at load-time in vanilla. + GameShaders.Misc["EmpressBlade"].UseImage0("Images/Extra_209"); + GameShaders.Misc["EmpressBlade"].UseImage1("Images/Extra_210"); + return false; } } } diff --git a/Projectiles/Summon/IgneousBladeStrike.cs b/Projectiles/Summon/IgneousBladeStrike.cs index 6762bec590..56459f6c93 100644 --- a/Projectiles/Summon/IgneousBladeStrike.cs +++ b/Projectiles/Summon/IgneousBladeStrike.cs @@ -1,6 +1,10 @@ -using Microsoft.Xna.Framework; +using System; +using CalamityMod.Items.Weapons.Summon; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; +using Terraria.GameContent; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon @@ -18,8 +22,8 @@ namespace CalamityMod.Projectiles.Summon public override void SetDefaults() { Projectile.friendly = true; - Projectile.width = 86; - Projectile.height = 36; + Projectile.width = 50; + Projectile.height = 50; Projectile.ignoreWater = true; Projectile.tileCollide = false; Projectile.usesLocalNPCImmunity = true; @@ -27,6 +31,8 @@ namespace CalamityMod.Projectiles.Summon Projectile.timeLeft = 360; Projectile.alpha = 127; Projectile.DamageType = DamageClass.Summon; + Projectile.penetrate = 1; + Projectile.extraUpdates = 1; } public override void AI() @@ -44,5 +50,18 @@ namespace CalamityMod.Projectiles.Summon } SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); } + + public override bool PreDraw(ref Color lightColor) + { + + var AllWhiteTexture = IgneousExaltation.GetBladeOutlineTex(); + Main.spriteBatch.Draw(AllWhiteTexture, Projectile.Center + new Vector2(0,2) - Main.screenPosition, null, new Color(166, 46, 61), Projectile.rotation, AllWhiteTexture.Size()*0.5f, Projectile.scale * 1f, SpriteEffects.None, 1f); + Main.spriteBatch.Draw(AllWhiteTexture, Projectile.Center + new Vector2(2, 0) - Main.screenPosition, null, new Color(166, 46, 61), Projectile.rotation, AllWhiteTexture.Size() * 0.5f, Projectile.scale * 1f, SpriteEffects.None, 1f); + Main.spriteBatch.Draw(AllWhiteTexture, Projectile.Center + new Vector2(0, -2) - Main.screenPosition, null, new Color(166, 46, 61), Projectile.rotation, AllWhiteTexture.Size() * 0.5f, Projectile.scale * 1f, SpriteEffects.None, 1f); + Main.spriteBatch.Draw(AllWhiteTexture, Projectile.Center + new Vector2(-2, 0) - Main.screenPosition, null, new Color(166, 46, 61), Projectile.rotation, AllWhiteTexture.Size() * 0.5f, Projectile.scale * 1f, SpriteEffects.None, 1f); + var tex = TextureAssets.Projectile[Type].Value; + Main.spriteBatch.Draw(tex, Projectile.Center - Main.screenPosition, null, lightColor, Projectile.rotation, tex.Size() * 0.5f, Projectile.scale * 1f, SpriteEffects.None, 1f); + return false; + } } } From 8f9280cc1970718f38f124e625c1b87b957b81be Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Thu, 24 Jul 2025 08:51:55 -0500 Subject: [PATCH 33/36] small fix --- Items/Weapons/Summon/IgneousExaltation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Summon/IgneousExaltation.cs b/Items/Weapons/Summon/IgneousExaltation.cs index c8bbf9f428..e91c75a2c7 100644 --- a/Items/Weapons/Summon/IgneousExaltation.cs +++ b/Items/Weapons/Summon/IgneousExaltation.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Items.Weapons.Summon public override bool AltFunctionUse(Player player) { - return true;// base.AltFunctionUse(player);// player.ownedProjectileCounts[Item.shoot] > 0; + return player.ownedProjectileCounts[Item.shoot] > 0; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { From 5d398c50d056e4e6756230407c7d5be86dfbfc3d Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 25 Jul 2025 11:42:39 -0400 Subject: [PATCH 34/36] IgneousBlade uses tau correctly --- Projectiles/Summon/IgneousBlade.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Summon/IgneousBlade.cs b/Projectiles/Summon/IgneousBlade.cs index 3666b7b10c..cb17cbe72a 100644 --- a/Projectiles/Summon/IgneousBlade.cs +++ b/Projectiles/Summon/IgneousBlade.cs @@ -187,7 +187,7 @@ namespace CalamityMod.Projectiles.Summon { for (int i = 0; i < 1; i++) { - Vector2 spawnPosition = Projectile.Center - new Vector2(0f, 550f).RotatedByRandom(6.283f); + Vector2 spawnPosition = Projectile.Center - new Vector2(0f, 550f).RotatedByRandom(MathHelper.TwoPi); Projectile.NewProjectile(Projectile.GetSource_FromThis(), spawnPosition, Vector2.Normalize(Projectile.Center - spawnPosition) * 24f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); } From cdacd8a9b4b143bec82dc784a8ff89bcfbc81d3f Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 26 Jul 2025 05:56:46 +0700 Subject: [PATCH 35/36] PHM sets formatted except Victide because the rework does it --- CalPlayer/CalamityPlayerHitHurt.cs | 4 +- CalPlayer/CalamityPlayerMiscEffects.cs | 3 +- ExtraJumps/SulphurJump.cs | 3 +- Items/Armor/Aerospec/AerospecBreastplate.cs | 14 ++- Items/Armor/Aerospec/AerospecHeadMagic.cs | 24 +++-- Items/Armor/Aerospec/AerospecHeadMelee.cs | 24 +++-- Items/Armor/Aerospec/AerospecHeadRanged.cs | 21 ++-- Items/Armor/Aerospec/AerospecHeadRogue.cs | 24 +++-- Items/Armor/Aerospec/AerospecHeadSummon.cs | 20 +++- Items/Armor/Aerospec/AerospecLeggings.cs | 10 +- Items/Armor/DesertProwler/DesertProwlerSet.cs | 33 +++--- .../MarniteArchitect/MarniteArchitectSet.cs | 17 ++- .../SnowRuffian/SnowRuffianChestplate.cs | 11 +- Items/Armor/SnowRuffian/SnowRuffianGreaves.cs | 10 +- Items/Armor/SnowRuffian/SnowRuffianMask.cs | 17 +-- Items/Armor/Statigel/StatigelArmor.cs | 14 ++- Items/Armor/Statigel/StatigelGreaves.cs | 10 +- Items/Armor/Statigel/StatigelHeadMagic.cs | 22 ++-- Items/Armor/Statigel/StatigelHeadMelee.cs | 25 +++-- Items/Armor/Statigel/StatigelHeadRanged.cs | 16 ++- Items/Armor/Statigel/StatigelHeadRogue.cs | 25 +++-- Items/Armor/Statigel/StatigelHeadSummon.cs | 22 ++-- .../Armor/Sulphurous/SulphurousBreastplate.cs | 10 +- Items/Armor/Sulphurous/SulphurousHelmet.cs | 18 +++- Items/Armor/Sulphurous/SulphurousLeggings.cs | 11 +- Items/Armor/Wulfrum/WulfrumSet.cs | 44 ++++---- ....CalamityMod.Items.Armor.PreHardmode.hjson | 100 +++++++++--------- Utilities/LocalizationUtils.cs | 1 + Utilities/PlayerUtils.cs | 5 +- 29 files changed, 362 insertions(+), 196 deletions(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index a5740086f5..481b952bbc 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -2550,13 +2550,13 @@ namespace CalamityMod.CalPlayer if (!canTriggerHitEffects) return; - if (aeroSet && hurtInfo.Damage > 25) + if (aeroSet && hurtInfo.Damage > AerospecBreastplate.SetBonusHurtDamageThreshold) { // https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list var source = Player.GetSource_OnHurt(hurtInfo.DamageSource, AerospecBreastplate.FeatherEntitySourceContext); for (int n = 0; n < 4; n++) { - int featherDamage = (int)Player.GetBestClassDamage().ApplyTo(30); + int featherDamage = (int)Player.GetBestClassDamage().ApplyTo(AerospecBreastplate.SetBonusFeatherDamage); CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 20f, ModContent.ProjectileType(), featherDamage, 1f, Player.whoAmI); } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index e846889fbd..666f806bf0 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -17,6 +17,7 @@ using CalamityMod.ExtraTextures; using CalamityMod.Items; using CalamityMod.Items.Accessories; using CalamityMod.Items.Ammo; +using CalamityMod.Items.Armor.Aerospec; using CalamityMod.Items.Armor.Bloodflare; using CalamityMod.Items.Armor.Brimflame; using CalamityMod.Items.Armor.DesertProwler; @@ -1293,7 +1294,7 @@ namespace CalamityMod.CalPlayer if (!Player.wet) { if (aeroSet) - Player.maxFallSpeed = 15f; + Player.maxFallSpeed = AerospecBreastplate.SetBonusFallSpeed; if (Player.PortalPhysicsEnabled) Player.maxFallSpeed = 20f; } diff --git a/ExtraJumps/SulphurJump.cs b/ExtraJumps/SulphurJump.cs index eef2cbb6c1..db5dd0bd9f 100644 --- a/ExtraJumps/SulphurJump.cs +++ b/ExtraJumps/SulphurJump.cs @@ -1,4 +1,5 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Armor.Sulphurous; using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Particles; using CalamityMod.Projectiles.Typeless; @@ -46,7 +47,7 @@ namespace CalamityMod.ExtraJumps if (modPlayer.sulphurBubbleCooldown <= 0) { var source = player.GetSource_Misc("0"); - int damage = (int)player.GetTotalDamage().ApplyTo(20); + int damage = (int)player.GetTotalDamage().ApplyTo(SulphurousHelmet.BubbleDamage); int bubble = Projectile.NewProjectile(source, new Vector2(player.position.X, player.position.Y + (player.gravDir == -1f ? 20 : -20)), Vector2.Zero, ModContent.ProjectileType(), damage, 0f, player.whoAmI, 1f, 0f); if (bubble.WithinBounds(Main.maxProjectiles)) diff --git a/Items/Armor/Aerospec/AerospecBreastplate.cs b/Items/Armor/Aerospec/AerospecBreastplate.cs index c4601b3ca1..acd1344852 100644 --- a/Items/Armor/Aerospec/AerospecBreastplate.cs +++ b/Items/Armor/Aerospec/AerospecBreastplate.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Aerospec @@ -11,6 +12,15 @@ namespace CalamityMod.Items.Armor.Aerospec public new string LocalizationCategory => "Items.Armor.PreHardmode"; internal static string FeatherEntitySourceContext => "SetBonus_Calamity_Aerospec"; + public static float DamageBoost = 0.03f; + public static int CritBoost = 3; // NOTE: Tooltip shares this number with damage % as they're equal + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent()); + + // Common Set Bonus + public static int SetBonusHurtDamageThreshold = 25; + public static int SetBonusFeatherDamage = 30; + public static float SetBonusFallSpeed = 15f; + public override void SetDefaults() { Item.width = 18; @@ -22,8 +32,8 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateEquip(Player player) { - player.GetDamage() += 0.03f; - player.GetCritChance() += 3; + player.GetDamage() += DamageBoost; + player.GetCritChance() += CritBoost; } public override void AddRecipes() diff --git a/Items/Armor/Aerospec/AerospecHeadMagic.cs b/Items/Armor/Aerospec/AerospecHeadMagic.cs index 084d548d20..8c1be03252 100644 --- a/Items/Armor/Aerospec/AerospecHeadMagic.cs +++ b/Items/Armor/Aerospec/AerospecHeadMagic.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Aerospec @@ -11,6 +12,16 @@ namespace CalamityMod.Items.Armor.Aerospec public class AerospecHeadMagic : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float MagicDamageBoost = 0.1f; + public static int MaxManaBoost = 30; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MagicDamageBoost.ToPercent(), MaxManaBoost); + + // Set Bonus + public static float SetBonusManaCostReduction = 0.08f; + public static float SetBonusMoveSpeedBoost = 0.05f; + public static int SetBonusMagicCritBoost = 5; // NOTE: Tooltip shares this number with move speed % as they're equal + public override void SetDefaults() { Item.width = 18; @@ -32,19 +43,20 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusManaCostReduction.ToPercent(), SetBonusMoveSpeedBoost.ToPercent()) + + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold); var modPlayer = player.Calamity(); modPlayer.aeroSet = true; player.noFallDmg = true; - player.moveSpeed += 0.05f; - player.manaCost -= 0.08f; - player.GetCritChance() += 5; + player.moveSpeed += SetBonusMoveSpeedBoost; + player.manaCost -= SetBonusManaCostReduction; + player.GetCritChance() += SetBonusMagicCritBoost; } public override void UpdateEquip(Player player) { - player.GetDamage() += 0.1f; - player.statManaMax2 += 30; + player.GetDamage() += MagicDamageBoost; + player.statManaMax2 += MaxManaBoost; } public override void AddRecipes() diff --git a/Items/Armor/Aerospec/AerospecHeadMelee.cs b/Items/Armor/Aerospec/AerospecHeadMelee.cs index 1d7b21e058..070471a1d6 100644 --- a/Items/Armor/Aerospec/AerospecHeadMelee.cs +++ b/Items/Armor/Aerospec/AerospecHeadMelee.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Aerospec @@ -11,6 +12,15 @@ namespace CalamityMod.Items.Armor.Aerospec public class AerospecHeadMelee : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float MeleeDamageBoost = 0.1f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MeleeDamageBoost.ToPercent()); + + // Set Bonus + public static float SetBonusMoveSpeedBoost = 0.05f; + public static int SetBonusMeleeCritBoost = 5; // NOTE: Tooltip shares this number with move speed % as they're equal + public static int SetBonusAggroBoost = 300; + public override void SetDefaults() { Item.width = 18; @@ -32,19 +42,17 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMoveSpeedBoost.ToPercent()) + + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold); var modPlayer = player.Calamity(); modPlayer.aeroSet = true; player.noFallDmg = true; - player.moveSpeed += 0.05f; - player.GetCritChance() += 5; - player.aggro += 300; + player.moveSpeed += SetBonusMoveSpeedBoost; + player.GetCritChance() += SetBonusMeleeCritBoost; + player.aggro += SetBonusAggroBoost; } - public override void UpdateEquip(Player player) - { - player.GetDamage() += 0.1f; - } + public override void UpdateEquip(Player player) => player.GetDamage() += MeleeDamageBoost; public override void AddRecipes() { diff --git a/Items/Armor/Aerospec/AerospecHeadRanged.cs b/Items/Armor/Aerospec/AerospecHeadRanged.cs index 01fc45869d..7953422862 100644 --- a/Items/Armor/Aerospec/AerospecHeadRanged.cs +++ b/Items/Armor/Aerospec/AerospecHeadRanged.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Aerospec @@ -11,6 +12,14 @@ namespace CalamityMod.Items.Armor.Aerospec public class AerospecHeadRanged : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float RangedDamageBoost = 0.1f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent()); + + // Set Bonus + public static float SetBonusMoveSpeedBoost = 0.05f; + public static int SetBonusRangedCritBoost = 5; // NOTE: Tooltip shares this number with move speed % as they're equal + public override void SetDefaults() { Item.width = 18; @@ -32,18 +41,16 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMoveSpeedBoost.ToPercent()) + + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold); var modPlayer = player.Calamity(); modPlayer.aeroSet = true; player.noFallDmg = true; - player.moveSpeed += 0.05f; - player.GetCritChance() += 5; + player.moveSpeed += SetBonusMoveSpeedBoost; + player.GetCritChance() += SetBonusRangedCritBoost; } - public override void UpdateEquip(Player player) - { - player.GetDamage() += 0.1f; - } + public override void UpdateEquip(Player player) => player.GetDamage() += RangedDamageBoost; public override void AddRecipes() { diff --git a/Items/Armor/Aerospec/AerospecHeadRogue.cs b/Items/Armor/Aerospec/AerospecHeadRogue.cs index be4a49a3d4..6cd947827a 100644 --- a/Items/Armor/Aerospec/AerospecHeadRogue.cs +++ b/Items/Armor/Aerospec/AerospecHeadRogue.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Aerospec @@ -11,6 +12,16 @@ namespace CalamityMod.Items.Armor.Aerospec public class AerospecHeadRogue : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float RogueDamageBoost = 0.1f; + public static float MoveSpeedBoost = 0.05f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), MoveSpeedBoost.ToPercent()); + + // Set Bonus + public static float SetBonusMoveSpeedBoost = 0.05f; + public static int SetBonusRogueCritBoost = 5; // NOTE: Tooltip shares this number with move speed % as they're equal + public static float SetBonusRogueStealth = 0.8f; + public override void SetStaticDefaults() { if (!Main.dedServ) @@ -38,20 +49,21 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMoveSpeedBoost.ToPercent(), SetBonusRogueStealth.ToStealth()) + + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold); var modPlayer = player.Calamity(); modPlayer.aeroSet = true; - modPlayer.rogueStealthMax += 0.8f; + modPlayer.rogueStealthMax += SetBonusRogueStealth; player.noFallDmg = true; - player.moveSpeed += 0.05f; - player.GetCritChance() += 5; + player.moveSpeed += SetBonusMoveSpeedBoost; + player.GetCritChance() += SetBonusRogueCritBoost; player.Calamity().wearingRogueArmor = true; } public override void UpdateEquip(Player player) { - player.GetDamage() += 0.1f; - player.moveSpeed += 0.05f; + player.GetDamage() += RogueDamageBoost; + player.moveSpeed += MoveSpeedBoost; } public override void AddRecipes() diff --git a/Items/Armor/Aerospec/AerospecHeadSummon.cs b/Items/Armor/Aerospec/AerospecHeadSummon.cs index b54a722b93..54722a5d38 100644 --- a/Items/Armor/Aerospec/AerospecHeadSummon.cs +++ b/Items/Armor/Aerospec/AerospecHeadSummon.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Aerospec @@ -14,6 +15,14 @@ namespace CalamityMod.Items.Armor.Aerospec public class AerospecHeadSummon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float SummonDamageBoost = 0.1f; + public static float MoveSpeedBoost = 0.05f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent(), MoveSpeedBoost.ToPercent()); + + // Set Bonus + public static float SetBonusSummonDamageBoost = 0.11f; + public static int SetBonusMinionSlotBoost = 1; public static int ValkyrieDamage = 20; public override void SetDefaults() @@ -37,7 +46,8 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusSummonDamageBoost.ToPercent(), SetBonusMinionSlotBoost) + + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold); var modPlayer = player.Calamity(); modPlayer.valkyrie = true; modPlayer.aeroSet = true; @@ -58,14 +68,14 @@ namespace CalamityMod.Items.Armor.Aerospec Main.projectile[p].originalDamage = ValkyrieDamage; } } - player.GetDamage() += 0.11f; - player.maxMinions++; + player.GetDamage() += SetBonusSummonDamageBoost; + player.maxMinions += SetBonusMinionSlotBoost; } public override void UpdateEquip(Player player) { - player.moveSpeed += 0.05f; - player.GetDamage() += 0.1f; + player.moveSpeed += MoveSpeedBoost; + player.GetDamage() += SummonDamageBoost; } public override void AddRecipes() diff --git a/Items/Armor/Aerospec/AerospecLeggings.cs b/Items/Armor/Aerospec/AerospecLeggings.cs index e28d5c8641..f035355c2f 100644 --- a/Items/Armor/Aerospec/AerospecLeggings.cs +++ b/Items/Armor/Aerospec/AerospecLeggings.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Aerospec @@ -9,6 +10,10 @@ namespace CalamityMod.Items.Armor.Aerospec public class AerospecLeggings : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float MoveSpeedBoost = 0.12f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent()); + public override void SetDefaults() { Item.width = 18; @@ -18,10 +23,7 @@ namespace CalamityMod.Items.Armor.Aerospec Item.defense = 6; } - public override void UpdateEquip(Player player) - { - player.moveSpeed += 0.12f; - } + public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost; public override void AddRecipes() { diff --git a/Items/Armor/DesertProwler/DesertProwlerSet.cs b/Items/Armor/DesertProwler/DesertProwlerSet.cs index b361e9b684..220715407a 100644 --- a/Items/Armor/DesertProwler/DesertProwlerSet.cs +++ b/Items/Armor/DesertProwler/DesertProwlerSet.cs @@ -27,6 +27,12 @@ namespace CalamityMod.Items.Armor.DesertProwler public static readonly SoundStyle SmokeBombEndSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerSmokeBombEnd"); public static readonly SoundStyle CDResetSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerCDReset"); + public static int RogueCritBoost = 4; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueCritBoost); + + // Set Bonus + public static float SetBonusRogueDamageBoost = 0.05f; + public static float SetBonusRogueStealth = 0.5f; public static int SmokeCooldown = 25 * 60; public static int SmokeDuration = 5 * 60; public static int LightsOutReset = (int)(1.5f * 60); @@ -77,10 +83,10 @@ namespace CalamityMod.Items.Armor.DesertProwler public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalization("SetBonus").Format(); //More gets edited in elsewhere + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueDamageBoost.ToPercent(), SetBonusRogueStealth.ToStealth()); //More gets edited in elsewhere player.Calamity().wearingRogueArmor = true; - player.Calamity().rogueStealthMax += 0.5f; - player.GetDamage() += 0.05f; + player.Calamity().rogueStealthMax += SetBonusRogueStealth; + player.GetDamage() += SetBonusRogueDamageBoost; DesertProwlerPlayer armorPlayer = player.GetModPlayer(); armorPlayer.desertProwlerSet = true; @@ -182,10 +188,7 @@ namespace CalamityMod.Items.Armor.DesertProwler public override void ModifyTooltips(List tooltips) => ModifySetTooltips(this, tooltips); - public override void UpdateEquip(Player player) - { - player.GetCritChance() += 4; - } + public override void UpdateEquip(Player player) => player.GetCritChance() += RogueCritBoost; public override void AddRecipes() { @@ -203,6 +206,9 @@ namespace CalamityMod.Items.Armor.DesertProwler public new string LocalizationCategory => "Items.Armor.PreHardmode"; public string BulkTexture => "CalamityMod/Items/Armor/DesertProwler/DesertProwlerShirt_Bulk"; + public static int RogueCritBoost = 5; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueCritBoost); + public override void SetStaticDefaults() { if (Main.dedServ) @@ -225,10 +231,7 @@ namespace CalamityMod.Items.Armor.DesertProwler public override void ModifyTooltips(List tooltips) => DesertProwlerHat.ModifySetTooltips(this, tooltips); - public override void UpdateEquip(Player player) - { - player.GetCritChance() += 5; - } + public override void UpdateEquip(Player player) => player.GetCritChance() += RogueCritBoost; public override void AddRecipes() { @@ -245,6 +248,10 @@ namespace CalamityMod.Items.Armor.DesertProwler public class DesertProwlerPants : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float MoveSpeedBoost = 0.1f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent()); + public override void SetDefaults() { Item.width = 18; @@ -253,11 +260,13 @@ namespace CalamityMod.Items.Armor.DesertProwler Item.rare = ItemRarityID.Blue; Item.defense = 2; } + public override void ModifyTooltips(List tooltips) => DesertProwlerHat.ModifySetTooltips(this, tooltips); + public override void UpdateEquip(Player player) { player.buffImmune[BuffID.WindPushed] = true; - player.moveSpeed += 0.1f; + player.moveSpeed += MoveSpeedBoost; } public override void AddRecipes() diff --git a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs index f67aa39d0f..1715969c84 100644 --- a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs +++ b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs @@ -16,6 +16,7 @@ using Terraria.Audio; using Terraria.DataStructures; using Terraria.GameInput; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; using static Microsoft.Xna.Framework.Input.Keys; using static Terraria.ModLoader.ModContent; @@ -32,6 +33,10 @@ namespace CalamityMod.Items.Armor.MarniteArchitect public static readonly SoundStyle LiftGoAwaySound = new("CalamityMod/Sounds/Item/MarniteLiftUnsummon"); public static readonly SoundStyle LiftHummSound = new("CalamityMod/Sounds/Item/MarniteLiftHumm") { IsLooped = true }; + public static int TileRangeBoost = 5; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(TileRangeBoost); + + // Set Bonus public static float LiftRaiseSpeed = 2f; public static float MaxLiftHeight = 138f; @@ -95,8 +100,8 @@ namespace CalamityMod.Items.Armor.MarniteArchitect //Tile range is a static variable did you know that? That's quite funny. I assume it's just because its not like other players would need to know about the players reach if (Main.myPlayer == player.whoAmI) { - Player.tileRangeX += 5; - Player.tileRangeY += 5; //Extendo grip also increases vertical tile range by one less than horizontal <-- This is silly lmao + Player.tileRangeX += TileRangeBoost; + Player.tileRangeY += TileRangeBoost; //Extendo grip also increases vertical tile range by one less than horizontal <-- This is silly lmao } } @@ -136,6 +141,10 @@ namespace CalamityMod.Items.Armor.MarniteArchitect public class MarniteArchitectToga : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float PlacementSpeedBoost = 0.5f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(PlacementSpeedBoost.ToPercent()); + public override void Load() { if (Main.dedServ) @@ -160,8 +169,8 @@ namespace CalamityMod.Items.Armor.MarniteArchitect public override void UpdateEquip(Player player) { - player.tileSpeed += 0.5f; - player.wallSpeed += 0.5f; + player.tileSpeed += PlacementSpeedBoost; + player.wallSpeed += PlacementSpeedBoost; } public override void ModifyTooltips(List tooltips) => MarniteArchitectHeadgear.ModifySetTooltips(this, tooltips); diff --git a/Items/Armor/SnowRuffian/SnowRuffianChestplate.cs b/Items/Armor/SnowRuffian/SnowRuffianChestplate.cs index 67aa4cc310..eb8c2b383c 100644 --- a/Items/Armor/SnowRuffian/SnowRuffianChestplate.cs +++ b/Items/Armor/SnowRuffian/SnowRuffianChestplate.cs @@ -1,5 +1,6 @@ using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.SnowRuffian @@ -8,6 +9,10 @@ namespace CalamityMod.Items.Armor.SnowRuffian public class SnowRuffianChestplate : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static int RangedCritBoost = 4; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedCritBoost); + public override void Load() { if (Main.dedServ) @@ -19,7 +24,6 @@ namespace CalamityMod.Items.Armor.SnowRuffian public override void SetStaticDefaults() { - if (Main.dedServ) return; @@ -38,10 +42,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian Item.defense = 5; //12 } - public override void UpdateEquip(Player player) - { - player.GetCritChance() += 4; - } + public override void UpdateEquip(Player player) => player.GetCritChance() += RangedCritBoost; public override void AddRecipes() { diff --git a/Items/Armor/SnowRuffian/SnowRuffianGreaves.cs b/Items/Armor/SnowRuffian/SnowRuffianGreaves.cs index d400b91e37..c60b5ea5f6 100644 --- a/Items/Armor/SnowRuffian/SnowRuffianGreaves.cs +++ b/Items/Armor/SnowRuffian/SnowRuffianGreaves.cs @@ -1,5 +1,6 @@ using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.SnowRuffian @@ -8,6 +9,10 @@ namespace CalamityMod.Items.Armor.SnowRuffian public class SnowRuffianGreaves : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float MoveSpeedBoost = 0.1f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent()); + public override void SetDefaults() { Item.width = 18; @@ -17,10 +22,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian Item.defense = 4; //12 } - public override void UpdateEquip(Player player) - { - player.moveSpeed += 0.1f; - } + public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost; public override void AddRecipes() { diff --git a/Items/Armor/SnowRuffian/SnowRuffianMask.cs b/Items/Armor/SnowRuffian/SnowRuffianMask.cs index b3365ce50c..c4fb0c3726 100644 --- a/Items/Armor/SnowRuffian/SnowRuffianMask.cs +++ b/Items/Armor/SnowRuffian/SnowRuffianMask.cs @@ -1,6 +1,7 @@ using CalamityMod.CalPlayer; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.SnowRuffian @@ -11,6 +12,11 @@ namespace CalamityMod.Items.Armor.SnowRuffian public new string LocalizationCategory => "Items.Armor.PreHardmode"; private bool shouldBoost = false; + public static float RangedDamageBoost = 0.02f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent()); + + public static float SetBonusRangedDamageBoost = 0.04f; + public static int SetBonusRangedCritBoost = 4; // NOTE: Tooltip shares this number with damage % as they're equal public override void Load() { @@ -38,9 +44,9 @@ namespace CalamityMod.Items.Armor.SnowRuffian { var modPlayer = player.Calamity(); modPlayer.snowRuffianSet = true; - player.GetCritChance() += 4; - player.GetDamage() += 0.04f; - player.setBonus = this.GetLocalizedValue("SetBonus"); + player.GetCritChance() += SetBonusRangedCritBoost; + player.GetDamage() += SetBonusRangedDamageBoost; + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRangedDamageBoost.ToPercent()); if (player.controlJump) { @@ -59,10 +65,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian } } - public override void UpdateEquip(Player player) - { - player.GetDamage() += 0.02f; - } + public override void UpdateEquip(Player player) => player.GetDamage() += RangedDamageBoost; public override void AddRecipes() { diff --git a/Items/Armor/Statigel/StatigelArmor.cs b/Items/Armor/Statigel/StatigelArmor.cs index 0ff1c28e1f..594d897ccd 100644 --- a/Items/Armor/Statigel/StatigelArmor.cs +++ b/Items/Armor/Statigel/StatigelArmor.cs @@ -2,6 +2,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Statigel @@ -10,9 +11,18 @@ namespace CalamityMod.Items.Armor.Statigel public class StatigelArmor : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static int CritBoost = 5; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(CritBoost); + + // Common Set Bonus + public static int SetBonusHurtDamageThreshold = 100; + public static int SetBonusIFrameExtension = 30; + public static float SetBonusJumpSpeedBoost = 0.6f; + public static float SetBonusJumpHeightPercentBoost = 0.3334f; + public override void SetStaticDefaults() { - if (Main.dedServ) return; @@ -31,7 +41,7 @@ namespace CalamityMod.Items.Armor.Statigel Item.defense = 10; } - public override void UpdateEquip(Player player) => player.GetCritChance() += 5; + public override void UpdateEquip(Player player) => player.GetCritChance() += CritBoost; public override void AddRecipes() { diff --git a/Items/Armor/Statigel/StatigelGreaves.cs b/Items/Armor/Statigel/StatigelGreaves.cs index ce2b1d9665..cfca4680e2 100644 --- a/Items/Armor/Statigel/StatigelGreaves.cs +++ b/Items/Armor/Statigel/StatigelGreaves.cs @@ -2,6 +2,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Statigel @@ -10,6 +11,11 @@ namespace CalamityMod.Items.Armor.Statigel public class StatigelGreaves : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float DamageBoost = 0.05f; + public static float MoveSpeedBoost = 0.05f; // NOTE: Tooltip shares this number with damage % as they're equal + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent()); + public override void SetDefaults() { Item.width = 18; @@ -21,8 +27,8 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateEquip(Player player) { - player.GetDamage() += 0.05f; - player.moveSpeed += 0.05f; + player.GetDamage() += DamageBoost; + player.moveSpeed += MoveSpeedBoost; } public override void AddRecipes() diff --git a/Items/Armor/Statigel/StatigelHeadMagic.cs b/Items/Armor/Statigel/StatigelHeadMagic.cs index e4c60df6fc..d2bbac73e6 100644 --- a/Items/Armor/Statigel/StatigelHeadMagic.cs +++ b/Items/Armor/Statigel/StatigelHeadMagic.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Statigel @@ -12,6 +13,13 @@ namespace CalamityMod.Items.Armor.Statigel public class StatigelHeadMagic : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float MagicDamageBoost = 0.1f; + public static float ManaCostReduction = 0.1f; + public static int MagicCritBoost = 7; + public static int MaxManaBoost = 40; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MagicDamageBoost.ToPercent(), ManaCostReduction.ToPercent(), MagicCritBoost, MaxManaBoost); + public override void SetDefaults() { Item.width = 18; @@ -28,20 +36,20 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent()); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.GetJumpState().Enable(); - Player.jumpHeight += 5; - player.jumpSpeedBoost += 0.6f; + Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15); + player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost; } public override void UpdateEquip(Player player) { - player.GetDamage() += 0.1f; - player.GetCritChance() += 7; - player.manaCost *= 0.9f; - player.statManaMax2 += 40; + player.GetDamage() += MagicDamageBoost; + player.GetCritChance() += MagicCritBoost; + player.manaCost -= ManaCostReduction; + player.statManaMax2 += MaxManaBoost; } public override void AddRecipes() diff --git a/Items/Armor/Statigel/StatigelHeadMelee.cs b/Items/Armor/Statigel/StatigelHeadMelee.cs index 078d4805df..00a259ecdb 100644 --- a/Items/Armor/Statigel/StatigelHeadMelee.cs +++ b/Items/Armor/Statigel/StatigelHeadMelee.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Statigel @@ -12,6 +13,15 @@ namespace CalamityMod.Items.Armor.Statigel public class StatigelHeadMelee : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float MeleeDamageBoost = 0.1f; + public static float MeleeSpeedBoost = 0.1f; // NOTE: Tooltip shares this number with damage % as they're equal + public static int MeleeCritBoost = 7; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MeleeDamageBoost.ToPercent(), MeleeCritBoost); + + // Set Bonus + public static int SetBonusAggroBoost = 400; + public override void SetDefaults() { Item.width = 18; @@ -28,20 +38,21 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalizedValue("SetBonus") + + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent()); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.GetJumpState().Enable(); - Player.jumpHeight += 5; - player.jumpSpeedBoost += 0.6f; - player.aggro += 400; + Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15); + player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost; + player.aggro += SetBonusAggroBoost; } public override void UpdateEquip(Player player) { - player.GetDamage() += 0.1f; - player.GetCritChance() += 7; - player.GetAttackSpeed() += 0.1f; + player.GetDamage() += MeleeDamageBoost; + player.GetCritChance() += MeleeCritBoost; + player.GetAttackSpeed() += MeleeSpeedBoost; } public override void AddRecipes() diff --git a/Items/Armor/Statigel/StatigelHeadRanged.cs b/Items/Armor/Statigel/StatigelHeadRanged.cs index 25820004c8..d3fccc6ec9 100644 --- a/Items/Armor/Statigel/StatigelHeadRanged.cs +++ b/Items/Armor/Statigel/StatigelHeadRanged.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Statigel @@ -12,6 +13,11 @@ namespace CalamityMod.Items.Armor.Statigel public class StatigelHeadRanged : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float RangedDamageBoost = 0.1f; + public static int RangedCritBoost = 7; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent(), RangedCritBoost); + public override void SetDefaults() { Item.width = 18; @@ -28,18 +34,18 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent()); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.GetJumpState().Enable(); - Player.jumpHeight += 5; - player.jumpSpeedBoost += 0.6f; + Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15); + player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost; } public override void UpdateEquip(Player player) { - player.GetDamage() += 0.1f; - player.GetCritChance() += 7; + player.GetDamage() += RangedDamageBoost; + player.GetCritChance() += RangedCritBoost; } public override void AddRecipes() diff --git a/Items/Armor/Statigel/StatigelHeadRogue.cs b/Items/Armor/Statigel/StatigelHeadRogue.cs index fab0c20533..5823f004f8 100644 --- a/Items/Armor/Statigel/StatigelHeadRogue.cs +++ b/Items/Armor/Statigel/StatigelHeadRogue.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Statigel @@ -12,6 +13,15 @@ namespace CalamityMod.Items.Armor.Statigel public class StatigelHeadRogue : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float RogueDamageBoost = 0.1f; + public static int RogueCritBoost = 7; + public static float MoveSpeedBoost = 0.05f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueCritBoost, MoveSpeedBoost.ToPercent()); + + // Set Bonus + public static float SetBonusRogueStealth = 0.9f; + public override void SetDefaults() { Item.width = 18; @@ -28,21 +38,22 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth()) + + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent()); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.GetJumpState().Enable(); - modPlayer.rogueStealthMax += 0.9f; + modPlayer.rogueStealthMax += SetBonusRogueStealth; modPlayer.wearingRogueArmor = true; - Player.jumpHeight += 5; - player.jumpSpeedBoost += 0.6f; + Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15); + player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost; } public override void UpdateEquip(Player player) { - player.GetDamage() += 0.1f; - player.GetCritChance() += 7; - player.moveSpeed += 0.05f; + player.GetDamage() += RogueDamageBoost; + player.GetCritChance() += RogueCritBoost; + player.moveSpeed += MoveSpeedBoost; } public override void AddRecipes() diff --git a/Items/Armor/Statigel/StatigelHeadSummon.cs b/Items/Armor/Statigel/StatigelHeadSummon.cs index 44b9d4b2f4..c61d6237cb 100644 --- a/Items/Armor/Statigel/StatigelHeadSummon.cs +++ b/Items/Armor/Statigel/StatigelHeadSummon.cs @@ -16,6 +16,12 @@ namespace CalamityMod.Items.Armor.Statigel public class StatigelHeadSummon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float SummonKBBoost = 1.5f; + + // Set Bonus + public static float SetBonusSummonDamageBoost = 0.18f; + public static int SetBonusMinionSlotBoost = 1; public static int SlimeDamage = 18; public override void SetDefaults() @@ -34,15 +40,16 @@ namespace CalamityMod.Items.Armor.Statigel public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusSummonDamageBoost.ToPercent(), SetBonusMinionSlotBoost) + + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent()); var modPlayer = player.Calamity(); modPlayer.statigelSet = true; modPlayer.slimeGod = true; player.GetJumpState().Enable(); - Player.jumpHeight += 5; - player.jumpSpeedBoost += 0.6f; - player.GetDamage() += 0.18f; - player.maxMinions++; + Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15); + player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost; + player.GetDamage() += SetBonusSummonDamageBoost; + player.maxMinions += SetBonusMinionSlotBoost; if (player.whoAmI == Main.myPlayer) { var source = player.GetSource_Accessory(Item); @@ -64,10 +71,7 @@ namespace CalamityMod.Items.Armor.Statigel } } - public override void UpdateEquip(Player player) - { - player.GetKnockback() += 1.5f; - } + public override void UpdateEquip(Player player) => player.GetKnockback() += SummonKBBoost; public override void AddRecipes() { diff --git a/Items/Armor/Sulphurous/SulphurousBreastplate.cs b/Items/Armor/Sulphurous/SulphurousBreastplate.cs index bf6118be31..4ea81c11f6 100644 --- a/Items/Armor/Sulphurous/SulphurousBreastplate.cs +++ b/Items/Armor/Sulphurous/SulphurousBreastplate.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Placeables.Abyss; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Sulphurous @@ -11,6 +12,11 @@ namespace CalamityMod.Items.Armor.Sulphurous public class SulphurousBreastplate : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float RogueDamageBoost = 0.06f; + public static int RogueCritBoost = 4; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueCritBoost); + public override void SetDefaults() { Item.width = 24; @@ -22,8 +28,8 @@ namespace CalamityMod.Items.Armor.Sulphurous public override void UpdateEquip(Player player) { - player.GetDamage() += 0.06f; - player.GetCritChance() += 4; + player.GetDamage() += RogueDamageBoost; + player.GetCritChance() += RogueCritBoost; } public override void AddRecipes() diff --git a/Items/Armor/Sulphurous/SulphurousHelmet.cs b/Items/Armor/Sulphurous/SulphurousHelmet.cs index 5f7dfb45c1..b51341ccb6 100644 --- a/Items/Armor/Sulphurous/SulphurousHelmet.cs +++ b/Items/Armor/Sulphurous/SulphurousHelmet.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Sulphurous @@ -13,6 +14,15 @@ namespace CalamityMod.Items.Armor.Sulphurous public class SulphurousHelmet : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float RogueDamageBoost = 0.04f; + public static int RogueCritBoost = 2; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueCritBoost); + + // Set Bonus + public static float SetBonusRogueStealth = 0.65f; + public static int BubbleDamage = 20; + public override void SetDefaults() { Item.width = 26; @@ -29,19 +39,19 @@ namespace CalamityMod.Items.Armor.Sulphurous public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalizedValue("SetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth()); var modPlayer = player.Calamity(); modPlayer.sulphurSet = true; player.GetJumpState().Enable(); - modPlayer.rogueStealthMax += 0.65f; + modPlayer.rogueStealthMax += SetBonusRogueStealth; modPlayer.wearingRogueArmor = true; player.ignoreWater = true; } public override void UpdateEquip(Player player) { - player.GetDamage() += 0.04f; - player.GetCritChance() += 2; + player.GetDamage() += RogueDamageBoost; + player.GetCritChance() += RogueCritBoost; if (player.Calamity().countsAsAnyWet) player.gills = true; } diff --git a/Items/Armor/Sulphurous/SulphurousLeggings.cs b/Items/Armor/Sulphurous/SulphurousLeggings.cs index ebca7b0c38..3ecac0ae25 100644 --- a/Items/Armor/Sulphurous/SulphurousLeggings.cs +++ b/Items/Armor/Sulphurous/SulphurousLeggings.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Placeables.Abyss; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Sulphurous @@ -11,6 +12,11 @@ namespace CalamityMod.Items.Armor.Sulphurous public class SulphurousLeggings : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float MoveSpeedBoost = 0.1f; + public static float SubmergedMoveSpeedBoostBuff = 0.25f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent(), SubmergedMoveSpeedBoostBuff.ToPercent()); + public override void SetDefaults() { Item.width = 22; @@ -20,10 +26,7 @@ namespace CalamityMod.Items.Armor.Sulphurous Item.rare = ItemRarityID.Green; } - public override void UpdateEquip(Player player) - { - player.moveSpeed += player.Calamity().countsAsAnyWet ? 0.35f : 0.1f; - } + public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost + (player.Calamity().countsAsAnyWet ? SubmergedMoveSpeedBoostBuff : 0f); public override void AddRecipes() { diff --git a/Items/Armor/Wulfrum/WulfrumSet.cs b/Items/Armor/Wulfrum/WulfrumSet.cs index e2b18a90f5..37234b5ce7 100644 --- a/Items/Armor/Wulfrum/WulfrumSet.cs +++ b/Items/Armor/Wulfrum/WulfrumSet.cs @@ -35,7 +35,13 @@ namespace CalamityMod.Items.Armor.Wulfrum public static readonly SoundStyle SetBreakSound = new("CalamityMod/Sounds/Custom/AbilitySounds/WulfrumBastionBreak"); public static readonly SoundStyle SetBreakSoundSafe = new("CalamityMod/Sounds/Custom/AbilitySounds/WulfrumBastionBreakSafely"); - public static int MinionSlotBoost = 1; + public static float SummonDamageBoost = 0.05f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent()); + + // Set Bonus + public static int SetBonusMinionSlotBoost = 1; + public static int BastionDefenseBoost = 13; + public static float BastionDRBoost = 0.1f; public static int BastionBuildTime = (int)(0.55f * 60); public static int BastionTime = 30 * 60; public static int TimeLostPerHit = 2 * 60; @@ -132,8 +138,8 @@ namespace CalamityMod.Items.Armor.Wulfrum armorPlayer.wulfrumSet = true; - player.setBonus = this.GetLocalization("SetBonus").Format(MinionSlotBoost); //The cooler part of the set bonus happens in modifytooltips because I can't recolor it otherwise. Madge - player.maxMinions += MinionSlotBoost; + player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMinionSlotBoost); //The cooler part of the set bonus happens in modifytooltips because I can't recolor it otherwise. Madge + player.maxMinions += SetBonusMinionSlotBoost; if (PowerModeEngaged(player, out var cd)) { if (cd.timeLeft == BastionCooldown + BastionTime) @@ -142,8 +148,8 @@ namespace CalamityMod.Items.Armor.Wulfrum } //Stats - player.statDefense += 13; - player.endurance += 0.1f; + player.statDefense += BastionDefenseBoost; + player.endurance += BastionDRBoost; //Can't account for previous fullbody transformations but at this point, whatever bool transformed = player.Transformation().Type == ItemType(); @@ -253,10 +259,7 @@ namespace CalamityMod.Items.Armor.Wulfrum } public override void ModifyTooltips(List tooltips) => ModifySetTooltips(this, tooltips); - public override void UpdateEquip(Player player) - { - player.GetDamage() += 0.05f; - } + public override void UpdateEquip(Player player) => player.GetDamage() += SummonDamageBoost; public override void AddRecipes() { @@ -273,6 +276,10 @@ namespace CalamityMod.Items.Armor.Wulfrum public class WulfrumJacket : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float SummonDamageBoost = 0.05f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent()); + public override void SetStaticDefaults() { if (!Main.dedServ) @@ -294,10 +301,7 @@ namespace CalamityMod.Items.Armor.Wulfrum public override void ModifyTooltips(List tooltips) => WulfrumHat.ModifySetTooltips(this, tooltips); - public override void UpdateEquip(Player player) - { - player.GetDamage() += 0.05f; - } + public override void UpdateEquip(Player player) => player.GetDamage() += SummonDamageBoost; public override void AddRecipes() { @@ -314,6 +318,10 @@ namespace CalamityMod.Items.Armor.Wulfrum public class WulfrumOveralls : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Armor.PreHardmode"; + + public static float MoveSpeedBoost = 0.05f; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent()); + public override void SetDefaults() { Item.width = 18; @@ -329,10 +337,8 @@ namespace CalamityMod.Items.Armor.Wulfrum } } public override void ModifyTooltips(List tooltips) => WulfrumHat.ModifySetTooltips(this, tooltips); - public override void UpdateEquip(Player player) - { - player.moveSpeed += 0.05f; - } + + public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost; public override void AddRecipes() { @@ -347,10 +353,6 @@ namespace CalamityMod.Items.Armor.Wulfrum public class WulfrumArmorPlayer : ModPlayer { - public static int BastionShootDamage = 10; - public static float BastionShootSpeed = 18f; - public static int BastionShootTime = 10; - public bool wulfrumSet = false; public override void ResetEffects() diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson index 576ca82fcf..48930db5d6 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson @@ -1,71 +1,71 @@ AerospecBreastplate: { DisplayName: Aerospec Breastplate - Tooltip: 3% increased damage and critical strike chance + Tooltip: "{0}% increased damage and critical strike chance" CommonSetBonus: ''' - Taking over 25 damage in one hit will cause a spread of homing feathers to fall + Taking over {0} damage in one hit will cause a spread of homing feathers to fall Allows you to fall more quickly and disables fall damage ''' } AerospecHeadMagic: { DisplayName: Aerospec Hat - Tooltip: 10% increased magic damage and +30 max mana + Tooltip: "{0}% increased magic damage and +{1} max mana" SetBonus: ''' - 8% reduced mana cost - 5% increased movement speed and magic critical strike chance + {0}% reduced mana cost + {1}% increased movement speed and magic critical strike chance ''' } AerospecHeadRogue: { DisplayName: Aerospec Headgear - Tooltip: 10% increased rogue damage and 5% increased movement speed + Tooltip: "{0}% increased rogue damage and {1}% increased movement speed" SetBonus: ''' - 5% increased movement speed and rogue critical strike chance - +80 maximum stealth + {0}% increased movement speed and rogue critical strike chance + +{1} maximum stealth ''' } AerospecHeadMelee: { DisplayName: Aerospec Helm - Tooltip: 10% increased melee damage + Tooltip: "{0}% increased melee damage" SetBonus: ''' - 5% increased movement speed and melee critical strike chance + {0}% increased movement speed and melee critical strike chance Enemies are more likely to target you ''' } AerospecHeadSummon: { DisplayName: Aerospec Helmet - Tooltip: 10% increased summon damage and 5% increased movement speed + Tooltip: "{0}% increased summon damage and {1}% increased movement speed" SetBonus: ''' - 11% increased summon damage and +1 max minion + {0}% increased summon damage and +{1} max minion Summons a valkyrie to protect you ''' } AerospecHeadRanged: { DisplayName: Aerospec Hood - Tooltip: 10% increased ranged damage - SetBonus: 5% increased movement speed and ranged critical strike chance + Tooltip: "{0}% increased ranged damage" + SetBonus: "{0}% increased movement speed and ranged critical strike chance" } AerospecLeggings: { DisplayName: Aerospec Leggings - Tooltip: 12% increased movement speed + Tooltip: "{0}% increased movement speed" } DesertProwlerHat: { DisplayName: Desert Prowler Hat - Tooltip: 4% increased rogue critical strike chance + Tooltip: "{0}% increased rogue critical strike chance" SetBonus: ''' - 5% increased rogue damage - +50 maximum stealth + {0}% increased rogue damage + +{1} maximum stealth ''' AbilityBrief: Sandsmoke Bomb - Double tap {0} to shroud yourself in a small cloud of sand AbilityDescription: @@ -79,17 +79,17 @@ DesertProwlerHat: { DesertProwlerPants: { DisplayName: Desert Prowler Pants - Tooltip: 10% increased movement speed and immunity to the Mighty Wind debuff + Tooltip: "{0}% increased movement speed and immunity to the Mighty Wind debuff" } DesertProwlerShirt: { DisplayName: Desert Prowler Shirt - Tooltip: 5% increased rogue critical strike chance + Tooltip: "{0}% increased rogue critical strike chance" } MarniteArchitectHeadgear: { DisplayName: Marnite Architect Headgear - Tooltip: Increases block placement & tool range by 5 + Tooltip: Increases block placement & tool range by {0} AbilityBrief: Marnite Lift - You can summon a lift under your feet to reach higher up AbilityDescription: ''' @@ -100,25 +100,25 @@ MarniteArchitectHeadgear: { MarniteArchitectToga: { DisplayName: Marnite Architect Toga - Tooltip: Increases block & wall placement speed by 50% + Tooltip: Increases block & wall placement speed by {0}% } SnowRuffianChestplate: { DisplayName: Snow Ruffian Chestplate - Tooltip: 4% increased ranged critical strike chance + Tooltip: "{0}% increased ranged critical strike chance" } SnowRuffianGreaves: { DisplayName: Snow Ruffian Greaves - Tooltip: 10% increased movement speed + Tooltip: "{0}% increased movement speed" } SnowRuffianMask: { DisplayName: Snow Ruffian Mask - Tooltip: 2% increased ranged damage + Tooltip: "{0}% increased ranged damage" SetBonus: ''' - 4% increased ranged damage and critical strike chance + {0}% increased ranged damage and critical strike chance You can glide to negate fall damage Ranged critical strikes frostburn enemies ''' @@ -126,26 +126,26 @@ SnowRuffianMask: { StatigelArmor: { DisplayName: Statigel Armor - Tooltip: 5% increased critical strike chance + Tooltip: "{0}% increased critical strike chance" CommonSetBonus: ''' - When you take over 100 damage in one hit you become immune to damage for an extended period of time + When you take over {0} damage in one hit you become immune to damage for an extended period of time Grants an extra jump and increased jump height - 12% increased jump speed + {1}% increased jump speed ''' } StatigelGreaves: { DisplayName: Statigel Greaves - Tooltip: 5% increased damage and movement speed + Tooltip: "{0}% increased damage and movement speed" } StatigelHeadMagic: { DisplayName: Statigel Cap Tooltip: ''' - 10% increased magic damage and 10% reduced mana cost - 7% increased magic critical strike chance and +40 max mana + {0}% increased magic damage and {1}% reduced mana cost + {2}% increased magic critical strike chance and +{3} max mana ''' } @@ -153,8 +153,8 @@ StatigelHeadMelee: { DisplayName: Statigel Helm Tooltip: ''' - 10% increased melee damage and melee speed - 7% increased melee critical strike chance + {0}% increased melee damage and melee speed + {1}% increased melee critical strike chance ''' SetBonus: Enemies are more likely to target you } @@ -163,8 +163,8 @@ StatigelHeadRanged: { DisplayName: Statigel Headgear Tooltip: ''' - 10% increased ranged damage - 7% increased ranged critical strike chance + {0}% increased ranged damage + {1}% increased ranged critical strike chance ''' } @@ -172,10 +172,10 @@ StatigelHeadRogue: { DisplayName: Statigel Mask Tooltip: ''' - 10% increased rogue damage - 7% increased rogue critical strike chance and 5% increased movement speed + {0}% increased rogue damage + {1}% increased rogue critical strike chance and {2}% increased movement speed ''' - SetBonus: +90 maximum stealth + SetBonus: +{0} maximum stealth } StatigelHeadSummon: { @@ -183,27 +183,27 @@ StatigelHeadSummon: { Tooltip: Increased minion knockback SetBonus: ''' - 18% increased summon damage and +1 max minion + {0}% increased summon damage and +{1} max minion Summons a mini paladin to fight for you, the type depends on what world evil you have ''' } SulphurousBreastplate: { DisplayName: Sulphurous Breastplate - Tooltip: 6% increased rogue damage and 4% increased rogue critical strike chance + Tooltip: "{0}% increased rogue damage and {1}% increased rogue critical strike chance" } SulphurousHelmet: { DisplayName: Sulphurous Helmet Tooltip: ''' - 4% increased rogue damage - 2% increased rogue critical strike chance + {0}% increased rogue damage + {1}% increased rogue critical strike chance Grants underwater breathing ''' SetBonus: ''' - +65 maximum stealth + +{0} maximum stealth Attacking and being attacked by enemies inflicts poison Grants an additional jump that summons a sulphurous bubble Provides increased underwater mobility and reduces the severity of the sulphuric waters @@ -214,8 +214,8 @@ SulphurousLeggings: { DisplayName: Sulphurous Leggings Tooltip: ''' - Movement speed increased by 10% - Movement speed increased an additional 25% while submerged in liquid + Movement speed increased by {0}% + Movement speed increased an additional {1}% while submerged in liquid ''' } @@ -300,10 +300,10 @@ WulfrumHat: { DisplayName: Wulfrum Hat & Goggles Tooltip: ''' - 5% increased summon damage + {0}% increased summon damage Comes equipped with hair extensions ''' - SetBonus: +1 max minion + SetBonus: +{0} max minion AbilityBrief: Wulfrum Bastion - Double tap {0} while dismounted to equip wulfrum power armor AbilityDescription: ''' @@ -315,10 +315,10 @@ WulfrumHat: { WulfrumJacket: { DisplayName: Wulfrum Jacket - Tooltip: 5% increased summon damage + Tooltip: "{0}% increased summon damage" } WulfrumOveralls: { DisplayName: Wulfrum Overalls - Tooltip: Movement speed increased by 5% + Tooltip: "{0}% increased movement speed" } diff --git a/Utilities/LocalizationUtils.cs b/Utilities/LocalizationUtils.cs index 07d6a8c75f..3c579363a5 100644 --- a/Utilities/LocalizationUtils.cs +++ b/Utilities/LocalizationUtils.cs @@ -89,6 +89,7 @@ namespace CalamityMod public static string ToRegenPerSecond(this int regen) => Round(regen * 0.5f, "N2"); public static string ToJumpSpeedPercent(this float boost) => Round(boost * 20f, "N2"); + public static string ToStealth(this float stealth) => Round(stealth * 100f, "N0"); public static string ToPercent(this float percent, string precision = "N1") => Round(percent * 100f, precision); public static string ToPercent(this double percent, string precision = "N1") => Round(percent * 100D, precision); diff --git a/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index 3940899517..d65a255a8d 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -9,6 +9,7 @@ using CalamityMod.Enums; using CalamityMod.Events; using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor; +using CalamityMod.Items.Armor.Statigel; using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Systems.Collections; using CalamityMod.World; @@ -438,8 +439,8 @@ namespace CalamityMod int extraIFrames = 0; if (modPlayer.godSlayerThrowing && hurtInfo.Damage > 80) extraIFrames += 30; - if (modPlayer.statigelSet && hurtInfo.Damage > 100) - extraIFrames += 30; + if (modPlayer.statigelSet && hurtInfo.Damage > StatigelArmor.SetBonusHurtDamageThreshold) + extraIFrames += StatigelArmor.SetBonusIFrameExtension; // Deific Amulet provides 10 to 40 bonus immunity frames when you get hit which scale with your missing health. // If you only take 1 damage, you get 5 iframes. From 5b002be0a3255aa18af4c25b034e1179783fd92c Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 26 Jul 2025 06:18:30 +0700 Subject: [PATCH 36/36] placeable loc file shuffling --- .../Mods.CalamityMod.Items.Placeables.hjson | 280 +++++++++--------- 1 file changed, 142 insertions(+), 138 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 3c53bad4f1..d2bbb5520a 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -82,6 +82,7 @@ PlaguebringerBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" PlagueChargerBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" PlagueshellBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" PrismBackBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" +ProbesnoutBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" ProfanedEnergyBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" RadiatorBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" ReaperSharkBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" @@ -96,6 +97,7 @@ ScryllarBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" SeaFloatyBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" SeaMinnowBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" SeaSerpentBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" +SharkoonBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" ShockstormShuttleBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" ShroombleBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" SightseerColliderBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}" @@ -892,6 +894,11 @@ KelpTorch: { Tooltip: Can be placed in water } +OldDukeMonolith: { + DisplayName: Elden Diorama + Tooltip: "" +} + OtonilouStatue: { DisplayName: Otonilou Memorial Tooltip: "" @@ -3302,6 +3309,16 @@ VoidWorkBench: { Tooltip: "" } +ChargedWulfrumEnergyBarrier: { + DisplayName: Charged Wulfrum Energy Barrier + Tooltip: "" +} + +ChargedWulfrumWallMountedBulb: { + DisplayName: Charged Wulfrum Wall Mounted Bulb + Tooltip: "" +} + WulfrumBathtub: { DisplayName: Wulfrum Bathtub Tooltip: "" @@ -3347,6 +3364,11 @@ WulfrumDresser: { Tooltip: "" } +WulfrumEnergyBarrier: { + DisplayName: Wulfrum Energy Barrier + Tooltip: "" +} + WulfrumLamp: { DisplayName: Wulfrum Lamp Tooltip: "" @@ -3357,16 +3379,36 @@ WulfrumLantern: { Tooltip: "" } +WulfrumPanels: { + DisplayName: Wulfrum Panels + Tooltip: "" +} + WulfrumPiano: { DisplayName: Wulfrum Piano Tooltip: "" } +WulfrumPlatform: { + DisplayName: Wulfrum Platform + Tooltip: "" +} + WulfrumPlating: { DisplayName: Wulfrum Plating Tooltip: "" } +WulfrumSheets: { + DisplayName: Wulfrum Sheets + Tooltip: "" +} + +WulfrumSiding: { + DisplayName: Wulfrum Siding + Tooltip: "" +} + WulfrumSink: { DisplayName: Wulfrum Sink Tooltip: Counts as a water source @@ -3387,6 +3429,11 @@ WulfrumToilet: { Tooltip: "" } +WulfrumWallMountedBulb: { + DisplayName: Wulfrum Wall Mounted Bulb + Tooltip: "" +} + WulfrumWorkBench: { DisplayName: Wulfrum Work Bench Tooltip: "" @@ -3447,6 +3494,16 @@ AnodizedWulfrumLantern: { Tooltip: "" } +AnodizedWulfrumPanels: { + DisplayName: Anodized Wulfrum Panels + Tooltip: "" +} + +AnodizedWulfrumPlatform: { + DisplayName: Anodized Wulfrum Platform + Tooltip: "" +} + AnodizedWulfrumSink: { DisplayName: Anodized Wulfrum Sink Tooltip: Counts as a water source @@ -3467,6 +3524,11 @@ AnodizedWulfrumTable: { Tooltip: "" } +AnodizedWulfrumTrim: { + DisplayName: Anodized Wulfrum Trim + Tooltip: "" +} + AnodizedWulfrumToilet: { DisplayName: Anodized Wulfrum Toilet Tooltip: "" @@ -3477,6 +3539,11 @@ AnodizedWulfrumWorkBench: { Tooltip: "" } +RoundedAnodizedWulfrumPanels: { + DisplayName: Rounded Anodized Wulfrum Panels + Tooltip: "" +} + HardenedAstralSand: { DisplayName: Hardened Astral Sand Tooltip: "" @@ -3696,6 +3763,11 @@ Driftwood: { Tooltip: "" } +Dunesand: { + DisplayName: Dunesand + Tooltip: "" +} + Navystone: { DisplayName: Navystone Tooltip: "" @@ -3783,6 +3855,11 @@ VolcanicSand: { // End of Sunken Sea +Dreadstone: { + DisplayName: Dreadstone + Tooltip: "" +} + UelibloomBrick: { DisplayName: Uelibloom Brick Tooltip: "" @@ -3813,6 +3890,11 @@ AerialiteBrickWall: { Tooltip: "" } +AncientSmoothNavystoneWall: { + DisplayName: Ancient Smooth Navystone Wall + Tooltip: "" +} + AshenSlabWall: { DisplayName: Ashen Slab Wall Tooltip: "" @@ -3932,6 +4014,16 @@ RustedPlatingWall: { // End of Draedon +AnodizedWulfrumTrimWall: { + DisplayName: Anodized Wulfrum Trim Wall + Tooltip: "" +} + +ChargedWulfrumEnergyBarrierWall: { + DisplayName: Charged Wulfrum Energy Barrier Wall + Tooltip: "" +} + DriftwoodWall: { DisplayName: Driftwood Wall Tooltip: "" @@ -3942,6 +4034,11 @@ ElumplateWall: { Tooltip: "" } +EutrophicGlassWall: { + DisplayName: Eutrophic Glass Wall + Tooltip: "" +} + EutrophicSandWall: { DisplayName: Unsafe Eutrophic Sand Wall Tooltip: "" @@ -3982,6 +4079,11 @@ HavocplateWall: { Tooltip: "" } +LimestoneWall: { + DisplayName: Limestone Wall + Tooltip: "" +} + NavyplateWall: { DisplayName: Navyplate Wall Tooltip: "" @@ -4047,6 +4149,16 @@ PyreMantleWall: { Tooltip: "" } +RoundedAnodizedWulfrumPanelWall: { + DisplayName: Rounded Anodized Wulfrum Panel Wall + Tooltip: "" +} + +RunestoneWall: { + DisplayName: Runestone Wall + Tooltip: "" +} + RunicProfanedBrickWall: { DisplayName: Runic Profaned Brick Wall Tooltip: "" @@ -4137,11 +4249,41 @@ VoidstoneWall: { Tooltip: "" } +WulfrumComplexPanelWall: { + DisplayName: Wulfrum Complex Panel Wall + Tooltip: "" +} + +WulfrumEnergyBarrierWall: { + DisplayName: Wulfrum Energy Barrier Wall + Tooltip: "" +} + +WulfrumPanelWall: { + DisplayName: Wulfrum Panel Wall + Tooltip: "" +} + +WulfrumPillar: { + DisplayName: Wulfrum Pillar + Tooltip: "" +} + WulfrumPlatingWall: { DisplayName: Wulfrum Plating Wall Tooltip: "" } +WulfrumSheetWall: { + DisplayName: Wulfrum Sheet Wall + Tooltip: "" +} + +WulfrumSidingWall: { + DisplayName: Wulfrum Siding Wall + Tooltip: "" +} + FireTurret: { DisplayName: Fire Turret Tooltip: @@ -4381,141 +4523,3 @@ MiniAgedFloodlightItem: { DisplayName: Mini Aged Floodlight Tooltip: "" } - -ProbesnoutBanner.DisplayName: Probesnout Banner -SharkoonBanner.DisplayName: Sharkoon Banner - -LimestoneWall: { - DisplayName: Limestone Wall - Tooltip: "" -} - -RunestoneWall: { - DisplayName: Runestone Wall - Tooltip: "" -} - -WulfrumEnergyBarrier: { - DisplayName: Wulfrum Energy Barrier - Tooltip: "" -} - -WulfrumPanels: { - DisplayName: Wulfrum Panels - Tooltip: "" -} - -ChargedWulfrumEnergyBarrier: { - DisplayName: Charged Wulfrum Energy Barrier - Tooltip: "" -} - -WulfrumEnergyBarrierWall: { - DisplayName: Wulfrum Energy Barrier Wall - Tooltip: "" -} - -ChargedWulfrumEnergyBarrierWall: { - DisplayName: Charged Wulfrum Energy Barrier Wall - Tooltip: "" -} - -WulfrumPlatform: { - DisplayName: Wulfrum Platform - Tooltip: "" -} - -WulfrumSheets: { - DisplayName: Wulfrum Sheets - Tooltip: "" -} - -WulfrumSiding: { - DisplayName: Wulfrum Siding - Tooltip: "" -} - -WulfrumPillar: { - DisplayName: Wulfrum Pillar - Tooltip: "" -} - -WulfrumComplexPanelWall: { - DisplayName: Wulfrum Complex Panel Wall - Tooltip: "" -} - -AnodizedWulfrumPlatform: { - DisplayName: Anodized Wulfrum Platform - Tooltip: "" -} - -AnodizedWulfrumTrim: { - DisplayName: Anodized Wulfrum Trim - Tooltip: "" -} - -RoundedAnodizedWulfrumPanels: { - DisplayName: Rounded Anodized Wulfrum Panels - Tooltip: "" -} - -AnodizedWulfrumTrimWall: { - DisplayName: Anodized Wulfrum Trim Wall - Tooltip: "" -} - -RoundedAnodizedWulfrumPanelWall: { - DisplayName: Rounded Anodized Wulfrum Panel Wall - Tooltip: "" -} - -AnodizedWulfrumPanels: { - DisplayName: Anodized Wulfrum Panels - Tooltip: "" -} - -WulfrumPanelWall: { - DisplayName: Wulfrum Panel Wall - Tooltip: "" -} - -ChargedWulfrumWallMountedBulb: { - DisplayName: Charged Wulfrum Wall Mounted Bulb - Tooltip: "" -} - -WulfrumWallMountedBulb: { - DisplayName: Wulfrum Wall Mounted Bulb - Tooltip: "" -} - -WulfrumSheetWall: { - DisplayName: Wulfrum Sheet Wall - Tooltip: "" -} - -WulfrumSidingWall: { - DisplayName: Wulfrum Siding Wall - Tooltip: "" -} - -Dunesand: { - DisplayName: Dunesand - Tooltip: "" -} - -EutrophicGlassWall: { - DisplayName: Eutrophic Glass Wall - Tooltip: "" -} - -Dreadstone: { - DisplayName: Dreadstone - Tooltip: "" -} - -OldDukeMonolith: { - DisplayName: Elden Diorama - Tooltip: "" -}