From dcb4db05bfd68025fea4f5ef916151e4ac664c61 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 23 Jan 2021 05:12:09 -0500 Subject: [PATCH 1/5] 1 - Added the Shattered Community. 2 - Rage is no longer gained when hit unless you have Shattered Community equipped. 3 - Reduced rage gain when hit to 80% efficiency. If Rage Mode is active, this is halved to 40% efficiency. --- CalPlayer/CalamityPlayer.cs | 33 +++- CalPlayer/CalamityPlayerMiscEffects.cs | 46 ++++- Items/Accessories/ShatteredCommunity.cs | 237 +++++++++++++++++++++++ Items/Accessories/ShatteredCommunity.png | Bin 0 -> 2964 bytes Items/Accessories/StatMeter.cs | 1 + Items/Accessories/TheCommunity.cs | 8 +- Items/CalamityGlobalItem.cs | 2 + Utilities/CalamityUtils.cs | 3 +- 8 files changed, 310 insertions(+), 20 deletions(-) create mode 100644 Items/Accessories/ShatteredCommunity.cs create mode 100644 Items/Accessories/ShatteredCommunity.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 9a7f318f0b..2b65d89652 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -191,6 +191,7 @@ namespace CalamityMod.CalPlayer public int armorPenetrationStat = 0; public float wingFlightTimeStat = 0f; public float jumpSpeedStat = 0f; + public int rageDamageStat = 0; public int adrenalineDamageStat = 0; public int adrenalineDRStat = 0; public int moveSpeedStat = 0; @@ -349,9 +350,8 @@ namespace CalamityMod.CalPlayer public int rageCombatFrames = 0; public static readonly int RageCombatDelayTime = CalamityUtils.SecondsToFrames(10); public static readonly int RageFadeTime = CalamityUtils.SecondsToFrames(30); - public static readonly double RageDamageBoost = 0.5D; // +50% - public static readonly float MinRageDR = 0.1f; // 10% DR - public static readonly float MaxRageDR = 0.2f; // 20% DR + public static readonly double DefaultRageDamageBoost = 0.5D; // +50% + public double RageDamageBoost = DefaultRageDamageBoost; #endregion #region Adrenaline @@ -481,6 +481,7 @@ namespace CalamityMod.CalPlayer public bool reducedPlagueDmg = false; public bool abaddon = false; public bool community = false; + public bool shatteredCommunity = false; public bool fleshTotem = false; public bool fleshTotemCooldown = false; public bool bloodPact = false; @@ -1338,6 +1339,9 @@ namespace CalamityMod.CalPlayer int integerTypeBoost = (int)(floatTypeBoost * 50f); player.statLifeMax2 += player.statLifeMax / 5 / 20 * integerTypeBoost; } + // Shattered Community gives the same max health boost as normal full-power Community (10%) + if (shatteredCommunity) + player.statLifeMax2 += (player.statLifeMax / 5 / 10) * 5; // Max health reductions if (crimEffigy) @@ -1539,6 +1543,7 @@ namespace CalamityMod.CalPlayer reducedPlagueDmg = false; abaddon = false; community = false; + shatteredCommunity = false; stressPills = false; laudanum = false; fleshTotem = false; @@ -1964,6 +1969,7 @@ namespace CalamityMod.CalPlayer rageModeActive = false; adrenalineModeActive = false; RageDuration = DefaultRageDuration; + RageDamageBoost = DefaultRageDamageBoost; lastProjectileHit = null; } @@ -4699,6 +4705,12 @@ namespace CalamityMod.CalPlayer CalamityPlayerOnHit.ItemLifesteal(player, mod, target, item, damage); CalamityPlayerOnHit.ItemOnHit(player, mod, item, damage, target.Center, crit, (target.damage > 5 || target.boss) && !target.SpawnedFromStatue); CalamityPlayerOnHit.NPCDebuffs(player, mod, target, item.melee, item.ranged, item.magic, item.summon, item.Calamity().rogue, false); + + // Shattered Community tracks all damage dealt with Rage Mode (ignoring dummies). + if (target.type == NPCID.TargetDummy || target.type == ModContent.NPCType()) + return; + if (rageModeActive && shatteredCommunity) + ShatteredCommunity.AccumulateRageDamage(player, this, damage); } #endregion @@ -4835,6 +4847,12 @@ namespace CalamityMod.CalPlayer CalamityPlayerOnHit.ProjLifesteal(player, mod, target, proj, damage, crit); CalamityPlayerOnHit.ProjOnHit(player, mod, proj, target.Center, crit, (target.damage > 5 || target.boss) && !target.SpawnedFromStatue); CalamityPlayerOnHit.NPCDebuffs(player, mod, target, proj.melee, proj.ranged, proj.magic, proj.IsSummon(), proj.Calamity().rogue, true); + + // Shattered Community tracks all damage dealt with Rage Mode (ignoring dummies). + if (target.type == NPCID.TargetDummy || target.type == ModContent.NPCType()) + return; + if (rageModeActive && shatteredCommunity) + ShatteredCommunity.AccumulateRageDamage(player, this, damage); } } #endregion @@ -7094,11 +7112,14 @@ namespace CalamityMod.CalPlayer if ((godSlayerDamage && damage <= 80) || damage < 1) damage = 1; - // Gain rage based on the amount of damage taken. Also set the Rage gain cooldown to prevent bizarre abuse cases. - if (CalamityWorld.revenge && CalamityConfig.Instance.Rippers && rageGainCooldown == 0) + // Shattered Community makes the player gain rage based on the amount of damage taken. + // Also set the Rage gain cooldown to prevent bizarre abuse cases. + if (CalamityWorld.revenge && CalamityConfig.Instance.Rippers && shatteredCommunity && rageGainCooldown == 0) { float HPRatio = (float)damage / player.statLifeMax2; - rage += rageMax * HPRatio; + // Damage to rage conversion is half as effective while Rage Mode is active. + float rageConversionRatio = rageModeActive ? 0.4f : 0.8f; + rage += rageMax * HPRatio * rageConversionRatio; rageGainCooldown = DefaultRageGainCooldown; // Rage capping is handled in MiscEffects } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 7f547cf76c..ba59b54fb8 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -294,27 +294,49 @@ namespace CalamityMod.CalPlayer // This is how much Rage will be changed by this frame. float rageDiff = 0; - // Draedon's Heart provides constant rage generation that scales with missing health. - if (modPlayer.draedonsHeart) + // If the player equips multiple rage generation accessories they get the max possible effect without stacking any of them. { - float percentMissingHealth = 1f - player.statLife / player.statLifeMax2; - float rageGainLerp = MathHelper.Lerp(DraedonsHeart.MinRagePerSecond, DraedonsHeart.MaxRagePerSecond, percentMissingHealth); - rageDiff += modPlayer.rageMax * rageGainLerp / 60f; + float rageGen = 0f; + + // Draedon's Heart provides constant rage generation that scales with missing health. + if (modPlayer.draedonsHeart) + { + float percentMissingHealth = 1f - player.statLife / player.statLifeMax2; + float rageGainLerp = MathHelper.Lerp(DraedonsHeart.MinRagePerSecond, DraedonsHeart.MaxRagePerSecond, percentMissingHealth); + float dhRageGen = modPlayer.rageMax * rageGainLerp / 60f; + if (rageGen < dhRageGen) + rageGen = dhRageGen; + } + // Shattered Community provides constant rage generation (stronger than Heart of Darkness). + if (modPlayer.shatteredCommunity) + { + float scRageGen = modPlayer.rageMax * ShatteredCommunity.RagePerSecond / 60f; + if (rageGen < scRageGen) + rageGen = scRageGen; + } + // Heart of Darkness grants constant rage generation. + else if (modPlayer.heartOfDarkness) + { + float hodRageGen = modPlayer.rageMax * HeartofDarkness.RagePerSecond / 60f; + if (rageGen < hodRageGen) + rageGen = hodRageGen; + } + + rageDiff += rageGen; } - // Heart of Darkness grants constant rage generation. - else if (modPlayer.heartOfDarkness) - rageDiff += modPlayer.rageMax * HeartofDarkness.RagePerSecond / 60f; // Holding Gael's Greatsword grants constant rage generation. if (modPlayer.heldGaelsLastFrame) rageDiff += modPlayer.rageMax * GaelsGreatsword.RagePerSecond / 60f; + bool rageFading = modPlayer.rageCombatFrames <= 0 && !modPlayer.heartOfDarkness && !modPlayer.shatteredCommunity; + // If Rage Mode is currently active, you smoothly lose all rage over the duration. if (modPlayer.rageModeActive) rageDiff -= modPlayer.rageMax / modPlayer.RageDuration; - // If out of combat and NOT using Heart of Darkness, Rage fades away. - else if (!modPlayer.rageModeActive && modPlayer.rageCombatFrames <= 0 && !modPlayer.heartOfDarkness) + // If out of combat and NOT using Heart of Darkness or Shattered Community, Rage fades away. + else if (!modPlayer.rageModeActive && rageFading) rageDiff -= modPlayer.rageMax / CalamityPlayer.RageFadeTime; // Apply the rage change and cap rage in both directions. @@ -2653,6 +2675,9 @@ namespace CalamityMod.CalPlayer player.moveSpeed += floatTypeBoost; flightTimeMult += floatTypeBoost; } + // Shattered Community gives the same wing time boost as normal Community + if (modPlayer.shatteredCommunity) + flightTimeMult += 0.15f; if (modPlayer.profanedCrystalBuffs && modPlayer.gOffense && modPlayer.gDefense) { @@ -3922,6 +3947,7 @@ namespace CalamityMod.CalPlayer (player.wereWolf ? 0.2f : 0f) + (player.jumpBoost ? 1.5f : 0f); modPlayer.jumpSpeedStat = trueJumpSpeedBoost * 20f; + modPlayer.rageDamageStat = (int)(100D * modPlayer.RageDamageBoost); modPlayer.adrenalineDamageStat = (int)(100D * modPlayer.GetAdrenalineDamage()); int extraAdrenalineDR = 0 + (modPlayer.adrenalineBoostOne ? 5 : 0) + diff --git a/Items/Accessories/ShatteredCommunity.cs b/Items/Accessories/ShatteredCommunity.cs new file mode 100644 index 0000000000..f697de0501 --- /dev/null +++ b/Items/Accessories/ShatteredCommunity.cs @@ -0,0 +1,237 @@ +using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.World; +using Microsoft.Xna.Framework; +using System.Collections.Generic; +using System.Text; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ModLoader.IO; + +namespace CalamityMod.Items.Accessories +{ + public class ShatteredCommunity : ModItem + { + // The percentage of a full Rage bar that is gained every second with the Shattered Community equipped. + public const float RagePerSecond = 0.02f; + private static readonly Color rarityColorOne = new Color(128, 62, 128); + private static readonly Color rarityColorTwo = new Color(245, 105, 245); + + private bool everInInventory = false; + + // Base level cost is 400,000 damage dealt while Rage is active. + // Each successive level costs (400,000 * level) MORE damage, so the total required goes up quadratically. + // Total required to reach level 60 is 732,000,000 damage dealt. + // This is within one order of magnitude of the integer limit, so relevant values are stored as longs. + private const long BaseLevelCost = 400000L; + private static long LevelCost(int level) => BaseLevelCost * level; + private static long CumulativeLevelCost(int level) => (BaseLevelCost / 2L) * level * (level + 1); + private const int MaxLevel = 60; + + internal int rageLevel = 0; + internal long totalRageDamage = 0L; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shattered Community"); + Tooltip.SetDefault("Ruined by unknowable hatred, it still contains (most of) the power of The Community...\n" + + "Legendary Accessory\n" + + "You generate rage over time and rage does not fade away out of combat\n" + + "Taking damage gives rage, this effect is not hindered by your defensive stats\n" + + "While Rage Mode is active, taking damage gives only half as much rage\n" + + "Deal damage with Rage Mode to further empower your wrath\n"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 5)); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.accessory = true; + item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; + item.rare = ItemRarityID.Red; + item.Calamity().customRarity = CalamityRarity.ItemSpecific; + } + + // Not overriding these Clones makes tooltips fail to function correctly due to HoverItem spaghetti. + public override ModItem Clone() + { + var clone = (ShatteredCommunity)base.Clone(); + clone.everInInventory = everInInventory; + clone.rageLevel = rageLevel; + clone.totalRageDamage = totalRageDamage; + return clone; + } + public override ModItem Clone(Item item) + { + var clone = (ShatteredCommunity)base.Clone(); + clone.everInInventory = everInInventory; + clone.rageLevel = rageLevel; + clone.totalRageDamage = totalRageDamage; + return clone; + } + + internal static Color GetRarityColor() => CalamityUtils.ColorSwap(rarityColorOne, rarityColorTwo, 3f); + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.shatteredCommunity = true; + + // Shattered Community gives (mostly) the same boosts as normal Community + // It does not give melee speed or minion knockback, but always gives life regen (instead of only conditionally) + player.allDamage += 0.1f; + modPlayer.AllCritBoost(5); + player.statDefense += 10; + player.endurance += 0.05f; + player.lifeRegen += 2; + player.moveSpeed += 0.2f; + + // Shattered Community provides a stacking +1% Rage Mode damage per level. + modPlayer.RageDamageBoost += rageLevel * 0.01; + } + + // Community and Shattered Community are mutually exclusive + public override bool CanEquipAccessory(Player player, int slot) => !player.Calamity().community; + public override bool CanUseItem(Player player) => false; + + public override void UpdateInventory(Player player) + { + everInInventory = true; + } + + // Produces purple light while in the world. + public override void PostUpdate() + { + Vector3 lightColor = Main.essScale * new Vector3(0.1f, 0f, 0.6f); + Lighting.AddLight(item.Center, lightColor); + } + + internal static void AccumulateRageDamage(Player player, CalamityPlayer mp, long damage) + { + if (!mp.shatteredCommunity) + return; + // Static context, so the item ID has to be retrieved from TML. + int thisItemID = ModContent.ItemType(); + ShatteredCommunity sc = null; + + // First, find the Shattered Community in the player's inventory. + // slots 3, 4, 5, 6, 7, 8, 9 are valid non-vanity accessories + for (int i = 3; i <= 9; ++i) + { + Item acc = player.armor[i]; + if (acc.type == thisItemID) + sc = acc.modItem as ShatteredCommunity; + } + + // Safety check in case for some reason the equipped Shattered Community isn't found. + if (sc is null) + return; + + // Actually accumulate the damage. + sc.totalRageDamage += damage; + + // Level up if applicable. + if (sc.totalRageDamage > CumulativeLevelCost(sc.rageLevel + 1)) + { + ++sc.rageLevel; + sc.LevelUpEffects(player); + } + } + + private void LevelUpEffects(Player player) + { + // TODO -- it should probably do something fancy involving dust or whatever + } + + public override void ModifyTooltips(List tooltips) + { + // Shattered Community hides its full tooltip when viewed via Recipe Browser or similar. + // Instead, it notifies the player that it must be crafted with a full-power Community. + // Once it has entered a player's inventory, it permanently behaves normally. + if (!everInInventory) + { + tooltips.RemoveAll(line => line.Name != "Tooltip0" && line.Name != "Tooltip1" && line.Name != "Tooltip2" && line.Name.StartsWith("Tooltip")); + tooltips.Find(line => line.Name == "Tooltip2").text = "Must be crafted with a fully powered Community"; + return; + } + + // Stat tooltips are added dynamically. + StringBuilder sb = new StringBuilder(256); + + // Line 6: Current level + sb.Append("Current level: "); + sb.Append(rageLevel); + sb.Append(" (+"); + sb.Append(rageLevel); + sb.Append("% Rage Mode damage)"); + tooltips.Add(new TooltipLine(mod, "Tooltip6", sb.ToString())); + sb.Clear(); + + if (rageLevel < MaxLevel) + { + long progressToNextLevel = totalRageDamage - CumulativeLevelCost(rageLevel); + long totalToNextLevel = LevelCost(rageLevel + 1); + double ratio = (double)progressToNextLevel / totalToNextLevel; + string percent = (100D * ratio).ToString("0.00"); + + // Line 7: Progress to next level + sb.Append("Progress to next level: "); + sb.Append(percent); + sb.Append('%'); + tooltips.Add(new TooltipLine(mod, "Tooltip7", sb.ToString())); + sb.Clear(); + } + + // Line 8: Total damage dealt + sb.Append("Total Rage Mode damage: "); + sb.Append(totalRageDamage); + tooltips.Add(new TooltipLine(mod, "Tooltip8", sb.ToString())); + } + + public override TagCompound Save() + { + TagCompound tag = new TagCompound + { + { "real", everInInventory }, + { "level", rageLevel }, + { "totalDamage", totalRageDamage } + }; + return tag; + } + + public override void Load(TagCompound tag) + { + everInInventory = tag.GetBool("real"); + rageLevel = tag.GetInt("level"); + totalRageDamage = tag.GetLong("totalDamage"); + } + + public override void AddRecipes() + { + ModRecipe r = new ShatteredCommunityRecipe(mod); + r.SetResult(this); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 120); + r.AddRecipe(); + } + + // The Shattered Community can only be crafted with a full-power Community. + // That is, in a world where all relevant bosses have been defeated. + private class ShatteredCommunityRecipe : ModRecipe + { + public ShatteredCommunityRecipe(Mod mod) : base(mod) { } + + public override bool RecipeAvailable() + { + bool vanillaBosses = NPC.downedSlimeKing && NPC.downedBoss1 && NPC.downedBoss2 && NPC.downedQueenBee && NPC.downedBoss3 && Main.hardMode; + vanillaBosses &= NPC.downedMechBossAny && NPC.downedPlantBoss && NPC.downedGolemBoss && NPC.downedFishron && NPC.downedAncientCultist && NPC.downedMoonlord; + bool calamityBosses = CalamityWorld.downedProvidence && CalamityWorld.downedDoG && CalamityWorld.downedYharon; + return vanillaBosses && calamityBosses; + } + } + } +} diff --git a/Items/Accessories/ShatteredCommunity.png b/Items/Accessories/ShatteredCommunity.png new file mode 100644 index 0000000000000000000000000000000000000000..3d24764cc2d503e7c58e96344d2856148d7cd683 GIT binary patch literal 2964 zcmY*bc{tQ-8~#y|Ee!2c#u(cn(c~B=OC!cMl2G<6gOnoVXFc|jZIEOciOyu5ESZ!c zEw+TROj)yxF_sxJ_VCU5&OhJx*YjNO`@HvaUGM$8_x<86EsR72PY414Ac8SQTX7>4 z0C*1`^}0Me^3A43jHZDWyl3hD`~eUZtgdX>?Z7kuu)0 z_QDz7AcZTL8CimDnCv0U!lLW?e8Ku~h{lR%@W^=HPPpn?H!F2KjPWJZ4>#T>s^*Z< ztGSRn*5W)YvyBX&Fk?k%#vLh9ZT0z%v$QG^$M2_+btW;ez(@T_yJ+={blVu1xb8zI z_ETMgq`px$bhgYYvpxQ>JB^b%qHJjn4dftTwLPv%HJYhP1d~Mrz6NT|F8aYCWe(y| zM&Dy&z46KX;l88YOM$n0B20?T5+n^7IX&7PIu`;C0!#C8G$2;K7%9&GgZGHEH{M-6 zl>PuBL%z6a54`(u_TqcMDpXvKb5M%a{)=ssY~86=Bvx;^HkcmdY9dS=5u_!|3a!I2H+gj4>+ zNP0r^J|JvqE1^3AN9l$GYR!L&>Ro}lHAn6Za8WNV8Mg-*jg+I|`ny|0g*-r8TE4JS zVlEmYnXLO@_4n*{kM=N*_(oJO5=t2hC9Q1CQbyec<~zrjs5e7|rs|gLWkui}yK^Eb2$!u3tzR@l>azVa2vefY5FLNGeom|?6+hBMuOHF83(G!N7MxD~b3T@Q zl$O{2Y2Fq9aM@f4X`ZykInoZ^d`bYwf8Ch=gTgd-FU>nR(NI7QG~xwr9iYA9H2vc3==yEa7&=UjnEP5BSR#KC0>HqisSF;L z0dH@9V%lIQsoTw2T5+p&*eDEdJe?CbL5k!D!glz_E9#mzBn0T4{>tl{FCdD6q#yib zX#J&&&rIAEYN77hFuW4MYNV0v2^5diWK$VV*&7lvO>g;%&dZBK*^+V3;DnzxSI0_c zcD_4~7tAlH-3#8NpN&xDiK2{e+p{93%wvl=`vSIk0Ka^&R)oV6>p*wziXia&oe?!> zweD`X@B)|&>)cnEewY>iZR?y%-)7OmAJpOvEro8Wl)D~FarGLsBvcOSC|BNDQD{P2 zNrpcww`Oyz?Y4S1f5`?GB4$^7zg|1?%K2*S)gF`nQey_+bk|bP@5{=DmwumsfT{ci z5_%kX#{1x^0;GC{lU5QsN#P9$Yari3Lt!sQEp^*oup8;gtr`M>b<^Y1+XFBw@YIc@ zu982C<5%bb86Ay7+;)G9+=ZkYbp~{yjq&dH;Tbpz@2vDW^QhsOUu41VT!p``+H&MF zpp+dK^~Ymx_CK{f>LrPK=|@>X!tMH-USMF0Ob>Vq5{ff49*@`f%I=2<9lci8d{|x;mZ4KZYl_Y=d3mvVtS8E zBqlFnt`xXJnyyd!Km^t}VcE*dA>c)c6LX+*LkolX$UNFebz2HPamf$*t#3t6M)wD% zgv1D_O&mj)kc`5NRGB9m0;Ma4N%iu;QrB0U>^djRHbHbS&i2ro@J^%3)mT~T(X=}q z6pK+Ph4R;AP)ovAsMm883jTpXBPSglT~A3RQNG{sKlOR9N&oVky+uMR2-=8Y=+RtN z^YXg$Meo4z3pQf-5D>D$ft{RTB08f~<9hlYc1Kl>_9<^uCe1(UpzsT(p26dze_;J` zl;zILiYvEY7NdOjK0vV3huMgIP)l~b3OYP-6BBknA&yX)SF5Ni5(|WuJSlIxw#<<- zV0>y@SCJP$q?HYMp(CM+2E!@w*S(8!V&Zm(bhDb|%g_efS+8x2D%1^>Lre7McgisC zvNVS*1)JXDFl2nYYsCkJq4Qztb9$_SGqhqa76=*=oyK(rS;^F% zu{s1#RPCOY5b)Z&ruJs~&?-kT+}T?d!ekzLIN!L$G-{sGnIUX@ zPGd-YID!}ouZAawubu&ZrbU9Io89A@>*=+c4~1K6R4Q`ON}-@xY(TOBiaM&zHU)l8 z>mmcq%%M(L>?wg^5oqQa4-^Xj-@2>uhlKIlZBNQraQFZ?BAQZI;>EBadFj^QB0@kRi2{ahU)X7=>=qrCi zByzY-rLmGk3A_Eg zfBrHJPOwc00Y9_~LaU>V`z8OO@?WNBn3%4VK<)Wuwzc9J8~9vPTJAF+#MdMnQ?e-Swb z)yE@{g!rM#qFY3nUW3e8?Eb^U_%bvhQFPP!fo##!Q3f(*P8TObTXYcK`09-%_@KqN{`l9k70E4w04ZmfD~| z6Z`pF+)1u9g!SYjgW2I%Pj3toU?`~{hdSanbf|5o!z6(v*86G)w=3Oqp3r0LnvAjmbl`=>s`rnjf(<@Ttr7j$eg+usq1X6SCjuj9#$Ck8@5H?f@* z4kz*aQ~cTE`1?v$i`FMCvy45kY3<_q9FDv6@~i$WuAr}Sz8h?{*7>7Qg97#KJ}7GE zJaaSSC&5&+vAykUULuDx{lLujtu zj?G}zFPbsCHo~8NlNWec`MfIt`HgrAa9P2%=7)ODFdglwESn#+(5D%BCk&M^mEc1Lug4qje<6$<`tmaBY( z4OlPd?xU#BU|heS%Mr5jc0?iY{g`xIF6nRStkyq>JuZxtfP$xPO%9)n$ z`#!^xxNqENiE}^q;XJK|Ea#zp4kS8>7c-cPV?VSW*M02j)4-A+{_im7kmS!{vHxBL z#v7Zayg#BJSvYL3N$ZPI*yMj$ko_xu83W8Pc{20l0gesfq&Jo<0(_>~2LXzL&?t?b+R_uLN<{tt1HIQCb=jsVbjZ_XSLPoBKB!hvgIVZhzC`b7YG !player.Calamity().shatteredCommunity; + } } diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index fec4382501..99bdf57e1a 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1147,6 +1147,8 @@ namespace CalamityMod.Items tt2.overrideColor = Judgement.GetSyncedLightColor(); if (item.type == ModContent.ItemType()) tt2.overrideColor = new Color(0.34f, 0.34f + 0.66f * Main.DiscoG / 255f, 0.34f + 0.5f * Main.DiscoG / 255f); + if (item.type == ModContent.ItemType()) + tt2.overrideColor = ShatteredCommunity.GetRarityColor(); if (item.type == ModContent.ItemType()) tt2.overrideColor = CalamityUtils.ColorSwap(new Color(255, 166, 0), new Color(25, 250, 25), 4f); //alternates between emerald green and amber (BanditHueh) if (item.type == ModContent.ItemType()) diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index 140298da2d..167f8793a6 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -173,8 +173,7 @@ namespace CalamityMod } else if (mp.rageModeActive) { - double rageBoost = CalamityPlayer.RageDamageBoost; // other effects forthcoming - damageMult += rageBoost; + damageMult += mp.RageDamageBoost; } else if (mp.adrenalineModeActive) damageMult += mp.GetAdrenalineDamage(); From 9b70734a1af26389fd33fd96c55fa439cc030610 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 23 Jan 2021 05:31:12 -0500 Subject: [PATCH 2/5] Fixed lighting and animation. --- Items/Accessories/ShatteredCommunity.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Accessories/ShatteredCommunity.cs b/Items/Accessories/ShatteredCommunity.cs index f697de0501..f0476a3e1c 100644 --- a/Items/Accessories/ShatteredCommunity.cs +++ b/Items/Accessories/ShatteredCommunity.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Accessories "Taking damage gives rage, this effect is not hindered by your defensive stats\n" + "While Rage Mode is active, taking damage gives only half as much rage\n" + "Deal damage with Rage Mode to further empower your wrath\n"); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 5)); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(7, 5)); } public override void SetDefaults() @@ -105,8 +105,8 @@ namespace CalamityMod.Items.Accessories // Produces purple light while in the world. public override void PostUpdate() { - Vector3 lightColor = Main.essScale * new Vector3(0.1f, 0f, 0.6f); - Lighting.AddLight(item.Center, lightColor); + float brightness = Main.essScale; + Lighting.AddLight(item.Center, 0.92f * brightness, 0.42f * brightness, 0.92f * brightness); } internal static void AccumulateRageDamage(Player player, CalamityPlayer mp, long damage) From 9fcf16b3bd54905bd63cc108d6a8a529b9086bda Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 27 Jan 2021 22:51:48 -0500 Subject: [PATCH 3/5] Added Proximity Rage. Refactored enemy and boss checks. --- CalPlayer/CalamityPlayerMiscEffects.cs | 67 ++++++- NPCs/CalamityGlobalNPC.cs | 17 -- NPCs/TownNPCs/FAP.cs | 2 +- UI/AstralArcanumUI.cs | 2 +- Utilities/CalamityUtils.cs | 258 +++++++++++++++---------- 5 files changed, 220 insertions(+), 126 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index ba59b54fb8..c33ea9117c 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -62,7 +62,7 @@ namespace CalamityMod.CalPlayer Main.expertDebuffTime = 1f; // Bool for any existing bosses, true if any boss NPC is active - CalamityPlayer.areThereAnyDamnBosses = CalamityGlobalNPC.AnyBossNPCS(); + CalamityPlayer.areThereAnyDamnBosses = CalamityUtils.AnyBossNPCS(); // Bool for any existing events, true if any event is active CalamityPlayer.areThereAnyDamnEvents = CalamityGlobalNPC.AnyEvents(player); @@ -329,6 +329,71 @@ namespace CalamityMod.CalPlayer if (modPlayer.heldGaelsLastFrame) rageDiff += modPlayer.rageMax * GaelsGreatsword.RagePerSecond / 60f; + // Calculate and grant proximity rage. + // Regular enemies can give up to 1x proximity rage. Bosses can give up to 3x. Multiple regular enemies don't stack. + // Proximity rage is maxed out when within 10 blocks (160 pixels) of the enemy's hitbox. + // Its max range is 50 blocks (800 pixels), at which you get zero proximity rage. + float bossProxRageMultiplier = 3f; + float minProxRageDistance = 160f; + float maxProxRageDistance = 800f; + float enemyDistance = maxProxRageDistance + 1f; + float bossDistance = maxProxRageDistance + 1f; + + for (int i = 0; i < Main.maxNPCs; ++i) + { + NPC npc = Main.npc[i]; + if (npc is null || !npc.IsAnEnemy()) + continue; + + // Take the longer of the two directions for the NPC's hitbox to be generous. + float generousHitboxWidth = Math.Max(npc.Hitbox.Width / 2f, npc.Hitbox.Height / 2f); + float hitboxEdgeDist = npc.Distance(player.Center) - generousHitboxWidth; + + // If this enemy is closer than the previous, reduce the current minimum proximity distance. + if (enemyDistance > hitboxEdgeDist) + { + enemyDistance = hitboxEdgeDist; + + // If they're a boss, reduce the boss distance. + // Boss distance will always be >= enemy distance, so there's no need to do another check. + if (npc.IsABoss()) + bossDistance = hitboxEdgeDist; + } + } + + // Helper function to implement proximity rage formula + float ProxRageFromDistance(float dist) + { + // Adjusted distance with the 160 grace pixels added in + float d = dist - minProxRageDistance; + + // The first term is exponential decay which reduces rage gain significantly over distance. + // The second term is a linear component which allows a baseline but weak rage generation even at far distances. + // This function takes inputs from 0.0 to 640.0 and returns a value from 1.0 to 0.0. + float r = 1f / (0.034f * d + 2f) + (590.5f - d) / 1181f; + return MathHelper.Clamp(r, 0f, 1f); + } + + // If anything is close enough then provide proximity rage. + // You can only get proximity rage from one target at a time. You gain rage from whatever target would give you the most rage. + if (enemyDistance <= maxProxRageDistance) + { + // If the player is close enough to get proximity rage they are also considered to have rage combat frames. + // This prevents proximity rage from fading away unless you run away without attacking for some reason. + modPlayer.rageCombatFrames = Math.Max(modPlayer.rageCombatFrames, 3); + + float proxRageFromEnemy = ProxRageFromDistance(enemyDistance); + float proxRageFromBoss = 0f; + if (bossDistance <= maxProxRageDistance) + proxRageFromBoss = bossProxRageMultiplier * ProxRageFromDistance(bossDistance); + + float finalProxRage = Math.Max(proxRageFromEnemy, proxRageFromBoss); + + // 300% proximity rage (max possible from a boss) will fill the Rage meter in 10 seconds. + // 100% proximity rage (max possible from an enemy) will fill the Rage meter in 30 seconds. + rageDiff += finalProxRage * modPlayer.rageMax / 30f; + } + bool rageFading = modPlayer.rageCombatFrames <= 0 && !modPlayer.heartOfDarkness && !modPlayer.shatteredCommunity; // If Rage Mode is currently active, you smoothly lose all rage over the duration. diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 607a7b3259..31dea8d8ca 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -36,7 +36,6 @@ using CalamityMod.NPCs.StormWeaver; using CalamityMod.NPCs.SulphurousSea; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.NPCs.Yharon; -using CalamityMod.Projectiles.Boss; using CalamityMod.Projectiles.DraedonsArsenal; using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Melee; @@ -4519,22 +4518,6 @@ namespace CalamityMod.NPCs } #endregion - #region Any Boss NPCs - public static bool AnyBossNPCS() - { - for (int i = 0; i < Main.maxNPCs; i++) - { - if (Main.npc[i].active && Main.npc[i].type != NPCID.MartianSaucerCore && - (Main.npc[i].boss || Main.npc[i].type == NPCID.EaterofWorldsHead || Main.npc[i].type == NPCID.EaterofWorldsTail || Main.npc[i].type == NPCType() || - Main.npc[i].type == NPCType() || Main.npc[i].type == NPCType() || Main.npc[i].type == NPCType())) - { - return true; - } - } - return CalamityUtils.FindFirstProjectile(ProjectileType()) != -1; - } - #endregion - #region Any Events public static bool AnyEvents(Player player) { diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index 44455550a2..699e1db6e9 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -107,7 +107,7 @@ namespace CalamityMod.NPCs.TownNPCs } } - if (CalamityGlobalNPC.AnyBossNPCS()) + if (CalamityUtils.AnyBossNPCS()) return "Nothard/10, if I fight bosses I wanna feel like screaming 'OH YES DADDY!' while I die repeatedly."; IList dialogue = new List(); diff --git a/UI/AstralArcanumUI.cs b/UI/AstralArcanumUI.cs index fa9f868ea0..24ea2c6b89 100644 --- a/UI/AstralArcanumUI.cs +++ b/UI/AstralArcanumUI.cs @@ -66,7 +66,7 @@ namespace CalamityMod.UI { //Don't do anything if not open bool forceOpenAndTeleport = BossRushEvent.BossRushStage < BossRushEvent.Bosses.Count - 1 && BossRushEvent.CurrentlyFoughtBoss == NPCID.WallofFlesh && - !NPCs.CalamityGlobalNPC.AnyBossNPCS() && !Main.player[Main.myPlayer].ZoneUnderworldHeight; + !CalamityUtils.AnyBossNPCS() && !Main.player[Main.myPlayer].ZoneUnderworldHeight; if (forceOpenAndTeleport) { Open = true; diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index 167f8793a6..82501533f4 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -5,9 +5,14 @@ using CalamityMod.Events; using CalamityMod.Items; using CalamityMod.Items.Tools.ClimateChange; using CalamityMod.NPCs; +using CalamityMod.NPCs.HiveMind; +using CalamityMod.NPCs.Leviathan; using CalamityMod.NPCs.NormalNPCs; +using CalamityMod.NPCs.Perforator; using CalamityMod.NPCs.Providence; +using CalamityMod.NPCs.SlimeGod; using CalamityMod.Projectiles; +using CalamityMod.Projectiles.Boss; using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Summon; using CalamityMod.Tiles; @@ -42,6 +47,7 @@ using Terraria.ModLoader; using Terraria.ModLoader.IO; using Terraria.ObjectData; using Terraria.UI.Chat; +using static Terraria.ModLoader.ModContent; namespace CalamityMod { @@ -187,11 +193,11 @@ namespace CalamityMod /// Inflicts debuffs if the target isn't immune. public static void ExoDebuffs(this Player target, float multiplier = 1f) { - target.AddBuff(ModContent.BuffType(), (int)(30 * multiplier)); - target.AddBuff(ModContent.BuffType(), (int)(120 * multiplier)); - target.AddBuff(ModContent.BuffType(), (int)(120 * multiplier)); - target.AddBuff(ModContent.BuffType(), (int)(120 * multiplier)); - target.AddBuff(ModContent.BuffType(), (int)(120 * multiplier)); + target.AddBuff(BuffType(), (int)(30 * multiplier)); + target.AddBuff(BuffType(), (int)(120 * multiplier)); + target.AddBuff(BuffType(), (int)(120 * multiplier)); + target.AddBuff(BuffType(), (int)(120 * multiplier)); + target.AddBuff(BuffType(), (int)(120 * multiplier)); target.AddBuff(BuffID.CursedInferno, (int)(120 * multiplier)); target.AddBuff(BuffID.Frostburn, (int)(120 * multiplier)); target.AddBuff(BuffID.OnFire, (int)(120 * multiplier)); @@ -245,6 +251,46 @@ namespace CalamityMod npc.Calamity().customDR = true; } + public static bool IsAnEnemy(this NPC npc) + { + // Null, inactive, town NPCs, friendlies, statue spawns, "non-enemies" (e.g. butterflies or projectile enemies), + // or anything else with no contact damage (exception: Providence and Celestial Pillars) don't count for rage. + if (npc is null || !npc.active || npc.townNPC || npc.friendly || npc.SpawnedFromStatue || npc.lifeMax <= 5 || (npc.damage <= 5 && npc.lifeMax <= 2000)) + return false; + // Also explicitly exclude dummies and anything with a ridiculous health pool (dummies from Fargo's for example). + if (npc.type == NPCID.TargetDummy || npc.type == NPCType() || npc.lifeMax > 100000000) + return false; + // Finally, exclude boss spawners. + if (npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType()) + return false; + + // Anything else is considered a valid enemy target. + return true; + } + + // This function follows the behavior of Adrenaline. + // Vanilla worm segments and Slime God slimes are specifically included. + // Martian Saucers are specifically excluded. + public static bool IsABoss(this NPC npc) + { + if (npc is null || !npc.active) + return false; + if (npc.boss && npc.type != NPCID.MartianSaucerCore) + return true; + if (npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsTail) + return true; + return npc.type == NPCType() || npc.type == NPCType() || + npc.type == NPCType() || npc.type== NPCType(); + } + + public static bool AnyBossNPCS() + { + for (int i = 0; i < Main.maxNPCs; i++) + if (Main.npc[i] != null && Main.npc[i].IsABoss()) + return true; + return FindFirstProjectile(ProjectileType()) != -1; + } + /// /// Get the aggression multiplier used for NPCs in Master Mode Calamity rev+ /// Will also be used to modify certain boss size/scale @@ -256,103 +302,103 @@ namespace CalamityMod /*if (!Main.masterMode) return 1f;*/ - /*if (NPCType == ModContent.NPCType()) + /*if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType() || NPCType == ModContent.NPCType()) + else if (NPCType == NPCType() || NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType() || NPCType == ModContent.NPCType() || NPCType == ModContent.NPCType() || NPCType == ModContent.NPCType() || NPCType == ModContent.NPCType()) + else if (NPCType == NPCType() || NPCType == NPCType() || NPCType == NPCType() || NPCType == NPCType() || NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType() || NPCType == ModContent.NPCType()) + else if (NPCType == NPCType() || NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType() || NPCType == ModContent.NPCType()) + else if (NPCType == NPCType() || NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType() || NPCType == ModContent.NPCType()) + else if (NPCType == NPCType() || NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType() || NPCType == ModContent.NPCType()) + else if (NPCType == NPCType() || NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } - else if (NPCType == ModContent.NPCType()) + else if (NPCType == NPCType()) { } @@ -496,8 +542,8 @@ namespace CalamityMod target.HitSound != SoundID.NPCHit5 && target.HitSound != SoundID.NPCHit11 && target.HitSound != SoundID.NPCHit30 && target.HitSound != SoundID.NPCHit34 && target.HitSound != SoundID.NPCHit36 && target.HitSound != SoundID.NPCHit42 && target.HitSound != SoundID.NPCHit49 && target.HitSound != SoundID.NPCHit52 && target.HitSound != SoundID.NPCHit53 && - target.HitSound != SoundID.NPCHit54 && target.HitSound != null) || target.type == ModContent.NPCType() || - target.type == ModContent.NPCType()) + target.HitSound != SoundID.NPCHit54 && target.HitSound != null) || target.type == NPCType() || + target.type == NPCType()) { return true; } @@ -523,8 +569,8 @@ namespace CalamityMod target.HitSound != SoundID.NPCHit43 && target.HitSound != SoundID.NPCHit44 && target.HitSound != SoundID.NPCHit45 && target.HitSound != SoundID.NPCHit46 && target.HitSound != SoundID.NPCHit47 && target.HitSound != SoundID.NPCHit48 && target.HitSound != SoundID.NPCHit50 && target.HitSound != SoundID.NPCHit51 && target.HitSound != SoundID.NPCHit55 && - target.HitSound != SoundID.NPCHit56 && target.HitSound != SoundID.NPCHit57 && target.type != ModContent.NPCType() && - target.type != ModContent.NPCType() && target.type != ModContent.NPCType()) + target.HitSound != SoundID.NPCHit56 && target.HitSound != SoundID.NPCHit57 && target.type != NPCType() && + target.type != NPCType() && target.type != NPCType()) { return true; } @@ -570,11 +616,11 @@ namespace CalamityMod { target.AddBuff(BuffID.Ichor, (int)(120 * multiplier)); target.AddBuff(BuffID.CursedInferno, (int)(120 * multiplier)); - target.AddBuff(ModContent.BuffType(), (int)(30 * multiplier)); - target.AddBuff(ModContent.BuffType(), (int)(120 * multiplier)); - target.AddBuff(ModContent.BuffType(), (int)(120 * multiplier)); - target.AddBuff(ModContent.BuffType(), (int)(120 * multiplier)); - target.AddBuff(ModContent.BuffType(), (int)(120 * multiplier)); + target.AddBuff(BuffType(), (int)(30 * multiplier)); + target.AddBuff(BuffType(), (int)(120 * multiplier)); + target.AddBuff(BuffType(), (int)(120 * multiplier)); + target.AddBuff(BuffType(), (int)(120 * multiplier)); + target.AddBuff(BuffType(), (int)(120 * multiplier)); target.AddBuff(BuffID.Frostburn, (int)(120 * multiplier)); target.AddBuff(BuffID.OnFire, (int)(120 * multiplier)); } @@ -1157,7 +1203,7 @@ namespace CalamityMod public static Projectile ProjectileRain(Vector2 targetPos, float xLimit, float xVariance, float yLimitLower, float yLimitUpper, float projSpeed, int projType, int damage, float knockback, int owner) { float x = targetPos.X + Main.rand.NextFloat(-xLimit, xLimit); - if (projType == ModContent.ProjectileType()) + if (projType == ProjectileType()) x = targetPos.X + xLimit; float y = targetPos.Y - Main.rand.NextFloat(yLimitLower, yLimitUpper); Vector2 source = new Vector2(x, y); @@ -1434,7 +1480,7 @@ namespace CalamityMod float maxDist = range; Vector2 targetVec = projectile.position; bool foundTarget = false; - bool isButterfly = projectile.type == ModContent.ProjectileType(); + bool isButterfly = projectile.type == ProjectileType(); //Prioritize the targeted enemy if possible if (player.HasMinionAttackTargetNPC) { @@ -2204,15 +2250,15 @@ namespace CalamityMod // Snows TileID.SnowBlock, // Calamity Tiles - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), }); /// @@ -2239,14 +2285,14 @@ namespace CalamityMod TileID.Titanium, TileID.LunarOre, // Calamity Ores - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), }); /// @@ -2273,14 +2319,14 @@ namespace CalamityMod TileID.FossilOre, TileID.DesertFossil, // Astral Desert - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), + TileType(), + TileType(), + TileType(), + TileType(), // Sunken Sea - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), + TileType(), + TileType(), + TileType(), }); /// @@ -2296,9 +2342,9 @@ namespace CalamityMod TileID.FleshIce, TileID.HallowedIce, // Astral Snow - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), + TileType(), + TileType(), + TileType(), }); /// @@ -2310,7 +2356,7 @@ namespace CalamityMod TileID.Hellstone, TileID.ObsidianBrick, TileID.HellstoneBrick, - ModContent.TileType(), + TileType(), }); /// @@ -2319,14 +2365,14 @@ namespace CalamityMod /// The tile whose merging properties will be set. public static void MergeWithAbyss(int type) => MergeWithSet(type, new int[] { // Sulphurous Sea - ModContent.TileType(), - ModContent.TileType(), + TileType(), + TileType(), // Abyss - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), + TileType(), + TileType(), + TileType(), + TileType(), + TileType(), }); /// @@ -2336,18 +2382,18 @@ namespace CalamityMod public static void MergeAstralTiles(int type) { //Astral - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); //Astral Desert - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); //Astral Snow - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); } /// @@ -2360,10 +2406,10 @@ namespace CalamityMod SetMerge(type, TileID.MarbleBlock); SetMerge(type, TileID.GraniteBlock); //Calam - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); } /// @@ -2375,14 +2421,14 @@ namespace CalamityMod //Vanilla decor Main.tileBrick[type] = true; //Calam - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); - SetMerge(type, ModContent.TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); + SetMerge(type, TileType()); } #endregion @@ -2523,7 +2569,7 @@ namespace CalamityMod player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : chestName; if (player.showItemIconText == chestName) { - player.showItemIcon2 = ModContent.ItemType(); + player.showItemIcon2 = ItemType(); player.showItemIconText = ""; } } @@ -2714,7 +2760,7 @@ namespace CalamityMod } if (player.showItemIconText == chestName) { - player.showItemIcon2 = ModContent.ItemType(); + player.showItemIcon2 = ItemType(); player.showItemIconText = ""; } } @@ -2756,7 +2802,7 @@ namespace CalamityMod } if (player.showItemIconText == chestName) { - player.showItemIcon2 = ModContent.ItemType(); + player.showItemIcon2 = ItemType(); player.showItemIconText = ""; } } @@ -2889,9 +2935,9 @@ namespace CalamityMod player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : chestName; if (player.showItemIconText == chestName) { - player.showItemIcon2 = ModContent.ItemType(); + player.showItemIcon2 = ItemType(); if (Main.tile[left, top].frameX / 36 == 1) - player.showItemIcon2 = ModContent.ItemType(); + player.showItemIcon2 = ItemType(); player.showItemIconText = ""; } } @@ -3529,7 +3575,7 @@ namespace CalamityMod int left = i - t.frameX % (width * sheetSquare) / sheetSquare; int top = j - t.frameY % (height * sheetSquare) / sheetSquare; - byte chargerType = ModContent.GetInstance().type; + byte chargerType = GetInstance().type; bool exists = TileEntity.ByPosition.TryGetValue(new Point16(left, top), out TileEntity te); return exists && te.type == chargerType ? (T)te : null; } @@ -3563,11 +3609,11 @@ namespace CalamityMod // Draws the Power Cell item slot in a UI. Used by both the Power Cell Factory and Charging Station. internal static void DrawPowercellSlot(SpriteBatch spriteBatch, Item item, Vector2 drawPosition, float iconScale = 0.7f) { - Texture2D slotBackgroundTex = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/PowerCellSlot_Empty"); + Texture2D slotBackgroundTex = GetTexture("CalamityMod/ExtraTextures/UI/PowerCellSlot_Empty"); // This check is done twice because the draw order matters. We want to draw the background icon before any text. if (item.stack > 0) - slotBackgroundTex = ModContent.GetTexture("CalamityMod/ExtraTextures/UI/PowerCellSlot_Filled"); + slotBackgroundTex = GetTexture("CalamityMod/ExtraTextures/UI/PowerCellSlot_Filled"); spriteBatch.Draw(slotBackgroundTex, drawPosition, null, Color.White, 0f, slotBackgroundTex.Size() * 0.5f, iconScale, SpriteEffects.None, 0f); if (item.stack > 0) From 1e9676c5b8b4532544617f711eea5f8bf8286ed8 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 27 Jan 2021 23:35:31 -0500 Subject: [PATCH 4/5] Added netcode to Shattered Community. --- Items/Accessories/ShatteredCommunity.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Items/Accessories/ShatteredCommunity.cs b/Items/Accessories/ShatteredCommunity.cs index f0476a3e1c..61f542dc95 100644 --- a/Items/Accessories/ShatteredCommunity.cs +++ b/Items/Accessories/ShatteredCommunity.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using CalamityMod.World; using Microsoft.Xna.Framework; using System.Collections.Generic; +using System.IO; using System.Text; using Terraria; using Terraria.DataStructures; @@ -209,6 +210,20 @@ namespace CalamityMod.Items.Accessories totalRageDamage = tag.GetLong("totalDamage"); } + public override void NetSend(BinaryWriter writer) + { + writer.Write(everInInventory); + writer.Write(rageLevel); + writer.Write(totalRageDamage); + } + + public override void NetRecieve(BinaryReader reader) + { + everInInventory = reader.ReadBoolean(); + rageLevel = reader.ReadInt32(); + totalRageDamage = reader.ReadInt64(); + } + public override void AddRecipes() { ModRecipe r = new ShatteredCommunityRecipe(mod); From 9c87c192a1548ab419109dbe21220756ddc6a6a2 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 28 Jan 2021 00:00:45 -0500 Subject: [PATCH 5/5] worm boss bodies don't give you extra credit --- CalPlayer/CalamityPlayerMiscEffects.cs | 7 +- CalamityLists.cs | 2280 ++++++++++++------------ 2 files changed, 1156 insertions(+), 1131 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index c33ea9117c..91cd148fba 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -356,7 +356,8 @@ namespace CalamityMod.CalPlayer // If they're a boss, reduce the boss distance. // Boss distance will always be >= enemy distance, so there's no need to do another check. - if (npc.IsABoss()) + // Worm boss body and tail segments are not counted as bosses for this calculation. + if (npc.IsABoss() && !CalamityLists.noRageWormSegmentList.Contains(npc.type)) bossDistance = hitboxEdgeDist; } } @@ -364,8 +365,8 @@ namespace CalamityMod.CalPlayer // Helper function to implement proximity rage formula float ProxRageFromDistance(float dist) { - // Adjusted distance with the 160 grace pixels added in - float d = dist - minProxRageDistance; + // Adjusted distance with the 160 grace pixels added in. If you're closer than that it counts as zero. + float d = Math.Max(dist - minProxRageDistance, 0f); // The first term is exponential decay which reduces rage gain significantly over distance. // The second term is a linear component which allows a baseline but weak rage generation even at far distances. diff --git a/CalamityLists.cs b/CalamityLists.cs index bdcd6a1482..9ca2d76f07 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -25,6 +25,7 @@ using CalamityMod.NPCs.Abyss; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.Astral; using CalamityMod.NPCs.AstrumAureus; +using CalamityMod.NPCs.AstrumDeus; using CalamityMod.NPCs.BrimstoneElemental; using CalamityMod.NPCs.Bumblebirb; using CalamityMod.NPCs.Calamitas; @@ -44,6 +45,7 @@ using CalamityMod.NPCs.Providence; using CalamityMod.NPCs.Ravager; using CalamityMod.NPCs.Signus; using CalamityMod.NPCs.SlimeGod; +using CalamityMod.NPCs.StormWeaver; using CalamityMod.NPCs.SulphurousSea; using CalamityMod.NPCs.SunkenSea; using CalamityMod.NPCs.SupremeCalamitas; @@ -62,10 +64,11 @@ using CalamityMod.Tiles.LivingFire; using System.Collections.Generic; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.ModLoader.ModContent; namespace CalamityMod { - public class CalamityLists + public class CalamityLists { public static IList donatorList; public static List trueMeleeProjectileList; // DO NOT, EVER, DELETE THIS LIST, OR I WILL COME FOR YOU :D @@ -86,12 +89,12 @@ namespace CalamityMod public static List iceWeaponList; public static List natureWeaponList; public static List alcoholList; - public static List useTurnList; - public static List twentyUseTimeBuffList; //20% use time buff - public static List fiftySizeBuffList; //50% size buff - public static List quadrupleDamageBuffList; //300% buff - public static List tripleDamageBuffList; //200% buff - public static List doubleDamageBuffList; //100% buff + public static List useTurnList; + public static List twentyUseTimeBuffList; //20% use time buff + public static List fiftySizeBuffList; //50% size buff + public static List quadrupleDamageBuffList; //300% buff + public static List tripleDamageBuffList; //200% buff + public static List doubleDamageBuffList; //100% buff public static List sixtySixDamageBuffList; //66% buff public static List fiftyDamageBuffList; //50% buff public static List thirtyThreeDamageBuffList; //33% buff @@ -99,7 +102,7 @@ namespace CalamityMod public static List twentyDamageBuffList; //20% buff public static List tenDamageBuffList; //10% buff public static List weaponAutoreuseList; - public static List spearAutoreuseList; + public static List spearAutoreuseList; public static List tenDamageNerfList; //10% nerf public static List quarterDamageNerfList; //25% nerf public static List pumpkinMoonBuffList; @@ -115,6 +118,7 @@ namespace CalamityMod public static List revengeanceProjectileBuffList15Percent; public static List revengeanceLifeStealExceptionList; public static List movementImpairImmuneList; + public static List noRageWormSegmentList; public static List needsDebuffIconDisplayList; public static List trapProjectileList; public static List scopedWeaponList; @@ -333,34 +337,34 @@ namespace CalamityMod ProjectileID.ButchersChainsaw, // Calamity shit - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType() }; rangedProjectileExceptionList = new List() @@ -371,31 +375,31 @@ namespace CalamityMod ProjectileID.IchorDart, ProjectileID.PhantasmArrow, ProjectileID.RainbowBack, - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), // Because of potential dust lag. - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), // Because of potential dust lag. + ProjectileType() }; projectileDestroyExceptionList = new List() @@ -409,38 +413,38 @@ namespace CalamityMod ProjectileID.LaserMachinegun, ProjectileID.ChargedBlasterCannon, ProjectileID.MedusaHead, - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - // ModContent.ProjectileType(), // TODO: ADD THE APOTHEOSIS WORM HERE LATER. IT IS IN A DIFFERENT BRANCH AS OF WRITING THIS. + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + // ProjectileType(), // TODO: ADD THE APOTHEOSIS WORM HERE LATER. IT IS IN A DIFFERENT BRANCH AS OF WRITING THIS. - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), //Some hostile boss projectiles - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType() }; projectileMinionList = new List() @@ -524,60 +528,60 @@ namespace CalamityMod NPCID.DD2OgreT2, NPCID.DD2OgreT3, NPCID.DD2Betsy, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType() + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType() }; confusionEnemyList = new List() { - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType() + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType() }; dungeonEnemyBuffList = new List() @@ -654,21 +658,21 @@ namespace CalamityMod NPCID.Bee, NPCID.BeeSmall, NPCID.QueenBee, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType() + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType() }; beeProjectileList = new List() { ProjectileID.Stinger, ProjectileID.HornetStinger, - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType() }; friendlyBeeList = new List() @@ -676,10 +680,10 @@ namespace CalamityMod ProjectileID.GiantBee, ProjectileID.Bee, ProjectileID.Wasp, - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType() }; hardModeNerfList = new List() @@ -727,25 +731,25 @@ namespace CalamityMod BuffID.WitheredWeapon, BuffID.OgreSpit, BuffID.BetsysCurse, - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType() + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType() }; fireWeaponList = new List() @@ -780,72 +784,72 @@ namespace CalamityMod ItemID.DD2FlameburstTowerT3Popper, ItemID.MolotovCocktail, ItemID.WandofSparking, - 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(), - 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(), - 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(), - 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(), - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() }; iceWeaponList = new List() @@ -865,44 +869,44 @@ namespace CalamityMod ItemID.BlizzardStaff, ItemID.StaffoftheFrostHydra, ItemID.Snowball, - 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(), - 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(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), //Cryonic Bar set stuff, could potentially be removed - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() }; natureWeaponList = new List() @@ -941,307 +945,307 @@ namespace CalamityMod ItemID.SpiderStaff, ItemID.Beenade, ItemID.FrostDaggerfish, - 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(), - 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(), - 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(), - 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(), - 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(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() }; alcoholList = new List() { - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType(), - ModContent.BuffType() + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType() }; - useTurnList = new List() - { - ItemID.IronBroadsword, - ItemID.LeadBroadsword, - ItemID.SilverBroadsword, - ItemID.TungstenBroadsword, - ItemID.PlatinumBroadsword, - ItemID.GoldBroadsword, - ItemID.CactusSword, - ItemID.ZombieArm, - ItemID.StylistKilLaKillScissorsIWish, - ItemID.DyeTradersScimitar, - ItemID.PurpleClubberfish, - ItemID.LightsBane, - ItemID.BloodButcherer, - ItemID.BluePhaseblade, - ItemID.RedPhaseblade, - ItemID.GreenPhaseblade, - ItemID.WhitePhaseblade, - ItemID.YellowPhaseblade, - ItemID.PurplePhaseblade, - ItemID.BladeofGrass, - ItemID.FieryGreatsword, - ItemID.NightsEdge, - ItemID.FalconBlade, - ItemID.BreakerBlade, - ItemID.SlapHand, - ItemID.TaxCollectorsStickOfDoom, - ItemID.Bladetongue, - ItemID.CobaltSword, - ItemID.PalladiumSword, - ItemID.MythrilSword, - ItemID.OrichalcumSword, - ItemID.AdamantiteSword, - ItemID.TitaniumSword, - ItemID.Excalibur, - ItemID.TrueExcalibur, - ItemID.TrueNightsEdge, - ItemID.TheHorsemansBlade, - ItemID.Keybrand - }; + useTurnList = new List() + { + ItemID.IronBroadsword, + ItemID.LeadBroadsword, + ItemID.SilverBroadsword, + ItemID.TungstenBroadsword, + ItemID.PlatinumBroadsword, + ItemID.GoldBroadsword, + ItemID.CactusSword, + ItemID.ZombieArm, + ItemID.StylistKilLaKillScissorsIWish, + ItemID.DyeTradersScimitar, + ItemID.PurpleClubberfish, + ItemID.LightsBane, + ItemID.BloodButcherer, + ItemID.BluePhaseblade, + ItemID.RedPhaseblade, + ItemID.GreenPhaseblade, + ItemID.WhitePhaseblade, + ItemID.YellowPhaseblade, + ItemID.PurplePhaseblade, + ItemID.BladeofGrass, + ItemID.FieryGreatsword, + ItemID.NightsEdge, + ItemID.FalconBlade, + ItemID.BreakerBlade, + ItemID.SlapHand, + ItemID.TaxCollectorsStickOfDoom, + ItemID.Bladetongue, + ItemID.CobaltSword, + ItemID.PalladiumSword, + ItemID.MythrilSword, + ItemID.OrichalcumSword, + ItemID.AdamantiteSword, + ItemID.TitaniumSword, + ItemID.Excalibur, + ItemID.TrueExcalibur, + ItemID.TrueNightsEdge, + ItemID.TheHorsemansBlade, + ItemID.Keybrand + }; - twentyUseTimeBuffList = new List() - { - ItemID.CobaltSword, - ItemID.PalladiumSword, - ItemID.MythrilSword, - ItemID.OrichalcumSword, - ItemID.AdamantiteSword, - ItemID.TitaniumSword, - ItemID.Excalibur, - ItemID.Bladetongue, - ItemID.Cutlass, - ItemID.TheHorsemansBlade, - ItemID.Keybrand, - ItemID.AdamantiteGlaive, - ItemID.ChlorophytePartisan, - ItemID.CobaltNaginata, - ItemID.Gungnir, - ItemID.MythrilHalberd, - ItemID.OrichalcumHalberd, - ItemID.PalladiumPike, - ItemID.TitaniumTrident, - ItemID.MushroomSpear - }; + twentyUseTimeBuffList = new List() + { + ItemID.CobaltSword, + ItemID.PalladiumSword, + ItemID.MythrilSword, + ItemID.OrichalcumSword, + ItemID.AdamantiteSword, + ItemID.TitaniumSword, + ItemID.Excalibur, + ItemID.Bladetongue, + ItemID.Cutlass, + ItemID.TheHorsemansBlade, + ItemID.Keybrand, + ItemID.AdamantiteGlaive, + ItemID.ChlorophytePartisan, + ItemID.CobaltNaginata, + ItemID.Gungnir, + ItemID.MythrilHalberd, + ItemID.OrichalcumHalberd, + ItemID.PalladiumPike, + ItemID.TitaniumTrident, + ItemID.MushroomSpear + }; - fiftySizeBuffList = new List() - { - ItemID.BreakerBlade, - ItemID.StylistKilLaKillScissorsIWish, - ItemID.NightsEdge, - ItemID.CobaltSword, - ItemID.MythrilSword, - ItemID.AdamantiteSword, - ItemID.PalladiumSword, - ItemID.OrichalcumSword, - ItemID.TitaniumSword, - ItemID.Excalibur, - ItemID.Bladetongue, - ItemID.TheHorsemansBlade, - ItemID.Keybrand, - ItemID.SlapHand, - ItemID.PlatinumBroadsword, - ItemID.GoldBroadsword, - ItemID.LightsBane, - ItemID.FalconBlade, - ItemID.BeeKeeper, - ItemID.ZombieArm, - ItemID.BladeofGrass, - ItemID.Muramasa, - ItemID.FieryGreatsword, - ItemID.BluePhasesaber, - ItemID.RedPhasesaber, - ItemID.GreenPhasesaber, - ItemID.WhitePhasesaber, - ItemID.YellowPhasesaber, - ItemID.PurplePhasesaber, - ItemID.BluePhaseblade, - ItemID.RedPhaseblade, - ItemID.GreenPhaseblade, - ItemID.WhitePhaseblade, - ItemID.YellowPhaseblade, - ItemID.PurplePhaseblade, - ItemID.AntlionClaw, - ItemID.DyeTradersScimitar, - ItemID.BoneSword - }; + fiftySizeBuffList = new List() + { + ItemID.BreakerBlade, + ItemID.StylistKilLaKillScissorsIWish, + ItemID.NightsEdge, + ItemID.CobaltSword, + ItemID.MythrilSword, + ItemID.AdamantiteSword, + ItemID.PalladiumSword, + ItemID.OrichalcumSword, + ItemID.TitaniumSword, + ItemID.Excalibur, + ItemID.Bladetongue, + ItemID.TheHorsemansBlade, + ItemID.Keybrand, + ItemID.SlapHand, + ItemID.PlatinumBroadsword, + ItemID.GoldBroadsword, + ItemID.LightsBane, + ItemID.FalconBlade, + ItemID.BeeKeeper, + ItemID.ZombieArm, + ItemID.BladeofGrass, + ItemID.Muramasa, + ItemID.FieryGreatsword, + ItemID.BluePhasesaber, + ItemID.RedPhasesaber, + ItemID.GreenPhasesaber, + ItemID.WhitePhasesaber, + ItemID.YellowPhasesaber, + ItemID.PurplePhasesaber, + ItemID.BluePhaseblade, + ItemID.RedPhaseblade, + ItemID.GreenPhaseblade, + ItemID.WhitePhaseblade, + ItemID.YellowPhaseblade, + ItemID.PurplePhaseblade, + ItemID.AntlionClaw, + ItemID.DyeTradersScimitar, + ItemID.BoneSword + }; - quadrupleDamageBuffList = new List() - { - ItemID.SlapHand, - ItemID.PsychoKnife, - ItemID.TaxCollectorsStickOfDoom - }; + quadrupleDamageBuffList = new List() + { + ItemID.SlapHand, + ItemID.PsychoKnife, + ItemID.TaxCollectorsStickOfDoom + }; - tripleDamageBuffList = new List() - { - ItemID.SpectreStaff, - ItemID.Anchor, - ItemID.KOCannon, - ItemID.GolemFist, - ItemID.BreakerBlade, - ItemID.StylistKilLaKillScissorsIWish, - ItemID.BladeofGrass, - ItemID.FieryGreatsword, - ItemID.NightsEdge, - ItemID.CobaltSword, - ItemID.MythrilSword, - ItemID.AdamantiteSword, - ItemID.PalladiumSword, - ItemID.OrichalcumSword, - ItemID.TitaniumSword, - ItemID.Excalibur, - ItemID.Bladetongue, - ItemID.TheHorsemansBlade, - ItemID.Keybrand, - ItemID.AdamantiteGlaive, - ItemID.ChlorophytePartisan, - ItemID.CobaltNaginata, - ItemID.Gungnir, - ItemID.MythrilHalberd, - ItemID.OrichalcumHalberd, - ItemID.PalladiumPike, - ItemID.TitaniumTrident - }; + tripleDamageBuffList = new List() + { + ItemID.SpectreStaff, + ItemID.Anchor, + ItemID.KOCannon, + ItemID.GolemFist, + ItemID.BreakerBlade, + ItemID.StylistKilLaKillScissorsIWish, + ItemID.BladeofGrass, + ItemID.FieryGreatsword, + ItemID.NightsEdge, + ItemID.CobaltSword, + ItemID.MythrilSword, + ItemID.AdamantiteSword, + ItemID.PalladiumSword, + ItemID.OrichalcumSword, + ItemID.TitaniumSword, + ItemID.Excalibur, + ItemID.Bladetongue, + ItemID.TheHorsemansBlade, + ItemID.Keybrand, + ItemID.AdamantiteGlaive, + ItemID.ChlorophytePartisan, + ItemID.CobaltNaginata, + ItemID.Gungnir, + ItemID.MythrilHalberd, + ItemID.OrichalcumHalberd, + ItemID.PalladiumPike, + ItemID.TitaniumTrident + }; - doubleDamageBuffList = new List() - { - ItemID.BallOHurt, - ItemID.TheMeatball, - ItemID.BlueMoon, - ItemID.Sunfury, - ItemID.DaoofPow, - ItemID.FlowerPow, - ItemID.MonkStaffT2, - ItemID.ProximityMineLauncher, - ItemID.FireworksLauncher, - ItemID.ShadowbeamStaff, - ItemID.PlatinumShortsword, - ItemID.PlatinumBroadsword, - ItemID.GoldShortsword, - ItemID.GoldBroadsword, - ItemID.LightsBane, - ItemID.BeeKeeper, - ItemID.ZombieArm, - ItemID.Muramasa, - ItemID.Spear, - ItemID.Trident, - ItemID.TheRottedFork, - ItemID.Swordfish, - ItemID.DarkLance, - ItemID.WoodenBoomerang, - ItemID.EnchantedBoomerang, - ItemID.IceBoomerang, - ItemID.FruitcakeChakram, - ItemID.ThornChakram, - ItemID.Flamarang, - ItemID.Cutlass, - ItemID.MushroomSpear, - ItemID.BluePhasesaber, - ItemID.RedPhasesaber, - ItemID.GreenPhasesaber, - ItemID.WhitePhasesaber, - ItemID.YellowPhasesaber, - ItemID.PurplePhasesaber, - ItemID.BluePhaseblade, - ItemID.RedPhaseblade, - ItemID.GreenPhaseblade, - ItemID.WhitePhaseblade, - ItemID.YellowPhaseblade, - ItemID.PurplePhaseblade - }; + doubleDamageBuffList = new List() + { + ItemID.BallOHurt, + ItemID.TheMeatball, + ItemID.BlueMoon, + ItemID.Sunfury, + ItemID.DaoofPow, + ItemID.FlowerPow, + ItemID.MonkStaffT2, + ItemID.ProximityMineLauncher, + ItemID.FireworksLauncher, + ItemID.ShadowbeamStaff, + ItemID.PlatinumShortsword, + ItemID.PlatinumBroadsword, + ItemID.GoldShortsword, + ItemID.GoldBroadsword, + ItemID.LightsBane, + ItemID.BeeKeeper, + ItemID.ZombieArm, + ItemID.Muramasa, + ItemID.Spear, + ItemID.Trident, + ItemID.TheRottedFork, + ItemID.Swordfish, + ItemID.DarkLance, + ItemID.WoodenBoomerang, + ItemID.EnchantedBoomerang, + ItemID.IceBoomerang, + ItemID.FruitcakeChakram, + ItemID.ThornChakram, + ItemID.Flamarang, + ItemID.Cutlass, + ItemID.MushroomSpear, + ItemID.BluePhasesaber, + ItemID.RedPhasesaber, + ItemID.GreenPhasesaber, + ItemID.WhitePhasesaber, + ItemID.YellowPhasesaber, + ItemID.PurplePhasesaber, + ItemID.BluePhaseblade, + ItemID.RedPhaseblade, + ItemID.GreenPhaseblade, + ItemID.WhitePhaseblade, + ItemID.YellowPhaseblade, + ItemID.PurplePhaseblade + }; sixtySixDamageBuffList = new List() { @@ -1253,7 +1257,7 @@ namespace CalamityMod ItemID.InfernoFork, ItemID.VenomStaff, ItemID.Frostbrand, - ItemID.BloodButcherer + ItemID.BloodButcherer }; fiftyDamageBuffList = new List() @@ -1266,15 +1270,15 @@ namespace CalamityMod ItemID.PaladinsHammer, ItemID.SolarEruption, ItemID.DayBreak, - ItemID.LunarFlareBook, - ItemID.SilverShortsword, - ItemID.SilverBroadsword, - ItemID.TungstenShortsword, - ItemID.TungstenBroadsword, - ItemID.AntlionClaw, - ItemID.Katana, - ItemID.FalconBlade, - ItemID.Seedler + ItemID.LunarFlareBook, + ItemID.SilverShortsword, + ItemID.SilverBroadsword, + ItemID.TungstenShortsword, + ItemID.TungstenBroadsword, + ItemID.AntlionClaw, + ItemID.Katana, + ItemID.FalconBlade, + ItemID.Seedler }; thirtyThreeDamageBuffList = new List() @@ -1291,20 +1295,20 @@ namespace CalamityMod ItemID.VampireKnives, ItemID.Cascade, ItemID.TrueExcalibur, - ItemID.Meowmere, - ItemID.DyeTradersScimitar + ItemID.Meowmere, + ItemID.DyeTradersScimitar }; twentyFiveDamageBuffList = new List() { ItemID.StakeLauncher, ItemID.BookStaff, - ItemID.IronShortsword, - ItemID.IronBroadsword, - ItemID.LeadShortsword, - ItemID.LeadBroadsword, - ItemID.CandyCaneSword, - ItemID.BoneSword + ItemID.IronShortsword, + ItemID.IronBroadsword, + ItemID.LeadShortsword, + ItemID.LeadBroadsword, + ItemID.CandyCaneSword, + ItemID.BoneSword }; twentyDamageBuffList = new List() @@ -1323,25 +1327,25 @@ namespace CalamityMod weaponAutoreuseList = new List() { - ItemID.IronShortsword, - ItemID.IronBroadsword, - ItemID.LeadShortsword, - ItemID.LeadBroadsword, - ItemID.SilverShortsword, - ItemID.SilverBroadsword, - ItemID.TungstenShortsword, - ItemID.TungstenBroadsword, - ItemID.PlatinumShortsword, - ItemID.PlatinumBroadsword, - ItemID.GoldShortsword, - ItemID.GoldBroadsword, - ItemID.ZombieArm, - ItemID.CandyCaneSword, - ItemID.BoneSword, - ItemID.LightsBane, - ItemID.BloodButcherer, - ItemID.DyeTradersScimitar, - ItemID.NightsEdge, + ItemID.IronShortsword, + ItemID.IronBroadsword, + ItemID.LeadShortsword, + ItemID.LeadBroadsword, + ItemID.SilverShortsword, + ItemID.SilverBroadsword, + ItemID.TungstenShortsword, + ItemID.TungstenBroadsword, + ItemID.PlatinumShortsword, + ItemID.PlatinumBroadsword, + ItemID.GoldShortsword, + ItemID.GoldBroadsword, + ItemID.ZombieArm, + ItemID.CandyCaneSword, + ItemID.BoneSword, + ItemID.LightsBane, + ItemID.BloodButcherer, + ItemID.DyeTradersScimitar, + ItemID.NightsEdge, ItemID.TrueNightsEdge, ItemID.TrueExcalibur, ItemID.PhoenixBlaster, @@ -1353,58 +1357,58 @@ namespace CalamityMod ItemID.PearlwoodBow, ItemID.TaxCollectorsStickOfDoom, ItemID.StylistKilLaKillScissorsIWish, - ItemID.AdamantiteGlaive, - ItemID.ChlorophytePartisan, - ItemID.CobaltNaginata, - ItemID.DarkLance, - ItemID.MonkStaffT2, - ItemID.Gungnir, - ItemID.MushroomSpear, - ItemID.MythrilHalberd, - ItemID.NorthPole, - ItemID.ObsidianSwordfish, - ItemID.OrichalcumHalberd, - ItemID.PalladiumPike, - ItemID.Spear, - ItemID.Swordfish, - ItemID.TheRottedFork, - ItemID.TitaniumTrident, - ItemID.Trident, - ItemID.BluePhaseblade, - ItemID.RedPhaseblade, - ItemID.GreenPhaseblade, - ItemID.WhitePhaseblade, - ItemID.YellowPhaseblade, - ItemID.PurplePhaseblade - //ItemID.StormSpear + ItemID.AdamantiteGlaive, + ItemID.ChlorophytePartisan, + ItemID.CobaltNaginata, + ItemID.DarkLance, + ItemID.MonkStaffT2, + ItemID.Gungnir, + ItemID.MushroomSpear, + ItemID.MythrilHalberd, + ItemID.NorthPole, + ItemID.ObsidianSwordfish, + ItemID.OrichalcumHalberd, + ItemID.PalladiumPike, + ItemID.Spear, + ItemID.Swordfish, + ItemID.TheRottedFork, + ItemID.TitaniumTrident, + ItemID.Trident, + ItemID.BluePhaseblade, + ItemID.RedPhaseblade, + ItemID.GreenPhaseblade, + ItemID.WhitePhaseblade, + ItemID.YellowPhaseblade, + ItemID.PurplePhaseblade + //ItemID.StormSpear }; - spearAutoreuseList = new List() - { - ItemID.AdamantiteGlaive, - ItemID.ChlorophytePartisan, - ItemID.CobaltNaginata, - ItemID.DarkLance, - ItemID.MonkStaffT2, - ItemID.Gungnir, - ItemID.MushroomSpear, - ItemID.MythrilHalberd, - ItemID.NorthPole, - ItemID.ObsidianSwordfish, - ItemID.OrichalcumHalberd, - ItemID.PalladiumPike, - ItemID.Spear, - ItemID.Swordfish, - ItemID.TheRottedFork, - ItemID.TitaniumTrident, - ItemID.Trident - //ItemID.StormSpear - }; + spearAutoreuseList = new List() + { + ItemID.AdamantiteGlaive, + ItemID.ChlorophytePartisan, + ItemID.CobaltNaginata, + ItemID.DarkLance, + ItemID.MonkStaffT2, + ItemID.Gungnir, + ItemID.MushroomSpear, + ItemID.MythrilHalberd, + ItemID.NorthPole, + ItemID.ObsidianSwordfish, + ItemID.OrichalcumHalberd, + ItemID.PalladiumPike, + ItemID.Spear, + ItemID.Swordfish, + ItemID.TheRottedFork, + ItemID.TitaniumTrident, + ItemID.Trident + //ItemID.StormSpear + }; - tenDamageNerfList = new List() + tenDamageNerfList = new List() { ItemID.Phantasm, - ItemID.StarWrath + ItemID.StarWrath }; quarterDamageNerfList = new List() @@ -1507,10 +1511,10 @@ namespace CalamityMod { NPCID.GiantWormHead, NPCID.BlazingWheel, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType() + NPCType(), + NPCType(), + NPCType(), + NPCType() }; // Enemies that inflict an average of 51 to 100 damage in Expert Mode @@ -1530,11 +1534,11 @@ namespace CalamityMod NPCID.Lihzahrd, NPCID.Pumpking, NPCID.SlimeSpiked, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType() + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType() }; // Enemies that inflict an average of 101 to 200 damage in Expert Mode @@ -1576,24 +1580,24 @@ namespace CalamityMod NPCID.SandsharkCorrupt, NPCID.SandsharkCrimson, NPCID.SandsharkHallow, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType() + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType() }; // Enemies that inflict an average of 201 to 400 damage in Expert Mode revengeanceEnemyBuffList10Percent = new List() { NPCID.SolarCrawltipedeHead, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType() + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType() }; revengeanceProjectileBuffList25Percent = new List() @@ -1636,9 +1640,9 @@ namespace CalamityMod ProjectileID.VortexVortexLightning, ProjectileID.VortexLightning, ProjectileID.VortexAcid, - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType() }; revengeanceLifeStealExceptionList = new List() @@ -1676,6 +1680,25 @@ namespace CalamityMod NPCID.QueenBee, }; + noRageWormSegmentList = new List() + { + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + }; + needsDebuffIconDisplayList = new List() { NPCID.WallofFleshEye @@ -1694,446 +1717,446 @@ namespace CalamityMod scopedWeaponList = new List() { - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() }; boomerangList = 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(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() }; boomerangProjList = new List() { - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType() }; javelinList = 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(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() }; javelinProjList = new List() { - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType() }; daggerList = 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(), - 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() + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() }; daggerProjList = new List() { - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType() }; flaskBombList = 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(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() }; flaskBombProjList = new List() { - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType() }; spikyBallList = 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() + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() }; spikyBallProjList = new List() { - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType() }; noGravityList = 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(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + 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(), - 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(), - 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(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), }; lavaFishList = new List() { - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType(), + ItemType() }; highTestFishList = new List() { ItemID.GoldenFishingRod, - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType() }; flamethrowerList = new List() { - ModContent.ItemType(), - ModContent.ItemType() + ItemType(), + ItemType() }; forceItemList = 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(), - 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(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), - ModContent.ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), ItemID.HotlineFishingHook, ItemID.BottomlessBucket, ItemID.SuperAbsorbantSponge, @@ -2168,9 +2191,9 @@ namespace CalamityMod livingFireBlockList = new List() { - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), + TileType(), + TileType(), + TileType(), TileID.LivingFire, TileID.LivingCursedFire, TileID.LivingDemonFire, @@ -2308,18 +2331,18 @@ namespace CalamityMod minibossList = new List() { - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCID.Pumpking, NPCID.MourningWood, NPCID.IceQueen, @@ -2331,78 +2354,78 @@ namespace CalamityMod bossMinionList = new List() { - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCID.SlimeSpiked, NPCID.ServantofCthulhu, - ModContent.NPCType(), + NPCType(), NPCID.EaterofWorldsHead, NPCID.EaterofWorldsBody, NPCID.EaterofWorldsTail, NPCID.Creeper, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCID.SkeletronHand, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCID.LeechHead, NPCID.LeechBody, NPCID.LeechTail, NPCID.WallofFleshEye, NPCID.TheHungry, NPCID.TheHungryII, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCID.PrimeCannon, NPCID.PrimeLaser, NPCID.PrimeSaw, NPCID.PrimeVice, - ModContent.NPCType(), + NPCType(), NPCID.TheDestroyer, NPCID.TheDestroyerBody, NPCID.TheDestroyerTail, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCID.PlanterasTentacle, - ModContent.NPCType(), + NPCType(), NPCID.Spore, NPCID.GolemHead, NPCID.GolemHeadFree, NPCID.GolemFistLeft, NPCID.GolemFistRight, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCID.CultistDragonHead, NPCID.CultistDragonBody1, NPCID.CultistDragonBody2, @@ -2413,21 +2436,21 @@ namespace CalamityMod NPCID.MoonLordFreeEye, NPCID.MoonLordHand, NPCID.MoonLordHead, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType() + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType() }; legOverrideList = new List() @@ -2444,7 +2467,7 @@ namespace CalamityMod kamiDebuffColorImmuneList = new List() { NPCID.DukeFishron, - ModContent.NPCType() + NPCType() }; } @@ -2491,6 +2514,7 @@ namespace CalamityMod revengeanceProjectileBuffList15Percent = null; revengeanceLifeStealExceptionList = null; movementImpairImmuneList = null; + noRageWormSegmentList = null; needsDebuffIconDisplayList = null; trapProjectileList = null; scopedWeaponList = null;