diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 7e96e8c90e..150cca9e21 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1464,7 +1464,7 @@ namespace CalamityMod.CalPlayer if (modPlayer.plaguedFuelPackDash > 0) { int velocityMult = modPlayer.plaguedFuelPackDash > 1 ? 25 : 5; - player.velocity = new Vector2(modPlayer.plaguedFuelPackDirection, player.velocity.Y < 0 ? -1 : (player.velocity.Y == 0 ? -1 : 1)) * velocityMult; + player.velocity = new Vector2(modPlayer.plaguedFuelPackDirection, -1) * velocityMult; int numClouds = Main.rand.Next(2, 10); for (int i = 0; i < numClouds; i++) diff --git a/CalamityMod.cs b/CalamityMod.cs index c3336e67c9..b0e1fe74df 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -516,7 +516,9 @@ namespace CalamityMod "Melvin Brouwers", "Vroomy Has -3,000 IQ", "The Goliath", - "DaPyRo" + "DaPyRo", + "Apotheosis", + "Termi" }; rangedProjectileExceptionList = new List() diff --git a/Items/Placeables/Furniture/Trophies/CeaselessVoidTrophy.png b/Items/Placeables/Furniture/Trophies/CeaselessVoidTrophy.png index 2bda0d1e82..e078e5bce6 100644 Binary files a/Items/Placeables/Furniture/Trophies/CeaselessVoidTrophy.png and b/Items/Placeables/Furniture/Trophies/CeaselessVoidTrophy.png differ diff --git a/Items/Placeables/Furniture/Trophies/HiveMindTrophy.png b/Items/Placeables/Furniture/Trophies/HiveMindTrophy.png index 9235a5c86e..7401c33229 100644 Binary files a/Items/Placeables/Furniture/Trophies/HiveMindTrophy.png and b/Items/Placeables/Furniture/Trophies/HiveMindTrophy.png differ diff --git a/Items/Weapons/Magic/DivineRetribution.cs b/Items/Weapons/Magic/DivineRetribution.cs index 8b840326a3..0ac63c9caf 100644 --- a/Items/Weapons/Magic/DivineRetribution.cs +++ b/Items/Weapons/Magic/DivineRetribution.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic item.useStyle = 5; item.noMelee = true; item.knockBack = 3.5f; - item.value = Item.buyPrice(1, 40, 0, 0); + item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.UseSound = SoundID.Item73; item.autoReuse = true; diff --git a/Items/Weapons/Melee/DivineHatchet.cs b/Items/Weapons/Melee/DivineHatchet.cs index ba29f32db6..6e9c8ceb16 100644 --- a/Items/Weapons/Melee/DivineHatchet.cs +++ b/Items/Weapons/Melee/DivineHatchet.cs @@ -29,11 +29,11 @@ namespace CalamityMod.Items.Weapons.Melee item.UseSound = SoundID.Item1; item.melee = true; item.height = 62; - item.value = Item.buyPrice(1, 40, 0, 0); + item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 8; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 14f; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().postMoonLordRarity = 12; } public override void AddRecipes() @@ -42,6 +42,7 @@ namespace CalamityMod.Items.Weapons.Melee recipe.AddIngredient(ItemID.PossessedHatchet); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType(), 9); + recipe.AddIngredient(ModContent.ItemType(), 8); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/Ranged/AngelicShotgun.cs b/Items/Weapons/Ranged/AngelicShotgun.cs index c5e6c099dd..a01e5cb60e 100644 --- a/Items/Weapons/Ranged/AngelicShotgun.cs +++ b/Items/Weapons/Ranged/AngelicShotgun.cs @@ -37,7 +37,7 @@ Fighting 'til the war's won"); item.useStyle = 5; item.rare = 10; - item.value = Item.buyPrice(1, 40, 0, 0); + item.value = Item.buyPrice(1, 20, 0, 0); item.Calamity().postMoonLordRarity = 21; item.shootSpeed = BulletSpeed; diff --git a/Items/Weapons/Ranged/HandheldTank.cs b/Items/Weapons/Ranged/HandheldTank.cs index 6975a51723..e43c4a81c7 100644 --- a/Items/Weapons/Ranged/HandheldTank.cs +++ b/Items/Weapons/Ranged/HandheldTank.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/TankCannon"); item.noMelee = true; - item.value = Item.buyPrice(1, 40, 0, 0); + item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.Calamity().postMoonLordRarity = 21; diff --git a/Items/Weapons/Rogue/ExecutionersBlade.cs b/Items/Weapons/Rogue/ExecutionersBlade.cs index fc25e307b7..269c8b34a1 100644 --- a/Items/Weapons/Rogue/ExecutionersBlade.cs +++ b/Items/Weapons/Rogue/ExecutionersBlade.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue { DisplayName.SetDefault("Executioner's Blade"); Tooltip.SetDefault("Throws a stream of homing blades\n" + - "Stealth strikes summons a guillotine of blades on hit"); + "Stealth strikes summon a guillotine of blades on hit"); } public override void SafeSetDefaults() diff --git a/Items/Weapons/Rogue/ProfanedPartisan.cs b/Items/Weapons/Rogue/ProfanedPartisan.cs index faa79880b6..b55426104b 100644 --- a/Items/Weapons/Rogue/ProfanedPartisan.cs +++ b/Items/Weapons/Rogue/ProfanedPartisan.cs @@ -28,12 +28,12 @@ Stealth strikes spawn smaller spears to fly along side it"); item.noMelee = true; item.noUseGraphic = true; - item.value = Item.buyPrice(1, 40, 0, 0); + item.value = Item.buyPrice(1, 20, 0, 0); item.useTime = 15; item.useAnimation = 15; item.UseSound = SoundID.Item1; item.rare = 10; - item.Calamity().postMoonLordRarity = 13; + item.Calamity().postMoonLordRarity = 12; item.Calamity().rogue = true; item.autoReuse = true; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 4a1d9fced4..c174f7505c 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1976,14 +1976,18 @@ namespace CalamityMod.NPCs switch (npc.type) { case NPCID.Guide: - switch (Main.rand.Next(36)) // 34 guide names + switch (Main.rand.Next(37)) // 34 guide names { case 0: npc.GivenName = "Lapp"; break; case 1: - npc.GivenName = "Ben Shapiro"; + npc.GivenName = "Ben Shapiro"; + break; + + case 2: + npc.GivenName = "StreakistYT"; break; default: @@ -1993,12 +1997,16 @@ namespace CalamityMod.NPCs break; case NPCID.Wizard: - switch (Main.rand.Next(24)) // 23 wizard names + switch (Main.rand.Next(25)) // 23 wizard names { case 0: npc.GivenName = "Mage One-Trick"; break; + case 1: + npc.GivenName = "Inorim, son of Ivukey"; + break; + default: break; } @@ -2006,12 +2014,16 @@ namespace CalamityMod.NPCs break; case NPCID.Steampunker: - switch (Main.rand.Next(22)) // 21 steampunker names + switch (Main.rand.Next(23)) // 21 steampunker names { case 0: npc.GivenName = "Vorbis"; break; + case 1: + npc.GivenName = "Angel"; + break; + default: break; } @@ -2057,6 +2069,49 @@ namespace CalamityMod.NPCs break; + case NPCID.Pirate: + switch (Main.rand.Next(12)) // 11 pirate names + { + case 0: + npc.GivenName = "Tyler Van Hook"; + break; + + default: + break; + } + + break; + + case NPCID.Mechanic: + switch (Main.rand.Next(26)) // 24 mechanic names + { + case 0: + npc.GivenName = "Lilly"; + break; + + case 1: + npc.GivenName = "Daawn"; + break; + + default: + break; + } + + break; + + case NPCID.ArmsDealer: + switch (Main.rand.Next(25)) // 24 arms dealer names + { + case 0: + npc.GivenName = "Drifter"; + break; + + default: + break; + } + + break; + default: break; } diff --git a/NPCs/NormalNPCs/Cnidrion.cs b/NPCs/NormalNPCs/Cnidrion.cs index 279947d46b..1eee5e5eb4 100644 --- a/NPCs/NormalNPCs/Cnidrion.cs +++ b/NPCs/NormalNPCs/Cnidrion.cs @@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || spawnInfo.player.Calamity().ZoneSunkenSea) + if (spawnInfo.playerSafe || spawnInfo.player.Calamity().ZoneSunkenSea || NPC.AnyNPCs(ModContent.NPCType())) { return 0f; } diff --git a/NPCs/NormalNPCs/Horse.cs b/NPCs/NormalNPCs/Horse.cs index 7695725f58..c5d1f509db 100644 --- a/NPCs/NormalNPCs/Horse.cs +++ b/NPCs/NormalNPCs/Horse.cs @@ -66,7 +66,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.Calamity().ZoneAbyss || - spawnInfo.player.Calamity().ZoneSunkenSea) + spawnInfo.player.Calamity().ZoneSunkenSea || NPC.AnyNPCs(ModContent.NPCType())) { return 0f; } diff --git a/NPCs/NormalNPCs/StormlionCharger.cs b/NPCs/NormalNPCs/StormlionCharger.cs index 0e4a645be3..9fdd21e686 100644 --- a/NPCs/NormalNPCs/StormlionCharger.cs +++ b/NPCs/NormalNPCs/StormlionCharger.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; +using CalamityMod.World; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -61,10 +62,9 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - if (Main.rand.NextBool(2)) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); - } + //100% chance if DS isn't dead yet, otherwise 50% + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !CalamityWorld.downedDesertScourge, 1f, 1, 1); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedDesertScourge, 0.5f, 1, 1); } } } diff --git a/NPCs/NormalNPCs/ThiccWaifu.cs b/NPCs/NormalNPCs/ThiccWaifu.cs index f31bc9ce63..9309c90dd6 100644 --- a/NPCs/NormalNPCs/ThiccWaifu.cs +++ b/NPCs/NormalNPCs/ThiccWaifu.cs @@ -282,7 +282,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !Main.hardMode || !Main.raining) + if (spawnInfo.playerSafe || !Main.hardMode || !Main.raining || NPC.AnyNPCs(ModContent.NPCType())) { return 0f; } diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs b/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs index 06e32ad970..ed4c3e120f 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs @@ -583,7 +583,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !NPC.downedGolemBoss) + if (spawnInfo.playerSafe || !NPC.downedGolemBoss || NPC.AnyNPCs(ModContent.NPCType())) { return 0f; } diff --git a/Tiles/Furniture/BossTrophy.png b/Tiles/Furniture/BossTrophy.png index 3d28027d82..b90a408cfa 100644 Binary files a/Tiles/Furniture/BossTrophy.png and b/Tiles/Furniture/BossTrophy.png differ