From 9c727817236a194735486fab24e6ad8d6f2e05dc Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 24 Dec 2019 23:28:50 -0500 Subject: [PATCH 1/4] added fish of eleum and sunbeam fish; spadefish rarer in hardmode --- CalPlayer/CalamityPlayer.cs | 14 +++++++- .../BrimstoneCragCatches/ChaoticFish.cs | 2 +- Items/Fishing/FishofEleum.cs | 34 ++++++++++++++++++ Items/Fishing/FishofEleum.png | Bin 0 -> 725 bytes Items/Fishing/SunbeamFish.cs | 34 ++++++++++++++++++ Items/Fishing/SunbeamFish.png | Bin 0 -> 732 bytes 6 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 Items/Fishing/FishofEleum.cs create mode 100644 Items/Fishing/FishofEleum.png create mode 100644 Items/Fishing/SunbeamFish.cs create mode 100644 Items/Fishing/SunbeamFish.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index b0d1ee3c19..dbb4f84c04 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -8401,6 +8401,10 @@ namespace CalamityMod.CalPlayer { caughtType = ModContent.ItemType(); } + if (Main.rand.NextBool(15)) + { + caughtType = ModContent.ItemType(); + } } if (player.ZoneOverworldHeight && !Main.dayTime) @@ -8427,9 +8431,17 @@ namespace CalamityMod.CalPlayer } } + if (player.ZoneSnow) + { + if (Main.rand.NextBool(15)) + { + caughtType = ModContent.ItemType(); + } + } + if (player.ZoneDirtLayerHeight) { - if (Main.rand.NextBool(40)) + if (Main.rand.NextBool(Main.hardMode ? 100 : 40)) { caughtType = ModContent.ItemType(); } diff --git a/Items/Fishing/BrimstoneCragCatches/ChaoticFish.cs b/Items/Fishing/BrimstoneCragCatches/ChaoticFish.cs index 6d03faad48..bffcd8a890 100644 --- a/Items/Fishing/BrimstoneCragCatches/ChaoticFish.cs +++ b/Items/Fishing/BrimstoneCragCatches/ChaoticFish.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches { public override void SetStaticDefaults() { - DisplayName.SetDefault("Chaotic Fish"); //Future potion ingredient + DisplayName.SetDefault("Chaotic Fish"); Tooltip.SetDefault("The horns lay a curse on those who touch it\n" + "Right click to extract essence"); } diff --git a/Items/Fishing/FishofEleum.cs b/Items/Fishing/FishofEleum.cs new file mode 100644 index 0000000000..5df58dc89b --- /dev/null +++ b/Items/Fishing/FishofEleum.cs @@ -0,0 +1,34 @@ +using Terraria; +using Terraria.ModLoader; +using CalamityMod.Items.Materials; + +namespace CalamityMod.Items.Fishing +{ + public class FishofEleum : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Fish of Eleum"); + Tooltip.SetDefault("Right click to extract essence"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 28; + item.maxStack = 999; + item.value = Item.sellPrice(silver: 10); + item.rare = 2; + } + + public override bool CanRightClick() + { + return true; + } + + public override void RightClick(Player player) + { + DropHelper.DropItem(player, ModContent.ItemType(), 5, 10); + } + } +} diff --git a/Items/Fishing/FishofEleum.png b/Items/Fishing/FishofEleum.png new file mode 100644 index 0000000000000000000000000000000000000000..0ad6566d78da0f001b3e8a244a0e9798b17ebd6d GIT binary patch literal 725 zcmV;`0xJE9P)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00JXPL_t(Y$IX|qOItx4$3JI`X^j}A zNGL6INTHjA4lXUkrDTvoC#U`cQktz(moA;UDW#KxtCL6_vbE46NO33~T55(ug$4)n zBtc)Iz7CgPe0O;-1`*zUmzR6FyLaEu{eHi9PjO9Je7ONYHa`JCtKJNT88>oW3%IIA zhwWG{Ek)i>=koeGcHDJN08l93A2?sFy5|T1*}FJ-->U#jJtzRs_*FCZw&T_HwOu62 z`R=>-06cv4B69xZ35?xn0?{p8(A>Luh)zLxjWMUc>9Mz*tzHldffBM zU!XrLLWJEQFp3rJ2RmN@NM)zxmO;qdKP2qj-t(vPt3YH-=?A8L1#sHQxIsWkjhC9< z@#==-+-w;bzP86nvMHU*D}axiZ`>fzdmD=LVI512m;Sa>n_%cUM%x_%wu4>ENt}d~ z5J}zCHJ*`_%r~%tCQl%fFUW7B9t0g9fYX-F`*Xi##E8g_{N}j;2*&+~s zif#Vhj&$I~#E8_B@q5L{|JPTZIYvO7OEgPOU!H%fSD49OHitnddwT|ep#S_3Niul? zy}j%bSgU+9I-L70qixr8yRtQY{^*{tO2Fmsh{Or>orpwn4sBIGf6xFgzMLXYSnU)2 z&FEYf{0DQu&`<3{pgI5m01|XXSad~LNk%$Pa%p95bYXO9Z*BlFgjnqF00000NkvXX Hu0mjf`1(8` literal 0 HcmV?d00001 diff --git a/Items/Fishing/SunbeamFish.cs b/Items/Fishing/SunbeamFish.cs new file mode 100644 index 0000000000..79b8b5dd6a --- /dev/null +++ b/Items/Fishing/SunbeamFish.cs @@ -0,0 +1,34 @@ +using Terraria; +using Terraria.ModLoader; +using CalamityMod.Items.Materials; + +namespace CalamityMod.Items.Fishing +{ + public class SunbeamFish : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sunbeam Fish"); + Tooltip.SetDefault("Right click to extract essence"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 28; + item.maxStack = 999; + item.value = Item.sellPrice(silver: 10); + item.rare = 2; + } + + public override bool CanRightClick() + { + return true; + } + + public override void RightClick(Player player) + { + DropHelper.DropItem(player, ModContent.ItemType(), 5, 10); + } + } +} diff --git a/Items/Fishing/SunbeamFish.png b/Items/Fishing/SunbeamFish.png new file mode 100644 index 0000000000000000000000000000000000000000..934161fe30e9dadace496d7d3cca2165d2a3edca GIT binary patch literal 732 zcmV<20wev2P)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00JsWL_t(Y$JLiFOj}VDhrbK-K}&&! zE&)LoLijT=G7QN!f!zcKhuUDlpeiOXlNbaEkdO%+YHo&PnVo>iEvp#mGO;2+Ktk40 zD20c(@3g&__wooqTz;nMy*+*JeD`#AR%&JLLh8&8UDt+1F$=fyHSr_~m(M{ML3NblrU-4e}em9Gz4E z7=9Q|;Qhyc04%Kz>D8V68{NpgB4T7{OEOM8@6`(dk%e3#Al7leh^VLyshWX7-6#J1 z*3}^y)(FH%h>3R|_qHj3QdwVm@3`z1ksEtN6i4FI@*x0I?=rykzVX0I`2fH6kBoJ9 ziHJ9zWc5})@P^$NI%Z}8INkkhkPy}The>4e#d+|ly(Zpqhe*^+$rr0emDv3v_i7D@ zpR(WnnqH82o1i;Hux3e=>`ZJDl6e%N{%leKEaVEI*K>*pQ1^n=y|`OspQ(NJB8ih~ z7$0a=0L|5;50L1&PymI4ikn2#`rKQfUL|qQ5t3=U*Q@~kS1x4BIQyXEPvQyY z+=nllZV_q87pnk_j-?G(+hpvS(Lll=kZDc(0EcHK0G?*GN4B;TKET9CN&$S`Ju%{) zAyRuDkq$dLmImPG_mXk8BKwRR6zYY(F5N%m{YND4Gwu?x$<(HAP)%{M6C)`AD&;mG zz)PMQUXbdDk~2iE0J(+Bi!FNFAOHXW5_CmabVXQ6MmkS&X=QG7VRUJ4ZU8ZaSnTfr O0000 Date: Tue, 24 Dec 2019 23:39:08 -0500 Subject: [PATCH 2/4] All lore items now glow and float. --- Items/LoreItems/KnowledgeAquaticScourge.cs | 3 +-- Items/LoreItems/KnowledgeAstralInfection.cs | 2 +- Items/LoreItems/KnowledgeAstrumAureus.cs | 2 +- Items/LoreItems/KnowledgeAstrumDeus.cs | 2 +- Items/LoreItems/KnowledgeBloodMoon.cs | 2 +- Items/LoreItems/KnowledgeBrainofCthulhu.cs | 2 +- Items/LoreItems/KnowledgeBrimstoneCrag.cs | 2 +- Items/LoreItems/KnowledgeBrimstoneElemental.cs | 2 +- Items/LoreItems/KnowledgeBumblebirb.cs | 2 +- Items/LoreItems/KnowledgeCalamitas.cs | 2 +- Items/LoreItems/KnowledgeCalamitasClone.cs | 2 +- Items/LoreItems/KnowledgeCorruption.cs | 2 +- Items/LoreItems/KnowledgeCrabulon.cs | 2 +- Items/LoreItems/KnowledgeCrimson.cs | 2 +- Items/LoreItems/KnowledgeCryogen.cs | 2 +- Items/LoreItems/KnowledgeDesertScourge.cs | 2 +- Items/LoreItems/KnowledgeDestroyer.cs | 2 +- Items/LoreItems/KnowledgeDevourerofGods.cs | 2 +- Items/LoreItems/KnowledgeDukeFishron.cs | 2 +- Items/LoreItems/KnowledgeEaterofWorlds.cs | 2 +- Items/LoreItems/KnowledgeEyeofCthulhu.cs | 2 +- Items/LoreItems/KnowledgeGolem.cs | 2 +- Items/LoreItems/KnowledgeHiveMind.cs | 2 +- Items/LoreItems/KnowledgeKingSlime.cs | 2 +- Items/LoreItems/KnowledgeLeviathanandSiren.cs | 2 +- Items/LoreItems/KnowledgeLunaticCultist.cs | 2 +- Items/LoreItems/KnowledgeMechs.cs | 2 +- Items/LoreItems/KnowledgeMoonLord.cs | 2 +- Items/LoreItems/KnowledgeOcean.cs | 2 +- Items/LoreItems/KnowledgePerforators.cs | 2 +- Items/LoreItems/KnowledgePlaguebringerGoliath.cs | 2 +- Items/LoreItems/KnowledgePlantera.cs | 2 +- Items/LoreItems/KnowledgePolterghast.cs | 2 +- Items/LoreItems/KnowledgeProfanedGuardians.cs | 2 +- Items/LoreItems/KnowledgeProvidence.cs | 2 +- Items/LoreItems/KnowledgeQueenBee.cs | 2 +- Items/LoreItems/KnowledgeRavager.cs | 2 +- Items/LoreItems/KnowledgeSentinels.cs | 2 +- Items/LoreItems/KnowledgeSkeletron.cs | 2 +- Items/LoreItems/KnowledgeSkeletronPrime.cs | 2 +- Items/LoreItems/KnowledgeSlimeGod.cs | 2 +- Items/LoreItems/KnowledgeSulphurSea.cs | 2 +- Items/LoreItems/KnowledgeTwins.cs | 2 +- Items/LoreItems/KnowledgeUnderworld.cs | 2 +- Items/LoreItems/KnowledgeWallofFlesh.cs | 2 +- Items/LoreItems/KnowledgeYharon.cs | 2 +- Items/LoreItems/LoreItem.cs | 11 +++++++++++ 47 files changed, 57 insertions(+), 47 deletions(-) create mode 100644 Items/LoreItems/LoreItem.cs diff --git a/Items/LoreItems/KnowledgeAquaticScourge.cs b/Items/LoreItems/KnowledgeAquaticScourge.cs index e45c0a47d5..ae7477798c 100644 --- a/Items/LoreItems/KnowledgeAquaticScourge.cs +++ b/Items/LoreItems/KnowledgeAquaticScourge.cs @@ -1,10 +1,9 @@ using CalamityMod.CalPlayer; using Terraria; -using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeAquaticScourge : ModItem + public class KnowledgeAquaticScourge : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeAstralInfection.cs b/Items/LoreItems/KnowledgeAstralInfection.cs index 5eaee112d1..0ede98826f 100644 --- a/Items/LoreItems/KnowledgeAstralInfection.cs +++ b/Items/LoreItems/KnowledgeAstralInfection.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeAstralInfection : ModItem + public class KnowledgeAstralInfection : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeAstrumAureus.cs b/Items/LoreItems/KnowledgeAstrumAureus.cs index cf8a3e79a6..4e3707da23 100644 --- a/Items/LoreItems/KnowledgeAstrumAureus.cs +++ b/Items/LoreItems/KnowledgeAstrumAureus.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeAstrumAureus : ModItem + public class KnowledgeAstrumAureus : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeAstrumDeus.cs b/Items/LoreItems/KnowledgeAstrumDeus.cs index 6fefb097e3..5cb7731057 100644 --- a/Items/LoreItems/KnowledgeAstrumDeus.cs +++ b/Items/LoreItems/KnowledgeAstrumDeus.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeAstrumDeus : ModItem + public class KnowledgeAstrumDeus : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeBloodMoon.cs b/Items/LoreItems/KnowledgeBloodMoon.cs index 22ce1c12bc..0086f75f85 100644 --- a/Items/LoreItems/KnowledgeBloodMoon.cs +++ b/Items/LoreItems/KnowledgeBloodMoon.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeBloodMoon : ModItem + public class KnowledgeBloodMoon : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeBrainofCthulhu.cs b/Items/LoreItems/KnowledgeBrainofCthulhu.cs index 49374458fc..407b569735 100644 --- a/Items/LoreItems/KnowledgeBrainofCthulhu.cs +++ b/Items/LoreItems/KnowledgeBrainofCthulhu.cs @@ -6,7 +6,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeBrainofCthulhu : ModItem + public class KnowledgeBrainofCthulhu : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeBrimstoneCrag.cs b/Items/LoreItems/KnowledgeBrimstoneCrag.cs index d11e610e99..1697c8f004 100644 --- a/Items/LoreItems/KnowledgeBrimstoneCrag.cs +++ b/Items/LoreItems/KnowledgeBrimstoneCrag.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeBrimstoneCrag : ModItem + public class KnowledgeBrimstoneCrag : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeBrimstoneElemental.cs b/Items/LoreItems/KnowledgeBrimstoneElemental.cs index a595f81907..73ce2b805c 100644 --- a/Items/LoreItems/KnowledgeBrimstoneElemental.cs +++ b/Items/LoreItems/KnowledgeBrimstoneElemental.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeBrimstoneElemental : ModItem + public class KnowledgeBrimstoneElemental : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeBumblebirb.cs b/Items/LoreItems/KnowledgeBumblebirb.cs index 10fbe867f5..2227276ba1 100644 --- a/Items/LoreItems/KnowledgeBumblebirb.cs +++ b/Items/LoreItems/KnowledgeBumblebirb.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeBumblebirb : ModItem + public class KnowledgeBumblebirb : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeCalamitas.cs b/Items/LoreItems/KnowledgeCalamitas.cs index 75b5f5b71e..1c9d02f8ff 100644 --- a/Items/LoreItems/KnowledgeCalamitas.cs +++ b/Items/LoreItems/KnowledgeCalamitas.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCalamitas : ModItem + public class KnowledgeCalamitas : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeCalamitasClone.cs b/Items/LoreItems/KnowledgeCalamitasClone.cs index fc43b17709..f09016775c 100644 --- a/Items/LoreItems/KnowledgeCalamitasClone.cs +++ b/Items/LoreItems/KnowledgeCalamitasClone.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCalamitasClone : ModItem + public class KnowledgeCalamitasClone : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeCorruption.cs b/Items/LoreItems/KnowledgeCorruption.cs index eb56047040..122f31f421 100644 --- a/Items/LoreItems/KnowledgeCorruption.cs +++ b/Items/LoreItems/KnowledgeCorruption.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCorruption : ModItem + public class KnowledgeCorruption : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeCrabulon.cs b/Items/LoreItems/KnowledgeCrabulon.cs index 362908104e..bdbb252e88 100644 --- a/Items/LoreItems/KnowledgeCrabulon.cs +++ b/Items/LoreItems/KnowledgeCrabulon.cs @@ -3,7 +3,7 @@ using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCrabulon : ModItem + public class KnowledgeCrabulon : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeCrimson.cs b/Items/LoreItems/KnowledgeCrimson.cs index 254cc9d79d..4ce721a3bd 100644 --- a/Items/LoreItems/KnowledgeCrimson.cs +++ b/Items/LoreItems/KnowledgeCrimson.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCrimson : ModItem + public class KnowledgeCrimson : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeCryogen.cs b/Items/LoreItems/KnowledgeCryogen.cs index 8aa9e40d34..a590f251a0 100644 --- a/Items/LoreItems/KnowledgeCryogen.cs +++ b/Items/LoreItems/KnowledgeCryogen.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeCryogen : ModItem + public class KnowledgeCryogen : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeDesertScourge.cs b/Items/LoreItems/KnowledgeDesertScourge.cs index fbcf48a011..da8e592e70 100644 --- a/Items/LoreItems/KnowledgeDesertScourge.cs +++ b/Items/LoreItems/KnowledgeDesertScourge.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeDesertScourge : ModItem + public class KnowledgeDesertScourge : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeDestroyer.cs b/Items/LoreItems/KnowledgeDestroyer.cs index 5bbc3722d7..869d61e566 100644 --- a/Items/LoreItems/KnowledgeDestroyer.cs +++ b/Items/LoreItems/KnowledgeDestroyer.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeDestroyer : ModItem + public class KnowledgeDestroyer : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeDevourerofGods.cs b/Items/LoreItems/KnowledgeDevourerofGods.cs index 18a9450582..d80050cb94 100644 --- a/Items/LoreItems/KnowledgeDevourerofGods.cs +++ b/Items/LoreItems/KnowledgeDevourerofGods.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeDevourerofGods : ModItem + public class KnowledgeDevourerofGods : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeDukeFishron.cs b/Items/LoreItems/KnowledgeDukeFishron.cs index b7c7733953..927454c87d 100644 --- a/Items/LoreItems/KnowledgeDukeFishron.cs +++ b/Items/LoreItems/KnowledgeDukeFishron.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeDukeFishron : ModItem + public class KnowledgeDukeFishron : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeEaterofWorlds.cs b/Items/LoreItems/KnowledgeEaterofWorlds.cs index 74312ef947..248e4d8eb2 100644 --- a/Items/LoreItems/KnowledgeEaterofWorlds.cs +++ b/Items/LoreItems/KnowledgeEaterofWorlds.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeEaterofWorlds : ModItem + public class KnowledgeEaterofWorlds : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeEyeofCthulhu.cs b/Items/LoreItems/KnowledgeEyeofCthulhu.cs index 6801620185..9643e3fb56 100644 --- a/Items/LoreItems/KnowledgeEyeofCthulhu.cs +++ b/Items/LoreItems/KnowledgeEyeofCthulhu.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeEyeofCthulhu : ModItem + public class KnowledgeEyeofCthulhu : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeGolem.cs b/Items/LoreItems/KnowledgeGolem.cs index 09d9ab052b..791af85405 100644 --- a/Items/LoreItems/KnowledgeGolem.cs +++ b/Items/LoreItems/KnowledgeGolem.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeGolem : ModItem + public class KnowledgeGolem : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeHiveMind.cs b/Items/LoreItems/KnowledgeHiveMind.cs index 09ffed6df9..aa4e916f08 100644 --- a/Items/LoreItems/KnowledgeHiveMind.cs +++ b/Items/LoreItems/KnowledgeHiveMind.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeHiveMind : ModItem + public class KnowledgeHiveMind : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeKingSlime.cs b/Items/LoreItems/KnowledgeKingSlime.cs index f18b87d134..9036c8eb1c 100644 --- a/Items/LoreItems/KnowledgeKingSlime.cs +++ b/Items/LoreItems/KnowledgeKingSlime.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeKingSlime : ModItem + public class KnowledgeKingSlime : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeLeviathanandSiren.cs b/Items/LoreItems/KnowledgeLeviathanandSiren.cs index 6730fa567a..9939695413 100644 --- a/Items/LoreItems/KnowledgeLeviathanandSiren.cs +++ b/Items/LoreItems/KnowledgeLeviathanandSiren.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeLeviathanandSiren : ModItem + public class KnowledgeLeviathanandSiren : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeLunaticCultist.cs b/Items/LoreItems/KnowledgeLunaticCultist.cs index e3006a2d61..2d2a1f8420 100644 --- a/Items/LoreItems/KnowledgeLunaticCultist.cs +++ b/Items/LoreItems/KnowledgeLunaticCultist.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeLunaticCultist : ModItem + public class KnowledgeLunaticCultist : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeMechs.cs b/Items/LoreItems/KnowledgeMechs.cs index b561e362b7..814bc96a36 100644 --- a/Items/LoreItems/KnowledgeMechs.cs +++ b/Items/LoreItems/KnowledgeMechs.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeMechs : ModItem + public class KnowledgeMechs : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeMoonLord.cs b/Items/LoreItems/KnowledgeMoonLord.cs index 21e2a55dfd..94133b445a 100644 --- a/Items/LoreItems/KnowledgeMoonLord.cs +++ b/Items/LoreItems/KnowledgeMoonLord.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeMoonLord : ModItem + public class KnowledgeMoonLord : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeOcean.cs b/Items/LoreItems/KnowledgeOcean.cs index dcd754f1fe..33f858bc69 100644 --- a/Items/LoreItems/KnowledgeOcean.cs +++ b/Items/LoreItems/KnowledgeOcean.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeOcean : ModItem + public class KnowledgeOcean : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgePerforators.cs b/Items/LoreItems/KnowledgePerforators.cs index 0bb9626c0b..78c0c5862e 100644 --- a/Items/LoreItems/KnowledgePerforators.cs +++ b/Items/LoreItems/KnowledgePerforators.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgePerforators : ModItem + public class KnowledgePerforators : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs b/Items/LoreItems/KnowledgePlaguebringerGoliath.cs index 4f643a914c..213a472327 100644 --- a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs +++ b/Items/LoreItems/KnowledgePlaguebringerGoliath.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgePlaguebringerGoliath : ModItem + public class KnowledgePlaguebringerGoliath : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgePlantera.cs b/Items/LoreItems/KnowledgePlantera.cs index 8440d64ae7..0230f2e32b 100644 --- a/Items/LoreItems/KnowledgePlantera.cs +++ b/Items/LoreItems/KnowledgePlantera.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgePlantera : ModItem + public class KnowledgePlantera : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgePolterghast.cs b/Items/LoreItems/KnowledgePolterghast.cs index d4c3f839d6..a8c64fd829 100644 --- a/Items/LoreItems/KnowledgePolterghast.cs +++ b/Items/LoreItems/KnowledgePolterghast.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgePolterghast : ModItem + public class KnowledgePolterghast : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeProfanedGuardians.cs b/Items/LoreItems/KnowledgeProfanedGuardians.cs index 10ed3d2c43..32cb335c73 100644 --- a/Items/LoreItems/KnowledgeProfanedGuardians.cs +++ b/Items/LoreItems/KnowledgeProfanedGuardians.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeProfanedGuardians : ModItem + public class KnowledgeProfanedGuardians : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeProvidence.cs b/Items/LoreItems/KnowledgeProvidence.cs index 9dc04ae9ee..cc8975b00f 100644 --- a/Items/LoreItems/KnowledgeProvidence.cs +++ b/Items/LoreItems/KnowledgeProvidence.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeProvidence : ModItem + public class KnowledgeProvidence : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeQueenBee.cs b/Items/LoreItems/KnowledgeQueenBee.cs index 023c7393f6..0461a4c112 100644 --- a/Items/LoreItems/KnowledgeQueenBee.cs +++ b/Items/LoreItems/KnowledgeQueenBee.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeQueenBee : ModItem + public class KnowledgeQueenBee : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeRavager.cs b/Items/LoreItems/KnowledgeRavager.cs index 2101321b24..3d14b5c900 100644 --- a/Items/LoreItems/KnowledgeRavager.cs +++ b/Items/LoreItems/KnowledgeRavager.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeRavager : ModItem + public class KnowledgeRavager : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeSentinels.cs b/Items/LoreItems/KnowledgeSentinels.cs index 1128bf0661..d0c0094e71 100644 --- a/Items/LoreItems/KnowledgeSentinels.cs +++ b/Items/LoreItems/KnowledgeSentinels.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeSentinels : ModItem + public class KnowledgeSentinels : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeSkeletron.cs b/Items/LoreItems/KnowledgeSkeletron.cs index 43e9dd86d3..2f0418ade0 100644 --- a/Items/LoreItems/KnowledgeSkeletron.cs +++ b/Items/LoreItems/KnowledgeSkeletron.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeSkeletron : ModItem + public class KnowledgeSkeletron : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeSkeletronPrime.cs b/Items/LoreItems/KnowledgeSkeletronPrime.cs index f54d487ee4..e4dea7bd77 100644 --- a/Items/LoreItems/KnowledgeSkeletronPrime.cs +++ b/Items/LoreItems/KnowledgeSkeletronPrime.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeSkeletronPrime : ModItem + public class KnowledgeSkeletronPrime : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeSlimeGod.cs b/Items/LoreItems/KnowledgeSlimeGod.cs index 4b4345c78f..30ab5625ba 100644 --- a/Items/LoreItems/KnowledgeSlimeGod.cs +++ b/Items/LoreItems/KnowledgeSlimeGod.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeSlimeGod : ModItem + public class KnowledgeSlimeGod : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeSulphurSea.cs b/Items/LoreItems/KnowledgeSulphurSea.cs index 6d4fb7906d..eadc6cdb20 100644 --- a/Items/LoreItems/KnowledgeSulphurSea.cs +++ b/Items/LoreItems/KnowledgeSulphurSea.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeSulphurSea : ModItem + public class KnowledgeSulphurSea : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeTwins.cs b/Items/LoreItems/KnowledgeTwins.cs index 4740dfa3a0..10d0e59766 100644 --- a/Items/LoreItems/KnowledgeTwins.cs +++ b/Items/LoreItems/KnowledgeTwins.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeTwins : ModItem + public class KnowledgeTwins : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeUnderworld.cs b/Items/LoreItems/KnowledgeUnderworld.cs index cbd93f7dc3..efc78aff2b 100644 --- a/Items/LoreItems/KnowledgeUnderworld.cs +++ b/Items/LoreItems/KnowledgeUnderworld.cs @@ -3,7 +3,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeUnderworld : ModItem + public class KnowledgeUnderworld : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeWallofFlesh.cs b/Items/LoreItems/KnowledgeWallofFlesh.cs index bd40e655af..03e519138b 100644 --- a/Items/LoreItems/KnowledgeWallofFlesh.cs +++ b/Items/LoreItems/KnowledgeWallofFlesh.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeWallofFlesh : ModItem + public class KnowledgeWallofFlesh : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/KnowledgeYharon.cs b/Items/LoreItems/KnowledgeYharon.cs index 1464ff7657..a2020cd635 100644 --- a/Items/LoreItems/KnowledgeYharon.cs +++ b/Items/LoreItems/KnowledgeYharon.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { - public class KnowledgeYharon : ModItem + public class KnowledgeYharon : LoreItem { public override void SetStaticDefaults() { diff --git a/Items/LoreItems/LoreItem.cs b/Items/LoreItems/LoreItem.cs new file mode 100644 index 0000000000..1ebcafa786 --- /dev/null +++ b/Items/LoreItems/LoreItem.cs @@ -0,0 +1,11 @@ +using Microsoft.Xna.Framework; +using Terraria.ModLoader; + +namespace CalamityMod.Items.LoreItems +{ + public abstract class LoreItem : ModItem + { + public override void Update(ref float gravity, ref float maxFallSpeed) => gravity = maxFallSpeed = 0f; + public override Color? GetAlpha(Color lightColor) => Color.White; + } +} From 68952f137882992e84dbe63b60f85d5d22dbc8d5 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 24 Dec 2019 23:51:34 -0500 Subject: [PATCH 3/4] switched lore item float to global float list --- CalamityMod.cs | 50 ++++++++++++++++++++++++++++++++++++- Items/LoreItems/LoreItem.cs | 1 - 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/CalamityMod.cs b/CalamityMod.cs index 659c32ac59..e98998037d 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -83,6 +83,7 @@ using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; using Terraria.UI; +using CalamityMod.Items.LoreItems; namespace CalamityMod { @@ -2033,7 +2034,54 @@ namespace CalamityMod ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType() + ModContent.ItemType(), + + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), }; lavaFishList = new List() diff --git a/Items/LoreItems/LoreItem.cs b/Items/LoreItems/LoreItem.cs index 1ebcafa786..584f64edcf 100644 --- a/Items/LoreItems/LoreItem.cs +++ b/Items/LoreItems/LoreItem.cs @@ -5,7 +5,6 @@ namespace CalamityMod.Items.LoreItems { public abstract class LoreItem : ModItem { - public override void Update(ref float gravity, ref float maxFallSpeed) => gravity = maxFallSpeed = 0f; public override Color? GetAlpha(Color lightColor) => Color.White; } } From 987393053a0b4bc74e6f25ca228b3ddadc30334e Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 25 Dec 2019 00:02:47 -0500 Subject: [PATCH 4/4] Fixed Elemental Lance thrusting animation --- Projectiles/Melee/Spears/SpatialLanceProjectile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Melee/Spears/SpatialLanceProjectile.cs b/Projectiles/Melee/Spears/SpatialLanceProjectile.cs index 3f3ac4805b..3f40f71348 100644 --- a/Projectiles/Melee/Spears/SpatialLanceProjectile.cs +++ b/Projectiles/Melee/Spears/SpatialLanceProjectile.cs @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Melee.Spears } if (Main.player[projectile.owner].itemAnimation < Main.player[projectile.owner].itemAnimationMax / 3) { - projectile.ai[0] -= 2.4f; + projectile.ai[0] -= 1.1f; if (projectile.localAI[0] == 0f && Main.myPlayer == projectile.owner) { projectile.localAI[0] = 1f; @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Melee.Spears } else { - projectile.ai[0] += 0.95f; + projectile.ai[0] += 0.6f; } if (Main.player[projectile.owner].itemAnimation == 0)