From c9f497281ee0d98917336444e0966a567c152529 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Fri, 24 Jan 2020 20:36:18 -0500 Subject: [PATCH 01/17] removed fusion feeder cuz it's not sandstorm specific --- NPCs/CalamityGlobalNPCLoot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index e4bedfe832..cb749ad490 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1144,7 +1144,7 @@ namespace CalamityMod.NPCs } } - if (NPC.downedPlantBoss && (npc.type == NPCID.SandShark || npc.type == NPCID.SandsharkHallow || npc.type == NPCID.SandsharkCorrupt || npc.type == NPCID.SandsharkCrimson || npc.type == ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) + if (NPC.downedPlantBoss && (npc.type == NPCID.SandShark || npc.type == NPCID.SandsharkHallow || npc.type == NPCID.SandsharkCorrupt || npc.type == NPCID.SandsharkCrimson) && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityMod.sharkKillCount++; if (CalamityMod.sharkKillCount == 4) From a9be37406c0db2625e3e90166fb1f9a9b66a2d2f Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Fri, 24 Jan 2020 22:17:19 -0500 Subject: [PATCH 02/17] demon trophy can only be used if not activated --- Items/DifficultyItems/MLGRune.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Items/DifficultyItems/MLGRune.cs b/Items/DifficultyItems/MLGRune.cs index 3fbbabeb5f..6c5caf05ec 100644 --- a/Items/DifficultyItems/MLGRune.cs +++ b/Items/DifficultyItems/MLGRune.cs @@ -27,6 +27,11 @@ namespace CalamityMod.Items.DifficultyItems item.consumable = true; } + public override bool CanUseItem(Player player) + { + return !CalamityWorld.demonMode; + } + public override bool UseItem(Player player) { CalamityWorld.demonMode = true; From 169cb422e0e6247895bbf92f79dec08b1a09bc9d Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Fri, 24 Jan 2020 23:42:06 -0500 Subject: [PATCH 03/17] 5 lines become 1 --- Items/DifficultyItems/IronHeart.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Items/DifficultyItems/IronHeart.cs b/Items/DifficultyItems/IronHeart.cs index 58236f96e4..4c8c107b12 100644 --- a/Items/DifficultyItems/IronHeart.cs +++ b/Items/DifficultyItems/IronHeart.cs @@ -35,11 +35,7 @@ namespace CalamityMod.Items.DifficultyItems public override bool CanUseItem(Player player) { - if (CalamityWorld.downedBossAny) - { - return false; - } - return true; + return !CalamityWorld.downedBossAny; } public override bool UseItem(Player player) From dabfc57664aa7d0973c7dc8ca1aa8780246f9645 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Fri, 24 Jan 2020 23:45:12 -0500 Subject: [PATCH 04/17] nerfed lunar kunai SS --- Items/Weapons/Rogue/LunarKunai.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Rogue/LunarKunai.cs b/Items/Weapons/Rogue/LunarKunai.cs index 09da7e0600..866c30db4a 100644 --- a/Items/Weapons/Rogue/LunarKunai.cs +++ b/Items/Weapons/Rogue/LunarKunai.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue DisplayName.SetDefault("Lunar Kunai"); Tooltip.SetDefault("Throws out a set of three kunai that ignore gravity and slightly home in on enemies\n" +"After traveling enough distance, the kunai supercharge with lunar energy, homing in far more aggressively and exploding on impact\n" - +"Stealth strikes instantly throw twelve supercharged Kunai"); + +"Stealth strikes instantly throw nine supercharged Kunai"); } public override void SafeSetDefaults() @@ -68,7 +68,7 @@ namespace CalamityMod.Items.Weapons.Rogue num79 *= num80; if (player.Calamity().StealthStrikeAvailable()) { - for (int i = 0; i < 12; i++) + for (int i = 0; i < 9; i++) { float num148 = num78; float num149 = num79; @@ -81,7 +81,7 @@ namespace CalamityMod.Items.Weapons.Rogue num149 *= num80; float x4 = vector2.X; float y4 = vector2.Y; - int stealth = Projectile.NewProjectile(x4, y4, num148, num149, ModContent.ProjectileType(), (int)(damage *1.1) , knockBack, player.whoAmI, 0f, 0f); + int stealth = Projectile.NewProjectile(x4, y4, num148, num149, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[stealth].Calamity().stealthStrike = true; } } From 1cea92bee96fed983463b63dedf6868257c04f61 Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Sat, 25 Jan 2020 11:07:33 +0000 Subject: [PATCH 05/17] Updated Adrenaline Buff Description --- Buffs/StatBuffs/AdrenalineMode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Buffs/StatBuffs/AdrenalineMode.cs b/Buffs/StatBuffs/AdrenalineMode.cs index fc160dabe4..c7b3eaf061 100644 --- a/Buffs/StatBuffs/AdrenalineMode.cs +++ b/Buffs/StatBuffs/AdrenalineMode.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.StatBuffs public override void SetDefaults() { DisplayName.SetDefault("Adrenaline Mode"); - Description.SetDefault("150% damage boost. Can burnout down to 49.5%."); + Description.SetDefault("150% damage boost."); Main.debuff[Type] = true; Main.pvpBuff[Type] = true; Main.buffNoSave[Type] = false; From f49a9e52fa07b898459fc011e16eb80a81f72a8a Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Sat, 25 Jan 2020 11:28:12 +0000 Subject: [PATCH 06/17] Added burden breaker to prime loot pool for boss checklist --- ModSupport/WeakReferenceSupport.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 4b4875e25f..7b7e7d827f 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -559,6 +559,12 @@ namespace CalamityMod "SkeletronPrime", new List() {ModContent.ItemType(), ModContent.ItemType()}); + bossChecklist.Call( + "AddToBossLoot", + "Terraria", + "SkeletronPrime", + new List() {ModContent.ItemType()}); + //Plantera bossChecklist.Call( "AddToBossLoot", From 6d923460d1dd29528f77c749dbefd2d31f0d7912 Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Sat, 25 Jan 2020 12:46:53 +0000 Subject: [PATCH 07/17] updoot oracle tooltip --- Items/Weapons/Melee/Oracle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index 76dc45f885..e974ecba00 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Oracle"); - Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\nFires auric orbs when supercharged\nAn incredibly agile yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'"); + Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\nFires auric orbs when supercharged\nAn exceptionally agile yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; From 23fe5733d172130aa93aa4eb328dc8a24894e81a Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Sat, 25 Jan 2020 12:53:17 +0000 Subject: [PATCH 08/17] Obliterator tooltip consistency fix --- Items/Weapons/Melee/TheObliterator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index a375ed077b..018807bb16 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Obliterator"); - Tooltip.SetDefault("Ruins nearby enemies with death lasers\nAn incredibly agile yoyo\n"); + Tooltip.SetDefault("Ruins nearby enemies with death lasers\nAn exceptionally agile yoyo\n"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; From dab936dea47f133c14cd869bd717fabed21a028b Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 25 Jan 2020 08:53:07 -0500 Subject: [PATCH 09/17] removed burden breaker and plushie from boss checklist --- ModSupport/WeakReferenceSupport.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 7b7e7d827f..427632e9f7 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -418,7 +418,7 @@ namespace CalamityMod calamity, "Devourer of Gods", (Func)(() => CalamityWorld.downedDoG), ModContent.ItemType(), - new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, + new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, "Use a [i:" + ModContent.ItemType() + "]", "[c/00FFFF:The Devourer of Gods has slain everyone and feasted on their essence.]", @@ -559,12 +559,6 @@ namespace CalamityMod "SkeletronPrime", new List() {ModContent.ItemType(), ModContent.ItemType()}); - bossChecklist.Call( - "AddToBossLoot", - "Terraria", - "SkeletronPrime", - new List() {ModContent.ItemType()}); - //Plantera bossChecklist.Call( "AddToBossLoot", From 8e1701bbdfc2f0800b4085f18f6bd1b6d3a6cdc7 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 25 Jan 2020 09:15:35 -0500 Subject: [PATCH 10/17] changed rare item list for abyss fishing drops --- CalPlayer/CalamityPlayerFishing.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/CalPlayer/CalamityPlayerFishing.cs b/CalPlayer/CalamityPlayerFishing.cs index a1d56cb0f3..482c9834ef 100644 --- a/CalPlayer/CalamityPlayerFishing.cs +++ b/CalPlayer/CalamityPlayerFishing.cs @@ -185,19 +185,13 @@ namespace CalamityMod.CalPlayer if (abyssPosX) { - switch (Main.rand.Next(4)) + switch (Main.rand.Next(2)) { case 0: - rareItemList.Add(ModContent.ItemType()); + rareItemList.Add(ModContent.ItemType()); break; case 1: - rareItemList.Add(ModContent.ItemType()); - break; - case 2: - rareItemList.Add(ModContent.ItemType()); - break; - case 3: - rareItemList.Add(ModContent.ItemType()); + rareItemList.Add(ModContent.ItemType()); break; } } From 5bbeae8334b2e558429de5ad6d067d4a0328aafb Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 25 Jan 2020 09:56:08 -0500 Subject: [PATCH 11/17] statigel unique jump boost & bloatfish resproot --- Items/Armor/StatigelCap.cs | 4 +++- Items/Armor/StatigelHeadgear.cs | 4 +++- Items/Armor/StatigelHelm.cs | 4 +++- Items/Armor/StatigelHood.cs | 4 +++- Items/Armor/StatigelMask.cs | 4 +++- NPCs/Abyss/Bloatfish.png | Bin 4991 -> 1292 bytes 6 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Items/Armor/StatigelCap.cs b/Items/Armor/StatigelCap.cs index d9f740385b..f60ec36077 100644 --- a/Items/Armor/StatigelCap.cs +++ b/Items/Armor/StatigelCap.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -37,7 +38,8 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/StatigelHeadgear.cs b/Items/Armor/StatigelHeadgear.cs index b68de9cb05..b9ac4e47e4 100644 --- a/Items/Armor/StatigelHeadgear.cs +++ b/Items/Armor/StatigelHeadgear.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -37,7 +38,8 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/StatigelHelm.cs b/Items/Armor/StatigelHelm.cs index c1e28b93ac..9d16912b4b 100644 --- a/Items/Armor/StatigelHelm.cs +++ b/Items/Armor/StatigelHelm.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -37,7 +38,8 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/StatigelHood.cs b/Items/Armor/StatigelHood.cs index eaa6b8d86d..aa52185569 100644 --- a/Items/Armor/StatigelHood.cs +++ b/Items/Armor/StatigelHood.cs @@ -5,6 +5,7 @@ using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -41,7 +42,8 @@ namespace CalamityMod.Items.Armor modPlayer.statigelSet = true; modPlayer.slimeGod = true; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; player.minionDamage += 0.18f; if (player.whoAmI == Main.myPlayer) { diff --git a/Items/Armor/StatigelMask.cs b/Items/Armor/StatigelMask.cs index 1167cf4cc6..9525964c3e 100644 --- a/Items/Armor/StatigelMask.cs +++ b/Items/Armor/StatigelMask.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -42,7 +43,8 @@ namespace CalamityMod.Items.Armor modPlayer.statigelSet = true; modPlayer.rogueStealthMax += 1.05f; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; player.Calamity().wearingRogueArmor = true; } diff --git a/NPCs/Abyss/Bloatfish.png b/NPCs/Abyss/Bloatfish.png index dac4ff004e77d4362c4cd220652ba9fba40b17f0..f25faa4c9ad18aa7c93f0dfb62ec00767a635fa9 100644 GIT binary patch literal 1292 zcmV+n1@roeP)Px#Cs0gOMF0Q*9vmesEjSbr8AC`>FB(fohs`@ks9nqRF(-UrYjAb>`2YX_nHY(| z0000DbW%=J0RR90|NsC0|NsC0|1AVTtpET7dPzhXJT14qNK7&Z+qN!wB?fw}u|ETx~O*TUh1(*fi7 z{Y^trE*%dWTtddj5ntkgheLB5yE%BW>fz&!b95bD5{+{A;V8zbgI}HJfYVL^Fm$;? z39LAWk5F`e?br&be$2WreN{q-NPWaC#0hVia(LA@8|C}jgYcwh@0hcnK<+wm~Lun2BE4oAl=8t;T-0Y;)_f@$Kz zB>{Ei{7hlO=@yB{tZ5ED6$!q0e3P6TZ^pv}GJpitLx+O?w)6eTI3A6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;b#zG19;kyi0T{r-&I^U1HBkmVa=_+KI((i{< z1&8n6S1XtQ($mdMiz`EuerC))zPS-hxVd3;rv+K#6fv<)T0WBRJI={`o2VruYv)By zR?vS1=)-k9?6O<&SI#=4w*rLv3ntRjGj@@cRWE^KSVvN^&d-;-IIuzMw3ce#GZ7Y2 zlE3Co400%LVDsy7mMcY}^IGO_T$`K?kax%LMuh@WMH66;U4|py+qU!vm+Sd)hQDWa zvClTyTogFRY(D{j})$og({u+#pEp3xJ->K4QmYke)d1` C*ejX< From e2d55a17fe43fdead0c7d846d6f6fd903dcfd38c Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 25 Jan 2020 09:58:27 -0500 Subject: [PATCH 12/17] fixed reaper tooth necklace rarity --- Items/Accessories/ReaperToothNecklace.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Items/Accessories/ReaperToothNecklace.cs b/Items/Accessories/ReaperToothNecklace.cs index c161751304..be6516091e 100644 --- a/Items/Accessories/ReaperToothNecklace.cs +++ b/Items/Accessories/ReaperToothNecklace.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 10; item.accessory = true; + item.Calamity().postMoonLordRarity = 13; } public override void UpdateAccessory(Player player, bool hideVisual) From 82c07fef995d4629150d4c734d155f50423f5816 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 25 Jan 2020 16:37:55 -0500 Subject: [PATCH 13/17] Revert "updoot oracle tooltip" This reverts commit 6d923460d1dd29528f77c749dbefd2d31f0d7912. --- Items/Weapons/Melee/Oracle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index e974ecba00..76dc45f885 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Oracle"); - Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\nFires auric orbs when supercharged\nAn exceptionally agile yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'"); + Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\nFires auric orbs when supercharged\nAn incredibly agile yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; From 54f9d7d2d312b7dfd8fa9a16b7f9f80b7bb32f5a Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 25 Jan 2020 16:38:05 -0500 Subject: [PATCH 14/17] Revert "Obliterator tooltip consistency fix" This reverts commit 23fe5733d172130aa93aa4eb328dc8a24894e81a. --- Items/Weapons/Melee/TheObliterator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index 018807bb16..a375ed077b 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Obliterator"); - Tooltip.SetDefault("Ruins nearby enemies with death lasers\nAn exceptionally agile yoyo\n"); + Tooltip.SetDefault("Ruins nearby enemies with death lasers\nAn incredibly agile yoyo\n"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; From a3927e6ce292d59fd8fdefa3b0383cd07bc02725 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 25 Jan 2020 21:11:45 -0500 Subject: [PATCH 15/17] p90 and hadopelagic tweaks --- Items/Weapons/Ranged/P90.cs | 2 +- Projectiles/Magic/HadopelagicEchoSoundwave.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Ranged/P90.cs b/Items/Weapons/Ranged/P90.cs index c9029af4db..71a453390c 100644 --- a/Items/Weapons/Ranged/P90.cs +++ b/Items/Weapons/Ranged/P90.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 11; + item.damage = 6; item.ranged = true; item.width = 60; item.height = 28; diff --git a/Projectiles/Magic/HadopelagicEchoSoundwave.cs b/Projectiles/Magic/HadopelagicEchoSoundwave.cs index 62f43fa82e..6cae75130b 100644 --- a/Projectiles/Magic/HadopelagicEchoSoundwave.cs +++ b/Projectiles/Magic/HadopelagicEchoSoundwave.cs @@ -79,12 +79,12 @@ namespace CalamityMod.Projectiles.Magic public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - damage = (int)(((double)damage * (double)projectile.localAI[0]) * (((penetrationAmt + 1) - projectile.penetrate) * 0.02f)); + damage = (int)(((double)damage * (double)projectile.localAI[0]) / (projectile.penetrate / 2)); } public override void ModifyHitPvp(Player target, ref int damage, ref bool crit) { - damage = (int)(((double)damage * (double)projectile.localAI[0]) * (((penetrationAmt + 1) - projectile.penetrate) * 0.02f)); + damage = (int)(((double)damage * (double)projectile.localAI[0]) / (projectile.penetrate / 2)); } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Magic { echoCooldown = 60; int echoID = ModContent.ProjectileType(); - int echoDamage = (int)(0.2f * projectile.damage * (((penetrationAmt + 1) - projectile.penetrate) * 0.02f)); + int echoDamage = (int)(0.2f * projectile.damage); float echoKB = projectile.knockBack / 3; int echos = 5; for (int i = 0; i < echos; ++i) From ce8815ec20b0df671181222c0941086e1be79a82 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 25 Jan 2020 21:22:54 -0500 Subject: [PATCH 16/17] rotom adjustments --- Items/Pets/RotomRemote.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Items/Pets/RotomRemote.cs b/Items/Pets/RotomRemote.cs index 81e0ea8b47..47e1219cfe 100644 --- a/Items/Pets/RotomRemote.cs +++ b/Items/Pets/RotomRemote.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Pets { public override void SetStaticDefaults() { - DisplayName.SetDefault("Trifigelycen Etomer"); + DisplayName.SetDefault("Triboluminescent Etomer"); Tooltip.SetDefault("Summons an electric troublemaker\n" + "A little note is attached:\n" + "Thank you, Aloe! Very much appreciated from Ben"); @@ -48,9 +48,8 @@ namespace CalamityMod.Items.Pets { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ItemID.IronBar, 10); + recipe.AddRecipeGroup("AnyGoldBar", 8); recipe.AddIngredient(ModContent.ItemType()); - recipe.anyIronBar = true; recipe.AddTile(TileID.Anvils); recipe.SetResult(this); recipe.AddRecipe(); From 3de97bc55381838126969061d862a323923a20aa Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 25 Jan 2020 22:23:13 -0500 Subject: [PATCH 17/17] yoyo, canhitnpc, and damage shit --- Items/Weapons/Melee/Azathoth.cs | 4 +++- Items/Weapons/Melee/Lacerator.cs | 4 +++- Items/Weapons/Melee/Oracle.cs | 5 ++++- Items/Weapons/Melee/SolarFlare.cs | 3 ++- Items/Weapons/Melee/TheMicrowave.cs | 2 +- Items/Weapons/Melee/TheObliterator.cs | 3 ++- Projectiles/Melee/CosmicDischargeFlail.cs | 4 +--- Projectiles/Melee/MourningstarFlail.cs | 2 +- Projectiles/Melee/NebulashFlail.cs | 2 +- Projectiles/Rogue/CelestialReaperProjectile.cs | 17 ++++++++++------- Projectiles/Rogue/DesecratedBubble.cs | 17 +++++++++++++---- Projectiles/Rogue/PhantasmalSoul.cs | 17 +++++++++++++---- Projectiles/Typeless/CursorProjSplit.cs | 11 ++++++++++- 13 files changed, 64 insertions(+), 27 deletions(-) diff --git a/Items/Weapons/Melee/Azathoth.cs b/Items/Weapons/Melee/Azathoth.cs index b617ed98ba..e97ea6e976 100644 --- a/Items/Weapons/Melee/Azathoth.cs +++ b/Items/Weapons/Melee/Azathoth.cs @@ -12,7 +12,9 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Azathoth"); - Tooltip.SetDefault("Fires cosmic orbs that blast nearby enemies with lasers\nAn exceptionally agile yoyo\n'Destroy the universe in the blink of an eye'"); + Tooltip.SetDefault("Fires cosmic orbs that blast nearby enemies with lasers\n" + + "A very agile yoyo\n" + + "Destroy the universe in the blink of an eye"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/Lacerator.cs b/Items/Weapons/Melee/Lacerator.cs index 36b13272ee..41f250e988 100644 --- a/Items/Weapons/Melee/Lacerator.cs +++ b/Items/Weapons/Melee/Lacerator.cs @@ -11,7 +11,9 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Lacerator"); - Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\nAn exceptionally agile yoyo\n'Someone thought this was a viable weapon against DoG at one point lol'"); + Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\n" + + "A very agile yoyo\n" + "Someone thought this was a viable weapon against DoG at one point lol"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index 76dc45f885..e93b77f3f5 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -13,7 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Oracle"); - Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\nFires auric orbs when supercharged\nAn incredibly agile yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'"); + Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\n" + + "Fires auric orbs when supercharged\n" + + "An exceptionally agile yoyo\n" + + "Gaze into the past, the present, the future... and the circumstances of your inevitable demise"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/SolarFlare.cs b/Items/Weapons/Melee/SolarFlare.cs index 534a992a3d..50db47237e 100644 --- a/Items/Weapons/Melee/SolarFlare.cs +++ b/Items/Weapons/Melee/SolarFlare.cs @@ -10,7 +10,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Solar Flare"); - Tooltip.SetDefault("Emits large holy explosions on hit\nAn exceptionally agile yoyo"); + Tooltip.SetDefault("Emits large holy explosions on hit\n" + + "A very agile yoyo"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/TheMicrowave.cs b/Items/Weapons/Melee/TheMicrowave.cs index 70364e6cb5..8d5eb11ed0 100644 --- a/Items/Weapons/Melee/TheMicrowave.cs +++ b/Items/Weapons/Melee/TheMicrowave.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("The Microwave"); Tooltip.SetDefault("Fries nearby enemies with radiation\n" + - "An exceptionally agile yoyo\n" + + "A very agile yoyo\n" + "Cooking, Astral Infection style"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index a375ed077b..6856c66a74 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -10,7 +10,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Obliterator"); - Tooltip.SetDefault("Ruins nearby enemies with death lasers\nAn incredibly agile yoyo\n"); + Tooltip.SetDefault("Ruins nearby enemies with death lasers\n" + + "An exceptionally agile yoyo"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Projectiles/Melee/CosmicDischargeFlail.cs b/Projectiles/Melee/CosmicDischargeFlail.cs index 1a1129e343..b39e73c90f 100644 --- a/Projectiles/Melee/CosmicDischargeFlail.cs +++ b/Projectiles/Melee/CosmicDischargeFlail.cs @@ -13,8 +13,6 @@ namespace CalamityMod.Projectiles.Melee { public class CosmicDischargeFlail : ModProjectile { - - public override void SetStaticDefaults() { DisplayName.SetDefault("Cosmic Discharge"); @@ -271,7 +269,7 @@ namespace CalamityMod.Projectiles.Melee } if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } projectile.localAI[1] = 4f; player.AddBuff(ModContent.BuffType(), 300); diff --git a/Projectiles/Melee/MourningstarFlail.cs b/Projectiles/Melee/MourningstarFlail.cs index f234422953..5687be6439 100644 --- a/Projectiles/Melee/MourningstarFlail.cs +++ b/Projectiles/Melee/MourningstarFlail.cs @@ -209,7 +209,7 @@ namespace CalamityMod.Projectiles.Melee target.AddBuff(BuffID.Daybreak, 300); if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, projectile.damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } projectile.localAI[1] = 4f; } diff --git a/Projectiles/Melee/NebulashFlail.cs b/Projectiles/Melee/NebulashFlail.cs index 9a257a7635..8c1520bf78 100644 --- a/Projectiles/Melee/NebulashFlail.cs +++ b/Projectiles/Melee/NebulashFlail.cs @@ -220,7 +220,7 @@ namespace CalamityMod.Projectiles.Melee target.AddBuff(ModContent.BuffType(), 120); if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), damage, knockback, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, knockback, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } projectile.localAI[1] = 4f; } diff --git a/Projectiles/Rogue/CelestialReaperProjectile.cs b/Projectiles/Rogue/CelestialReaperProjectile.cs index 39b9736c8f..1e79c10013 100644 --- a/Projectiles/Rogue/CelestialReaperProjectile.cs +++ b/Projectiles/Rogue/CelestialReaperProjectile.cs @@ -54,7 +54,16 @@ namespace CalamityMod.Projectiles.Rogue } } - public override bool CanDamage() + public override bool? CanHitNPC(NPC target) + { + if (HomingCooldown != 0) + { + return false; + } + return null; + } + + public override bool CanHitPvp(Player target) { return HomingCooldown == 0; } @@ -63,12 +72,6 @@ namespace CalamityMod.Projectiles.Rogue { HomingCooldown = 25; projectile.velocity *= -0.75f; //bounce off of enemy - - //prevent dummy exploits - if (target.type == NPCID.TargetDummy || target.type == ModContent.NPCType()) - { - projectile.Kill(); - } } public override void Kill(int timeLeft) { diff --git a/Projectiles/Rogue/DesecratedBubble.cs b/Projectiles/Rogue/DesecratedBubble.cs index c61e6b2801..bb76ee6c12 100644 --- a/Projectiles/Rogue/DesecratedBubble.cs +++ b/Projectiles/Rogue/DesecratedBubble.cs @@ -116,9 +116,18 @@ namespace CalamityMod.Projectiles.Rogue } // Cannot deal damage for the first several frames of existence. - public override bool CanDamage() - { - return projectile.timeLeft < 100; - } + public override bool? CanHitNPC(NPC target) + { + if (projectile.timeLeft >= 100) + { + return false; + } + return null; + } + + public override bool CanHitPvp(Player target) + { + return projectile.timeLeft < 100; + } } } \ No newline at end of file diff --git a/Projectiles/Rogue/PhantasmalSoul.cs b/Projectiles/Rogue/PhantasmalSoul.cs index 4845ed9e28..fa1df00e7d 100644 --- a/Projectiles/Rogue/PhantasmalSoul.cs +++ b/Projectiles/Rogue/PhantasmalSoul.cs @@ -179,9 +179,18 @@ namespace CalamityMod.Projectiles.Rogue } // Cannot deal damage for the first several frames of existence. - public override bool CanDamage() - { - return projectile.timeLeft < 590; - } + public override bool? CanHitNPC(NPC target) + { + if (projectile.timeLeft >= 590) + { + return false; + } + return null; + } + + public override bool CanHitPvp(Player target) + { + return projectile.timeLeft < 590; + } } } diff --git a/Projectiles/Typeless/CursorProjSplit.cs b/Projectiles/Typeless/CursorProjSplit.cs index 36440ec6ba..d812e942b7 100644 --- a/Projectiles/Typeless/CursorProjSplit.cs +++ b/Projectiles/Typeless/CursorProjSplit.cs @@ -199,7 +199,16 @@ namespace CalamityMod.Projectiles.Typeless target.AddBuff(ModContent.BuffType(), 120); } - public override bool CanDamage() + public override bool? CanHitNPC(NPC target) + { + if (projectile.alpha >= 128) + { + return false; + } + return null; + } + + public override bool CanHitPvp(Player target) { return projectile.alpha < 128; }