From fd3224f2befbbbf3af3d5ef7cd41745ab60d6c5f Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 9 Apr 2022 20:05:58 -0400 Subject: [PATCH] Sanity checked Sunken Sea enemies --- NPCs/SunkenSea/EutrophicRay.cs | 5 +---- NPCs/SunkenSea/GiantClam.cs | 2 +- NPCs/SunkenSea/PrismTurtle.cs | 5 +---- NPCs/SunkenSea/SeaSerpent1.cs | 5 +---- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/NPCs/SunkenSea/EutrophicRay.cs b/NPCs/SunkenSea/EutrophicRay.cs index ebaf8976c7..b873fa8dfa 100644 --- a/NPCs/SunkenSea/EutrophicRay.cs +++ b/NPCs/SunkenSea/EutrophicRay.cs @@ -199,10 +199,7 @@ namespace CalamityMod.NPCs.SunkenSea return 0f; } - public override void ModifyNPCLoot(NPCLoot npcLoot) - { - npcLoot.AddIf(() => DownedBossSystem.downedDesertScourge, ModContent.ItemType(), 3); - } + public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.AddIf(() => DownedBossSystem.downedDesertScourge, ModContent.ItemType(), 3); public override void HitEffect(int hitDirection, double damage) { diff --git a/NPCs/SunkenSea/GiantClam.cs b/NPCs/SunkenSea/GiantClam.cs index 789e1ea2f7..25b252d710 100644 --- a/NPCs/SunkenSea/GiantClam.cs +++ b/NPCs/SunkenSea/GiantClam.cs @@ -439,7 +439,7 @@ namespace CalamityMod.NPCs.SunkenSea ModContent.ItemType(), ModContent.ItemType(), }; - npcLoot.Add(ItemDropRule.OneFromOptions(DropHelper.NormalWeaponDropRateInt, weapons)); + npcLoot.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, weapons)); // Equipment npcLoot.AddIf(() => DownedBossSystem.downedDesertScourge, ModContent.ItemType(), 3); diff --git a/NPCs/SunkenSea/PrismTurtle.cs b/NPCs/SunkenSea/PrismTurtle.cs index 51c6fddee3..2e186c41dc 100644 --- a/NPCs/SunkenSea/PrismTurtle.cs +++ b/NPCs/SunkenSea/PrismTurtle.cs @@ -140,10 +140,7 @@ namespace CalamityMod.NPCs.SunkenSea return 0f; } - public override void ModifyNPCLoot(NPCLoot npcLoot) - { - npcLoot.AddIf(() => DownedBossSystem.downedDesertScourge, ModContent.ItemType(), 1, 1, 3); - } + public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.AddIf(() => DownedBossSystem.downedDesertScourge, ModContent.ItemType(), 1, 1, 3); public override void HitEffect(int hitDirection, double damage) { diff --git a/NPCs/SunkenSea/SeaSerpent1.cs b/NPCs/SunkenSea/SeaSerpent1.cs index 23782f5274..f7b0601fd7 100644 --- a/NPCs/SunkenSea/SeaSerpent1.cs +++ b/NPCs/SunkenSea/SeaSerpent1.cs @@ -271,10 +271,7 @@ namespace CalamityMod.NPCs.SunkenSea return 0f; } - public override void ModifyNPCLoot(NPCLoot npcLoot) - { - npcLoot.Add(ModContent.ItemType(), 4); - } + public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType(), 4); public override void HitEffect(int hitDirection, double damage) {