From 859f4e211934ba640bfbfbf95202d56e85d7bc50 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 09:53:17 -0500 Subject: [PATCH 01/23] renamed dragon egg for clarity --- Items/SummonItems/ChickenEgg.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/SummonItems/ChickenEgg.cs b/Items/SummonItems/ChickenEgg.cs index e462c37eab..370a0b2e92 100644 --- a/Items/SummonItems/ChickenEgg.cs +++ b/Items/SummonItems/ChickenEgg.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.SummonItems { public override void SetStaticDefaults() { - DisplayName.SetDefault("Dragon Egg"); + DisplayName.SetDefault("Jungle Dragon Egg"); Tooltip.SetDefault("Summons the loyal guardian of the tyrant king\n" + "It yearns for the jungle\n" + "Not consumable"); From 59a9f7854b256b2b0594a6bb4f0b27469c432127 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 09:58:36 -0500 Subject: [PATCH 02/23] ultrabright torch recipe --- Utilities/CalamityRecipes.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index bd581c0318..f1ba685591 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -63,6 +63,13 @@ namespace CalamityMod r.SetResult(ItemID.BlackLens); r.AddRecipe(); + // Ultrabright Torch + r = GetNewRecipe(); + r.AddIngredient(ItemID.Torch, 10); + r.AddIngredient(ModContent.ItemType()); + r.SetResult(ItemID.UltrabrightTorch, 10); + r.AddRecipe(); + // Fallen Star r = GetNewRecipe(); r.AddIngredient(ModContent.ItemType(), 5); From 076cdbc21d9984444171db25d9413d47345b113e Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 10:15:55 -0500 Subject: [PATCH 03/23] red devil now drops demonic bone ash --- NPCs/CalamityGlobalNPCLoot.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 59db4f5dba..eb06116635 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1132,6 +1132,7 @@ namespace CalamityMod.NPCs break; case NPCID.RedDevil: + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 2 : 3); DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 1f : 0.5f); break; From c273f17eec36c34968be466495e7dcbd0484cbce Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:20:17 -0500 Subject: [PATCH 04/23] bound npcs no longer take damage --- NPCs/CalamityGlobalNPC.cs | 12 ++++++++++++ NPCs/CalamityGlobalTownNPC.cs | 9 +++++++++ 2 files changed, 21 insertions(+) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index a353f675e9..49eb5134dd 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -686,6 +686,16 @@ namespace CalamityMod.NPCs //NPCID.WanderingEyeFish, //NPCID.ZombieMerman, }; + + public static List BoundNPCIDs = new List + { + NPCID.BoundGoblin, + NPCID.BoundWizard, + NPCID.BoundMechanic, + NPCID.SleepingAngler, + NPCID.BartenderUnconscious, + //NPCID.GolferRescue + }; #endregion #region Instance Per Entity @@ -1098,6 +1108,8 @@ namespace CalamityMod.NPCs RevDeathStatChanges(npc, mod); OtherStatChanges(npc); + + CalamityGlobalTownNPC.BoundNPCSafety(mod, npc); } #endregion diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 719a9a0067..03a7a39fa5 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1148,6 +1148,15 @@ namespace CalamityMod.NPCs #endregion #region NPC Stat Changes + public static void BoundNPCSafety(Mod mod, NPC npc) + { + // Make Bound Town NPCs take no damage + if (CalamityGlobalNPC.BoundNPCIDs.Contains(npc.type)) + { + npc.dontTakeDamageFromHostiles = true; + } + } + public static void MakeTownNPCsTakeMoreDamage(NPC npc, Projectile projectile, Mod mod, ref int damage) { if (npc.townNPC && projectile.hostile) From 6dd7c455859ec963f66448806acae87e8118730d Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:23:34 -0500 Subject: [PATCH 05/23] fixed vivid clarity hurting friendly npcs --- Projectiles/Magic/VividLaser2.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Projectiles/Magic/VividLaser2.cs b/Projectiles/Magic/VividLaser2.cs index f32d60db75..492b3dc1d8 100644 --- a/Projectiles/Magic/VividLaser2.cs +++ b/Projectiles/Magic/VividLaser2.cs @@ -72,7 +72,14 @@ namespace CalamityMod.Projectiles.Magic } // Cannot deal damage for the first several frames of existence. - public override bool? CanHitNPC(NPC target) => projectile.timeLeft < 110; + public override bool? CanHitNPC(NPC target) + { + if (projectile.timeLeft >= 110) + { + return false; + } + return null; + } public override bool CanHitPvp(Player target) => projectile.timeLeft < 110; } From 6eb2f0b389c30049ff36d6ee40ff068152d6e3ae Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:26:03 -0500 Subject: [PATCH 06/23] fixed brimstone geyser not dealing damage? --- Projectiles/Environment/BrimstoneGeyser.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Projectiles/Environment/BrimstoneGeyser.cs b/Projectiles/Environment/BrimstoneGeyser.cs index f7f54e628d..030cb71862 100644 --- a/Projectiles/Environment/BrimstoneGeyser.cs +++ b/Projectiles/Environment/BrimstoneGeyser.cs @@ -166,8 +166,6 @@ namespace CalamityMod.Projectiles.Environment } } - public override bool CanDamage() => false; - public override void OnHitPlayer(Player target, int damage, bool crit) { target.AddBuff(ModContent.BuffType(), 180); From ad9d9d129568fbd15e52fa67729a6ca027ae7f4e Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:27:05 -0500 Subject: [PATCH 07/23] ultima bow hitbox fix --- Projectiles/Ranged/UltimaBowProjectile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Ranged/UltimaBowProjectile.cs b/Projectiles/Ranged/UltimaBowProjectile.cs index 22c7f00099..a8bdeb821b 100644 --- a/Projectiles/Ranged/UltimaBowProjectile.cs +++ b/Projectiles/Ranged/UltimaBowProjectile.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { projectile.width = 82; - projectile.height = 144; + projectile.height = 114; projectile.friendly = true; projectile.penetrate = -1; projectile.tileCollide = false; From bd9e3606380a790de5bec3b5d44aa9087f51c40f Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:31:43 -0500 Subject: [PATCH 08/23] Revert "ultrabright torch recipe" This reverts commit 59a9f7854b256b2b0594a6bb4f0b27469c432127. --- Utilities/CalamityRecipes.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index f1ba685591..bd581c0318 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -63,13 +63,6 @@ namespace CalamityMod r.SetResult(ItemID.BlackLens); r.AddRecipe(); - // Ultrabright Torch - r = GetNewRecipe(); - r.AddIngredient(ItemID.Torch, 10); - r.AddIngredient(ModContent.ItemType()); - r.SetResult(ItemID.UltrabrightTorch, 10); - r.AddRecipe(); - // Fallen Star r = GetNewRecipe(); r.AddIngredient(ModContent.ItemType(), 5); From bdd6d0f4279b481b6395b714785f099ae2f5a898 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:31:49 -0500 Subject: [PATCH 09/23] Revert "renamed dragon egg for clarity" This reverts commit 859f4e211934ba640bfbfbf95202d56e85d7bc50. --- Items/SummonItems/ChickenEgg.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/SummonItems/ChickenEgg.cs b/Items/SummonItems/ChickenEgg.cs index 370a0b2e92..e462c37eab 100644 --- a/Items/SummonItems/ChickenEgg.cs +++ b/Items/SummonItems/ChickenEgg.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.SummonItems { public override void SetStaticDefaults() { - DisplayName.SetDefault("Jungle Dragon Egg"); + DisplayName.SetDefault("Dragon Egg"); Tooltip.SetDefault("Summons the loyal guardian of the tyrant king\n" + "It yearns for the jungle\n" + "Not consumable"); From 5460f8c8929fcafba2da99acfed1be192dd82937 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:35:38 -0500 Subject: [PATCH 10/23] calamity accessory now ignores town npcs --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 6822e41342..83e04eca78 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -428,7 +428,7 @@ namespace CalamityMod.CalPlayer for (int i = 0; i < Main.maxNPCs; i++) { NPC target = Main.npc[i]; - if (!target.active || !target.Hitbox.Intersects(sigilHitbox) || target.immortal || target.dontTakeDamage) + if (!target.active || !target.Hitbox.Intersects(sigilHitbox) || target.immortal || target.dontTakeDamage || target.townNPC) continue; // Brighten the sigil because it is dealing damage. This can only happen once per hit event. From 182bc31483c749f27c9fa681acf644fb73d34c32 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:37:13 -0500 Subject: [PATCH 11/23] slime god lore palette update --- Items/LoreItems/KnowledgeSlimeGod.png | Bin 410 -> 410 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Items/LoreItems/KnowledgeSlimeGod.png b/Items/LoreItems/KnowledgeSlimeGod.png index 5dcc068d81708189194e95ab21eac07822cd6356..a8536f1d61e6811d978bed4c044d1b79628251f3 100644 GIT binary patch delta 292 zcmV+<0o(qX1DXSnNDB_b000id0mpBsWRX)lf4`$QMEu4(Fdyb}`nfo5_J6PoW~DL` z?Hdqy)zk&ncVPN@FrQ{F#xNM?| delta 292 zcmV+<0o(qX1DXSnNDB)S000XU0RWnu7?D#ue`By4SbXQP&tN{x<@9rL+U);e7tBg! zB-%G1@PBbE#7AX!z Date: Thu, 11 Nov 2021 12:04:48 -0500 Subject: [PATCH 12/23] flower weapon fixes --- Items/Weapons/Summon/FlowersOfMortality.cs | 2 +- Items/Weapons/Summon/WitherBlossomsStaff.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Summon/FlowersOfMortality.cs b/Items/Weapons/Summon/FlowersOfMortality.cs index 7b1fc3a7e9..9a558d4cf5 100644 --- a/Items/Weapons/Summon/FlowersOfMortality.cs +++ b/Items/Weapons/Summon/FlowersOfMortality.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Summon item.shootSpeed = 10f; } - public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] < 3; //If you already have all 3, no need to resummon + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] < 5; //If you already have all 5, no need to resummon public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Summon/WitherBlossomsStaff.cs b/Items/Weapons/Summon/WitherBlossomsStaff.cs index 2e541f0170..5c418711fd 100644 --- a/Items/Weapons/Summon/WitherBlossomsStaff.cs +++ b/Items/Weapons/Summon/WitherBlossomsStaff.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Summon item.summon = true; } - public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] < 3; //If you already have all 3, no need to resummon + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] < 4; //If you already have all 4, no need to resummon public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { From c8b437f2e0adb1137cfe7ce68697e73737336054 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 12:20:42 -0500 Subject: [PATCH 13/23] fixed halibut cannon in boss checklist --- ModSupport/WeakReferenceSupport.cs | 4 +-- NPCs/Calamitas/CalamitasRun3.cs | 58 +++++++++++++++--------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 444599338e..75c0823fec 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -609,8 +609,8 @@ namespace CalamityMod BossDifficulty.TryGetValue("AdultEidolonWyrm", out float order); int type = NPCType(); int summon = ItemID.RodofDiscord; - List loot = new List() { ItemType(), ItemType(), ItemID.Ectoplasm, ItemType(), ItemType() }; - List collection = new List() { ItemType() }; + List loot = new List() { ItemType(), ItemType(), ItemID.Ectoplasm, ItemType(), ItemType(), ItemType() }; + List collection = new List() { }; string instructions = $"While in the Abyss, use an item that inflicts Chaos State"; string despawn = CalamityUtils.ColorMessage("...", new Color(0x7F, 0xFF, 0xD4)); AddBoss(bossChecklist, calamity, "Adult Eidolon Wyrm", order, type, DownedAdultEidolonWyrm, summon, loot, collection, instructions, despawn); diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index 2d5f4ac82f..42da6c8aaa 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -101,50 +101,50 @@ namespace CalamityMod.NPCs.Calamitas if (npc.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; - Texture2D texture2D15 = Main.npcTexture[npc.type]; - Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); - Color color36 = Color.White; - float amount9 = 0.5f; - int num153 = 7; + Texture2D texture = Main.npcTexture[npc.type]; + Vector2 origin = new Vector2((float)(texture.Width / 2), (float)(texture.Height / Main.npcFrameCount[npc.type] / 2)); + Color white = Color.White; + float colorLerpAmt = 0.5f; + int afterimageAmt = 7; if (CalamityConfig.Instance.Afterimages) { - for (int num155 = 1; num155 < num153; num155 += 2) + for (int i = 1; i < afterimageAmt; i += 2) { - Color color38 = lightColor; - color38 = Color.Lerp(color38, color36, amount9); - color38 = npc.GetAlpha(color38); - color38 *= (float)(num153 - num155) / 15f; - Vector2 vector41 = npc.oldPos[num155] + new Vector2((float)npc.width, (float)npc.height) / 2f - Main.screenPosition; - vector41 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; - vector41 += vector11 * npc.scale + new Vector2(0f, npc.gfxOffY); - spriteBatch.Draw(texture2D15, vector41, npc.frame, color38, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + Color color1 = lightColor; + color1 = Color.Lerp(color1, white, colorLerpAmt); + color1 = npc.GetAlpha(color1); + color1 *= (float)(afterimageAmt - i) / 15f; + Vector2 offset = npc.oldPos[i] + new Vector2((float)npc.width, (float)npc.height) / 2f - Main.screenPosition; + offset -= new Vector2((float)texture.Width, (float)(texture.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; + offset += origin * npc.scale + new Vector2(0f, npc.gfxOffY); + spriteBatch.Draw(texture, offset, npc.frame, color1, npc.rotation, origin, npc.scale, spriteEffects, 0f); } } - Vector2 vector43 = npc.Center - Main.screenPosition; - vector43 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; - vector43 += vector11 * npc.scale + new Vector2(0f, npc.gfxOffY); - spriteBatch.Draw(texture2D15, vector43, npc.frame, npc.GetAlpha(lightColor), npc.rotation, vector11, npc.scale, spriteEffects, 0f); + Vector2 npcOffset = npc.Center - Main.screenPosition; + npcOffset -= new Vector2((float)texture.Width, (float)(texture.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; + npcOffset += origin * npc.scale + new Vector2(0f, npc.gfxOffY); + spriteBatch.Draw(texture, npcOffset, npc.frame, npc.GetAlpha(lightColor), npc.rotation, origin, npc.scale, spriteEffects, 0f); - texture2D15 = ModContent.GetTexture("CalamityMod/NPCs/Calamitas/CalamitasRun3Glow"); - Color color37 = Color.Lerp(Color.White, Color.Red, 0.5f); + texture = ModContent.GetTexture("CalamityMod/NPCs/Calamitas/CalamitasRun3Glow"); + Color color = Color.Lerp(Color.White, Color.Red, 0.5f); if (CalamityConfig.Instance.Afterimages) { - for (int num163 = 1; num163 < num153; num163++) + for (int i = 1; i < afterimageAmt; i++) { - Color color41 = color37; - color41 = Color.Lerp(color41, color36, amount9); - color41 *= (float)(num153 - num163) / 15f; - Vector2 vector44 = npc.oldPos[num163] + new Vector2((float)npc.width, (float)npc.height) / 2f - Main.screenPosition; - vector44 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; - vector44 += vector11 * npc.scale + new Vector2(0f, npc.gfxOffY); - spriteBatch.Draw(texture2D15, vector44, npc.frame, color41, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + Color color2 = color; + color2 = Color.Lerp(color2, white, colorLerpAmt); + color2 *= (float)(afterimageAmt - i) / 15f; + Vector2 offset = npc.oldPos[i] + new Vector2((float)npc.width, (float)npc.height) / 2f - Main.screenPosition; + offset -= new Vector2((float)texture.Width, (float)(texture.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; + offset += origin * npc.scale + new Vector2(0f, npc.gfxOffY); + spriteBatch.Draw(texture, offset, npc.frame, color2, npc.rotation, origin, npc.scale, spriteEffects, 0f); } } - spriteBatch.Draw(texture2D15, vector43, npc.frame, color37, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + spriteBatch.Draw(texture, npcOffset, npc.frame, color, npc.rotation, origin, npc.scale, spriteEffects, 0f); return false; } From 6823e9af7731d28a8d1dc0e875d230ec05357717 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 12:31:56 -0500 Subject: [PATCH 14/23] eidolon wyrm is no longer just a head --- ModSupport/WeakReferenceSupport.cs | 3 ++- NPCs/Abyss/AdultEidolonWyrm_BossChecklist.png | Bin 0 -> 5914 bytes 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 NPCs/Abyss/AdultEidolonWyrm_BossChecklist.png diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 75c0823fec..41713e15ed 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -613,7 +613,8 @@ namespace CalamityMod List collection = new List() { }; string instructions = $"While in the Abyss, use an item that inflicts Chaos State"; string despawn = CalamityUtils.ColorMessage("...", new Color(0x7F, 0xFF, 0xD4)); - AddBoss(bossChecklist, calamity, "Adult Eidolon Wyrm", order, type, DownedAdultEidolonWyrm, summon, loot, collection, instructions, despawn); + string bossLogTex = "CalamityMod/NPCs/Abyss/AdultEidolonWyrm_BossChecklist"; + AddBoss(bossChecklist, calamity, "Adult Eidolon Wyrm", order, type, DownedAdultEidolonWyrm, summon, loot, collection, instructions, despawn, bossLogTex); } } diff --git a/NPCs/Abyss/AdultEidolonWyrm_BossChecklist.png b/NPCs/Abyss/AdultEidolonWyrm_BossChecklist.png new file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51jI;-3rP*odGlb415Y5w=2ML?%unO#*k^A#sn#vMkVP4;8n8d>~fxPlD#GAPU<7Ug3tmTJfyy3n~g$TQY-lP>&0cmFdDaMfDC5UJ!Ec27Xd`>WG! z*nr=wm$0}F{2Ws?fC5_=3}ydKkm8Oq)xLB@m=mq!@TDBV&{izyef7gDBg@K5QLpq+ zwN%AAe&NEYi!-d=t3`V;|Es)sYGsr4w2jcvm^t2t*R;j8pA#%7r;oJaGg(ROKdLKu zL+}>2!BpEo!@%{UMKymfZYR%+QjQHPfK2L`3W;&P++ zwT(183e}$zG0D;9l}kCWmY@oKBqj}Q0SIT(9r|;ZNpLaQdbN>tF{4zwdv=+53;GR7 zVVr8tbTvWhSf?23~5AaI!ozBkwX7%C5jE(20XeaKJ?dVy=(e z4iW{6unBGGz}ySAlJxmJZ<)w=~G`)Q{+0x z0fTq-OjouFYV*A7T@*O7T^)R8;8I6bDu@c6$;Zafk~)VuqL{0;QT(Vdi@hbCg8J2c z3Oy8?0)oXoCzx=bvJ%}Vpu0CwEW@XzTxsZwy{9pFs(=+(IxSf$?=>XUC0)WpJ4S z2h`1a$Ultt8W91wrCwswd~C%10B15$@hFUwPC4uW!7XLf%p1=*nFMp62sNY~aWX!! z-|Oc%e$(PV4k4+;tqqZ5Vve$1&eIb4;Y7O>x^w!}Y>Unl*T9ZiSXUP$_TJ|!ye~IS z+9g9GduNG-uEL=#O+NbqwU;%x2EEdGv-xT+w|=0bS^LS+gc4(@i1H$r^fexEWzfua~*40zly^W%HS=w hrit4X%-I<>NGl59Yuv52&C!|x*5-C*FV0{S{s$IxFO>iQ literal 0 HcmV?d00001 From 0e63e9ec83156daef075c1811a6f288ac3e77f31 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 12:43:52 -0500 Subject: [PATCH 15/23] little light gives light in the abyss --- CalPlayer/CalamityPlayer.cs | 2 ++ Items/Pets/LittleLight.cs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index e48434e5fc..1ba4287c04 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -10899,6 +10899,8 @@ namespace CalamityMod.CalPlayer light += underwater ? 2 : 1; if (player.petFlagDD2Ghost) light += 2; + if (littleLightPet) + light += 2; if (sirenPet) light += underwater ? 3 : 1; if (player.wisp) diff --git a/Items/Pets/LittleLight.cs b/Items/Pets/LittleLight.cs index e2e06f7d6b..5e67e7b5c2 100644 --- a/Items/Pets/LittleLight.cs +++ b/Items/Pets/LittleLight.cs @@ -12,7 +12,8 @@ namespace CalamityMod.Items.Pets { DisplayName.SetDefault("Little Light"); Tooltip.SetDefault("It's been looking for you for a long time.\n" + - "Summons a small construct that follows you and provides a great amount of light"); + "Summons a small construct that follows you and provides a great amount of light\n" + + "Provides a moderate amount of light in the abyss"); } public override void SetDefaults() From 819b1d945a130f325f1a82c19ecdd427521f12cf Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 13:04:50 -0500 Subject: [PATCH 16/23] furniture highlight fixes --- Tiles/FurnitureAbyss/AbyssDresser.png | Bin 771 -> 449 bytes Tiles/FurnitureAbyss/AbyssDresser_Highlight.png | Bin 252 -> 232 bytes .../ProfanedDresser_Highlight.png | Bin 207 -> 195 bytes Tiles/FurnitureStratus/StratusBed_Highlight.png | Bin 762 -> 342 bytes .../StratusDresser_Highlight.png | Bin 381 -> 540 bytes 5 files changed, 0 insertions(+), 0 deletions(-) diff --git a/Tiles/FurnitureAbyss/AbyssDresser.png b/Tiles/FurnitureAbyss/AbyssDresser.png index 102efbb667e9a4b183da865be738d89365dc68b6..b5acbcb0f006b75db85694c0ef3bd0c7bfaaa7f6 100644 GIT binary patch literal 449 zcmeAS@N?(olHy`uVBq!ia0vp^CP1vj!3-qTHM!z}6k~CayA#8@b22Z19F}xPU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TqWGMIT_dK9S< zz0vaQD`P%}G@>YDw=Q3Yk#1MEF|=Hbe(Ru@O>JYr0Mj$88rFK!o3AA=t(??0mRVp{ zq*pIQfV4H*5?_}XfApo+rx=d64^l>EkZ8ts)Bpeg07*qoM6N<$f&f_< BbTxIdG7tz zVU|;m_TQ*eo3-BFe(4oIp~x%w>;26^{y|b(!UMEyJu^9$if>Vr`1rt0C&n1=?I>}?Na`?G{ZFfYw`&>$`_@Pd42UX+#MBglEg&&4AgY}Gh^Z-Y zwjiH8oat8O@<^qoX!3&nng@SdCYN08^(;kDFjZM3Mq(ft_>`jeHecp-{d+|#v2utp zYM4-qW4#XiP0XFK)*fKZU~63ML}86%o{xDkb^%G7AC_J{6}12W002ovPDHLkV1fYo C&tuyF diff --git a/Tiles/FurnitureProfaned/ProfanedDresser_Highlight.png b/Tiles/FurnitureProfaned/ProfanedDresser_Highlight.png index ad51f23a86dc747866036b954befe6a1377bd324..535d158274df64931fc0b1a64550f7f6512ecade 100644 GIT binary patch literal 195 zcmeAS@N?(olHy`uVBq!ia0vp^CP1vj!3HD+zW>SvQk|YIjv*1PZ)bROH5l-?6#qA7 zFL~^xd3HIc=N$GtFZH?YyEF|yKdpSR@XQ<|S3mB+Vug^oJDpCqs_9faui*GED3q_! zwBxyjVzB~eu|9_?qvD0uRqMt6Pq3EYX}NPSLE#A>8?$1j!LLPvPP>(!HMURq_T!73 u_7htLuG0O5PVZUYs?TWMbzfwmbj<7vsTR{FtO7cU!PC{xWt~$(69WKt|3@7F literal 207 zcmeAS@N?(olHy`uVBq!ia0vp^WqShabh3d7kJ}gFeaD-UfGjrsSC=o`{>J^Q>C%+#cjL9# zoP*!|+7jF)S8rQid&|f={MY4aM!PRBw*E0~`RAp%Js0Mv9h`Q=i&e50=t2fhS3j3^ HP6{3 zX-YTex~^Bt7`+Z00^)!R>p@z@iTXa+9K-<^tp{1o@4X)m1#!Ry;(!apfhN2M*eg!& zeXtnBS&a2XSL+M1=yjxhd-F!G6P0gP&#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mg7!9_&lY@jeC8VI7EP9`~pF3 VJ2G5xtUmw%002ovPDHLkV1nVBa1Q_g diff --git a/Tiles/FurnitureStratus/StratusDresser_Highlight.png b/Tiles/FurnitureStratus/StratusDresser_Highlight.png index e68696703f2513b6a2d76fa2edd025f8f03f71a7..aab222df298dd56af5dee51dce42d440cf06e061 100644 GIT binary patch delta 515 zcmV+e0{s2`0-OYpBYy$oNklb;@5JlZbQIv=RB@L0NfeS!Gh3GAsbQ}T+ z#1*KixelCw5-QGMY0~5&@mG^I#09J~(iCg2$Nza}XLp_1A1(W_yNPo*LaGL8=NoJ1 z8yl^+Hd=3OemvRycnaDWZG`OYV0$~9?`zw;PMbL1dpup}PJb838|v|7W#h@po}S-- zb)Jv)t11q<)H1c?fD}xDx}B+YJJVpuRYd3awiQSxH?GA+LAVYkaxZtq;2D17wbQMIpAZ>H@7` znt}=xJ3c6oTDm}GH>a@!o_7TIwnVoc!7JNsKOB$>(15YuPeoB&o(48(2=GMW8T?-Ji%5Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi z!vFvd!vV){sAK>D0TM|>K~z{rWBd;U3>1Lmu2qa6dTv?RpfHCCN)H==97Es`8o~hV zkKq?X!m93I#+zF^(9`ZERbc zu(sR~YQv!eu)ASxy5So`oE$=6`t_^JLnWrb?i3Z%1-tY6k9Qzy7#G_hAHsY&lmNQB zhhH8VZEX*7FkIT&9_(P$LxUZRdT6i%Mj-(;Fyrm}o4D#Dyg)+I7+gAj`T7FPhk>u3 zpFvsJ0s4q754QxEe)0S)S?&-PR0q3bn8gqS0|2zNT4l)XZ&CmN002ovPDHLkV1h1i Bl1%^r From 0d5d8a996dfbf995e2490510d3d51ce98a3474bf Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 13:17:24 -0500 Subject: [PATCH 17/23] stratus dresser fix --- .../StratusDresser_Highlight.png | Bin 540 -> 201 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Tiles/FurnitureStratus/StratusDresser_Highlight.png b/Tiles/FurnitureStratus/StratusDresser_Highlight.png index aab222df298dd56af5dee51dce42d440cf06e061..7c260ffa95840dcf0a551fd715de005d4f755a7f 100644 GIT binary patch delta 174 zcmV;f08#&(1jzxABYyynNkl*m zNpnsbk<&q=IJiN4qe|e?7cPho{^+)a+Ova#xF?8zu4+LaZ`hz{K`$MY9o(R%3RRy> z^o9#k4`L?Br&%K cO3(wf!8z;^`Ib-s0000b;@5JlZbQIv=RB@L0NfeS!Gh3GAsbQ}T+ z#1*KixelCw5-QGMY0~5&@mG^I#09J~(iCg2$Nza}XLp_1A1(W_yNPo*LaGL8=NoJ1 z8yl^+Hd=3OemvRycnaDWZG`OYV0$~9?`zw;PMbL1dpup}PJb838|v|7W#h@po}S-- zb)Jv)t11q<)H1c?fD}xDx}B+YJJVpuRYd3awiQSxH?GA+LAVYkaxZtq;2D17wbQMIpAZ>H@7` znt}=xJ3c6oTDm}GH>a@!o_7TIwnVoc!7JNsKOB$>(15YuPeoB&o(48(2=GMW8T?-Ji%5 Date: Thu, 11 Nov 2021 13:44:23 -0500 Subject: [PATCH 18/23] fixed monk pants tooltip and undid fountains change --- CalPlayer/CalamityPlayer.cs | 18 ---------------- Items/CalamityGlobalItemTooltip.cs | 33 ++++-------------------------- 2 files changed, 4 insertions(+), 47 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 1ba4287c04..744006cd3e 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -2720,24 +2720,6 @@ namespace CalamityMod.CalPlayer //Overriding 1.4's ass req boosts if (Main.snowTiles > 300) player.ZoneSnow = true; - - Mod fargos = CalamityMod.Instance.fargos; - if (fargos != null) - { - //Fargo's fountain effects - if (Main.fountainColor == CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "SunkenSeaWater").Type) - { - ZoneSunkenSea = true; - } - if (Main.fountainColor == CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "SulphuricWater").Type) - { - ZoneSulphur = true; - } - if (Main.fountainColor == CalamityGlobalTile.WaterStyles.FirstOrDefault((style) => style.Name == "AstralWater").Type) - { - ZoneAstral = true; - } - } } public override bool CustomBiomesMatch(Player other) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 6102c4b541..0e276617cd 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -62,9 +62,6 @@ namespace CalamityMod.Items if (item.type < ItemID.Count) return; - // Adds tooltips to Calamity fountains which match Fargo's fountain tooltips. - FargoFountainTooltip(item, tooltips); - // Adds a Current Charge tooltip to all items which use charge. CalamityGlobalItem modItem = item.Calamity(); if (modItem?.UsesCharge ?? false) @@ -520,8 +517,10 @@ namespace CalamityMod.Items if (item.type == ItemID.MonkShirt) EditTooltipByNum(0, (line) => line.text = "10% increased minion and melee damage"); if (item.type == ItemID.MonkPants) - EditTooltipByNum(0, (line) => line.text = "5% increased minion damage and melee critical strike chance\n" + - "20% increased movement speed"); + { + EditTooltipByNum(0, (line) => line.text = "5% increased minion damage and melee critical strike chance"); + EditTooltipByNum(1, (line) => line.text = "20% increased movement speed"); + } // Huntress armor if (item.type == ItemID.HuntressJerkin) @@ -1078,30 +1077,6 @@ namespace CalamityMod.Items } #endregion - #region Fargo Biome Fountain Tooltip - private void FargoFountainTooltip(Item item, IList tooltips) - { - if (CalamityMod.Instance.fargos is null) - return; - - if (item.type == ModContent.ItemType()) - { - TooltipLine line = new TooltipLine(mod, "FargoFountain", "Forces surrounding biome state to Sunken Sea upon activation"); - tooltips.Add(line); - } - if (item.type == ModContent.ItemType()) - { - TooltipLine line = new TooltipLine(mod, "FargoFountain", "Forces surrounding biome state to Sulphurous Sea upon activation"); - tooltips.Add(line); - } - if (item.type == ModContent.ItemType()) - { - TooltipLine line = new TooltipLine(mod, "FargoFountain", "Forces surrounding biome state to Astral upon activation"); - tooltips.Add(line); - } - } - #endregion - #region Schematic Knowledge Tooltip Utility public static void InsertKnowledgeTooltip(List tooltips, int tier, bool allowOldWorlds = false) { From 6d7899fb559f676f1173dc3c0cb7363d90d403c9 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 13:50:34 -0500 Subject: [PATCH 19/23] fixed piercing bugs with ark of the ancients x2 --- Items/Weapons/Melee/ArkoftheAncients.cs | 18 ++++++++---------- Items/Weapons/Melee/TrueArkoftheAncients.cs | 3 ++- Projectiles/Melee/EonBeam.cs | 3 --- Projectiles/Melee/EonBeamV2.cs | 3 --- 4 files changed, 10 insertions(+), 17 deletions(-) diff --git a/Items/Weapons/Melee/ArkoftheAncients.cs b/Items/Weapons/Melee/ArkoftheAncients.cs index 3cb1f3b108..d8db61bbca 100644 --- a/Items/Weapons/Melee/ArkoftheAncients.cs +++ b/Items/Weapons/Melee/ArkoftheAncients.cs @@ -38,16 +38,14 @@ namespace CalamityMod.Items.Weapons.Melee public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - switch (Main.rand.Next(2)) - { - case 0: - type = ModContent.ProjectileType(); - break; - case 1: - type = ProjectileID.EnchantedBeam; - break; - } - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer, 1f); + type = Utils.SelectRandom(Main.rand, new int[] + { + ModContent.ProjectileType(), + ProjectileID.EnchantedBeam + }); + int beam = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer); + if (Main.projectile[beam].type == ModContent.ProjectileType()) + Main.projectile[beam].penetrate = 2; float num72 = Main.rand.Next(18, 25); Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index 1fab6296ac..bf63a711b3 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -43,8 +43,9 @@ namespace CalamityMod.Items.Weapons.Melee ModContent.ProjectileType(), ModContent.ProjectileType() }); - int beam = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, (int)(damage * 0.75), knockBack, Main.myPlayer, 1f); + int beam = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, (int)(damage * 0.75), knockBack, Main.myPlayer); Main.projectile[beam].localNPCHitCooldown = 14; + Main.projectile[beam].penetrate = 2; int i = Main.myPlayer; float num72 = Main.rand.Next(18, 27); float num74 = knockBack; diff --git a/Projectiles/Melee/EonBeam.cs b/Projectiles/Melee/EonBeam.cs index b08a44a6ac..5ac7cbdc4d 100644 --- a/Projectiles/Melee/EonBeam.cs +++ b/Projectiles/Melee/EonBeam.cs @@ -30,9 +30,6 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { - if (projectile.ai[0] == 1f) //(True) Ark of the Ancients - projectile.penetrate = 2; - Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.3f / 255f, (255 - projectile.alpha) * 0.4f / 255f, (255 - projectile.alpha) * 1f / 255f); if (projectile.localAI[1] > 7f) { diff --git a/Projectiles/Melee/EonBeamV2.cs b/Projectiles/Melee/EonBeamV2.cs index c947095945..3c0a106a83 100644 --- a/Projectiles/Melee/EonBeamV2.cs +++ b/Projectiles/Melee/EonBeamV2.cs @@ -30,9 +30,6 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { - if (projectile.ai[0] == 1f) //True Ark of the Ancients - projectile.penetrate = 2; - Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.3f / 255f, (255 - projectile.alpha) * 0.4f / 255f, (255 - projectile.alpha) * 1f / 255f); if (projectile.localAI[1] > 7f) { From 6fc33ad2cf3243c5b792793f858882b230e5bd52 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 14:11:39 -0500 Subject: [PATCH 20/23] updated exo throne tooltip --- Items/Mounts/ExoThrone.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Items/Mounts/ExoThrone.cs b/Items/Mounts/ExoThrone.cs index 611e01b6f6..c615b24975 100644 --- a/Items/Mounts/ExoThrone.cs +++ b/Items/Mounts/ExoThrone.cs @@ -11,6 +11,7 @@ namespace CalamityMod.Items.Mounts DisplayName.SetDefault("Exo Box"); Tooltip.SetDefault("Materializes a quite cozy and extremely nimble flying Exo throne\n" + "Replaced\n" + + "And hold JUMP to move much slower\n" + "A comfortable gamer is a dangerous gamer"); } @@ -34,7 +35,7 @@ namespace CalamityMod.Items.Mounts foreach (TooltipLine line2 in list) { if (line2.mod == "Terraria" && line2.Name == "Tooltip1") - line2.text = $"Hold {hotkey} while sitting in the throne to move much faster\n"; + line2.text = $"Hold {hotkey} while sitting in the throne to move much faster"; } } } From 4f9a4a616147b955d4017b7f40fd35e8203ddaa3 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 14:24:55 -0500 Subject: [PATCH 21/23] updated dawwnlight spirit origin tooltip --- Items/Accessories/DaawnlightSpiritOrigin.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Items/Accessories/DaawnlightSpiritOrigin.cs b/Items/Accessories/DaawnlightSpiritOrigin.cs index 1d8e2ec119..42afa3a510 100644 --- a/Items/Accessories/DaawnlightSpiritOrigin.cs +++ b/Items/Accessories/DaawnlightSpiritOrigin.cs @@ -44,6 +44,7 @@ namespace CalamityMod.Items.Accessories "Explosions or large projectiles cannot strike bullseyes\n" + "Converts all ranged critical strike chance boosts into extra critical strike damage\n" + "All ranged weapons will deal even more critical strike damage the slower they are\n" + + "Summons a heroic spirit from another world if accessory visibility is enabled\n" + "'A strand of a lost cosmos remains, waiting for its master'"); } From d8603caa78d8cbabdc19d3a732a434e490240bfd Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Thu, 11 Nov 2021 14:40:45 -0500 Subject: [PATCH 22/23] normality relocator no longer works when frozen/webbed/stoned --- CalPlayer/CalamityPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 744006cd3e..d08d8c6fe3 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -2844,7 +2844,7 @@ namespace CalamityMod.CalPlayer } if (CalamityMod.NormalityRelocatorHotKey.JustPressed && normalityRelocator && Main.myPlayer == player.whoAmI) { - if (!player.chaosState) + if (!player.CCed && !player.chaosState) { Vector2 teleportLocation; teleportLocation.X = (float)Main.mouseX + Main.screenPosition.X; From 660e588d1bcaf8bfce81c9d2214d8e60a5048914 Mon Sep 17 00:00:00 2001 From: Cameron Ewell Date: Thu, 11 Nov 2021 16:49:45 -0500 Subject: [PATCH 23/23] Little Light is supposed to be as strong as Suspicious Looking Eye --- CalPlayer/CalamityPlayer.cs | 2 +- Items/Pets/LittleLight.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index d08d8c6fe3..570c7e2bad 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -10882,7 +10882,7 @@ namespace CalamityMod.CalPlayer if (player.petFlagDD2Ghost) light += 2; if (littleLightPet) - light += 2; + light += 3; if (sirenPet) light += underwater ? 3 : 1; if (player.wisp) diff --git a/Items/Pets/LittleLight.cs b/Items/Pets/LittleLight.cs index 5e67e7b5c2..2d0da30c40 100644 --- a/Items/Pets/LittleLight.cs +++ b/Items/Pets/LittleLight.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Pets DisplayName.SetDefault("Little Light"); Tooltip.SetDefault("It's been looking for you for a long time.\n" + "Summons a small construct that follows you and provides a great amount of light\n" + - "Provides a moderate amount of light in the abyss"); + "Provides a large amount of light in the abyss"); } public override void SetDefaults()