From ac91eb07426fe7b0435772300c5d57334140bc4f Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Mon, 27 Feb 2023 14:15:41 -0800 Subject: [PATCH 1/5] bro ring multiplayer fix i think --- NPCs/SupremeCalamitas/SupremeCataclysm.cs | 9 ++++++--- NPCs/SupremeCalamitas/SupremeCatastrophe.cs | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/NPCs/SupremeCalamitas/SupremeCataclysm.cs b/NPCs/SupremeCalamitas/SupremeCataclysm.cs index 9ea1fc3b25..d8476e8827 100644 --- a/NPCs/SupremeCalamitas/SupremeCataclysm.cs +++ b/NPCs/SupremeCalamitas/SupremeCataclysm.cs @@ -244,10 +244,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas float radians = MathHelper.TwoPi / totalProjectiles; float velocity = CalamityWorld.getFixedBoi ? 5f : 7f; Vector2 spinningPoint = new Vector2(0f, -velocity); - for (int k = 0; k < totalProjectiles; k++) + if (Main.netMode != NetmodeID.MultiplayerClient) { - Vector2 velocity2 = spinningPoint.RotatedBy(radians * k); - Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, velocity2, type, damage, 0f, Main.myPlayer, 0f, 1f); + for (int k = 0; k < totalProjectiles; k++) + { + Vector2 velocity2 = spinningPoint.RotatedBy(radians * k); + Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, velocity2, type, damage, 0f, Main.myPlayer, 0f, 1f); + } } for (int i = 0; i < 6; i++) diff --git a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs index 3acbc12e1f..6eadb782bb 100644 --- a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs +++ b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs @@ -239,10 +239,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas float radians = MathHelper.TwoPi / totalProjectiles; float velocity = CalamityWorld.getFixedBoi ? 5f : 7f; Vector2 spinningPoint = new Vector2(0f, -velocity); - for (int k = 0; k < totalProjectiles; k++) + if (Main.netMode != NetmodeID.MultiplayerClient) { - Vector2 velocity2 = spinningPoint.RotatedBy(radians * k); - Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, velocity2, type, damage, 0f, Main.myPlayer, 0f, 1f); + for (int k = 0; k < totalProjectiles; k++) + { + Vector2 velocity2 = spinningPoint.RotatedBy(radians * k); + Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, velocity2, type, damage, 0f, Main.myPlayer, 0f, 1f); + } } for (int i = 0; i < 6; i++) From 763051e9b756e95f25c323b92398c34e069e5822 Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Mon, 27 Feb 2023 14:16:35 -0800 Subject: [PATCH 2/5] removed Coralskin Foolfish --- CalPlayer/CalamityPlayerFishing.cs | 9 +---- .../SunkenSeaCatches/CoralskinFoolfish.cs | 31 ------------------ .../SunkenSeaCatches/CoralskinFoolfish.png | Bin 640 -> 0 bytes Utilities/CalamityRecipes.cs | 5 --- 4 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.cs delete mode 100644 Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.png diff --git a/CalPlayer/CalamityPlayerFishing.cs b/CalPlayer/CalamityPlayerFishing.cs index 6592637949..8a43c7d388 100644 --- a/CalPlayer/CalamityPlayerFishing.cs +++ b/CalPlayer/CalamityPlayerFishing.cs @@ -141,7 +141,6 @@ namespace CalamityMod.CalPlayer fishList.AddWithCondition(ItemID.Prismite, Player.ZoneHallow); fishList.AddWithCondition(ItemID.Damselfish, Player.ZoneSkyHeight); fishList.AddWithCondition(ModContent.ItemType(), ZoneAstral); - fishList.AddWithCondition(ModContent.ItemType(), ZoneSunkenSea); fishList.AddWithCondition(ModContent.ItemType(), ZoneSunkenSea); fishList.AddWithCondition(ModContent.ItemType(), !Main.dayTime && !Player.ZoneSkyHeight); } @@ -495,12 +494,7 @@ namespace CalamityMod.CalPlayer } else if (attempt.uncommon || attempt.rare || attempt.veryrare) { - int uncommonCatch = Utils.SelectRandom(Main.rand, new int[] - { - ModContent.ItemType(), - ModContent.ItemType() - }); - itemDrop = uncommonCatch; + itemDrop = ModContent.ItemType(); } else { @@ -659,7 +653,6 @@ namespace CalamityMod.CalPlayer ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), ModContent.ItemType(), }; diff --git a/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.cs b/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.cs deleted file mode 100644 index 7c8c3892a0..0000000000 --- a/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Terraria; -using Terraria.ModLoader; -using Terraria.ID; - -namespace CalamityMod.Items.Fishing.SunkenSeaCatches -{ - public class CoralskinFoolfish : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Coralskin Foolfish"); //Potion material - Tooltip.SetDefault("Camouflage is one of nature's best defenses"); - SacrificeTotal = 3; - ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 28; - Item.height = 28; - Item.maxStack = 999; - Item.value = Item.sellPrice(silver: 7); - Item.rare = ItemRarityID.Green; - } - - public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) - { - itemGroup = ContentSamples.CreativeHelper.ItemGroup.Fish; - } - } -} diff --git a/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.png b/Items/Fishing/SunkenSeaCatches/CoralskinFoolfish.png deleted file mode 100644 index 20a714b80d3dc57f6bb95cd678003fe95dda30b8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 640 zcmV-`0)PF9P)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00GWPL_t(Y$IX^8FKj^+$A5G8@;2-u zR)Q#mjZg?8c`q-TS7{Uql~$$J_z1p%go;Xo#s?7FAS8Gj#8xkoC$h;32{x>I_bTol zG2<>95qJO1&73)tGr#%InOsFly+c2#L^mxBf$>PO9st+6_ugA?RaE5*We3E9ci7mb z0AfS{xZ_sKbFF&-;*b44@o=wxGAHZRL+IkgH2Y|zs)xiAfC6t|-p6zWE09fuG2H@B1yp}Jw)2?e#;Szdw z0s!S)X$kH@M%%F|A(Go@-b#^^&k+itk~g$i)9RB(lU^kYN9QI0$Q?(txJf7;0^xb+ z0a#C20NiL&ODN~v=Guv$|AEJ*LhQrR+ZZttOakdc@v1CYY6*b4jvfV&f6RtMsFJ_O z0C2Jw9zb+_S|bt3+b9w;IRVk_k7EF0#1(*@y8s|_v>y(kU37|Cz$6o|p8jtI5}F=1 zrM3Ym)aErZQ3!-rmzsA%RIb0Q#%2Y)`~j3xZNUkQhu4P>8;jb65Wmsgwf~LPsLvGq z{yyyN8q{}?Xa_*N4O#(), 2); - r.AddTile(TileID.CookingPots); - r.Register(); - r = Recipe.Create(ItemID.SeafoodDinner); r.AddIngredient(ModContent.ItemType(), 2); r.AddTile(TileID.CookingPots); From b6432001922b484fe2df38dd8ee15f08209f0b40 Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Mon, 27 Feb 2023 14:17:00 -0800 Subject: [PATCH 3/5] removed Aquatic Aberration Banner --- .../Banners/AquaticAberrationBanner.cs | 33 ------------------ .../Banners/AquaticAberrationBanner.png | Bin 291 -> 0 bytes Utilities/MiscUtils.cs | 6 ---- 3 files changed, 39 deletions(-) delete mode 100644 Items/Placeables/Banners/AquaticAberrationBanner.cs delete mode 100644 Items/Placeables/Banners/AquaticAberrationBanner.png diff --git a/Items/Placeables/Banners/AquaticAberrationBanner.cs b/Items/Placeables/Banners/AquaticAberrationBanner.cs deleted file mode 100644 index 6a56ca38fc..0000000000 --- a/Items/Placeables/Banners/AquaticAberrationBanner.cs +++ /dev/null @@ -1,33 +0,0 @@ -using CalamityMod.Tiles; -using Terraria; -using Terraria.ModLoader; -using Terraria.ID; - -namespace CalamityMod.Items.Placeables.Banners -{ - public class AquaticAberrationBanner : ModItem - { - public override void SetStaticDefaults() - { - SacrificeTotal = 1; - Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Aquatic Aberration"); - } - - public override void SetDefaults() - { - Item.width = 10; - Item.height = 24; - Item.maxStack = 99; - Item.useTurn = true; - Item.autoReuse = true; - Item.useAnimation = 15; - Item.useTime = 10; - Item.useStyle = ItemUseStyleID.Swing; - Item.consumable = true; - Item.rare = ItemRarityID.Blue; - Item.value = Item.buyPrice(0, 0, 10, 0); - Item.createTile = ModContent.TileType(); - Item.placeStyle = 10; - } - } -} diff --git a/Items/Placeables/Banners/AquaticAberrationBanner.png b/Items/Placeables/Banners/AquaticAberrationBanner.png deleted file mode 100644 index 8f23e9938aea10c970fa2a7815377701528da7b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 291 zcmV+;0o?wHP)f0002!Nklh|EXffF#J);NR^IHh5#{PB0C#38xJNHNcz#Q+WOKN3hAaR-M3Z z!ywimr=`&AtvAW1hEk#reX0w zvIey<3zYOrFs2D=fH?&goQ8>V=vf3M)iRQ;p=(_R*rcO(?}O>Eom0T{D)$`hHju5M zENBMUM40DOA`HNMm^j=IFdK;005eh36p~6|c^N&c!fha111u6?F%09w(-JHmaK$i& p2ABYP0fw#+#)p?n#A*Nl>{ZMCA}*Ew00000NkvXXu0mjf003#pbHo4u diff --git a/Utilities/MiscUtils.cs b/Utilities/MiscUtils.cs index 425c558295..5103b627c3 100644 --- a/Utilities/MiscUtils.cs +++ b/Utilities/MiscUtils.cs @@ -407,9 +407,6 @@ namespace CalamityMod case 9: item = ModContent.ItemType(); break; - case 10: - item = ModContent.ItemType(); - break; case 12: item = ModContent.ItemType(); break; @@ -769,9 +766,6 @@ namespace CalamityMod case 9: npc = ModContent.NPCType(); break; - case 10: - npc = ModContent.NPCType(); - break; case 12: npc = ModContent.NPCType(); break; From 9d23f8b66fce4295f2cfb5393f4f6178683b132a Mon Sep 17 00:00:00 2001 From: SharZz <121830184+sharzzreal@users.noreply.github.com> Date: Tue, 28 Feb 2023 00:45:55 +0100 Subject: [PATCH 4/5] removed Yharon as a Jungle enemy in the Bestiary, consequently removed the background too --- NPCs/Yharon/Yharon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 890c1a6002..d907d22051 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -118,7 +118,7 @@ namespace CalamityMod.NPCs.Yharon public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) { bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { - BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Jungle, + // Will move to localization whenever that is cleaned up. new FlavorTextBestiaryInfoElement("The loyal companion of the God-Hunter, they possess immense power compared to the Dragons of the past. This is likely partly due to fighting and training by their master's side.") From 149abe062fa97d964f657aef279a968f30355e9c Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Mon, 27 Feb 2023 16:26:57 -0800 Subject: [PATCH 5/5] Gorecodile --- CalPlayer/CalamityPlayerFishing.cs | 2 +- Items/Fishing/{Xerocodile.cs => Gorecodile.cs} | 5 +++-- Items/Fishing/{Xerocodile.png => Gorecodile.png} | Bin 3 files changed, 4 insertions(+), 3 deletions(-) rename Items/Fishing/{Xerocodile.cs => Gorecodile.cs} (89%) rename Items/Fishing/{Xerocodile.png => Gorecodile.png} (100%) diff --git a/CalPlayer/CalamityPlayerFishing.cs b/CalPlayer/CalamityPlayerFishing.cs index 8a43c7d388..13a5f1c05a 100644 --- a/CalPlayer/CalamityPlayerFishing.cs +++ b/CalPlayer/CalamityPlayerFishing.cs @@ -446,7 +446,7 @@ namespace CalamityMod.CalPlayer { if (attempt.uncommon && Main.rand.NextBool(7)) { - itemDrop = ModContent.ItemType(); + itemDrop = ModContent.ItemType(); } } diff --git a/Items/Fishing/Xerocodile.cs b/Items/Fishing/Gorecodile.cs similarity index 89% rename from Items/Fishing/Xerocodile.cs rename to Items/Fishing/Gorecodile.cs index 19c62f83bb..48beda6687 100644 --- a/Items/Fishing/Xerocodile.cs +++ b/Items/Fishing/Gorecodile.cs @@ -5,11 +5,12 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Fishing { - public class Xerocodile : ModItem + [LegacyName("Xerocodile")] + public class Gorecodile : ModItem { public override void SetStaticDefaults() { - DisplayName.SetDefault("Xerocodile"); + DisplayName.SetDefault("Gorecodile"); Tooltip.SetDefault("Right click to extract blood orbs"); SacrificeTotal = 10; ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true; diff --git a/Items/Fishing/Xerocodile.png b/Items/Fishing/Gorecodile.png similarity index 100% rename from Items/Fishing/Xerocodile.png rename to Items/Fishing/Gorecodile.png