From f4362a71674793a5f11310abf1f3af44f00813ea Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 23 May 2022 04:31:33 +0200 Subject: [PATCH 01/30] Victide armor --- CalPlayer/CalamityPlayer.cs | 26 ++++++++++++++++++++ Items/Armor/VictideBreastplate.cs | 17 +++++++++++++ Items/Armor/VictideBreastplate.png | Bin 652 -> 756 bytes Items/Armor/VictideBreastplate_Body.png | Bin 4018 -> 6856 bytes Items/Armor/VictideFaulds_Waist.png | Bin 0 -> 2773 bytes Items/Armor/VictideHeadgear.cs | 14 +++++++++++ Items/Armor/VictideHeadgear.png | Bin 396 -> 604 bytes Items/Armor/VictideHeadgear_CroppedHead.png | Bin 0 -> 1488 bytes Items/Armor/VictideHeadgear_Head.png | Bin 2925 -> 1468 bytes Items/Armor/VictideHelm.cs | 14 +++++++++++ Items/Armor/VictideHelm.png | Bin 488 -> 673 bytes Items/Armor/VictideHelm_CroppedHead.png | Bin 0 -> 1451 bytes Items/Armor/VictideHelm_Head.png | Bin 3484 -> 1535 bytes Items/Armor/VictideHelmet.cs | 14 +++++++++++ Items/Armor/VictideHelmet.png | Bin 425 -> 643 bytes Items/Armor/VictideHelmet_CroppedHead.png | Bin 0 -> 1386 bytes Items/Armor/VictideHelmet_Head.png | Bin 2849 -> 1547 bytes Items/Armor/VictideLeggings.cs | 6 +++++ Items/Armor/VictideLeggings.png | Bin 364 -> 536 bytes Items/Armor/VictideLeggings_Legs.png | Bin 2211 -> 3784 bytes Items/Armor/VictideMask.cs | 14 +++++++++++ Items/Armor/VictideMask.png | Bin 346 -> 789 bytes Items/Armor/VictideMask_CroppedHead.png | Bin 0 -> 1801 bytes Items/Armor/VictideMask_Head.png | Bin 2302 -> 1838 bytes Items/Armor/VictideVisage.cs | 14 +++++++++++ Items/Armor/VictideVisage.png | Bin 454 -> 652 bytes Items/Armor/VictideVisage_CroppedHead.png | Bin 0 -> 1590 bytes Items/Armor/VictideVisage_Head.png | Bin 3459 -> 1652 bytes 28 files changed, 119 insertions(+) create mode 100644 Items/Armor/VictideFaulds_Waist.png create mode 100644 Items/Armor/VictideHeadgear_CroppedHead.png create mode 100644 Items/Armor/VictideHelm_CroppedHead.png create mode 100644 Items/Armor/VictideHelmet_CroppedHead.png create mode 100644 Items/Armor/VictideMask_CroppedHead.png create mode 100644 Items/Armor/VictideVisage_CroppedHead.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 863143560a..574a35e4cc 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5814,6 +5814,32 @@ namespace CalamityMod.CalPlayer Player.back = (sbyte)EquipLoader.GetEquipSlot(Mod, "XerocPlateMail", EquipType.Back); Player.neck = (sbyte)EquipLoader.GetEquipSlot(Mod, "XerocPlateMail", EquipType.Neck); } + + bool victideBreastplateVisible = Player.body == EquipLoader.GetEquipSlot(Mod, "VictideBreastplate", EquipType.Body); + //Give the player faulds if either the body armor or the leggings are equipped + if (victideBreastplateVisible || Player.legs == EquipLoader.GetEquipSlot(Mod, "VictideLeggings", EquipType.Legs)) + { + Player.waist = (sbyte)EquipLoader.GetEquipSlot(Mod, "VictideFaulds", EquipType.Waist); + + string[] victideHelmetNames = new string[5] { "VictideHeadgear" , "VictideHelm", "VictideHelmet", "VictideMask", "VictideVisage" }; + bool anyVictideHelmetVisible = false; + int victideHelmetIndex = 0; + + for (int i = 0; i < 5; i++) + if (Player.head == EquipLoader.GetEquipSlot(Mod, victideHelmetNames[i], EquipType.Head)) + { + victideHelmetIndex = i; + anyVictideHelmetVisible = true; + break; + } + + //Crop out the face of the victide mask if the chestplate is worn (so the little seastar crest can peek through) + if (victideBreastplateVisible && anyVictideHelmetVisible) + { + Player.head = EquipLoader.GetEquipSlot(Mod, victideHelmetNames[victideHelmetIndex] + "Cropped", EquipType.Head); + } + + } } #endregion diff --git a/Items/Armor/VictideBreastplate.cs b/Items/Armor/VictideBreastplate.cs index 0901494aa6..2650f1322f 100644 --- a/Items/Armor/VictideBreastplate.cs +++ b/Items/Armor/VictideBreastplate.cs @@ -9,12 +9,29 @@ namespace CalamityMod.Items.Armor [AutoloadEquip(EquipType.Body)] public class VictideBreastplate : ModItem { + + public override void Load() + { + if (Main.netMode != NetmodeID.Server) + { + //register the faulds texture. This appears either when the leggings or the chestplate is equipped (both works) + EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/VictideFaulds_Waist", EquipType.Waist, name: "VictideFaulds"); + } + } + public override void SetStaticDefaults() { CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("Victide Breastplate"); Tooltip.SetDefault("5% increased damage reduction and critical strike chance\n" + "+5 defense and 10% increased damage reduction while submerged in liquid"); + + if (Main.netMode != NetmodeID.Server) + { + int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body); + ArmorIDs.Body.Sets.HidesArms[equipSlot] = true; + ArmorIDs.Body.Sets.HidesTopSkin[equipSlot] = true; + } } public override void SetDefaults() diff --git a/Items/Armor/VictideBreastplate.png b/Items/Armor/VictideBreastplate.png index 47ea04a593bd43c72203aa887d2a3fd2e23ef991..63290748c1d2377dfc9ab78a25ac8d03bf941e4a 100644 GIT binary patch literal 756 zcmVPx%u1Q2eR7i=<*1>CBRTRhZ&oh~%lbDXAZw%2ON>mJLDWcFSwh*znD1u5CZe0q3 zP&c9=u3Tl|%KyNH1sB$ZPzbi5sR*TvN<2%lH?P^uAm11O z^8(qslh1&yV`JdOcit*sqA!s4kM0APSFR@YkWmF;qwf#U-3la+9e)6P^U=8iu9k@( z9Dfx(vZzxdlVE1G9f(%0gZEEPgZEAcZ-<8mQ3c`hPrnrK%E^bpxgWku5}qF!ylsK$ zBQJ+w?o%+c+6G@-45ZUX4}wq5d|6O&mx9ju-_RqwNlkB^d>Wj&_<8VhuwKzWP2Q}7&PtedlaD?Q zPJj4)npu*(UCzj;ypf*McKOHf!V@`|Ylr>*EO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b977a1ba 100644 --- a/Items/Armor/VictideHeadgear.cs +++ b/Items/Armor/VictideHeadgear.cs @@ -10,11 +10,25 @@ namespace CalamityMod.Items.Armor [AutoloadEquip(EquipType.Head)] public class VictideHeadgear : ModItem { + public override void Load() + { + if (Main.netMode != NetmodeID.Server) + { + EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/VictideHeadgear_CroppedHead", EquipType.Head, name: Name + "Cropped"); + } + } + public override void SetStaticDefaults() { CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("Victide Headgear"); Tooltip.SetDefault("5% increased rogue damage"); + + if (Main.netMode == NetmodeID.Server) + return; + + int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name + "Cropped", EquipType.Head); + ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false; } public override void SetDefaults() diff --git a/Items/Armor/VictideHeadgear.png b/Items/Armor/VictideHeadgear.png index d08f35078b15ae0737a21a3d57636faad617ca61..2c541503009d752e3baf51f4257e769798530c70 100644 GIT binary patch literal 604 zcmV-i0;BzjP)Px%7D+@wR7i=$+)8nx+Op2_kJR5iw{E?WJG~rFiw$OD`S;{{|81 zE#T36Pqy?Tg`T4Lqm}+jK@nQ0R9lM_Arg~@9MU9g4{u-1Y?mIpelIh#GjArJ_kFV) z3r{zPvjFsR8GuZ}0iamva%od+aDX7ash5m#w12PG)OP{s?aJmx~K(X`_2$8rGZ~?wl zs{qUm4SG{GuNALT!;+B{hX7p56#)3U^iWpaod%$~`3`{lw+r zLOZEwYBDLEY}$-Sr-FBSwgJH7=ThDCpZ5V+Sb74$YGE6ILS8%%kN81m41j}{WmL0Y z<9)Tj=b9Nm>Al1#0MV?N{dQ*=fRl=>3$Lo*mri{i3)!pV7;tuv^LsKok(Mf-eHj5@ z%8OF+`J50dsY*#N#^gSSdXEh)9-n$WY4dyC|J*>mRpOpR(wJ9odq!>paPslB3+Le; ztMnJECt96a)$08&@-m+3Gc$6QF^qlMh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100644 --- a/Items/Armor/VictideHelm.cs +++ b/Items/Armor/VictideHelm.cs @@ -10,11 +10,25 @@ namespace CalamityMod.Items.Armor [AutoloadEquip(EquipType.Head)] public class VictideHelm : ModItem { + public override void Load() + { + if (Main.netMode != NetmodeID.Server) + { + EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/VictideHelm_CroppedHead", EquipType.Head, name: Name + "Cropped"); + } + } + public override void SetStaticDefaults() { CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("Victide Helm"); Tooltip.SetDefault("5% increased melee damage"); + + if (Main.netMode == NetmodeID.Server) + return; + + int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name + "Cropped", EquipType.Head); + ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false; } public override void SetDefaults() diff --git a/Items/Armor/VictideHelm.png b/Items/Armor/VictideHelm.png index a0dc8cdd11e4517faba39b42e4be60b100b42753..812d19bf956df1ca1ad6408d0333768911954dd1 100644 GIT binary patch literal 673 zcmV;S0$%-zP)Px%TS-JgR7i={)z52GR~W|e&sCEcCnhmQ#~8KhxQSY6#a|7?x)2uxE{l~Owg4~p3Thryyx7x z_dEA_PvSFmtfwC|tY}L=+n0c3QLb8R{oQvjqk8?CRS6XTYX*(aAAymfpQCk)KKF*c zl#=-xyL!F>d99$mEeDz^i>r_;Yyi#O)6u@dwy&dlUHJ((TiFa+#(o1^_U=nybSfqN z;PM$P1VS6vrcYkj&|3!9-_Qw7>YzU!eboeUX2C^nY-0_qX8O zjX%Nm?)C)!emseKBov4Qt!!BdUQEBJ!jDG|V2()8?NS+Y?@UimF6vL+c?b@lJ{tL_ zuBBwMq`GFy33W=S<{UY)vp=dsnzE#VmiKJ|eFsm*jc31uq1AgMd+PQ*aBDavG(4E5 zukHvf316~Ag0gcaD5UGePrZ@<>-n?b@P&)1u{!O~e((qWcnj_pQ*yhH9gp_c9igOe zNBRUavu~>KT_LSs7a!H!aNh*x=2F(rs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;blt)k=sw+*STA4aifgRcu}X<&cZAd3xqWxS zfA!K8aQl8Y7#JM_`}c-Uw`_ID6L+*HHy`}olS(3vEv`{>M@!;`#rbgU4BQWdaSeBF zODgrTaVr?Va3jR!s($ZDg%E?eskvZLedyWw{(QKPiweZwWoa)T>w7ch2C*X5>ADC; zYeJs#-^ZmEE3sf+8f1h&kN4vvGg9DD-$PI>9Y}ovPhUPmB@&m~OcjW&CQ}o^;MgGk dkj7Rv;$QyGplDGv&HMlW002ovPDHLkV1m9dGO7Ro literal 425 zcmV;a0apHrP)rK-PN+|PBi`}~f5`{E`1Z}xBMl>|I*3#PI)Yu^5;NsNgqSI|_mmsKU zxfh{KDjZC-u4UbZw+A~HUyR`Gx14jH=bXd$dCu=-*H2$)`$K)*$1-?V83S9b?Id5M zqx~Zp?Cz|CuD?0-FFF#FsZ)KRzVW3ETi>_AVD$#5-JJjzZ;yf(Pu_#Zx!dr6gZI@yNB`M5`ac*{PFYtzHF-SC&!S>rRzV z+^Kl&AY>wm$5^D&h_m>4;p1?}{AylIbMhhfdmdV=Zzk)vPalB+o8|gAyEA$TeE9aG z4GZ_qB^zcIa+kb5GYxuc)g&K2Ki-^8;-&T&T(0FmZl$r4kgq?>eHuM4()r%}ZR#6e zQ6_Oripaw)H*XCectKS3;N>nD>Zz3Miq1fg5A{^A@0PxYW;Ao Tpo1gf00000NkvXXu0mjf0fNlg diff --git a/Items/Armor/VictideHelmet_CroppedHead.png b/Items/Armor/VictideHelmet_CroppedHead.png new file mode 100644 index 0000000000000000000000000000000000000000..d23fcc34acc97d07b2949917ce5acf0b7eea0151 GIT binary patch literal 1386 zcmeAS@N?(olHy`uVBq!ia0vp^8Vn392^?%d*6dv(^+1ZTILO_JVcj{ImkbQ7DxNNm zAr*7p-a5Nlv{dH!$Md?n&bw!ZM0xVxQQ%$Ka>VtEgX)$Qt^!xpT5fIW$PoX_D5&ea zBKCsbDqsHY6E8YBmY8*ZaS#zPUzEMFHEL#MvRXqcS3hZaUEh1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Me8#Tpr+2+A-SIJ*bs^)y$|t)kT!dQOq=e^v zWXlsi{Frs&M_|hTZ8^#E)GawgAbc#g_-%M+!Utg4`E`%mg#*W;k`Fs2-}t$nVO_n? z7tiL z>!!SF*}Ojyju{RGazFLtCbBG?c&sITPvh+)A1WL(YJkOXU0+Jyrfu$sKmfWx^Loc? zs0(%+j7nat=X}KSL>Z)-nqYWq)?p`5HMPZcw3?z_H8q+cU0en_Lw+o*`@Z`>W0mkp V4u-C(1Yon4!PC{xWt~$(696n~M?U}n diff --git a/Items/Armor/VictideLeggings.cs b/Items/Armor/VictideLeggings.cs index c4317862fa..f9405edda9 100644 --- a/Items/Armor/VictideLeggings.cs +++ b/Items/Armor/VictideLeggings.cs @@ -15,6 +15,12 @@ namespace CalamityMod.Items.Armor DisplayName.SetDefault("Victide Leggings"); Tooltip.SetDefault("Movement speed increased by 8%\n" + "Movement speed increased by 30% while submerged in liquid"); + + if (Main.netMode != NetmodeID.Server) + { + int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs); + ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlot] = true; + } } public override void SetDefaults() diff --git a/Items/Armor/VictideLeggings.png b/Items/Armor/VictideLeggings.png index 50d79a9707b4d13db3ede330e66e441279683de0..b8a03d445980736a0cdef91365cebaa50678ce9c 100644 GIT binary patch literal 536 zcmV+z0_XjSP)Px$(n&-?R7i=%)lW;5Q4|L7->Zg>R+hXWsR&^NLAY=e25Phjp<2a!h=M*t^mPhX zZKOqHK}#1?t6(r{G^D{lV>Sb3)8f8Ydu?=Q@3Xr1o^vke;W^K}$&>q!+d5#V|5pNE zKdj~A%{~cq_3ne-?e1K>aX!R9H)$U&3nY8aOv|6{PF+Tw?5WvO0F+h0n@& zz~XW%cV6G#KoJaw$1f&XM{Ow2guvWz3Klc%=BL7bLFjZ~VjMJAL;j7sSHhzH4gYF4 zGMt9#J}oB4p=V>~H`v<@TJF3H(^^X}XDKTuUJ#i?MD0qWVIQ^YZHT$V7F z{UT4RwOnCjYB0R5aXOdQ^S(Ta|IRSEcYPMDYjpgf513>))7_K6fL^e*zuV?e)8pzC arQsjmjikfZi+be%0000$Q@ literal 364 zcmV-y0h9iTP)urSf@L|La?+6q%|o- zjf5Z;uF)oEu^D8KBay)V)z0$o%(u(TdVybLsE85ToKJZG5ATDKKEMM=jWJEEsZTNh z%<=`m-a;CHt)+owtTlfkfV1^!YyZAu*uq{P0LkZ!*em%v0BBSMuo9eFhVRD~0Nqv{ zfNcH%fSE$x@;%+01EA23-&ms(35BR|ykUr|bt`@jKP7z=rPzt%MQ+!4z{W}fR#%wpI6ug_gq1b%Vc|2mPJ5&r@Mon5QWQOObj0000< KMNUMnLSTYvYns*o diff --git a/Items/Armor/VictideLeggings_Legs.png b/Items/Armor/VictideLeggings_Legs.png index 58ae99512f1e7f5cc1af50d902bbc79ac656a929..4fa451f6045d52bd9ce918facbc00b307f8c1bb1 100644 GIT binary patch literal 3784 zcmaKudpy+X+sE}wwbO6QZfZq~o^8gdP{yGg#!`$ggQ74rQ8F2WshnpFyXsLP^i>$+ zu$a&R#URF*Z3~GBL(XQloQ)Z27|bx9@oc-#KCgYfe)m7u_x`@F*L7d_b$#ylecw6l zg50%JZKr~Q!Y;t!l$+e@C@3iUeYIWwMQzv{FE?Al+>o{k74N>EQBc^O0GzTp8=Wf{ zb#?dYS8rKBHveQ}deqcp>}HAc49$5o+9;HhcqCWV&>VgIiK$`X6QN|g5jvoRa4^}p zJrwM?e6iBxSRSN}Hnxy%PRmQDLsCUM+!Zqwze1@@$)G};EK>89;=^R?11ag37p_9@ z<+id8ZINfOIj&mn#Cb+fwv~=*+P93hDsKg8aQ`$%@ZIjz*A>3Q+;phEN7l%;__`iyt0&as#F*PSguTAS}{gV@luwt*?lBWx$oUgOj<27M1&p2-@#N2_kG z-Uc*y)@$opwN*G=y|O&vY2bSwidlaZ2GXoI0_@$Ap#&yh_6-bS6>Se1Gd?vjVyEd+ z1|AQB8FMR&t}7~D*Zqs_0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<_^0HFC9 z@)MJ8$w@K*K)kf)Iq+4j0FXa#+W$=Rx5IfrOl|P zBzt-+4Lq8!!}sel04sDDkLda4Ns=riwx!1P-Kdo7mqV#lJQ|az_9Fi|ttS9zUEE1o zFJvT{RYb8UGBqIp%-*NxjX46h%pJ-^!nyu;f&k3Yw*lJ30a(uM0}$Jq1Ah1DVYEl{ s={2>tCY<6wnLC1us{)|kZK7241GAS`$2pQJ$p8QV07*qoM6N<$g7M#!e*gdg diff --git a/Items/Armor/VictideMask_CroppedHead.png b/Items/Armor/VictideMask_CroppedHead.png new file mode 100644 index 0000000000000000000000000000000000000000..e2f8d350b16a91ea71d1f709ae0703f2bb5aa1a1 GIT binary patch literal 1801 zcmds$e^AnQ7{_T>y371=TWwcPo%#jqirixPBQ;Og!q0)Q&`YPKW+nb8QE&pG()7x@ zEVi#5RvNB3-Rg{Tr!%m`AM3|APdGJAOE3gM4Mjyj1!cJZy{^0MpZ)c`{&?T>yr1`T z&&6*^c;}7VHlk1{XApIOVz1j#sP!oyI@qaFyqRk+>lhS#BuXg#YyyRH=mZBMVp&yF zugDjwm>y4OWtlPVuiSjIBBP1@KVupWVz+!rv0dHnGvysMFLb*XNM*qgW@^(bBwH zts1uA2WBKy!^J+Z2`n&l??_=Vpr2eh|2XTetG2w)K*5Q{-3FKf%8M1{%JV64=Tcwt5JgO8y&KXG=a zjtE;-dIm_cLVmPjW;TZkpU~F5h9NCE={q9K)3XV%TCKYage2W@*P`P(Bc5x_fz`u3 z5;SlTvSVO1^0kBj*Ru@+*P-A?nE_z#MXM~yfbydj(^zs1gz&rF%OR>v>W@K6IMXE9 znxCOBE0}5-A=AH4_5GAN<-xHkwVq^n*jy5h21N`yYh{4IzybR7Ju;fD3=0naxIk|* zLx5y6%%{QyqY76H(2(UYBwF^R5#dv>^9_UU!%c5-D*eK+z8u2yZ0rL06(%Iwhx7=J zu%{`x`Uj&FWiJ{7ci8dzt09_Li5^@wx5kkrr-%uBqp@*|t_M zXD7aCG(FXkk1;)KC{fWG=NAa<&yjv`#gvLMhAt#?a`Kwz#v7EgHPxP&y|2n8R;ldi zz-3Ic`AyCUGj~zV7qL<%3Ysl`{*$Z82TBz|7m&I50Q(lj;)K zBRRRSIhl3FS|&N8%6j6-&9&SF@K95yfkBm(Ef;cP)5e7<#Cdw%h5A&)@xU_TE%I-0WEgiQpQ;C?Cn%=7cM5(FDxOIZ|I35%^~0q zrBwtW=gx^5^p8XK9Eq(U&-IQGaCQeX1+ZG^OpAu=lbZqn-6B@Hth^+<#tHN{;}@-L zIoZwrz$i>bc3o{{#zb0z_&R?LTzz;{-Tz2<7O7oIzr8=<4v#-svlgx{eRkqq+1SHd z_dY@tOLP^F9Xmu|zo2+Ft%a+zzj%~~!^(+-z`ow@#6K{>fd8~Q{-;fRn IBU6h12Ft6MZvX%Q literal 0 HcmV?d00001 diff --git a/Items/Armor/VictideMask_Head.png b/Items/Armor/VictideMask_Head.png index 633c42767665f29034316d7a1b86823416f6464e..0ed84c4efd9fcd40c2784eb8c63914519142d656 100644 GIT binary patch literal 1838 zcmcIkZA?>V7_F1(6cINjZpufTuLXx7(;#Aj27-aR0!4J2d?OL61VxI&*4knaM05kW zovmFhL>LHc(iOq-Wt9;jS1U}QB0_0_GGSoL$66?b-ra67*&jrH?ALRCoSbu>ljnVN zLW2D*)^1*l!{IET0KZUdI^u9R=+N!Y80St7$UcuuLU2bWCEsRFpQOG?KpC2W zR@joi zzqkPDuSxzA_N+(UA-E=4asm$pM-upe9@kBAIhQfSQ*McVumh^1cU}TW`JriZh>GSC zVDKQik8n}Qdc}a+$VsOY3~l8@mfqR`SXH1Q7683WgiO0Py1KK$ZFJrbHrF7NffHU4 z3IXt#l;&gs{cMzm3`^}}*nr-f-G2l0RK;t%w)9CBIy*J9UCC^aojad$PJZt!@E{^b z$puV#DGzu|6|d%aHT}%W=w6q;j@>ZELA1%nS(V;WL5+fsy&hEM+A&?As_FjrAnTpH z7p~8G#R?AaxR!b~&#G79Mz_%oYEk-Bk;A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EQx1Kc1G`%Mg|V;irmT?emU%)~4D zNACbx3Mh13M}mX0NC+_&VT^{p=C!#qvwQUz-UtvR^@09+5z31GNSEqjeRIsQz;h?| zQkq)Lb9F>%+v3mUEg_`SK0tV$pX^VTh>O(`aw}s9vH+&_B0{iBH{a)fi?Dg#z#^If z!^$t)^(C{(hH%6982bViHkvx$B=zTu0W=6CzhnRA*a3XNcscQ6_5 z^2@~+HcJC!y|XoWF^>2J+tm){$ly!;+m8*a2WS)BFRm31d%X{^a0S#J*`16W6(=3? z_8|@L*=bQ8FgDLSgyjp@u%BaG*cK;4(CiXcs1Yj;i00XunJ}CpP)H}1DRL6#e&E1D zt%0{SXhlQmZCUasQwIL))s2mG&Y&$C5}}504Otx_##QEDmr6(vZkST3pn;yCNY{n8 za2O0cqw(pqP=ezN-+l`4#bEw6gw6X*%vdaeXvumJL?2i$UZjgEpFb?bFzj8k>` vj?u%voB*D?z1_-PL#e+3t=f*y From 049e986921cde50d0079b783fe06f31b53130441 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 23 May 2022 19:05:40 +0200 Subject: [PATCH 02/30] Items (wip) --- Buffs/Summon/VictideSummonSetBuff.png | Bin 459 -> 794 bytes CalPlayer/CalamityPlayer.cs | 31 +++++------ CalPlayer/DrawLayers/BodyBulkLayer.cs | 48 ++++++++++++++++++ CalPlayer/DrawLayers/IBulkyArmor.cs | 14 +++++ CalamityLists.cs | 4 +- Items/Accessories/EnchantedPearl.cs | 2 +- Items/Accessories/ShieldoftheOcean.cs | 2 +- Items/Accessories/ShieldoftheOcean.png | Bin 709 -> 1009 bytes Items/Armor/FathomSwarmerBoots.cs | 2 +- Items/Armor/FathomSwarmerBreastplate.cs | 2 +- Items/Armor/FathomSwarmerVisage.cs | 2 +- Items/Armor/VictideBreastplate.cs | 5 +- Items/Armor/VictideBreastplate_Body.png | Bin 6856 -> 6611 bytes Items/Armor/VictideChestplate_Bulk.png | Bin 0 -> 833 bytes Items/Armor/VictideHeadgear.cs | 2 +- Items/Armor/VictideHelm.cs | 2 +- Items/Armor/VictideHelmet.cs | 2 +- Items/Armor/VictideLeggings.cs | 2 +- Items/Armor/VictideMask.cs | 2 +- Items/Armor/VictideVisage.cs | 2 +- .../{VictideBar.cs => SeaRemains.cs} | 4 +- Items/Materials/SeaRemains.png | Bin 0 -> 773 bytes Items/Materials/VictideBar.png | Bin 585 -> 0 bytes Items/Tools/GreatbayPickaxe.cs | 2 +- Items/Tools/GreatbayPickaxe.png | Bin 963 -> 1105 bytes Items/Tools/ReefclawHamaxe.cs | 2 +- Items/Tools/ReefclawHamaxe.png | Bin 852 -> 1072 bytes Items/Weapons/Magic/CoralSpout.cs | 2 +- Items/Weapons/Magic/CoralSpout.png | Bin 584 -> 756 bytes Items/Weapons/Melee/Cnidarian.cs | 2 +- Items/Weapons/Melee/Cnidarian.png | Bin 691 -> 982 bytes Items/Weapons/Melee/Floodtide.cs | 2 +- .../Melee/{UrchinSpear.cs => RedtideSpear.cs} | 8 +-- Items/Weapons/Melee/RedtideSpear.png | Bin 0 -> 1226 bytes Items/Weapons/Melee/RedtideSword.png | Bin 784 -> 0 bytes .../Melee/{RedtideSword.cs => UrchinMace.cs} | 8 +-- Items/Weapons/Melee/UrchinMace.png | Bin 0 -> 1103 bytes Items/Weapons/Melee/UrchinSpear.png | Bin 939 -> 0 bytes Items/Weapons/Ranged/AquashardShotgun.cs | 2 +- .../Ranged/{Seabow.cs => ReedBlowgun.cs} | 6 +-- Items/Weapons/Ranged/ReedBlowgun.png | Bin 0 -> 587 bytes Items/Weapons/Ranged/Seabow.png | Bin 822 -> 0 bytes ...shellBoomerang.cs => FishboneBoomerang.cs} | 8 +-- Items/Weapons/Rogue/FishboneBoomerang.png | Bin 0 -> 765 bytes Items/Weapons/Rogue/SeashellBoomerang.png | Bin 492 -> 0 bytes Items/Weapons/Rogue/TerraDisk.cs | 2 +- Projectiles/CalamityGlobalProjectile.cs | 2 +- Projectiles/Magic/CoralSpike.png | Bin 519 -> 431 bytes Projectiles/Melee/CnidarianSpark.png | Bin 0 -> 198 bytes Projectiles/Melee/RedtideSpearShot.png | Bin 0 -> 264 bytes Projectiles/Melee/RedtideWhirlpool.png | Bin 0 -> 1945 bytes ...rojectile.cs => RedtideSpearProjectile.cs} | 4 +- .../Melee/Spears/RedtideSpearProjectile.png | Bin 0 -> 1228 bytes .../Melee/Spears/UrchinSpearProjectile.png | Bin 914 -> 0 bytes ...deWhirlpool.cs => UrchinMaceProjectile.cs} | 6 +-- Projectiles/Melee/Yoyos/CnidarianYoyo.png | Bin 356 -> 533 bytes ...tile.cs => FishboneBoomerangProjectile.cs} | 6 +-- .../Summon/VictideSummonerSetMinion.png | Bin 0 -> 2843 bytes 58 files changed, 127 insertions(+), 63 deletions(-) create mode 100644 CalPlayer/DrawLayers/BodyBulkLayer.cs create mode 100644 CalPlayer/DrawLayers/IBulkyArmor.cs create mode 100644 Items/Armor/VictideChestplate_Bulk.png rename Items/Materials/{VictideBar.cs => SeaRemains.cs} (91%) create mode 100644 Items/Materials/SeaRemains.png delete mode 100644 Items/Materials/VictideBar.png rename Items/Weapons/Melee/{UrchinSpear.cs => RedtideSpear.cs} (86%) create mode 100644 Items/Weapons/Melee/RedtideSpear.png delete mode 100644 Items/Weapons/Melee/RedtideSword.png rename Items/Weapons/Melee/{RedtideSword.cs => UrchinMace.cs} (88%) create mode 100644 Items/Weapons/Melee/UrchinMace.png delete mode 100644 Items/Weapons/Melee/UrchinSpear.png rename Items/Weapons/Ranged/{Seabow.cs => ReedBlowgun.cs} (93%) create mode 100644 Items/Weapons/Ranged/ReedBlowgun.png delete mode 100644 Items/Weapons/Ranged/Seabow.png rename Items/Weapons/Rogue/{SeashellBoomerang.cs => FishboneBoomerang.cs} (89%) create mode 100644 Items/Weapons/Rogue/FishboneBoomerang.png delete mode 100644 Items/Weapons/Rogue/SeashellBoomerang.png create mode 100644 Projectiles/Melee/CnidarianSpark.png create mode 100644 Projectiles/Melee/RedtideSpearShot.png create mode 100644 Projectiles/Melee/RedtideWhirlpool.png rename Projectiles/Melee/Spears/{UrchinSpearProjectile.cs => RedtideSpearProjectile.cs} (93%) create mode 100644 Projectiles/Melee/Spears/RedtideSpearProjectile.png delete mode 100644 Projectiles/Melee/Spears/UrchinSpearProjectile.png rename Projectiles/Melee/{RedtideWhirlpool.cs => UrchinMaceProjectile.cs} (95%) rename Projectiles/Rogue/{SeashellBoomerangProjectile.cs => FishboneBoomerangProjectile.cs} (86%) create mode 100644 Projectiles/Summon/VictideSummonerSetMinion.png diff --git a/Buffs/Summon/VictideSummonSetBuff.png b/Buffs/Summon/VictideSummonSetBuff.png index 9f8e4d0f53cb64a6b875743b2383f14560c59ecb..7cba0b35e87858c9dd369c0cbc56767c6c06ce5c 100644 GIT binary patch delta 782 zcmV+p1M&RJ1DXbq8Gi-<0047(dh`GQ00DDSM?wIu&K&6g00PuWL_t(oh0T{=NK;W9 z$3Lr}Y)McvwIZ+?v@+4fkQ#FpmNB-#f`WPp1WC;Zj35ZaKr|?*OahCDAfi;vlo3*y zUKYl{mM=;uLTDCP5829yvWIg|>uf4M+4;TP-|w8?J?DJCzkfgHUQ1@W9e|0jS=w7D&t;DfZ?^=7Pz}xIPSYH1{eK_O06h zC^;fxZ}h(bV5*=5fTA;b02H_cBbBXYZkW~5=${`peHiej+JM9u1{+!c@Ks+{#vAJ| z0TB6-1SIwc8S_YL)|>~>hXE-A15qGW6~6LA00gTl6@Ne59x+~E+O;+H06g3H831?t zAON8Niap|RDeLINK=;Q904|z{8y~y`VA2pd@T6}Fh}{*kBZhC^0-!B_jk2)cTWo5f zIJ;l*(}#iYV=DkSReTSKA&nPVB{^oU(X6SZIFK7c+9NQp<@ z()1R9ynj+J5UY|`H@atBux?B+Op`|wz? zrAWlV=xSwrd5-LWy7mFvN)hXc9?{FQ5!aiHwSSDQM1J1x1|TSkA_2Ly&vo7h{$)TF zeHbWr*C`XTA(gh2c;v@#76MSbMO=dt`L{?|yr69#kRlQBx1NPv=o7BNpc>;}-c&Jf zdRH910K|~@Mp}W`ZF#3Hs_ggQ8L+rAJOG48j0OEWcBQ1~@pt?OM$XG!d@^8@ zDq*_Cq;IRSN14&9ODQ7TZkkkssQL3j9@N zw9i5->gF$hcB>b#IiJDF9uNchq!=y new AfterParent(PlayerDrawLayers.Head); + + public override bool GetDefaultVisibility(PlayerDrawSet drawInfo) => drawInfo.shadow != 0f || drawInfo.drawPlayer.dead; + + protected override void Draw(ref PlayerDrawSet drawInfo) + { + Player drawPlayer = drawInfo.drawPlayer; + int bodyItem = drawPlayer.armor[1].type; + if (drawPlayer.armor[11].type > ItemID.None) + bodyItem = drawPlayer.armor[11].type; + + if (ModContent.GetModItem(bodyItem) is IBulkyArmor chestplateBulkDrawer) + { + int dyeShader = drawPlayer.dye?[0].dye ?? 0; + + // Remember to use drawInfo.position and not drawPlayer.position, or else it will not display properly in the player selection screen. + Vector2 origin = new Vector2(drawPlayer.legFrame.Width * 0.5f, drawPlayer.legFrame.Height * 0.4f); + Vector2 headDrawPosition = drawInfo.Center.Floor() - Main.screenPosition; + + //Account for the hellspawns known as mounts + if (drawPlayer.mount.Active) + headDrawPosition.Y += drawPlayer.mount.HeightBoost; + + Texture2D extraPieceTexture = ModContent.Request(chestplateBulkDrawer.BulkTexture).Value; + Rectangle frame = extraPieceTexture.Frame(1, 20, 0, drawPlayer.bodyFrame.Y / drawPlayer.bodyFrame.Height); + DrawData pieceDrawData = new DrawData(extraPieceTexture, headDrawPosition, frame, drawInfo.colorHead, drawPlayer.fullRotation, origin, 1f, drawInfo.playerEffect, 0) + { + shader = dyeShader + }; + drawInfo.DrawDataCache.Add(pieceDrawData); + + } + } + } +} diff --git a/CalPlayer/DrawLayers/IBulkyArmor.cs b/CalPlayer/DrawLayers/IBulkyArmor.cs new file mode 100644 index 0000000000..ce7f54a912 --- /dev/null +++ b/CalPlayer/DrawLayers/IBulkyArmor.cs @@ -0,0 +1,14 @@ +using Microsoft.Xna.Framework; +using Terraria.DataStructures; + +/// +/// Interface that can be used by chestplates to appear extra bulky, by drawing partly over the players helmet with an extra layer +/// +public interface IBulkyArmor +{ + /// + /// The texture of the part that goes above the helmet + /// This should be the same size as a regular equipped sprite (20 x 560 in 1x1) + /// + string BulkTexture { get; } +} diff --git a/CalamityLists.cs b/CalamityLists.cs index 33b65228d1..b7562fd144 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1352,7 +1352,7 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), - ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), @@ -1383,7 +1383,7 @@ namespace CalamityMod ProjectileType(), ProjectileType(), ProjectileType(), - ProjectileType(), + ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), diff --git a/Items/Accessories/EnchantedPearl.cs b/Items/Accessories/EnchantedPearl.cs index d2b4507d29..b96f0995a9 100644 --- a/Items/Accessories/EnchantedPearl.cs +++ b/Items/Accessories/EnchantedPearl.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Accessories AddIngredient(ItemID.CratePotion, 8). AddRecipeGroup("Boss2Material", 5). AddIngredient(10). - AddIngredient(3). + AddIngredient(3). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Accessories/ShieldoftheOcean.cs b/Items/Accessories/ShieldoftheOcean.cs index 6eddf71e52..7f1b61e19b 100644 --- a/Items/Accessories/ShieldoftheOcean.cs +++ b/Items/Accessories/ShieldoftheOcean.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Accessories public override void AddRecipes() { CreateRecipe(). - AddIngredient(5). + AddIngredient(5). AddIngredient(ItemID.Coral, 5). AddTile(TileID.Anvils). Register(); diff --git a/Items/Accessories/ShieldoftheOcean.png b/Items/Accessories/ShieldoftheOcean.png index 980b833da71b4f88d49fa8038d400975a550b6f2..94cb248b2719210896abb24f2105dad07a7ed505 100644 GIT binary patch literal 1009 zcmVPx&t4TybR9J=Gn9FYyR}_c8u|r}qNgRTSfkgCSiWFV~5f*@yNRd!ku&UGz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ca9rEf^YP$49ZCIClhF~q9=Dw1epTDGyx4sOfZoHMmJRQoegR$!P>uu8T3rO(tm(U6QS|0HTl rc>r3Pyq4Qc)(9). + AddIngredient(9). AddIngredient(8). AddIngredient(15). AddIngredient(4). diff --git a/Items/Armor/FathomSwarmerBreastplate.cs b/Items/Armor/FathomSwarmerBreastplate.cs index 9c697431e0..2d8fd05e04 100644 --- a/Items/Armor/FathomSwarmerBreastplate.cs +++ b/Items/Armor/FathomSwarmerBreastplate.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Armor { CreateRecipe(). AddIngredient(ItemID.SpiderBreastplate). - AddIngredient(12). + AddIngredient(12). AddIngredient(10). AddIngredient(18). AddIngredient(5). diff --git a/Items/Armor/FathomSwarmerVisage.cs b/Items/Armor/FathomSwarmerVisage.cs index 29181a4f58..a3a6e128e7 100644 --- a/Items/Armor/FathomSwarmerVisage.cs +++ b/Items/Armor/FathomSwarmerVisage.cs @@ -70,7 +70,7 @@ namespace CalamityMod.Items.Armor { CreateRecipe(). AddIngredient(ItemID.SpiderMask). - AddIngredient(5). + AddIngredient(5). AddIngredient(6). AddIngredient(11). AddIngredient(3). diff --git a/Items/Armor/VictideBreastplate.cs b/Items/Armor/VictideBreastplate.cs index 2650f1322f..a9074f79c6 100644 --- a/Items/Armor/VictideBreastplate.cs +++ b/Items/Armor/VictideBreastplate.cs @@ -7,8 +7,9 @@ using Terraria.GameContent.Creative; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Body)] - public class VictideBreastplate : ModItem + public class VictideBreastplate : ModItem, IBulkyArmor { + public string BulkTexture => "CalamityMod/Items/Armor/VictideBreastplate_Bulk"; public override void Load() { @@ -57,7 +58,7 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { CreateRecipe(). - AddIngredient(5). + AddIngredient(5). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Armor/VictideBreastplate_Body.png b/Items/Armor/VictideBreastplate_Body.png index 3e8bfe35b1e189d78746b9bd8f837cde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aFC^v#QDaAYPRs={`Cg2sz86z((U_7D1`FGE# zHz#eh(d+bMX7S7rhG{3yar|KP-w_v{2&M!|NQ2j<~YAs<@oim@c}OX)*VTuvk~|3#=uo7gz0SERo*Y9ktw5 zjEik+cHp)NimZmOMN7U^njM~LY5f18wQ>4aZ=eMaKFqrDmRrxhVvfqs(nKTAPw)OZ zO-gxp`L@c*)#k5nx5}UPoOJZO{Pw-~Cf?n5@NU_cc>ju`xA&&~K0n89zRFLlkGh^k zubi(JJU=_#y!Pj}D;rf# z{`u8lT>K|xQi@^wTgf{K6>ZlhrF=Vf*O&eL-JMfaetxRSyZq1na`DMUgqAjhi_veV{a8r`m8@cclWcu*ZsH0K7Zg>VBquV(U+wvC!ch#^gZ6bz4`{< zKeL?&_sv%TdJhOTn3ovq-u3Y|zkKQJ77&vMB5vTfYv#1PWlLvgzD$b(F+sr&1QP1V zih=r=A>uugkre~=F+#+TdBRPGSOO7dc)SE|GQ<*yctZXPyQo$D(_SrJ`YU54kjW1f zpF^569~1=1ZJpw-`!vwI@(P#G#7A&!L@!$6{U8Tix@E(AN4 g1!52>!P#>&f2|JNhbND3Uju3OboFyt=akR{0Ov|-bN~PV literal 0 HcmV?d00001 diff --git a/Items/Armor/VictideHeadgear.cs b/Items/Armor/VictideHeadgear.cs index 61b977a1ba..bda4f8c3ec 100644 --- a/Items/Armor/VictideHeadgear.cs +++ b/Items/Armor/VictideHeadgear.cs @@ -75,7 +75,7 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { CreateRecipe(). - AddIngredient(3). + AddIngredient(3). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Armor/VictideHelm.cs b/Items/Armor/VictideHelm.cs index eb9d204253..dd0fa6f818 100644 --- a/Items/Armor/VictideHelm.cs +++ b/Items/Armor/VictideHelm.cs @@ -71,7 +71,7 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { CreateRecipe(). - AddIngredient(3). + AddIngredient(3). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Armor/VictideHelmet.cs b/Items/Armor/VictideHelmet.cs index c1904a9b6f..6fe7e8ac2e 100644 --- a/Items/Armor/VictideHelmet.cs +++ b/Items/Armor/VictideHelmet.cs @@ -89,7 +89,7 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { CreateRecipe(). - AddIngredient(3). + AddIngredient(3). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Armor/VictideLeggings.cs b/Items/Armor/VictideLeggings.cs index f9405edda9..2bb37747be 100644 --- a/Items/Armor/VictideLeggings.cs +++ b/Items/Armor/VictideLeggings.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { CreateRecipe(). - AddIngredient(4). + AddIngredient(4). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Armor/VictideMask.cs b/Items/Armor/VictideMask.cs index fb35ded76b..5fb16bee3f 100644 --- a/Items/Armor/VictideMask.cs +++ b/Items/Armor/VictideMask.cs @@ -69,7 +69,7 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { CreateRecipe(). - AddIngredient(3). + AddIngredient(3). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Armor/VictideVisage.cs b/Items/Armor/VictideVisage.cs index 7a1ccc8ee2..19f7df99c0 100644 --- a/Items/Armor/VictideVisage.cs +++ b/Items/Armor/VictideVisage.cs @@ -69,7 +69,7 @@ namespace CalamityMod.Items.Armor public override void AddRecipes() { CreateRecipe(). - AddIngredient(3). + AddIngredient(3). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Materials/VictideBar.cs b/Items/Materials/SeaRemains.cs similarity index 91% rename from Items/Materials/VictideBar.cs rename to Items/Materials/SeaRemains.cs index 73d733b39e..e7e090f1fd 100644 --- a/Items/Materials/VictideBar.cs +++ b/Items/Materials/SeaRemains.cs @@ -5,12 +5,12 @@ using Terraria.GameContent.Creative; namespace CalamityMod.Items.Materials { - public class VictideBar : ModItem + public class SeaRemains : ModItem { public override void SetStaticDefaults() { CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 25; - DisplayName.SetDefault("Victide Bar"); + DisplayName.SetDefault("Sea Remains"); } public override void SetDefaults() diff --git a/Items/Materials/SeaRemains.png b/Items/Materials/SeaRemains.png new file mode 100644 index 0000000000000000000000000000000000000000..295a69bc3fd39370fad2b4bad532ce6aea619c17 GIT binary patch literal 773 zcmV+g1N!`lP)Px%zez+vR7i=? zffR&9S25}$qN|`lx=JJz1SO293@kB7v!oK^ZK>08oAP#X_RO7adKK;c-ke|0dCqyh z=lO9A;wUdE1HiF;7s*(ipS6<5_1-E2pxEux<^`pD3k-m-9~S`#_TJ4TmO##?tN#Ix z%7%6TqJ}bP_0y;Y;Ploi0e1-iE7NZPaE5X%fVNgA0Io*Arm*MsdkbK9V5b347wG`t z^}yqd7sxsThX2?F031v67Qk=+0Zkx(@+|=Mp%?(C&r|^EmNy=`tU5nN062Iq2tZ|( z-vIb9F$ttIk$na#8`?F?-4*8nsC{@v6ZA9{WmMp+-mi_lomT+}54{AS`$jNv7TAyh zhjiqvi8D|TJPW{L=Ob-H^9~P??gJAO%bOk)TV4Rx^Ude)Gk^^kFv?5Hw73_DPvi{T z2jEoTBmivz75_tXCIC0DUjm@-&JzH7U3)Y=ulk<@V2+O@&P-mmr+KBL0rsTpl7^5#M)?QF0C0}in~HPeZgi={87lotyVVyRdt^W8^P{y5Qp z3xK5}F96PX8#BKc0Bd2TKl=&AJ)LHSpe3;ru?LA;setwa|Xb4WX=L;8CEy<#Vwy2e+NKYz!Tr1eB$Y7ucqi) zpKiGzRW1n@*nj~;suS@WNyZb%TT3lSg;^&j{PujJeP0*$II00000NkvXXu0mjf D)CW&P literal 0 HcmV?d00001 diff --git a/Items/Materials/VictideBar.png b/Items/Materials/VictideBar.png deleted file mode 100644 index cc6e11e2d52df2ff5099d150ee967888089c8e9d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 585 zcmV-P0=E5$P)JHHJQ~KU zJGlxht#5$tmLnM`H#CAri?2b$VQ>7ulu1e?k>%T)z_;acWq&>r-aQ}kv&F#lek;W6 z?oI|iZEhn);#?Bh$;J?)XRWy$c(eEeJiXoxzRr9Bv&CR?$6$L{=tU8nYu*J@E87*= zJ>8!nP2ytqENCx(t|5E78a)ez(X+9x;9=vXQP5#B6jTZ06NpTc$FG9sfqb~(^v%j% zHU;Ij*FIEWK7Rv@u06&cS;yd+P+2AVGp?$haJ=I_7Ezi zPw-%JA$W4p!viNo!su;1VP}=FaAh9kU)=${)%i=+m_G5=!bi|^Z2*i<1(JI+w?JVa zj6Lh!KR=N$U(LsJ9JRC_VtT!LsI9L8!>2;$DGW@2&fycF|8nhHTu)Z7dcvsKvtv(B z-{ZKWk-6KTV4|ilp2ObnPw?+#^=ipwQ|{Gq2TSW4)$eO7{w7Z%O(JZ{He}#exwd|@ zR7RS_aR*7{@q9;3t^7Q2p?bm?r(3). + AddIngredient(3). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Tools/GreatbayPickaxe.png b/Items/Tools/GreatbayPickaxe.png index c8d1b9beb607c25a1a26738a5776b87cc45a3a06..8dbf9d1c23234ed1650f00d58a318e53b602f669 100644 GIT binary patch delta 1097 zcmV-P1h)Ib2hj+S7k@Aa1^@s6YLJ-W00001b5ch_0Itp)=>Px(3rR#lRA_mVGdkR{$3`(;ievzWG!EfapsH4f|6U9suBn&%X!YaHa^6UgSS8-GNFnCOik!^U{DcMX8?=l5*=^^dUt3T@yk9Tz` zaFOtfPreMm)y2ym!097z0WcPP2iSsCNoT*v7-J!AlYg(ek4?HH$sV>g&YS~WBz!17 zVvrU2#cY|BMJV~n6i^{6dhf=PF}5q+C9c(U%(fFbM>ym+A+cGGL90^PMEyvf?ltc_ z7BllWbOV)qzR0SsbgTo=POD+<9N|g~_jc4Yu=A@;)Q&Z&boM%X{lty?e0_o))UAcm z*-{>rEPrwJZNosa!pZkHN>_BO4WkL2&t3wcE24XcQS>iWFIyZ4D+TaZ!Hm&*a*nVX zi1vE`&qju~G?dsB*)c4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_s+YA(Mz*^!L4tlTb^tAZ2G z@P4pa-@WCgMgeCJ_>ZuVUFr5vdNJt`){CsD+ cEAk!T-$!p&xl>eDga7~l07*qoM6N<$g7L@GDF6Tf diff --git a/Items/Tools/ReefclawHamaxe.cs b/Items/Tools/ReefclawHamaxe.cs index 4ee85c68fd..544c80622d 100644 --- a/Items/Tools/ReefclawHamaxe.cs +++ b/Items/Tools/ReefclawHamaxe.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Tools public override void AddRecipes() { CreateRecipe(). - AddIngredient(2). + AddIngredient(2). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Tools/ReefclawHamaxe.png b/Items/Tools/ReefclawHamaxe.png index bb7f8bc105001de623640e8c1cac94be52b2f7e4..51eb404d798be9e402d356651104c33703f92a96 100644 GIT binary patch delta 1052 zcmV+%1mpYE2CxW_BYyw^b5ch_0Itp)=>Px&>PbXFR9J=Gm|bX7XBfwSCrz5PNsS+A zs$FSimP#xu8B-i{tx(VlEr>c{V>f<-=(X&|3mM*cxv`7gi1$^TOa!}8!ER&VV8yK~ z7L~en)pnWMHnBEod%Sqh)3f(YqHzwElmE>*@5lMz_de%;-hbz@C{b%0n*s1Otp{Ln z?6&>S@j#W|0tom60Mv$R0QhNm5P*Y;o>CtLz`5Zo1^a!kbeA%a|78<4Zu<~`jKg#G zw;ybP(7uxZJnKCRKyG2)28c$M0T3o=0qjY11F$x_2*Bu+Pg|J+vR*V;IfRAmiiVi# zm`K?GwnJ7FYkz+afbKV|0qDPR3xEuBHo!XS0T`W9^FQs%0??SK)9!QV%ej(X*!zS{ zvX33Io3_6XKr%QBz}=x=0O)tF>%XVSrKTQf_uG3|#qf@m_nn>~0OP|m#*@_w#X|Eh zd|}TKUiu1MHD)k3___vDf${{T37)t}NcVC-! z;aF^q)~>#E704%8jJWu*sPUtB^fwz+v2GHt0K(HLIobdnGy%{*rT$>C=t=;N9Q#!3c#rw)!Mkk`1Urn+cSxuKm8-%Wx}GjS~ma?3{)2+ zEHX(a5-LX5UHA%c32r{NRT~${yuK0Tx5Zq=l=lg@wX_0|&1G$X?r4WLes6x#0!aI_ znwwniiUV+^eH#EhL*D@Tq(w(R2x;x{(_d?CA%DNTuF3*iBD&D>+T^dQGyR!;6cJgGmg5d8Vg`%Vb%tyO>P3<>EKPkCEHvRmsQeM zM938*y?>W-8Jx^Re0Hh7h&)Hw{nI6q07Sx04mN(fpi77!#{*FdAna3Ldry2yWiebK5y_~1V z$NG@+(fet&SEviA&&OO5QFA0~0klN)%)@(xC3e?D-TkvL5;iL@88g(ity=Cc$XIxKPMVK|yVd zK-;*BHnj*s2>SyJTZa-v(4zmKjT)gFg96Z z@Z|N6wD)lxVSkl-NOnmL1J2q5EVAB~AOO3I5di8J-T)TSihI2PJnDL-=NUB$;Mpl;|IeB0Iaq40T7Rj0LMF}>wgFrJWKqRnbemIWWO$JR+I5P zz#=PdA~oOfpb@Y-W$6$;M%0oCu&R83l@&y}$mUY%5I&-;9gdXm3Q^I1Rg(hCr<+@z zpXg>KNf?0UE={QE?giWTvGHL5q7y>^1k9uY__>oJuDrJKk~Mm#djNQAJO&`x)2YCP zg!Arn(tpW3bxi;)ZEV?U`AGgvdrz6Sx2}C!#<%oc1FX&_WFw<9fC~wqx`t(UYn_Ak$Ra+Z3|S+846^_BIj-CbiIb8I z`IIJ`)H!!L@ug@F3oazAoVhlT+9`y@XZH?skkx;7IbAHaTt~PZhaYN%ERwUV*!Tuu)ilaiv~#%A$bEz*e@^ueq|K-Qnp{Wt7Zq3{?0xroM*si-07*qo IM6N<$f-5$ULI3~& diff --git a/Items/Weapons/Magic/CoralSpout.cs b/Items/Weapons/Magic/CoralSpout.cs index a66337963a..5b328aafdc 100644 --- a/Items/Weapons/Magic/CoralSpout.cs +++ b/Items/Weapons/Magic/CoralSpout.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void AddRecipes() { CreateRecipe(). - AddIngredient(2). + AddIngredient(2). AddIngredient(ItemID.Coral, 5). AddTile(TileID.Bookcases). Register(); diff --git a/Items/Weapons/Magic/CoralSpout.png b/Items/Weapons/Magic/CoralSpout.png index bb3c96dc78eae565e104d6ce46e5fdfbdf49c141..6e2997f649b0925a7a415df6f4e05848460d5447 100644 GIT binary patch literal 756 zcmVPx%u1Q2eR7i=r(7h z3ts@J-Bq`t1Cz5qbbxwywFc!#Am96nDgf59ONw7sF6Hm-1K{`MsABi|d;o;QVE{tS zJB1_nJ2*6^Lm3dziVczgp!B|{-L1q8JbbLIPhPwP6iCEkF~y%JkkjDM7*GZT@-whr z@1K820I<7K*jqZ<0GNtSs0mv;0Z0zN2H@zSy^3E}?sVGA>=sno9RQ@WOG@t>oy!1t zz201;Itx;du3iz|q9@_I&)6U799|Yj(%zL0vp;Y+(vyunY zc=rG>$Xx(D%Yt-lZU!g=0$NY#FaVkCq7JY>ct#1BNDLcpls%VPulK7Saqpw?PXLUJ z3!;`2u$fi9x^D*ne)<&q^pgjMiMr}m0hpW?YuWn*5deP1lR%+zDeDQCIX1tYH?+%J z;m;A0m78gdSpYn^4E^OpAb7mSFrc&JfU-_@hm`fqt?K|xzIX!^dVeo0-g@qqfCdns z8aK>uJ%Q%7CJo@m<(oRd+5U3?)HgT*7>!2M9Yt$NND?SkA|pO0il<-7aspa+AP7La zw-o@}*R=8lGB>Hc^1fXGMUIR$wdOtF7$8ewZ1mvIdfm4dZ;Su*X6Hh5b mBE2Uzl>6hg3nharC-4V`%FlctxnKDJ0000 literal 584 zcmV-O0=NB%P)XU>d4jf%Dp01#|$1fcNu zvUD>ZY;H8Hb^y``t9SO(Q0svIOGdQ>H?mmU14o`&Je9nPq;)53atl-=6C%-#_7Xs( zrNLS~)sK+s_pln-lSfwoOs<`&yqS5G7k>%B`+kozUgoJj4}~n!qUNxEN5yPpH__(cZ*W?c0XdaAx-`MhekJQdRV6P9}>Wa33Q=_DJPNdWN6JgjMe^4(j1 zLbu&0WTV4L0LJ&f0q|vP1Av|M2LP5A5)}uK^SVtK&_U={8{H&i&-_IIvex+%<-YF% zU>4OmJno)Qfy@%1gHYDiEM@_l^!)3hBXN0Q_s$MvH~+}1xlgVs&xCB>BJ=n{dd{KI z(>_uHyK?w5bHMGIC<^<108GCM0Fe50T~PqIh|U7G*FtvoCkN;tjC8%mnn6WUsga^; zWZpop0dTUn3BcCDXF!vO0C;>Mz$WdCz5}2s{T6V4!_-P9(s$zvsW;FIz{%cb3GCaU zP*zdorvDkAlK(1_iS)l|gtT?A4}jk*8xB&DkhKo>8CD+PPA1Y%C~_ke-Iq*Mcfx;I WXYX|>Dd0c=0000(2). + AddIngredient(2). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Weapons/Melee/Cnidarian.png b/Items/Weapons/Melee/Cnidarian.png index 773a60fe4fa350a11b8ca14016b7e79a4be3e709..f397ea9d70bd57cf8c0f39f62ef213591db6cb4a 100644 GIT binary patch literal 982 zcmV;{11bE8P)Px&kV!;AR9J=0n9FO^Sro@Vzr?Nt;LWb8&O{<=*z!c4Ke8 zn_us_=lA&ZoO{o?aWHhI>!@jRD+ftFne$HNU}AdGoCn~au~7g5i_U&WtyyADBTJKW z0K(J(kRj(9ej2H1-_+U;R0Cm(EC5Y}0Qf@M0Vq-eAVW@Eg~$ac&KCiw393gH=8M|A z_}eGUp}w>t8~tLWKPb4y1t^qB{bZl;e`e%QGX}2V>Qr8Hg**VYHMIcb%VSfkPUst# zyt$^m{y}|HW~QW(y-7R*prd7@0}u1&IF?(;Rwk z-P6YP&-(y)kSJ+(ArwiB`=1N~(6(WnrD|c4J+9vez?I{>0T{V?9e~@t_q7|Z-8cup z@Nh=6cXfr!*ZrEk|H+^Wma^0Zcpa-zmc2(bhse`A0PLhqvrD}cQqiT0ecD*&Po2IB z*dW~0s@7e7#~uJ8lOrp-(T~_~{^fKMu#u&KaI*t2H}YQXon_Lwk@onQuHj{E26PQW9IM^*N>g>0?EQf3N(1*FSJ$V{1JgD%*tvL#r#7<&4=X0i)EHz_kKZaAev3wV30*yT(iRl@Hb_J4```<1HT zlu6^R>i`T4-CeRi3Rz>YL7kfBXP0uXf)lXFtdGIQH~=;AjT*7^J{Ym`Q}wJv^GiFo zZvYl{a{-TVMXDY`Q^nM00NnK*s&YTOv!d?K)T$GH14JA`h?`h6nE(I)07*qoM6N<$ Eg6(R~g8%>k literal 691 zcmV;k0!;mhP)wA+fiwXw5@&>7@3$ay=))1CGuPQZc`5axOoTMo4yc@FMI7<{zttL8iBN>u?Acp zeOjtEVPs++{M5BIvY+jL3~uDV1=l|Rsss(~@8`hJiC-YkjyRBhuzMT$_3B88l<4=% z6CgkQ4D>Xw1aI!^0RLVbh!z|@{Tnzo^&=?O9jQv58FB8*0|$|k_WjZg@&~^G59XdC zCEar3cw+DF1;_vTG+J;~V?)&c=u8tR)*S&WYc}S{lDKW%j)=7HZ~+X?{Ed`!TlZnHqyNh{@Lg8VyYzl{(ds0NfNc^y55QWTMH+n{==c%o<-s_X%lL&^4z+XvPh1-tS)!K1-Hqw&t6IEw2U_JiKl-{IA) z2+EFl`FwDCWJw$vfqeanq%uwZ^StVvE9CdCQ(uGk zdOkx+9P~-KLRFFuP2a*&AP!pWUOi`ZGNB;}`zK?Q(I46BLFC`kSd)Y6qsa{>kOpN& Z`~n+>)9Hk~)B*qi002ovPDHLkV1itTSFQj6 diff --git a/Items/Weapons/Melee/Floodtide.cs b/Items/Weapons/Melee/Floodtide.cs index 04ab033b83..a841b44228 100644 --- a/Items/Weapons/Melee/Floodtide.cs +++ b/Items/Weapons/Melee/Floodtide.cs @@ -68,7 +68,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void AddRecipes() { CreateRecipe(). - AddIngredient(5). + AddIngredient(5). AddIngredient(ItemID.SharkFin, 2). AddRecipeGroup("AnyAdamantiteBar", 5). AddIngredient(10). diff --git a/Items/Weapons/Melee/UrchinSpear.cs b/Items/Weapons/Melee/RedtideSpear.cs similarity index 86% rename from Items/Weapons/Melee/UrchinSpear.cs rename to Items/Weapons/Melee/RedtideSpear.cs index fe48838123..f9307447ef 100644 --- a/Items/Weapons/Melee/UrchinSpear.cs +++ b/Items/Weapons/Melee/RedtideSpear.cs @@ -7,11 +7,11 @@ using Terraria.GameContent.Creative; namespace CalamityMod.Items.Weapons.Melee { - public class UrchinSpear : ModItem + public class RedtideSpear : ModItem { public override void SetStaticDefaults() { - DisplayName.SetDefault("Urchin Spear"); + DisplayName.SetDefault("Redtide Spear"); Tooltip.SetDefault("Poisons enemies and fires short-range stingers"); CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; } @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.height = 56; Item.value = Item.buyPrice(0, 2, 0, 0); Item.rare = ItemRarityID.Green; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 4f; } @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void AddRecipes() { CreateRecipe(). - AddIngredient(4). + AddIngredient(4). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Weapons/Melee/RedtideSpear.png b/Items/Weapons/Melee/RedtideSpear.png new file mode 100644 index 0000000000000000000000000000000000000000..2f951da3ff46efa74b2997451d6cea31798c547e GIT binary patch literal 1226 zcmV;*1U37KP)Px(gh@m}RA_Q=)T1et8=jN)80W+oCtvV<&nwcwQ(#*1Cd zm?e5)cB9vtXyUxlM3;D_iMkuvVkAL_QHr8%E+zq9zHkbFr5|qs&>ma{AY3OY<67c5^Z16ReZp>jVLb`ZbM7%)z1QCz0N@#` zuPYXL*AmaV$2F%Pf5Z>KuM?3ZK-cjqAm!;(ubu{=J$MCx8Oz(3$9sVy@vY??5wBk! zNdkQO!+8KMjZ3|%{;vUe`lSy6=;$~s|HFZsw&xXzZ>Fb?9s|I4tR8^SXw)_$zWLV2 z0KD_jX8>H%8wZ8>z|=ed!o612FX6H2_*# znhb#1*$@E3eP7t>yO#KFdOQhW5(l82W&pnY;5Q&OLO$321OR`Q%S}prc0yui_@^sr zA6_J`IUQ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Ci0?;*ZTm5$a1mH#6rlgME0|x z^wAUmuP$5#;xYRyv;@GsuN8pMc%SAo__=>Y3pJW(Qsoy`0I>9ZItqzoC1yXwV%A%b ztFn7B;(SBvo9LgccRrz8T@{iNbG?U@y^!rHRsZe9h)k7{Q-nE0<%}bmvx)!+J4i}h zl^Dz~tgrw=<9)FhY)tB4rLpKHbBN-on|q6kEPx>wlAbcP>j}>Ww27piW=lp91>o9& zJOHkb*($qZ9VHb>k^S^*HrHt&(Tc;d-O<=20NaCi0I1sLwE!kQ4XMj>FM-5PmM;0# z$~>YXIgd|2S6M7ETjJhfv~eMssro50hp2otYw4Iw>x?AIG_h1NhUjl@ts@$zCQgO` O0000(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 9f; } @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void AddRecipes() { CreateRecipe(). - AddIngredient(3). + AddIngredient(3). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Weapons/Melee/UrchinMace.png b/Items/Weapons/Melee/UrchinMace.png new file mode 100644 index 0000000000000000000000000000000000000000..2e379e8a6e441fe302cfc312caa23ce60675be6a GIT binary patch literal 1103 zcmV-V1hD&wP)Px(2}wjjR9J=Wm|tvDRUF4ZXWDkwwOx_uM4Z+M*&ZM@uni#_k-3B{ys((~0+Fb} zX!!Hw0}o)TQKJbD`e34gWCjxxHTa+|CKAMbF1H%=A8RGr>CEOf9H44QT$D+f8s^g{=33g0my!T+%E0ET2re4@^vxSaij0< zGTK!)zr?xGt+O4_xN5y?f9}!*0Ke5l4RYr*`YXB2O}O(Zu3_z z(GnRXR83uhL=J%NjST?o-!}q4SI6T(k*M{{m<`aKXgA{gW23;e|J;9qC;)-3Hvq7P zdz@YaAb9GSYy2avhk+u=k~mk-RzA_Hy0`+!^=`KTq6Jd9-t7SF->2jDeElH+&%bgG zD3TPf^58>2k+ewW`Sbh!>O$vQH%!!-h12O%0MsmLQ2-YT9(59Q>dXE%0M;hV{>;|r z05~$w2S9DOK>6}?bm*K8>mF0_b;diz>eOn2TuHI1N`3kGyu`Xn}G5p5431f&f4$H zcG1Cf5`fr(W!|dwvnEO*>xE?17ki92=@$t>rx(kSZCkYkfJErcPh zYpl_`M4xP0H{*cXcm#mH!4o#X!wo9|xI8jy#LYkmfOV^%0^sQ2#{h(U5e1MMPkH;y zG!s$dmo19jt^iJ^F53W`-s}RPXIn2&B)F7?#(Yv?=11lMFrL0>v_-k;yaLEtms}U> z8KT!cGriQF2ViHPCfxe$YM@9`h`qY7*%-Iutj=cH1thN8AJC`QX+3YCu#3p&@pGov zMU_KT)ENo@ka4s-Lz?97tbW564>nfcp#To1lZMx)^7?LS==8~1E!6u&JMOGf0DZ?o zHb7>>3IM|I9R;o>xHuS909HU(tf8q3GSv-NznSD+qT)S&T`d6l)THrTve`*+*wQ!7 zr^{sR&B}X3r6T!T^*KD>KVk#i^Ku6OySKdqKtt?41u&fY8TjW2I^`Xr%bWBK#i9rF z{`T2{A8mlWhjsvPIQaum%x-Jy3NUvhMV=w5y4rN@9vjzh>I2W1w{o%9b(Xg@H!6T{ z2Zn(EiI$aG-W0b1*0h^voew@a1VHP(`ZU;oCJW3xNs;%6iX^*BW8mK-De?@_KLAQ} VavA%iYq|gc002ovPDHLkV1gA95@rAZ literal 0 HcmV?d00001 diff --git a/Items/Weapons/Melee/UrchinSpear.png b/Items/Weapons/Melee/UrchinSpear.png deleted file mode 100644 index fd210ae4260a866023cd77f7fa0fa35742f48681..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 939 zcmV;c162HpP)$f>4@U@94Rb zhAIGp9d9Cb_kHmjQeu$2+XJvcn|Xg$kpYl%Gz~D#T$y^Pb$XC@8So6npIEVTu=Y9t zBVBhQ0AoF>UCcbc*bl(DN99^S&rrM&GlBdv0G1~QwAd-C%LHJgOI^n@Be7G`P-TD% z4H-NAg|W;?%!nB)L-*eT(D#frpCPm?l}?9VU&euNgZeu9`9 z?feRu>l7QmHqTHjtg#}b`qZ4QuCD{odhHMZms*B5ADCaoT9hf^_ZYI`8FGO3n-??1 z>8e^zIoqgiwA|J@<&~TVU@F)iv1^x@iNZERdxo5H>$o3)!kPmBJbf~5`E0O^BV?0b6+R|&|0&3|McKJ04AFB_F;;( z>#fWPt~2!4wOo`T+g%tz)}LQlE(U8a+5mH%nnzU*Qdz_@Be>2`+_PNWzC8e(-oLK3 ziy1Ls&3YfdtGWIBZAojF+VAyrx1;ZOouRnJPurSZ2&DwgNzQicia+oii(%i78V|Tz8&aXUOsFY;7ha_l=GFjz0HKvsoSS!Tw_jT~ z&ZN%(W^GoGnq&Y>tcHQzHzT;ukeKnO6#@`i8jFCr%YX8M+EHy3$&zy>K17Nndf9FTJ z4cuo)-pKC1)r>!_P&2dD&gE|7IzvWjZoTb)dNC7P8UqsFjNm#$KLG+WMu2;HRQLb@ N002ovPDHLkV1mf#x2OOB diff --git a/Items/Weapons/Ranged/AquashardShotgun.cs b/Items/Weapons/Ranged/AquashardShotgun.cs index 7d2078f70d..21c9ee5a17 100644 --- a/Items/Weapons/Ranged/AquashardShotgun.cs +++ b/Items/Weapons/Ranged/AquashardShotgun.cs @@ -71,7 +71,7 @@ namespace CalamityMod.Items.Weapons.Ranged AddIngredient(2). AddIngredient(10). AddIngredient(15). - AddIngredient(5). + AddIngredient(5). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Weapons/Ranged/Seabow.cs b/Items/Weapons/Ranged/ReedBlowgun.cs similarity index 93% rename from Items/Weapons/Ranged/Seabow.cs rename to Items/Weapons/Ranged/ReedBlowgun.cs index a2c82f30ae..f10dd1f558 100644 --- a/Items/Weapons/Ranged/Seabow.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -9,11 +9,11 @@ using Terraria.GameContent.Creative; namespace CalamityMod.Items.Weapons.Ranged { - public class Seabow : ModItem + public class ReedBlowgun : ModItem { public override void SetStaticDefaults() { - DisplayName.SetDefault("Seabow"); + DisplayName.SetDefault("Reed Blowgun"); Tooltip.SetDefault("Fires slow-moving water blasts"); CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; } @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void AddRecipes() { CreateRecipe(). - AddIngredient(2). + AddIngredient(2). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Weapons/Ranged/ReedBlowgun.png b/Items/Weapons/Ranged/ReedBlowgun.png new file mode 100644 index 0000000000000000000000000000000000000000..fabaab6ee0fae7de79a345c55d5fe06b0a23a194 GIT binary patch literal 587 zcmV-R0<`^!P)Px%1xZ9fR7i>KmQ8CDK^Vt>+ibF=s|`u2VoZIZ6jC*@l!EBVc-E5#p|&18coh5y zegpC7-9itZ`~ZT8MJV;<&=xcZB?ue3H4Uzswh|BH)AA&{>Om`P`@am&GxN;M{{FMW zSo~+*8odHQGMfRQFO>wqK9Mp5e7h4?w>8kT0NSrwrtaTvbN6KJ)Y=!=zPKbmdsg!1 zUmw1v;;EZ=L-%tzQvqV+h#l1-;~_&^*T89Z}Qbu5500090Nklcyt$<C zO4GBT$x6n=haOx5g+FhA#hppm84JUOxv#lL}( zyYnDlYy~T`E4TFG0}bJZ_dFRQa$$21)Ljv zH>g!}$ZKzh<>}%P*%HUeUC+G;{`v8{4HXyWucRVx{G%UIW1;*ZcxYgM#$K^)SI7l_ zpZOAOf9ya?p~(_h(uDOKajNlStb4`bp`gDq^1W<{<0RVn#_y9g#39l;1aF8D*ZsvY z@ba_ogFT%M3H&^@nlW*-ag^G1p-LPjMqI5#(&4%D;hft=SSz_`(@0ut<3){FC;w@6 zW0pOg4b|D+aNg}EjdIf~>iO|fm3US=SnLRuEBP!MuOeqcYg(#A=tYeU7_Dn0N)$j9qF-Sgmd@kquMWcmCBkS~VX z7uQkhRq1{2y$TLZ>;g{=t)(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 11.5f; Item.DamageType = RogueDamageClass.Instance; } @@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void AddRecipes() { CreateRecipe(). - AddIngredient(2). + AddIngredient(2). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Weapons/Rogue/FishboneBoomerang.png b/Items/Weapons/Rogue/FishboneBoomerang.png new file mode 100644 index 0000000000000000000000000000000000000000..4fe585981b1422c78e2e40d9e7ea2e8d1c635f1f GIT binary patch literal 765 zcmV00001b5ch_0Itp) z=>Px%w@E}nR9J=On9olWK@`V7L#d@LrlrB61*M@T(%7IFjLHEG#CXw|7_KHJ{skVr zc+tN@V?4-#co7d`G=>-tf$ZvsaQUk)3%oX1U(B#6-Q0;m|%y`$1nAfV|TQKqCKD z=2nTwaL*0^#~?!CJ_Eq(@oCNP_{ezy4MMCYDRWg; ztJ2WUpa6*fSTO+39XYGTQPp|l`zg(Sb@DC%N!A*dShYTCSk1S#$oEz{o7PBW<`;o- z&y2eD4lsM?X~mwv#>6(CU@ZwP#N|KUL{@@0?2(z}q~>Q^V!wSJ3p#xOtmISLsY1P{+?{D{oqF@DUaHjHC2vi>CAo#0a}(Np z;}YA7R5d9=szZdl@{FHrE^2<&?w7VDR`<`Z1=o#4qwha=XYNuv5~}Xmfg>dwyL%g)x*XqfI-g(W?xa1Bx)t1c!n%VXC4KYqQbKww zKHmrv@`Yjqje4zX!7K>#ZK%tG){E(Ybjuvpt6<@O&Ee*zbn4)}fd}Zl%imkE`eeS# zThu0ZyaXQ3C!apYs&cltACznBZT{+E`X*&ZSQ;OV;Qr8LM=vMC$V9;x9ZfxfN@ez@ i?EZIoQ!#e!zs(<`wy2d_jo2dq0000(). + AddIngredient(). AddIngredient(). AddIngredient(ItemID.ThornChakram). AddIngredient(8). diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index c3dd120026..ac46f6bca9 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -2909,7 +2909,7 @@ namespace CalamityMod.Projectiles if (projectile2.WithinBounds(Main.maxProjectiles)) Main.projectile[projectile2].Calamity().forceMelee = true; - if (projectile.type == ProjectileType()) + if (projectile.type == ProjectileType()) if (projectile2.WithinBounds(Main.maxProjectiles)) Main.projectile[projectile2].Calamity().forceRogue = true; } diff --git a/Projectiles/Magic/CoralSpike.png b/Projectiles/Magic/CoralSpike.png index f18261bd8673e3afd075d707da7cdce00a8ef693..fb5acdd6d616dcd3e05239e47c583559db5a2427 100644 GIT binary patch literal 431 zcmV;g0Z{&lP)Px$X-PyuR5*>j)W1uWVHCje&+CuH3w8-bY={~{FbW~mK}&G3!TtfaKy-3&2?|3H zw1$=jSD~%JRfX;#T*V<>dMms`D6hlyLGMLtdF@Q+JkL3Y?{m(1PBhdv z=1gK2q_Dbj(bV>&J%Z(h&n13{ph7}Yb(}vaD(RcxQK}t0o#-fWd^5ci!}!E7cs=qS z?D-{GqST*iaClae=WCBG^2NBFui4sMSR{#xa!RGh%O9MhJ zdowRVXG2r6lO2^G+_`ldq$^V(e{vLa-o2UZ6lkuyAHmk|FA^oHy6Pg3beDB2*z^0j zumuwS{r_^PX=%mzewzQ8yVURh5d{e(>B>}b?oN)bhv>>VQntez>+eRe`{OIv+WB@p ZM5mhuW{l)HT5|vZ002ovPDHLkV1mY+#smNW literal 519 zcmV+i0{H!jP)_iY#2-?IdKR~Ob zN+VWwf`teX=lFvA;@&~fy)>82%-)+f^JaDvqf0^PhW;o83zXjaBgzSBHub%aTvo8J8S%w zXSN4p92^+HvvS2EzJBRAj1Ow(wq9E=*z@(~!x4FYr}V29v=jPj91IwsiD=jfYPU4& ztjFeK`{_yB$v|iC!PeME3q@O#ncLQr(*?XV${d*fBVraWnNToM2Fj2w zpx?1m`(7XGMxD|B4y?x?0nw+dQ8&yq1M0uph|guck@TsW13wtBUU8V!z8MW;?PCJg z5>={K4)Y%4%z%9&BlVm%3*&j`H1aWKM(ca2wfD}YVhaXL>M!p0EodeV49Em3M!nbv zzE@`s%qar{UqERLwbtGm0}ve8cN+Nu^7;FIPyHvM8~+OU3oB8FY#T?8SO5S307*qo JM6N<$f&fwJ=_LRF diff --git a/Projectiles/Melee/CnidarianSpark.png b/Projectiles/Melee/CnidarianSpark.png new file mode 100644 index 0000000000000000000000000000000000000000..3367e69f0d025731a9ec250869fbeda1d514b3c2 GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^Y(UJ%0U~+k=c)oJ#^NA%Cx&(BWL^R}4W2HJArezt z&+q0v*r~zhc-(KEq9kp+;7<D@1zK$T*h^9kFd wp4Yc{U+0;7IkIKhTKA6VKWg)@J?)hDKCiNW70>#WK({b>y85}Sb4q9e0DX)}=>Px# literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/RedtideSpearShot.png b/Projectiles/Melee/RedtideSpearShot.png new file mode 100644 index 0000000000000000000000000000000000000000..c7e27ea825f950f7eabebc567c71aa58af636578 GIT binary patch literal 264 zcmeAS@N?(olHy`uVBq!ia0vp^AT}Qd8;}%R+`Ae`F%}28J29*~C-V}>Ippc$7@{$8 z>V=J7PK7c@Kb{wDKcL;h;@R!(?ChPur@Oa7+BqOZ5<{zd1q$}wTLfV zn2~kjh~h`93Vn-T_LnXH)Ybf)8-Jx*qPhQmXqJ2W`u+#@>s$ghEbp>hSscgq_O{*g{d)v$M33V18q*G|)E; Mp00i_>zopr0HNJ#H2?qr literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/RedtideWhirlpool.png b/Projectiles/Melee/RedtideWhirlpool.png new file mode 100644 index 0000000000000000000000000000000000000000..0736e9ebfff6d2a531ed7d3ae2d9ff6196e3e282 GIT binary patch literal 1945 zcmV;K2WI$*P)Px+Q%OWYRCt{2oL_7eRUXGbV{ePJP!MftEGwu$KqQbDA#1a-t0t~57%&?3L4q-n zM2J4=lQG8lpid^UiJK5ieOSyI+2H!HCTL1F)mUOuvt&VPA|S1WB1-86=^w|3bG~;v z=g#TOt*x7w^Le?Md+(e%ch0xp-|w9Hokskh*|O)~0BmS&0ASs+RscFyE=_%JVEB8z z#!eFvz(buKsW;#6?#aBK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gjpl_%S3I z-fvBPTYC&JJ~Rjeyw!Vfv})Ats5PHZuCCQ%ttRWa!)$wn zFK@`hSFd?tygmY0)^bA(K@k-yf6rRYUD{L!z}fO-4E}1l7j|w>9ji`3%IIBT+E%?o z(dsrADM53Z(&8m4Z+P;}9p-wDHz-O7_gSv{tT!maQswZwZS+tbOOaV0SXkE_Lz1})&2f&^nd`YqQ2*4gDJxMCB0X9mznPWbQN{qs+I^~_@dcS?AwP?l%NQUR}n@3|AHG$ z8jWf5+2Ga89l@eN9sndG-+%T8pn4^3rt2IoK@pZBJAtQNopwiBo{_hXA=iJdb9DqT z-eC5YFK;$Gj5YFy`ppjG*&2BtK@pZBiYOXcVn}xFx3^p$LGo--XyiAvn%V6e-KLsv fu17qNpa{z^;`K_M{c;{$00000NkvXXu0mjf=!w7( literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/Spears/UrchinSpearProjectile.cs b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs similarity index 93% rename from Projectiles/Melee/Spears/UrchinSpearProjectile.cs rename to Projectiles/Melee/Spears/RedtideSpearProjectile.cs index 23dce17159..fded2db56e 100644 --- a/Projectiles/Melee/Spears/UrchinSpearProjectile.cs +++ b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs @@ -5,11 +5,11 @@ using Terraria.ModLoader; using CalamityMod.Projectiles.BaseProjectiles; namespace CalamityMod.Projectiles.Melee.Spears { - public class UrchinSpearProjectile : BaseSpearProjectile + public class RedtideSpearProjectile : BaseSpearProjectile { public override void SetStaticDefaults() { - DisplayName.SetDefault("Spear"); + DisplayName.SetDefault("Redtide Spear"); } public override void SetDefaults() diff --git a/Projectiles/Melee/Spears/RedtideSpearProjectile.png b/Projectiles/Melee/Spears/RedtideSpearProjectile.png new file mode 100644 index 0000000000000000000000000000000000000000..b72059c8179c610724c4614ea03468f08f832dbf GIT binary patch literal 1228 zcmV;-1T*`IP)Px(hDk(0RA_w^i3fLJ7oF3n;OTQS?C5MB~8( zJ$TWBO*D-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?squTHP<#yzvpISJLhaWpYwg5XZy`) zsp&LvQB&6m17Lde8R_W5`~wO>K0Kx(xpOgkPkG{Q?FADc6mB&De!PtV5dS&rBx)4W z2l6f<(Zlmo3Naxi+TVT!fSK_DWxtl1&VraF?-3F=6B0tkg%kkw9lLEp>&GwwcJ4V~ z0JM-_Ql2AZ$h98|w*oLX`A#7?>7aR0Xfq$L+d-(WKyY-2mnKu8Ug6J^$CCypLOoqYmU0^m#x|IG$H3T zZYJl9xS7n1)8(8hKGh9C!_XZ7BFiyzvzgR0l!}lu$t9O0@n^;d6!#N1bL!*m=Kz#D z9zR%`0N_TCHB)mFp8>e`I<8$VBbO6m(wd#5#Qnt0MCEC|ppdBz7zRKzZYu7#UAOaI zm)mLsnW-R)N&}Fb5jRVv)knih9&PnrG@(p0ASvOMJZUH|Q`}5+=ImaDVC3qc^8Ax8 z*0~(}{!0`3E0;@`s&q4H0FpBznVJ5H!A*0gve;(;EUYGU4sDB&^V)W{=5!l?%v@wS zrkldQnxS+XfSK%OA|caJy+d5i1UOvbvmJMPjp6^zp-plrl}tA`6D_PJOo09)0fn%T zdb5 "CalamityMod/Projectiles/Melee/BrinyTyphoonBubble"; + public override string Texture => "CalamityMod/Items/Weapons/Melee/UrchinMace"; public override void SetStaticDefaults() { diff --git a/Projectiles/Melee/Yoyos/CnidarianYoyo.png b/Projectiles/Melee/Yoyos/CnidarianYoyo.png index 1eb7ff5b6e64ec5621cec75a01759073b097bc64..5859212ce2739206bc378bc451a8a25346e32c9b 100644 GIT binary patch literal 533 zcmV+w0_y#VP)Px$&q+i*VHC#k&#h6%K^Pjwfg((^%@o8)gtaLMY2~7zO`8H2MVl7= z6|GvdF@#*Vs*Ott+@%nSQIaTzm=TsC`6F#{Tim(Yoo;QK+p|0GxzBmOoO51opsu0n zASm^Ag0+R!P>M>uok2YhMrX$o`2%UDe^Kx!vi>_4!Sqf$sI_f_$>E8=k~W<%*II5( zC2Len8s{g6CqgKkY7d}$y(=5SV5mA6Lis`|kr;S13i9J4V0LyBEWCLQ2Ctn1H*VhF ztCb01uJNG%`fc#!@0`fR43AaN5y? zAtwI3z6J_y(UiA#wzDD3&2MZa4z^D8MTAokVWD;wj4w^szvuzwdX)ch5WHP^ml0u5 ziEhk09ud|P8>OC9Lt}53gD;@_NJcLu*CGhn?_Fi;X@c;@^fNF}y9&k@Uq;SiL^!t@ zZAYc0_@7=%ykGGY8+%zUMsNQ4`V6>KJRQejwuFWGS0Jn$3&75|5C*zxU~J-X!g#2) zBlwjpRwjf&;)dPt*zaYE0{FVSk%;&F&7}LSI{O=cxHFpW$JNEg|8oHESC&!>Hl6S% X5#^6;{+jrW00000NkvXXu0mjfL^AcW literal 356 zcmV-q0h|7bP)s#boO#C^eGJqFaqd zwip{73PECnY{JHOu3|J-F;U#pz3+KX^2^CNK{lBIb=CD?@1ZeNrkeVD1Gp^igNkzD z_f*wjIstYMu0xn?egZ!RmO$IbhRDFq)O-jviBu2^L6A*mLMY_AB8}nvb40gir@`I9 zA^3Z^E*65Sx5h%@9PDg-1&=@1Uj11x(OKHjocovw&VHRntkv;67+cAe?80}D`p{a^ ze~#iI2zrvEA+&UV0=4OGaJ;n~32x^qBl>ebE`q*}FW~ "CalamityMod/Items/Weapons/Rogue/SeashellBoomerang"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/FishboneBoomerang"; public override void SetStaticDefaults() { - DisplayName.SetDefault("Seashell Boomerang"); + DisplayName.SetDefault("Fishbone Boomerang"); } public override void SetDefaults() diff --git a/Projectiles/Summon/VictideSummonerSetMinion.png b/Projectiles/Summon/VictideSummonerSetMinion.png new file mode 100644 index 0000000000000000000000000000000000000000..45a502f21d38b94ff9de853f4a84cd7238eb9aab GIT binary patch literal 2843 zcmai0Ydq5nAOFuz>bREsrJXJ$jT9cmq9g(UfVj<7%j*ZI zb`U>~2p?qSJm$&)fFiG3n*+6s<7)sQGG=3G<{I~Gy)fjitcN1)fmi6&r}CR!Ns02d zKfjPNwfoJ%Hah?;B;Dz(0j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b=Gzs5^(g) zGlm_36fEKm&m;D}_Lq7lwL^^Q>TB~5{FxQhF40l>?x&Nz0rsp`F?ZKkPV(u;A<(zy zwFV;rMk7l@%)MwJP4P)qCllgQCz>`U9W^Qc%ee6auJ!~R^%eNltfv2~cwJYw>pTA! zmoF_sKMI4Ud-n$ z>5l2gxbB`&sx2Cat~(SP`d>cr6-6-*|DoQz8l%WrbSaJiNQ<^UICO@%gz3%3?oirk zA9d!Chh(!+xKMPtTVceWBOOt#>lx-ARa({C6xj&6WGLs+b9?z#?2}IHim+ncVs$T2$#xq+}2l7&@ESqPv1@_)-UzAm1H6+WY!fGr1_)Rjq#p~rL z;-|J*bkV0>@yW9uyr59c#KbDP6|UPuB}J=XZ^;f8 zH{F7qlH3Z-WZk2M-TG1jxB`Mi2c1>Ww9YqtcsW#X3{D{AQ<=>cDAN06($#qMN^dc+ zW{FWf(SP1qKpeml{VabZlhVDUFdvkYdQxFVB=sCJ<1mQ;!F{PX`;~}J^<9zAq)t;? zjUDgzdh2DPnkvHYFg)Ry;K@>y3KK@GCp+Xfplg*{kSiB}G>GlwmGCz_+1R*{e{PqF zrdy#JI9rjYc2;`QFFYu;#f7AZFub-#A%6OHJ0-^W;O>k$(=FjS Date: Wed, 25 May 2022 16:34:43 +0200 Subject: [PATCH 03/30] stuff --- CalPlayer/DrawLayers/BodyBulkLayer.cs | 10 +++++----- Items/Armor/VictideBreastplate.cs | 2 +- ...stplate_Bulk.png => VictideBreastplate_Bulk.png} | Bin Items/Materials/SeaRemains.cs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename Items/Armor/{VictideChestplate_Bulk.png => VictideBreastplate_Bulk.png} (100%) diff --git a/CalPlayer/DrawLayers/BodyBulkLayer.cs b/CalPlayer/DrawLayers/BodyBulkLayer.cs index 6384fa5e38..49c96344f3 100644 --- a/CalPlayer/DrawLayers/BodyBulkLayer.cs +++ b/CalPlayer/DrawLayers/BodyBulkLayer.cs @@ -13,7 +13,7 @@ namespace CalamityMod.CalPlayer.DrawLayers { public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.Head); - public override bool GetDefaultVisibility(PlayerDrawSet drawInfo) => drawInfo.shadow != 0f || drawInfo.drawPlayer.dead; + public override bool GetDefaultVisibility(PlayerDrawSet drawInfo) => drawInfo.shadow == 0f || !drawInfo.drawPlayer.dead; protected override void Draw(ref PlayerDrawSet drawInfo) { @@ -27,16 +27,16 @@ namespace CalamityMod.CalPlayer.DrawLayers int dyeShader = drawPlayer.dye?[0].dye ?? 0; // Remember to use drawInfo.position and not drawPlayer.position, or else it will not display properly in the player selection screen. - Vector2 origin = new Vector2(drawPlayer.legFrame.Width * 0.5f, drawPlayer.legFrame.Height * 0.4f); - Vector2 headDrawPosition = drawInfo.Center.Floor() - Main.screenPosition; + Vector2 origin = new Vector2(drawPlayer.bodyFrame.Width * 0.5f, drawPlayer.bodyFrame.Height * 0.5f); + Vector2 drawPosition = drawInfo.Center.Floor() - Main.screenPosition; //Account for the hellspawns known as mounts if (drawPlayer.mount.Active) - headDrawPosition.Y += drawPlayer.mount.HeightBoost; + drawPosition.Y += drawPlayer.mount.HeightBoost; Texture2D extraPieceTexture = ModContent.Request(chestplateBulkDrawer.BulkTexture).Value; Rectangle frame = extraPieceTexture.Frame(1, 20, 0, drawPlayer.bodyFrame.Y / drawPlayer.bodyFrame.Height); - DrawData pieceDrawData = new DrawData(extraPieceTexture, headDrawPosition, frame, drawInfo.colorHead, drawPlayer.fullRotation, origin, 1f, drawInfo.playerEffect, 0) + DrawData pieceDrawData = new DrawData(extraPieceTexture, drawPosition, frame, drawInfo.colorArmorBody, drawPlayer.fullRotation, origin, 1f, drawInfo.playerEffect, 0) { shader = dyeShader }; diff --git a/Items/Armor/VictideBreastplate.cs b/Items/Armor/VictideBreastplate.cs index f053ddf3ff..03543ed328 100644 --- a/Items/Armor/VictideBreastplate.cs +++ b/Items/Armor/VictideBreastplate.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/VictideFaulds_Waist", EquipType.Waist, name: "VictideFaulds"); } } - + public override void SetStaticDefaults() { SacrificeTotal = 1; diff --git a/Items/Armor/VictideChestplate_Bulk.png b/Items/Armor/VictideBreastplate_Bulk.png similarity index 100% rename from Items/Armor/VictideChestplate_Bulk.png rename to Items/Armor/VictideBreastplate_Bulk.png diff --git a/Items/Materials/SeaRemains.cs b/Items/Materials/SeaRemains.cs index a9e2fc6d36..e68ee3bd62 100644 --- a/Items/Materials/SeaRemains.cs +++ b/Items/Materials/SeaRemains.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Items.Materials { public override void SetStaticDefaults() { - CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 25; + SacrificeTotal = 25; DisplayName.SetDefault("Sea Remains"); } From 7dbe1550303c3d9140ee91f3c1de2a8cd3274c71 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sat, 28 May 2022 01:53:29 +0200 Subject: [PATCH 04/30] Body bulk layer fixed --- CalPlayer/CalamityPlayer.cs | 26 +++++++------------------- CalPlayer/DrawLayers/BodyBulkLayer.cs | 24 +++++++++++++++++------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index f5a47a44d1..89514918f4 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5832,25 +5832,13 @@ namespace CalamityMod.CalPlayer { Player.waist = (sbyte)EquipLoader.GetEquipSlot(Mod, "VictideFaulds", EquipType.Waist); - // - //string[] victideHelmetNames = new string[5] { "VictideHeadgear" , "VictideHelm", "VictideHelmet", "VictideMask", "VictideVisage" }; - //bool anyVictideHelmetVisible = false; - //int victideHelmetIndex = 0; - - //for (int i = 0; i < 5; i++) - // if (Player.head == EquipLoader.GetEquipSlot(Mod, victideHelmetNames[i], EquipType.Head)) - // { - // victideHelmetIndex = i; - // anyVictideHelmetVisible = true; - // break; - // } - - //Crop out the face of the victide mask if the chestplate is worn (so the little seastar crest can peek through) - //if (victideBreastplateVisible && anyVictideHelmetVisible) - //{ - // Player.head = EquipLoader.GetEquipSlot(Mod, victideHelmetNames[victideHelmetIndex] + "Cropped", EquipType.Head); - //} - // + //Also prevent the player from having any front drawing accs which would be wildly offset because of the different proportions. + if (victideBreastplateVisible) + { + Player.front = -1; + Player.handoff = -1; + Player.handon = -1; + } } } #endregion diff --git a/CalPlayer/DrawLayers/BodyBulkLayer.cs b/CalPlayer/DrawLayers/BodyBulkLayer.cs index 49c96344f3..6352c31f36 100644 --- a/CalPlayer/DrawLayers/BodyBulkLayer.cs +++ b/CalPlayer/DrawLayers/BodyBulkLayer.cs @@ -17,6 +17,10 @@ namespace CalamityMod.CalPlayer.DrawLayers protected override void Draw(ref PlayerDrawSet drawInfo) { + //While the extra bulk draws over the players head position, we don't want to have it drawn when the head alone is being drawn. + if (drawInfo.headOnlyRender) + return; + Player drawPlayer = drawInfo.drawPlayer; int bodyItem = drawPlayer.armor[1].type; if (drawPlayer.armor[11].type > ItemID.None) @@ -25,18 +29,24 @@ namespace CalamityMod.CalPlayer.DrawLayers if (ModContent.GetModItem(bodyItem) is IBulkyArmor chestplateBulkDrawer) { int dyeShader = drawPlayer.dye?[0].dye ?? 0; + Vector2 drawPosition = drawInfo.Position - Main.screenPosition; - // Remember to use drawInfo.position and not drawPlayer.position, or else it will not display properly in the player selection screen. - Vector2 origin = new Vector2(drawPlayer.bodyFrame.Width * 0.5f, drawPlayer.bodyFrame.Height * 0.5f); - Vector2 drawPosition = drawInfo.Center.Floor() - Main.screenPosition; + // Using drawPlayer to get width & height and such is perfectly fine, on the other hand. Just center everything + drawPosition += new Vector2((drawPlayer.width - drawPlayer.bodyFrame.Width) / 2f, drawPlayer.height - drawPlayer.bodyFrame.Height + 4f); - //Account for the hellspawns known as mounts - if (drawPlayer.mount.Active) - drawPosition.Y += drawPlayer.mount.HeightBoost; + //Convert to int to remove the jitter. + drawPosition = new Vector2((int)drawPosition.X, (int)drawPosition.Y); + //Some dispalcements + drawPosition += drawPlayer.bodyPosition + drawInfo.bodyVect; + + //Grab the extension texture Texture2D extraPieceTexture = ModContent.Request(chestplateBulkDrawer.BulkTexture).Value; + + //Get the frame of the extension based on the players body frame Rectangle frame = extraPieceTexture.Frame(1, 20, 0, drawPlayer.bodyFrame.Y / drawPlayer.bodyFrame.Height); - DrawData pieceDrawData = new DrawData(extraPieceTexture, drawPosition, frame, drawInfo.colorArmorBody, drawPlayer.fullRotation, origin, 1f, drawInfo.playerEffect, 0) + + DrawData pieceDrawData = new DrawData(extraPieceTexture, drawPosition, frame, drawInfo.colorArmorBody, drawPlayer.fullRotation, drawInfo.bodyVect, 1f, drawInfo.playerEffect, 0) { shader = dyeShader }; From 1ff07436648679e680025fe4789b4594615b6935 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 30 May 2022 02:03:41 +0200 Subject: [PATCH 05/30] Cnidarian start --- CalPlayer/DrawLayers/BodyBulkLayer.cs | 2 +- Items/Weapons/Melee/Cnidarian.cs | 72 +++++++++++++++++++- Items/Weapons/Melee/CnidarianFishingRod.png | Bin 0 -> 827 bytes 3 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 Items/Weapons/Melee/CnidarianFishingRod.png diff --git a/CalPlayer/DrawLayers/BodyBulkLayer.cs b/CalPlayer/DrawLayers/BodyBulkLayer.cs index 6352c31f36..b8fc7e7a33 100644 --- a/CalPlayer/DrawLayers/BodyBulkLayer.cs +++ b/CalPlayer/DrawLayers/BodyBulkLayer.cs @@ -28,7 +28,7 @@ namespace CalamityMod.CalPlayer.DrawLayers if (ModContent.GetModItem(bodyItem) is IBulkyArmor chestplateBulkDrawer) { - int dyeShader = drawPlayer.dye?[0].dye ?? 0; + int dyeShader = drawPlayer.dye?[1].dye ?? 0; Vector2 drawPosition = drawInfo.Position - Main.screenPosition; // Using drawPlayer to get width & height and such is perfectly fine, on the other hand. Just center everything diff --git a/Items/Weapons/Melee/Cnidarian.cs b/Items/Weapons/Melee/Cnidarian.cs index d321f08445..6a40706bd3 100644 --- a/Items/Weapons/Melee/Cnidarian.cs +++ b/Items/Weapons/Melee/Cnidarian.cs @@ -1,5 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Yoyos; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +10,8 @@ namespace CalamityMod.Items.Weapons.Melee { public class Cnidarian : ModItem { + public override string Texture => "CalamityMod/Items/Weapons/Melee/CnidarianFishingRod"; + public override void SetStaticDefaults() { DisplayName.SetDefault("Cnidarian"); @@ -30,10 +34,11 @@ namespace CalamityMod.Items.Weapons.Melee Item.useAnimation = 25; Item.autoReuse = true; + Item.holdStyle = 16; //Custom hold style Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item1; Item.channel = true; - Item.noUseGraphic = true; + //Item.noUseGraphic = true; Item.noMelee = true; Item.shoot = ModContent.ProjectileType(); @@ -50,5 +55,70 @@ namespace CalamityMod.Items.Weapons.Melee AddTile(TileID.Anvils). Register(); } + + #region drawing stuff + public override void HoldItemFrame(Player player) + { + //Make the player face where they're aiming. + if (Main.MouseWorld.X > player.Center.X) + { + player.ChangeDir(1); + } + else + { + player.ChangeDir(-1); + } + + //Calculate the dirction in which the players arms should be pointing at. + Vector2 playerToCursor = (Main.MouseWorld - player.Center).SafeNormalize(Vector2.UnitX); + float armPointingDirection = (playerToCursor.ToRotation()); + + + //"crop" the rotation so the player only tilts the fishing rod slightly up and slightly down. + if (armPointingDirection < MathHelper.PiOver2 && armPointingDirection >= -MathHelper.PiOver2) + { + armPointingDirection = -MathHelper.PiOver2 + MathHelper.PiOver4 + MathHelper.PiOver2 * Utils.GetLerpValue(0f, MathHelper.Pi, armPointingDirection + MathHelper.PiOver2, true); + } + + //It gets a bit harder if its pointing left; ouch + else + { + if (armPointingDirection > 0) + armPointingDirection = MathHelper.PiOver2 + MathHelper.PiOver4 + MathHelper.PiOver4 * Utils.GetLerpValue(0f, MathHelper.PiOver2, armPointingDirection - MathHelper.PiOver2, true); + else + armPointingDirection = -MathHelper.Pi + MathHelper.PiOver4 * Utils.GetLerpValue(-MathHelper.Pi, -MathHelper.PiOver4, armPointingDirection, true); + } + + player.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, armPointingDirection - MathHelper.PiOver2); + player.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, armPointingDirection - MathHelper.PiOver2); + } + + + public override void HoldStyle(Player player, Rectangle heldItemFrame) + { + + player.itemLocation = player.MountedCenter + player.compositeFrontArm.rotation.ToRotationVector2() * 10f * player.direction; + player.itemRotation = player.compositeFrontArm.rotation + MathHelper.PiOver2 * player.direction; + + } + + public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) + { + Texture2D properSprite = ModContent.Request("CalamityMod/Items/Weapons/Melee/Cnidarian").Value; + + spriteBatch.Draw(properSprite, position, null, drawColor, 0f, origin, scale, 0, 0); + return false; + } + + public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) + { + Texture2D properSprite = ModContent.Request("CalamityMod/Items/Weapons/Melee/Cnidarian").Value; + + spriteBatch.Draw(properSprite, Item.position - Main.screenPosition, null, lightColor, rotation, properSprite.Size() / 2f, scale, 0, 0); + return false; + } + #endregion + + } } diff --git a/Items/Weapons/Melee/CnidarianFishingRod.png b/Items/Weapons/Melee/CnidarianFishingRod.png new file mode 100644 index 0000000000000000000000000000000000000000..5dce3480c8e24d2b5fcc19b41016245809e1df91 GIT binary patch literal 827 zcmV-B1H}A^P)Px%^+`lQR9J=OmrF=gQ5eU6XK==GeCDH333EaM3u+><2p<$JLL@M#O)kO+a$lQv zt%^2LLaUM%E~7;VEn1juGA$e_EXtTsY-Gx&#x2LIA$ko|E>GLHWPwp0+O29DjX&4A_XMNOeJ5b@Q6`>B>9+f}vr}=juAHYx8>E z)N9|0oM&VZfShO$fO-D~0Xu}KM$B1RC;;N2sPwtEGupbAYgYldai9i($yjvFbFvD& z0wCLn13QUmaf6KF$ybt)BKiF89RP~WC|3jz*4GJuFMa(0EX9|!{j7Hig~x#HNL1xV zFL`Rzh)!440x;0|P+O-+x|}Wn8bPZxqKc%FZHT5^nIcRX<_JK%;sF58&a=Qu#c{ll zWUV9>Db)k8if>xA{fOq11wf2>0OGCB0C09CCuw+nl4L|ym?R{V%Icd++lQ!%_S}3) zbZ@K(fOn>SrqBocPf}P&s{9*Vh{$m5?Syqa$+*`KKL&B~Gj075^0Yj)+6Sw&?6z_l;~fYT(HAOlvi zMT98<;B$Kc=m`#N=%ThE`Y+vo3$(A;<#Sc&GM{89lh@ogLcpWCbD z#iH3|VEtOXS=olDP#t$!iR>#UegqBc97sR0^<*2Oe*qKG_R{Bq7}o#*002ovPDHLk FV1l_2f5HF& literal 0 HcmV?d00001 From 65cc75d847003da606b25819626dfa2e9065661b Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Wed, 1 Jun 2022 00:34:10 +0200 Subject: [PATCH 06/30] Cnidarian progress --- Items/Weapons/Melee/Cnidarian.cs | 45 ++++++- Projectiles/Melee/Yoyos/CnidarianYoyo.cs | 147 ++++++++++++++++++++++- Utilities/PlayerUtils.cs | 59 +++++++++ 3 files changed, 242 insertions(+), 9 deletions(-) diff --git a/Items/Weapons/Melee/Cnidarian.cs b/Items/Weapons/Melee/Cnidarian.cs index 6a40706bd3..0005cba66b 100644 --- a/Items/Weapons/Melee/Cnidarian.cs +++ b/Items/Weapons/Melee/Cnidarian.cs @@ -5,6 +5,8 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using System.Linq; +using static Terraria.ModLoader.ModContent; namespace CalamityMod.Items.Weapons.Melee { @@ -48,6 +50,11 @@ namespace CalamityMod.Items.Weapons.Melee Item.value = Item.buyPrice(gold: 2); } + public override bool CanUseItem(Player player) + { + return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI && n.type == ProjectileType()); + } + public override void AddRecipes() { CreateRecipe(). @@ -56,8 +63,14 @@ namespace CalamityMod.Items.Weapons.Melee Register(); } + public override void HoldItem(Player player) + { + player.Calamity().mouseWorldListener = true; + } + + #region drawing stuff - public override void HoldItemFrame(Player player) + public void SetItemInHand(Player player, Rectangle heldItemFrame) { //Make the player face where they're aiming. if (Main.MouseWorld.X > player.Center.X) @@ -69,6 +82,12 @@ namespace CalamityMod.Items.Weapons.Melee player.ChangeDir(-1); } + CalamityUtils.CleanHoldStyle(player, player.compositeFrontArm.rotation + MathHelper.PiOver2, player.GetFrontHandPosition(player.compositeFrontArm.stretch, player.compositeFrontArm.rotation).Floor(), new Vector2(42, 34), new Vector2(-15, 11)); + } + + + public void SetPlayerArms(Player player) + { //Calculate the dirction in which the players arms should be pointing at. Vector2 playerToCursor = (Main.MouseWorld - player.Center).SafeNormalize(Vector2.UnitX); float armPointingDirection = (playerToCursor.ToRotation()); @@ -93,20 +112,36 @@ namespace CalamityMod.Items.Weapons.Melee player.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, armPointingDirection - MathHelper.PiOver2); } - public override void HoldStyle(Player player, Rectangle heldItemFrame) { + SetItemInHand(player, heldItemFrame); + } - player.itemLocation = player.MountedCenter + player.compositeFrontArm.rotation.ToRotationVector2() * 10f * player.direction; - player.itemRotation = player.compositeFrontArm.rotation + MathHelper.PiOver2 * player.direction; + public override void UseStyle(Player player, Rectangle heldItemFrame) + { + SetItemInHand(player, heldItemFrame); + } + public override void HoldItemFrame(Player player) + { + SetPlayerArms(player); + } + + public override void UseItemFrame(Player player) + { + SetPlayerArms(player); } public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) { Texture2D properSprite = ModContent.Request("CalamityMod/Items/Weapons/Melee/Cnidarian").Value; - spriteBatch.Draw(properSprite, position, null, drawColor, 0f, origin, scale, 0, 0); + //Scale the jellyfish sprite properly, since its larger than the fishing rod (Largest dimension of the jellyfish sprite : 52. Largest dimension of the fishing rod : 42) + float scaleRatio = 42 / 52f; + //Offset the jellyfish sprite properly, since the fishing rod is larger than the jellyfish (Jellyfish width : 28px, Fishing rod width : 42) + Vector2 positionOffset = new Vector2(21 - 14, 0) * scale; + + spriteBatch.Draw(properSprite, position + positionOffset, null, drawColor, 0f, origin, scale * scaleRatio, 0, 0); return false; } diff --git a/Projectiles/Melee/Yoyos/CnidarianYoyo.cs b/Projectiles/Melee/Yoyos/CnidarianYoyo.cs index 9c384e78da..b26510c580 100644 --- a/Projectiles/Melee/Yoyos/CnidarianYoyo.cs +++ b/Projectiles/Melee/Yoyos/CnidarianYoyo.cs @@ -1,14 +1,40 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using System.Collections.Generic; +using System.Linq; +using System; namespace CalamityMod.Projectiles.Melee.Yoyos { + public class VerletSimulatedSegment + { + public Vector2 position, oldPosition; + public bool locked; + + public VerletSimulatedSegment(Vector2 _position, bool _locked = false) + { + position = _position; + oldPosition = _position; + locked = _locked; + } + } + public class CnidarianYoyo : ModProjectile { + public const int SegmentCount = 10; + public const float SegmentDistance = 20; + public const int FadeoutTime = 20; + + internal PrimitiveTrail TrailRenderer; + + public List Segments; + public Player Owner => Main.player[Projectile.owner]; + public ref float Initialized => ref Projectile.ai[0]; + public override void SetStaticDefaults() { DisplayName.SetDefault("Cnidarian"); @@ -19,7 +45,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override void SetDefaults() { - Projectile.aiStyle = 99; + Projectile.aiStyle = -1; Projectile.width = 16; Projectile.height = 16; Projectile.scale = 1.15f; @@ -29,19 +55,132 @@ namespace CalamityMod.Projectiles.Melee.Yoyos Projectile.MaxUpdates = 2; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 20; + Projectile.ignoreWater = true; + Projectile.tileCollide = false; + } + + public void SetOrigin(Vector2 position) + { + Projectile.Center = position; + if ((Projectile.Center - Owner.Center).Length() > 380f) + Projectile.Center = Owner.Center + (Projectile.Center - Owner.Center).SafeNormalize(Vector2.One) * 380f; + } + + public void Initialize() + { + //Initialize the segments + SetOrigin(Owner.Calamity().mouseWorld); + + Segments = new List(SegmentCount); + for (int i = 0; i < SegmentCount; i++) + { + VerletSimulatedSegment segment = new VerletSimulatedSegment(Projectile.Center + Vector2.UnitY * SegmentDistance * i); + Segments.Add(segment); + } + + Segments[0].locked = true; + + foreach (VerletSimulatedSegment segment in Segments) + { + Particles.CritSpark particle = new Particles.CritSpark(segment.position, Vector2.Zero, Color.White, Color.Cyan, 1f, 10); + Particles.GeneralParticleHandler.SpawnParticle(particle); + } + + + Initialized = 1f; + return; } public override void AI() { + Projectile.velocity = Vector2.Zero; + + if (Initialized == 0f) + Initialize(); + + if (Owner.channel) + Projectile.timeLeft = FadeoutTime; + + SetOrigin(Projectile.Center.MoveTowards(Owner.Calamity().mouseWorld), 30f)); + + + SimulateSegments(); + CalamityGlobalProjectile.MagnetSphereHitscan(Projectile, 300f, 6f, 180f, 5, ModContent.ProjectileType(), 0.75); - if ((Projectile.position - Main.player[Projectile.owner].position).Length() > 3200f) //200 blocks + + if ((Projectile.Center - Owner.Center).Length() > 3200f) //200 blocks Projectile.Kill(); } + public void SimulateSegments() + { + Segments[0].oldPosition = Segments[0].position; + Segments[0].position = Projectile.Center; + + //https://youtu.be/PGk0rnyTa1U?t=400 we use verlet integration chains here + float movementLenght = Projectile.velocity.Length(); + foreach (VerletSimulatedSegment segment in Segments) + { + if (!segment.locked) + { + Vector2 positionBeforeUpdate = segment.position; + + segment.position += (segment.position - segment.oldPosition); // This adds conservation of energy to the segments. This makes it super bouncy and shouldnt be used but it's really funny + segment.position += Vector2.UnitY * 0.1f; //=> This adds gravity to the segments. + + segment.oldPosition = positionBeforeUpdate; + } + } + + for (int k = 0; k < 10; k++) + { + for (int j = 0; j < SegmentCount - 1; j++) + { + VerletSimulatedSegment pointA = Segments[j]; + VerletSimulatedSegment pointB = Segments[j + 1]; + Vector2 segmentCenter = (pointA.position + pointB.position) / 2f; + Vector2 segmentDirection = Utils.SafeNormalize(pointA.position - pointB.position, Vector2.UnitY); + + if (!pointA.locked) + pointA.position = segmentCenter + segmentDirection * SegmentDistance / 2f; + + if (!pointB.locked) + pointB.position = segmentCenter - segmentDirection * SegmentDistance / 2f; + + Segments[j] = pointA; + Segments[j + 1] = pointB; + } + } + } + + public float PrimWidthFunction(float completionRatio) + { + return 2f; + } + + public Color PrimColorFunction(float completionRatio) + { + Color startingColor = Color.Cyan * (Projectile.timeLeft / (float)FadeoutTime); + Color endColor = Color.DarkCyan * 0f; + return Color.Lerp(endColor, startingColor, (float)Math.Pow(completionRatio, 1.5D)) * 0.7f; + } + public override bool PreDraw(ref Color lightColor) { + if (TrailRenderer is null) + TrailRenderer = new PrimitiveTrail(PrimWidthFunction, PrimColorFunction); + + Vector2[] segmentPositions = Segments.Select(x => x.position).ToArray(); + + TrailRenderer.Draw(segmentPositions, -Main.screenPosition, 66); + + Texture2D tex = ModContent.Request(Texture).Value; - Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + + float rotation = (Segments[SegmentCount - 1].position - Segments[SegmentCount - 2].position).ToRotation() - MathHelper.PiOver2; + + + Main.EntitySpriteDraw(tex, Segments[SegmentCount - 1].position - Main.screenPosition, null, Projectile.GetAlpha(lightColor) * (Projectile.timeLeft / (float)FadeoutTime), rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); return false; } } diff --git a/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index 1be0f23266..db0761e8d3 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -8,6 +8,8 @@ using System.Linq; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework; using static Terraria.ModLoader.ModContent; namespace CalamityMod @@ -463,6 +465,63 @@ namespace CalamityMod } #endregion + #region Arms Control + /// + /// Properly sets the player's held item rotation and position by doing the annoying math for you, since vanilla decided to be wholly inconsistent about it! + /// This all assumes the player is facing right. All the flip stuff is automatically handled in here + /// + /// The player for which we set the hold style + /// The desired rotation of the item + /// The desired position of the item + /// The size of the item sprite (used in calculations) + /// The offset from the center of the sprite of the rotation origin + /// Should the angle get flipped with the player, or should it be rotated by 180 degrees + /// Should the item get displaced with the player's height during the walk anim? + public static void CleanHoldStyle(Player player, float desiredRotation, Vector2 desiredPosition, Vector2 spriteSize, Vector2? rotationOriginFromCenter = null, bool flipAngle = false, bool stepDisplace = true) + { + //Since Vector2.Zero isn't a compile-time constant, we can't use it directly as the default parameter + if (rotationOriginFromCenter == null) + rotationOriginFromCenter = Vector2.Zero; + + Vector2 origin = rotationOriginFromCenter.Value; + //Flip the origin's X position, since the sprite will be flipped if the player faces left. + origin.X *= player.direction; + + player.itemRotation = desiredRotation; + + if (flipAngle) + player.itemRotation *= player.direction; + else if (player.direction < 0) + player.itemRotation += MathHelper.Pi; + + //This can anchors the item to rotate around the middle left of its sprite + //Vector2 consistentLeftAnchor = (player.itemRotation).ToRotationVector2() * -10f * player.direction; + + //This anchors the item to rotate around the center of its sprite. + Vector2 consistentCenterAnchor = player.itemRotation.ToRotationVector2() * (spriteSize.X / -2f - 10f) * player.direction; + + //This shifts the item so it rotates around the set origin instead + Vector2 consistentAnchor = consistentCenterAnchor - origin.RotatedBy(player.itemRotation); + + //The item is just offset by 20 and 18 pixels for no fucking reason. Doesn't even get flipped with the player sprite + Vector2 stupidOffset = new Vector2(-20, -18); + + Vector2 finalPosition = desiredPosition + stupidOffset + consistentAnchor; + + //Account for the players extra height when stepping + if (stepDisplace) + { + int frame = player.bodyFrame.Y / player.bodyFrame.Height; + if ((frame > 6 && frame < 10) || (frame > 13 && frame < 17)) + { + finalPosition -= Vector2.UnitY * 2f; + } + } + + player.itemLocation = finalPosition; + } + #endregion + /// /// Makes the given player send the given packet to all appropriate receivers.
/// If server is false, the packet is sent only to the multiplayer host.
From 852a26a252dca5f7f24641a3bff22d6ab2655445 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Wed, 1 Jun 2022 06:48:19 +0200 Subject: [PATCH 07/30] Cnidaria almost done (Minus polish) --- Items/Weapons/Melee/Cnidarian.cs | 13 +- Projectiles/CalamityGlobalProjectile.cs | 2 +- ...yo.cs => CnidarianJellyfishOnTheString.cs} | 123 ++++++++++++++++-- ....png => CnidarianJellyfishOnTheString.png} | Bin Projectiles/Melee/CnidarianSpark.cs | 70 ++++++++++ 5 files changed, 186 insertions(+), 22 deletions(-) rename Projectiles/Melee/{Yoyos/CnidarianYoyo.cs => CnidarianJellyfishOnTheString.cs} (51%) rename Projectiles/Melee/{Yoyos/CnidarianYoyo.png => CnidarianJellyfishOnTheString.png} (100%) create mode 100644 Projectiles/Melee/CnidarianSpark.cs diff --git a/Items/Weapons/Melee/Cnidarian.cs b/Items/Weapons/Melee/Cnidarian.cs index 0005cba66b..238a62cff8 100644 --- a/Items/Weapons/Melee/Cnidarian.cs +++ b/Items/Weapons/Melee/Cnidarian.cs @@ -1,5 +1,5 @@ using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Melee.Yoyos; +using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -17,11 +17,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Cnidarian"); - Tooltip.SetDefault("Fires a seashell when enemies are near\n" + - "A very agile yoyo"); - ItemID.Sets.Yoyo[Item.type] = true; - ItemID.Sets.GamepadExtraRange[Item.type] = 15; - ItemID.Sets.GamepadSmartQuickReach[Item.type] = true; + Tooltip.SetDefault("Fishes up an electric jellyfish\n" + + "Periodically sends out sparks to electrocute nearby enemies."); SacrificeTotal = 1; } @@ -43,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee //Item.noUseGraphic = true; Item.noMelee = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; Item.rare = ItemRarityID.Green; @@ -52,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Melee public override bool CanUseItem(Player player) { - return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI && n.type == ProjectileType()); + return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI && n.type == ProjectileType()); } public override void AddRecipes() diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index d69903fb51..c244b9e250 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -2895,7 +2895,7 @@ namespace CalamityMod.Projectiles { int projectile2 = Projectile.NewProjectile(projectile.GetSource_FromThis(), spawnPos, velocity, spawnedProjectile, (int)(projectile.damage * damageMult), projectile.knockBack, projectile.owner, 0f, 0f); - if (projectile.type == ProjectileType() || projectile.type == ProjectileType() || + if (projectile.type == ProjectileType() || projectile.type == ProjectileType() || projectile.type == ProjectileType()) if (projectile2.WithinBounds(Main.maxProjectiles)) Main.projectile[projectile2].Calamity().forceMelee = true; diff --git a/Projectiles/Melee/Yoyos/CnidarianYoyo.cs b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs similarity index 51% rename from Projectiles/Melee/Yoyos/CnidarianYoyo.cs rename to Projectiles/Melee/CnidarianJellyfishOnTheString.cs index b26510c580..dd1ada2e8c 100644 --- a/Projectiles/Melee/Yoyos/CnidarianYoyo.cs +++ b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs @@ -7,8 +7,11 @@ using Terraria.ModLoader; using System.Collections.Generic; using System.Linq; using System; +using static Terraria.ModLoader.ModContent; +using CalamityMod.Particles; +using Terraria.Audio; -namespace CalamityMod.Projectiles.Melee.Yoyos +namespace CalamityMod.Projectiles.Melee { public class VerletSimulatedSegment { @@ -23,17 +26,23 @@ namespace CalamityMod.Projectiles.Melee.Yoyos } } - public class CnidarianYoyo : ModProjectile + public class CnidarianJellyfishOnTheString : ModProjectile { public const int SegmentCount = 10; public const float SegmentDistance = 20; - public const int FadeoutTime = 20; + public static int FadeoutTime = 20; + public static int ElectrifyTimer = 180; + public static float ZapDamageMultiplier = 0.75f; + public static readonly SoundStyle ZapSound = SoundID.Item94 with { Volume = SoundID.Item94.Volume * 0.5f }; internal PrimitiveTrail TrailRenderer; public List Segments; public Player Owner => Main.player[Projectile.owner]; public ref float Initialized => ref Projectile.ai[0]; + public ref float Timer => ref Projectile.ai[1]; + + public Vector2 CnidarianPos => Segments[SegmentCount - 1].position; public override void SetStaticDefaults() { @@ -66,6 +75,11 @@ namespace CalamityMod.Projectiles.Melee.Yoyos Projectile.Center = Owner.Center + (Projectile.Center - Owner.Center).SafeNormalize(Vector2.One) * 380f; } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + return Collision.CheckAABBvAABBCollision(targetHitbox.TopLeft(), targetHitbox.Size(), CnidarianPos - Projectile.Hitbox.Size() / 2f, Projectile.Hitbox.Size()); + } + public void Initialize() { //Initialize the segments @@ -80,10 +94,12 @@ namespace CalamityMod.Projectiles.Melee.Yoyos Segments[0].locked = true; + int j = 0; foreach (VerletSimulatedSegment segment in Segments) { - Particles.CritSpark particle = new Particles.CritSpark(segment.position, Vector2.Zero, Color.White, Color.Cyan, 1f, 10); - Particles.GeneralParticleHandler.SpawnParticle(particle); + CritSpark particle = new CritSpark(segment.position, Vector2.UnitY * (-1f * j / (float)SegmentCount), Color.White, Color.Cyan, 1f, 10); + GeneralParticleHandler.SpawnParticle(particle); + j++; } @@ -101,15 +117,79 @@ namespace CalamityMod.Projectiles.Melee.Yoyos if (Owner.channel) Projectile.timeLeft = FadeoutTime; - SetOrigin(Projectile.Center.MoveTowards(Owner.Calamity().mouseWorld), 30f)); - + SetOrigin(Projectile.Center.MoveTowards(Owner.Calamity().mouseWorld, 10f)); SimulateSegments(); - CalamityGlobalProjectile.MagnetSphereHitscan(Projectile, 300f, 6f, 180f, 5, ModContent.ProjectileType(), 0.75); + Electrify(3, 300f); + if ((Projectile.Center - Owner.Center).Length() > 3200f) //200 blocks Projectile.Kill(); + + Timer++; + } + + public void Electrify(int maxTargets, float targettingDistance) + { + float timeAfterZap = MathHelper.Clamp(20 - (Timer - 20f) % ElectrifyTimer, 0, 20); + float postZapTime = 1 - timeAfterZap / 20f; + + Lighting.AddLight(CnidarianPos, Color.DeepSkyBlue.ToVector3() * (1 - postZapTime)); + + if (Timer % ElectrifyTimer == ElectrifyTimer - 1) + { + + SoundEngine.PlaySound(ZapSound, CnidarianPos); + int maxDust = 2 + Main.rand.Next(3); + for (int i = 0; i < maxDust; i++) + { + Dust.NewDustDirect(Projectile.Center, 0, 0, 226, -3f + Main.rand.NextFloat(0, 6f), -5f, Scale: Main.rand.NextFloat(0.2f, 1f)); + + Dust.NewDustDirect(CnidarianPos, 0, 0, 226, -4f + Main.rand.NextFloat(0, 8f), -3f, Scale: Main.rand.NextFloat(0.2f, 1f)); + } + + int[] targetArray = new int[maxTargets]; + int targetsAquired = 0; + + for (int i = 0; i < Main.maxNPCs; i++) + { + if (targetsAquired == maxTargets) + break; + + if (Main.npc[i].CanBeChasedBy(Projectile)) + { + if ((CnidarianPos - Main.npc[i].Center).Length() < targettingDistance) + { + targetArray[targetsAquired] = i; + targetsAquired++; + } + } + } + + // If there is anything to actually shoot at, pick targets at random and fire. + if (targetsAquired > 0) + { + Vector2 velocity; + + for (int i = 0; i < targetsAquired; i++) + { + velocity = (Main.npc[targetArray[i]].Center - CnidarianPos).SafeNormalize(Vector2.Zero) * 10f; + + for (int j = 0; j < 3; j++) + { + Color bloomColor = Main.rand.NextBool() ? (Main.rand.NextBool() ? Color.Gold : Color.Cyan) : Color.SpringGreen; + ElectricSpark spark = new ElectricSpark(CnidarianPos, velocity.RotatedByRandom(MathHelper.PiOver2) * Main.rand.NextFloat(0.2f, 1.3f), Color.Gold, bloomColor, 0.5f + Main.rand.NextFloat(0.5f), 30, bloomScale: 2) ; + GeneralParticleHandler.SpawnParticle(spark); + } + + if (Projectile.owner == Main.myPlayer) + { + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), CnidarianPos, velocity, ProjectileType(), (int)(Projectile.damage * ZapDamageMultiplier), Projectile.knockBack, Projectile.owner, targetArray[i], 0f); + } + } + } + } } public void SimulateSegments() @@ -118,7 +198,6 @@ namespace CalamityMod.Projectiles.Melee.Yoyos Segments[0].position = Projectile.Center; //https://youtu.be/PGk0rnyTa1U?t=400 we use verlet integration chains here - float movementLenght = Projectile.velocity.Length(); foreach (VerletSimulatedSegment segment in Segments) { if (!segment.locked) @@ -126,7 +205,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos Vector2 positionBeforeUpdate = segment.position; segment.position += (segment.position - segment.oldPosition); // This adds conservation of energy to the segments. This makes it super bouncy and shouldnt be used but it's really funny - segment.position += Vector2.UnitY * 0.1f; //=> This adds gravity to the segments. + segment.position += Vector2.UnitY * 0.3f; //=> This adds gravity to the segments. segment.oldPosition = positionBeforeUpdate; } @@ -155,12 +234,15 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public float PrimWidthFunction(float completionRatio) { - return 2f; + return 1.6f; } public Color PrimColorFunction(float completionRatio) { - Color startingColor = Color.Cyan * (Projectile.timeLeft / (float)FadeoutTime); + float timeAfterZap = MathHelper.Clamp( 20 - (Timer - 5 - completionRatio * 12f) % ElectrifyTimer, 0, 20); + float postZapTime = 1 - timeAfterZap / 20f; + + Color startingColor = Color.Lerp(Color.Cyan, Color.Maroon, (float)Math.Pow(postZapTime, 2f)) * (Projectile.timeLeft / (float)FadeoutTime); Color endColor = Color.DarkCyan * 0f; return Color.Lerp(endColor, startingColor, (float)Math.Pow(completionRatio, 1.5D)) * 0.7f; } @@ -175,12 +257,27 @@ namespace CalamityMod.Projectiles.Melee.Yoyos TrailRenderer.Draw(segmentPositions, -Main.screenPosition, 66); - Texture2D tex = ModContent.Request(Texture).Value; + float timeAfterZap = MathHelper.Clamp(20 - (Timer - 20f) % ElectrifyTimer, 0, 20); + float postZapTime = 1 - timeAfterZap / 20f; + + Texture2D tex = Request(Texture).Value; float rotation = (Segments[SegmentCount - 1].position - Segments[SegmentCount - 2].position).ToRotation() - MathHelper.PiOver2; + lightColor = Lighting.GetColor((int)CnidarianPos.X / 16, (int)CnidarianPos.Y / 16); Main.EntitySpriteDraw(tex, Segments[SegmentCount - 1].position - Main.screenPosition, null, Projectile.GetAlpha(lightColor) * (Projectile.timeLeft / (float)FadeoutTime), rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + + Main.EntitySpriteDraw(tex, Segments[SegmentCount - 1].position - Main.screenPosition, null, Color.DeepSkyBlue * (1 - postZapTime), rotation, tex.Size() / 2f, Projectile.scale + postZapTime * 1.4f, 0f, 0); + + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + + + return false; } } diff --git a/Projectiles/Melee/Yoyos/CnidarianYoyo.png b/Projectiles/Melee/CnidarianJellyfishOnTheString.png similarity index 100% rename from Projectiles/Melee/Yoyos/CnidarianYoyo.png rename to Projectiles/Melee/CnidarianJellyfishOnTheString.png diff --git a/Projectiles/Melee/CnidarianSpark.cs b/Projectiles/Melee/CnidarianSpark.cs new file mode 100644 index 0000000000..bbb3b5d561 --- /dev/null +++ b/Projectiles/Melee/CnidarianSpark.cs @@ -0,0 +1,70 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; +using CalamityMod.Particles; + +namespace CalamityMod.Projectiles.Melee +{ + public class CnidarianSpark : ModProjectile + { + public ref float Target => ref Projectile.ai[0]; + public Vector2 initialVelocity; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Spark"); + } + + public override void SetDefaults() + { + Projectile.width = 6; + Projectile.height = 6; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.DamageType = DamageClass.Melee; + Projectile.penetrate = 1; + Projectile.timeLeft = 15; + } + + + public override bool? CanHitNPC(NPC target) + { + if (Main.npc[(int)Target] != target) + return false; + + return base.CanHitNPC(target); + } + + public override void AI() + { + if (Projectile.velocity != Vector2.Zero) + initialVelocity = Projectile.velocity; + + Projectile.velocity = Vector2.Zero; + + if (Main.npc[(int)Target] != null) + { + Projectile.Center = Vector2.Lerp(Projectile.Center, Main.npc[(int)Target].Center, 0.4f); + Projectile.rotation = (Projectile.Center - Main.npc[(int)Target].Center).ToRotation() - MathHelper.PiOver2; + } + + Color bloomColor = Main.rand.NextBool() ? (Main.rand.NextBool() ? Color.Gold : Color.Cyan) : Color.SpringGreen; + CritSpark particle = new CritSpark(Projectile.Center, (Projectile.rotation + MathHelper.PiOver2).ToRotationVector2() * 4f, Color.LightSkyBlue, bloomColor, 0.8f, 10, bloomScale: 2f); + GeneralParticleHandler.SpawnParticle(particle); + } + + public override void Kill(int timeLeft) + { + SoundEngine.PlaySound(CnidarianJellyfishOnTheString.ZapSound, Projectile.Center); + + for (int i = 0; i < 4; i++) + { + Color bloomColor = Main.rand.NextBool() ? (Main.rand.NextBool() ? Color.Gold : Color.Cyan) : Color.SpringGreen; + CritSpark particle = new CritSpark(Projectile.Center, initialVelocity * i, Color.LightSkyBlue, bloomColor, 0.8f, 10, bloomScale: 2f); + GeneralParticleHandler.SpawnParticle(particle); + } + } + } +} From ed649ef26cbe8cd2e36a9c75bff9656f2ec5d864 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Wed, 1 Jun 2022 20:01:27 +0200 Subject: [PATCH 08/30] Cnidarian squishes --- .../Melee/CnidarianJellyfishOnTheString.cs | 58 +++++++++++++++---- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs index dd1ada2e8c..34b368cc76 100644 --- a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs +++ b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs @@ -10,6 +10,8 @@ using System; using static Terraria.ModLoader.ModContent; using CalamityMod.Particles; using Terraria.Audio; +using static CalamityMod.CalamityUtils; +using System.IO; namespace CalamityMod.Projectiles.Melee { @@ -41,8 +43,8 @@ namespace CalamityMod.Projectiles.Melee public Player Owner => Main.player[Projectile.owner]; public ref float Initialized => ref Projectile.ai[0]; public ref float Timer => ref Projectile.ai[1]; - public Vector2 CnidarianPos => Segments[SegmentCount - 1].position; + public float TotalChainLength => (SegmentCount - 1) * SegmentCount; public override void SetStaticDefaults() { @@ -80,6 +82,11 @@ namespace CalamityMod.Projectiles.Melee return Collision.CheckAABBvAABBCollision(targetHitbox.TopLeft(), targetHitbox.Size(), CnidarianPos - Projectile.Hitbox.Size() / 2f, Projectile.Hitbox.Size()); } + public override bool? CanCutTiles() + { + return false; + } + public void Initialize() { //Initialize the segments @@ -128,6 +135,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.Kill(); Timer++; + CentrifugalForce -= 0.2f; } public void Electrify(int maxTargets, float targettingDistance) @@ -230,8 +238,17 @@ namespace CalamityMod.Projectiles.Melee Segments[j + 1] = pointB; } } + + Projectile.netUpdate = true; + Projectile.netSpam = 0; } + //Swing animation keys + public CurveSegment anticipation = new CurveSegment(EasingType.PolyInOut, 0f, 1f, 0.35f, 3); + public CurveSegment contraction = new CurveSegment(EasingType.PolyOut, 0.5f, 1.35f, -0.85f, 5); + public CurveSegment retract = new CurveSegment(EasingType.SineInOut, 0.7f, 0.5f, 0.5f); + internal float StretchRatio() => PiecewiseAnimation(MathHelper.Clamp((Timer + 45) % ElectrifyTimer, 0, 80) / 80f, new CurveSegment[] { anticipation, contraction, retract }); + public float PrimWidthFunction(float completionRatio) { return 1.6f; @@ -257,28 +274,45 @@ namespace CalamityMod.Projectiles.Melee TrailRenderer.Draw(segmentPositions, -Main.screenPosition, 66); - float timeAfterZap = MathHelper.Clamp(20 - (Timer - 20f) % ElectrifyTimer, 0, 20); - float postZapTime = 1 - timeAfterZap / 20f; - Texture2D tex = Request(Texture).Value; - float rotation = (Segments[SegmentCount - 1].position - Segments[SegmentCount - 2].position).ToRotation() - MathHelper.PiOver2; + Vector2 squish = new Vector2(2 - StretchRatio(), StretchRatio()); + float centrifugalForce = Math.Clamp((Segments[SegmentCount - 1].position - Segments[SegmentCount - 1].oldPosition).Length() * 2f - 10f, 0f, 130f) / 150f; + Vector2 centrifugalSquish = new Vector2(1 - centrifugalForce * 0.66f, 1 + centrifugalForce * 2.2f); + squish *= centrifugalSquish; + + float rotation = (Segments[SegmentCount - 1].position - Segments[SegmentCount - 2].position).ToRotation() - MathHelper.PiOver2; lightColor = Lighting.GetColor((int)CnidarianPos.X / 16, (int)CnidarianPos.Y / 16); - Main.EntitySpriteDraw(tex, Segments[SegmentCount - 1].position - Main.screenPosition, null, Projectile.GetAlpha(lightColor) * (Projectile.timeLeft / (float)FadeoutTime), rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); - Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + Main.EntitySpriteDraw(tex, Segments[SegmentCount - 1].position - Main.screenPosition, null, Projectile.GetAlpha(lightColor) * (Projectile.timeLeft / (float)FadeoutTime), rotation, tex.Size() / 2f, Projectile.scale * squish, SpriteEffects.None, 0); - Main.EntitySpriteDraw(tex, Segments[SegmentCount - 1].position - Main.screenPosition, null, Color.DeepSkyBlue * (1 - postZapTime), rotation, tex.Size() / 2f, Projectile.scale + postZapTime * 1.4f, 0f, 0); - - Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + //Add a blue glowing overlay quickly following a zap + float timeAfterZap = MathHelper.Clamp(20 - (Timer - 15f) % ElectrifyTimer, 0, 20); + float postZapTime = 1 - timeAfterZap / 20f; + if (postZapTime < 1) + { + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + Main.EntitySpriteDraw(tex, Segments[SegmentCount - 1].position - Main.screenPosition, null, Color.DeepSkyBlue * (1 - postZapTime), rotation, tex.Size() / 2f, (Projectile.scale + postZapTime * 1.4f) * squish, 0f, 0); + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + } return false; } + + public override void SendExtraAI(BinaryWriter writer) + { + writer.WriteVector2(Segments[SegmentCount - 1].position); + } + + public override void ReceiveExtraAI(BinaryReader reader) + { + Segments[SegmentCount - 1].position = reader.ReadVector2(); + } } } From 1c27d769630c18e168b0c39e95d2fbbe434f55d8 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Wed, 1 Jun 2022 20:42:14 +0200 Subject: [PATCH 09/30] Slapslapslapslapslap --- Items/Weapons/Melee/Cnidarian.cs | 2 -- .../Melee/CnidarianJellyfishOnTheString.cs | 17 ++++++++++++++--- Sounds/Custom/WetSlap1.ogg | Bin 0 -> 16167 bytes Sounds/Custom/WetSlap2.ogg | Bin 0 -> 16154 bytes Sounds/Custom/WetSlap3.ogg | Bin 0 -> 16422 bytes Sounds/Custom/WetSlap4.ogg | Bin 0 -> 17069 bytes 6 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 Sounds/Custom/WetSlap1.ogg create mode 100644 Sounds/Custom/WetSlap2.ogg create mode 100644 Sounds/Custom/WetSlap3.ogg create mode 100644 Sounds/Custom/WetSlap4.ogg diff --git a/Items/Weapons/Melee/Cnidarian.cs b/Items/Weapons/Melee/Cnidarian.cs index 238a62cff8..5340450ce7 100644 --- a/Items/Weapons/Melee/Cnidarian.cs +++ b/Items/Weapons/Melee/Cnidarian.cs @@ -150,7 +150,5 @@ namespace CalamityMod.Items.Weapons.Melee return false; } #endregion - - } } diff --git a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs index 34b368cc76..0ba6a93377 100644 --- a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs +++ b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs @@ -35,7 +35,10 @@ namespace CalamityMod.Projectiles.Melee public static int FadeoutTime = 20; public static int ElectrifyTimer = 180; public static float ZapDamageMultiplier = 0.75f; + + //Sounds public static readonly SoundStyle ZapSound = SoundID.Item94 with { Volume = SoundID.Item94.Volume * 0.5f }; + public static readonly SoundStyle SlapSound = new SoundStyle( "CalamityMod/Sounds/Custom/WetSlap", 4 ); internal PrimitiveTrail TrailRenderer; @@ -57,8 +60,8 @@ namespace CalamityMod.Projectiles.Melee public override void SetDefaults() { Projectile.aiStyle = -1; - Projectile.width = 16; - Projectile.height = 16; + Projectile.width = 28; + Projectile.height = 28; Projectile.scale = 1.15f; Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; @@ -135,7 +138,6 @@ namespace CalamityMod.Projectiles.Melee Projectile.Kill(); Timer++; - CentrifugalForce -= 0.2f; } public void Electrify(int maxTargets, float targettingDistance) @@ -243,6 +245,15 @@ namespace CalamityMod.Projectiles.Melee Projectile.netSpam = 0; } + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + //Play a wet slap sound if you hit an enemy fast enough + float centrifugalForce = Math.Clamp((Segments[SegmentCount - 1].position - Segments[SegmentCount - 1].oldPosition).Length() * 2f, 0f, 130f) / 130f; + if (centrifugalForce > 0.2f) + SoundEngine.PlaySound(SlapSound with { Volume = SlapSound.Volume * centrifugalForce + 0.8f}, target.position); + + } + //Swing animation keys public CurveSegment anticipation = new CurveSegment(EasingType.PolyInOut, 0f, 1f, 0.35f, 3); public CurveSegment contraction = new CurveSegment(EasingType.PolyOut, 0.5f, 1.35f, -0.85f, 5); diff --git a/Sounds/Custom/WetSlap1.ogg b/Sounds/Custom/WetSlap1.ogg new file mode 100644 index 0000000000000000000000000000000000000000..576d115cdbd858b07c23cc2ba710eb92c650e231 GIT binary patch literal 16167 zcmeIZcRZWl`!Ie7A?901QnQV{qHjSIT`^))D-l6Uj7rd|)!iDU5u;XBm6jMKM5Tmk zt5p?Mt5#4tbf~uIMq3@vt?g(0KELnl`981L_x1eu94B|qeP*tCuIoC-j@`Sx03qN{ zN;m#pFh6xF0kR&Fus4QEi(RV{vaSEqW#8}4S0FpqM*cIcjf8-2l^Du-xr(3vk#dE9 zPh|@BAk(75H|~hpjgF*INxv3AJEDz^jE#&o8JVJWJwrp{gK2wqqX~NwXfb>DM1}5& z(-Q&5p}>#V-mtj+K{26QU4jzAaON8~nQg=x8OeezQ9<;*F}tWSL3={BMn#(%|Fu>} z+XL1mgvP|u_U_qgqy$z4?~RHMilb2@Lx1;;-Aaqy8?`n70{#6H^{j135C8`D#k!#R zi9{igpjw!RCxtU)?i!nWBEW|sPw1f9lH&;jO8PwB)N&7-U`~r9fwN!-X+Jnka zOH%+JCsks4)Gn69Na)v;B}*9hpi^9oUsdM2S-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DSt_#G2$BjXo1osCa;8u$n zC^>>> ze1s+c%ACaY`;VscF;DYd)HJtjG}2w&^~(G8WPKjZaqqbK+NS%DC*t26Y1wdM;A&pO zmT!(14({vtIlsjyN*c30%KBa2^%K`Qs<#dVe+!zkeMhK@7qu`K{;KzZXpL#y_q-qL z!!{q>5UUY910KXU>z|qjrdCFYFH2W&Elxj+@p2e9@EB*^>O>hPJ%!LHCC8(J+q)LE6c` zY%2mTmRSbKT zl)(NSUa9h@yLWbn&BWRuYIO~hkqO99@BsPaD?^|RIUS3xNls;+4o7?w!)atnG4*t! zXeM|jc({EVlf@LD(8bh8Rf8uY1;Q^jl!-1Nf&{FvR1l7>?Lt1Q? zCDXx#4O3*~GRYuHMK5qTQ5DT8D**QZy>F8ElXJV?h8thPpMhPrjaONHoJ{LPSical&tF|hR7zr@<6c tCKpD7-c)OT@e*sQx+gShr literal 0 HcmV?d00001 From ee6f4c81dd8bf52d35c377ff049e89dcb5eaf1f1 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Thu, 2 Jun 2022 02:53:40 +0200 Subject: [PATCH 10/30] Reed blowgun Pistol shrimps --- Items/Weapons/Melee/Cnidarian.cs | 5 +- Items/Weapons/Ranged/ReedBlowgun.cs | 89 ++++++++-- Particles/Bubble.png | Bin 0 -> 226 bytes Particles/DirectionalPulseRing.cs | 55 +++++++ Particles/GenericBubbleParticle.cs | 25 +++ .../Melee/CnidarianJellyfishOnTheString.cs | 2 +- Projectiles/Ranged/PressurizedBubbleStream.cs | 152 ++++++++++++++++++ Projectiles/Ranged/SandWater.cs | 65 -------- Sounds/Custom/PistolShrimpBubbleBurst.ogg | Bin 0 -> 11183 bytes 9 files changed, 315 insertions(+), 78 deletions(-) create mode 100644 Particles/Bubble.png create mode 100644 Particles/DirectionalPulseRing.cs create mode 100644 Particles/GenericBubbleParticle.cs create mode 100644 Projectiles/Ranged/PressurizedBubbleStream.cs delete mode 100644 Projectiles/Ranged/SandWater.cs create mode 100644 Sounds/Custom/PistolShrimpBubbleBurst.ogg diff --git a/Items/Weapons/Melee/Cnidarian.cs b/Items/Weapons/Melee/Cnidarian.cs index 5340450ce7..92d09cdcae 100644 --- a/Items/Weapons/Melee/Cnidarian.cs +++ b/Items/Weapons/Melee/Cnidarian.cs @@ -19,6 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee DisplayName.SetDefault("Cnidarian"); Tooltip.SetDefault("Fishes up an electric jellyfish\n" + "Periodically sends out sparks to electrocute nearby enemies."); + //Tooltip could include a lore line about electric attributes that are shared in sunken sealife SacrificeTotal = 1; } @@ -70,7 +71,7 @@ namespace CalamityMod.Items.Weapons.Melee public void SetItemInHand(Player player, Rectangle heldItemFrame) { //Make the player face where they're aiming. - if (Main.MouseWorld.X > player.Center.X) + if (player.Calamity().mouseWorld.X > player.Center.X) { player.ChangeDir(1); } @@ -86,7 +87,7 @@ namespace CalamityMod.Items.Weapons.Melee public void SetPlayerArms(Player player) { //Calculate the dirction in which the players arms should be pointing at. - Vector2 playerToCursor = (Main.MouseWorld - player.Center).SafeNormalize(Vector2.UnitX); + Vector2 playerToCursor = (player.Calamity().mouseWorld - player.Center).SafeNormalize(Vector2.UnitX); float armPointingDirection = (playerToCursor.ToRotation()); diff --git a/Items/Weapons/Ranged/ReedBlowgun.cs b/Items/Weapons/Ranged/ReedBlowgun.cs index cdf36a6233..106e0f162a 100644 --- a/Items/Weapons/Ranged/ReedBlowgun.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -5,15 +5,18 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.Ranged { public class ReedBlowgun : ModItem { + public static readonly SoundStyle BubbleBurstSound = new ("CalamityMod/Sounds/Custom/PistolShrimpBubbleBurst") { PitchVariance = 0.15f, Volume = 0.2f}; + public override void SetStaticDefaults() { DisplayName.SetDefault("Reed Blowgun"); - Tooltip.SetDefault("Fires slow-moving water blasts"); + Tooltip.SetDefault("Fires a high-pressure stream of bubbles"); SacrificeTotal = 1; } @@ -26,24 +29,90 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useTime = 25; Item.useAnimation = 25; Item.useStyle = ItemUseStyleID.Shoot; + Item.holdStyle = 16; Item.noMelee = true; - Item.knockBack = 2.5f; + Item.knockBack = 13.5f; Item.value = Item.buyPrice(0, 2, 0, 0); Item.rare = ItemRarityID.Green; - Item.UseSound = SoundID.Item5; + Item.UseSound = null; Item.autoReuse = true; - Item.shoot = ProjectileID.PurificationPowder; + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; - Item.useAmmo = AmmoID.Arrow; Item.Calamity().canFirePointBlankShots = true; } - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) + public override void HoldItem(Player player) { - float SpeedX = velocity.X + (float)Main.rand.Next(-30, 31) * 0.05f; - float SpeedY = velocity.Y + (float)Main.rand.Next(-30, 31) * 0.05f; - Projectile.NewProjectile(source, position.X, position.Y, SpeedX * 0.5f, SpeedY * 0.5f, ModContent.ProjectileType(), (int)(damage * 0.4), 0f, player.whoAmI); - return true; + player.Calamity().mouseWorldListener = true; + } + + public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback) + { + velocity = velocity.RotatedByRandom(0.01f); + } + + public void SetItemInHand(Player player, Rectangle heldItemFrame) + { + //Make the player face where they're aiming. + if (Main.MouseWorld.X > player.Center.X) + { + player.ChangeDir(1); + } + else + { + player.ChangeDir(-1); + } + + float blowpipeRotation = player.compositeBackArm.rotation + MathHelper.PiOver2 + player.direction * MathHelper.PiOver4 / 3f; + + Vector2 blowpipePosition = player.GetBackHandPosition(player.compositeBackArm.stretch, player.compositeBackArm.rotation).Floor() + Vector2.UnitY * 7f; + if (player.direction > 0) + blowpipePosition += Vector2.UnitX * -9f; + + CalamityUtils.CleanHoldStyle(player, blowpipeRotation, blowpipePosition, new Vector2(50, 18), new Vector2(-17, 6)); + } + + + public void SetPlayerArms(Player player, bool frontArm = false) + { + //Make the player face where they're aiming. + if (player.Calamity().mouseWorld.X > player.Center.X) + { + player.ChangeDir(1); + } + else + { + player.ChangeDir(-1); + } + + //Calculate the dirction in which the players arms should be pointing at. + Vector2 playerToCursor = (player.Calamity().mouseWorld - player.Center).SafeNormalize(Vector2.UnitX); + float pointingDirection = (playerToCursor.ToRotation()); + + if (frontArm) + player.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, pointingDirection - MathHelper.PiOver2); + player.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, pointingDirection - MathHelper.PiOver2); + player.headRotation = pointingDirection; + } + + public override void HoldStyle(Player player, Rectangle heldItemFrame) + { + SetItemInHand(player, heldItemFrame); + } + + public override void UseStyle(Player player, Rectangle heldItemFrame) + { + SetItemInHand(player, heldItemFrame); + } + + public override void HoldItemFrame(Player player) + { + SetPlayerArms(player); + } + + public override void UseItemFrame(Player player) + { + SetPlayerArms(player, true); } public override void AddRecipes() diff --git a/Particles/Bubble.png b/Particles/Bubble.png new file mode 100644 index 0000000000000000000000000000000000000000..b804a98405008d3e58b297bb975d3a48d237f2bd GIT binary patch literal 226 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc3?z4jzqJQa3dtTpz6=aiY77hwEes65fIF@Ck7R(vr$X8Vx@(*ZgnY`~Uvi|3L8Tq|r>E z1ba!4Uoe9)NaX+F&@d#`C_w5n`o^b0z>^E0dV^-8yiBEQ^kRm8AdxGDb7n_<3PJj0s9OpL`%$J2m@ OGI+ZBxvX "CalamityMod/Particles/HollowCircleHardEdge"; + public override bool UseAdditiveBlend => true; + public override bool SetLifetime => true; + public override bool UseCustomDraw => true; + + private float OriginalScale; + private float FinalScale; + private float opacity; + private Vector2 Squish; + private Color BaseColor; + + public DirectionalPulseRing(Vector2 position, Vector2 velocity, Color color, Vector2 squish, float rotation, float originalScale, float finalScale, int lifeTime) + { + Position = position; + Velocity = velocity; + BaseColor = color; + OriginalScale = originalScale; + FinalScale = finalScale; + Scale = originalScale; + Lifetime = lifeTime; + Squish = squish; + Rotation = rotation; + } + + public override void Update() + { + float pulseProgress = PiecewiseAnimation(LifetimeCompletion, new CurveSegment[] { new CurveSegment(EasingType.PolyOut, 0f, 0f, 1f, 4) }); + Scale = MathHelper.Lerp(OriginalScale, FinalScale, pulseProgress); + + opacity = (float)Math.Sin(MathHelper.PiOver2 + LifetimeCompletion * MathHelper.PiOver2); + + Color = BaseColor * opacity; + Lighting.AddLight(Position, Color.R / 255f, Color.G / 255f, Color.B / 255f); + Velocity *= 0.95f; + } + + public override void CustomDraw(SpriteBatch spriteBatch) + { + Texture2D tex = ModContent.Request(Texture).Value; + spriteBatch.Draw(tex, Position - Main.screenPosition, null, Color * opacity, Rotation, tex.Size() / 2f, Scale * Squish, SpriteEffects.None, 0); + } + + } +} diff --git a/Particles/GenericBubbleParticle.cs b/Particles/GenericBubbleParticle.cs new file mode 100644 index 0000000000..b20f7cafa4 --- /dev/null +++ b/Particles/GenericBubbleParticle.cs @@ -0,0 +1,25 @@ +using Microsoft.Xna.Framework; +using Terraria; + + +namespace CalamityMod.Particles +{ + //This is mostly so i can easily get it to draw over the reed blowgun. + public class GenericBubbleParticle : Particle + { + public override string Texture => "CalamityMod/Particles/Bubble"; + public override bool UseHalfTransparency => true; + public override bool SetLifetime => true; + public override bool Important => true; + + public GenericBubbleParticle(Vector2 position, Vector2 velocity, float scale, float rotation, int lifeTime = 50) + { + Position = position; + Velocity = velocity; + Color = Color.White; + Scale = scale; + Rotation = rotation; + Lifetime = lifeTime; + } + } +} diff --git a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs index 0ba6a93377..b44de1fd36 100644 --- a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs +++ b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Melee //Sounds public static readonly SoundStyle ZapSound = SoundID.Item94 with { Volume = SoundID.Item94.Volume * 0.5f }; - public static readonly SoundStyle SlapSound = new SoundStyle( "CalamityMod/Sounds/Custom/WetSlap", 4 ); + public static readonly SoundStyle SlapSound = new("CalamityMod/Sounds/Custom/WetSlap", 4); internal PrimitiveTrail TrailRenderer; diff --git a/Projectiles/Ranged/PressurizedBubbleStream.cs b/Projectiles/Ranged/PressurizedBubbleStream.cs new file mode 100644 index 0000000000..caf96df793 --- /dev/null +++ b/Projectiles/Ranged/PressurizedBubbleStream.cs @@ -0,0 +1,152 @@ +using Microsoft.Xna.Framework; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; +using CalamityMod.Particles; +using CalamityMod.Items.Weapons.Ranged; + +namespace CalamityMod.Projectiles.Ranged +{ + public class PressurizedBubbleStream : ModProjectile + { + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + + public static int FireTime = 60; + public static int ChargeupTime = 12; + public float Progress => 1 - Projectile.timeLeft / (float)FireTime; + public bool ChargingUp => Projectile.timeLeft > FireTime; + public float ChargeupProgress => (ChargeupTime - (Projectile.timeLeft - FireTime)) / (float)ChargeupTime; + + public Particle chargeBubble; + public Player Owner => Main.player[Projectile.owner]; + + public ref float PulseTimer => ref Projectile.localAI[0]; + public ref float PrevPulseTimer => ref Projectile.localAI[1]; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Pressurized Bubble Stream"); + } + + public override void SetDefaults() + { + Projectile.width = 12; + Projectile.height = 12; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.DamageType = DamageClass.Ranged; + Projectile.penetrate = 1; + Projectile.extraUpdates = 4; + Projectile.timeLeft = FireTime + ChargeupTime; + } + + public override bool ShouldUpdatePosition() + { + return !ChargingUp; + } + + public override void AI() + { + ChargeupTime = 60; + + if (ChargingUp) + { + float bubbleRotation = Owner.itemRotation - (MathHelper.PiOver4 / 3f * Owner.direction); + if (Owner.direction < 0) + bubbleRotation += MathHelper.Pi; + + Vector2 bubblePosition = Owner.Center - Vector2.UnitY * 4f + bubbleRotation.ToRotationVector2() * 55f; + + Projectile.Center = bubblePosition; + Projectile.velocity = Vector2.UnitX.RotatedBy(bubbleRotation) * Projectile.velocity.Length(); + + if (chargeBubble == null) + { + chargeBubble = new GenericBubbleParticle(bubblePosition, Vector2.Zero, 0.4f, Owner.itemRotation, ChargeupTime / Projectile.extraUpdates); + GeneralParticleHandler.SpawnParticle(chargeBubble); + } + else + { + chargeBubble.Position = bubblePosition; + chargeBubble.Rotation = Owner.itemRotation; + chargeBubble.Scale = MathHelper.Lerp(0.4f, 1.4f, (float)Math.Sqrt(ChargeupProgress)); + } + return; + } + + if (Projectile.timeLeft == FireTime) + { + float bubbleRotation = Owner.itemRotation - (MathHelper.PiOver4 / 3f * Owner.direction); + if (Owner.direction < 0) + bubbleRotation += MathHelper.Pi; + + Vector2 bubblePosition = Owner.Center - Vector2.UnitY * 4f + bubbleRotation.ToRotationVector2() * 55f; + + SoundEngine.PlaySound(ReedBlowgun.BubbleBurstSound, bubblePosition); + } + + Projectile.velocity *= 0.985f; + PulseTimer--; + Lighting.AddLight(Projectile.Center, 0f, 0f, 0.5f); + + //Pulse + if (PulseTimer <= 0 && Progress < 0.7f) + { + if (PrevPulseTimer == 0) + PrevPulseTimer = 2; + else + PrevPulseTimer *= 2; + + PulseTimer = PrevPulseTimer * 2f; + + Color pulseColor = Main.rand.NextBool() ? (Main.rand.NextBool() ? Color.SkyBlue : Color.LightSkyBlue) : (Main.rand.NextBool() ? Color.LightBlue : Color.DeepSkyBlue); + Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, pulseColor, new Vector2(0.5f, 1f), Projectile.velocity.ToRotation(), 0.05f, 0.2f + 0.3f * (1 - Progress), 30); + GeneralParticleHandler.SpawnParticle(pulse); + + int numDust = 18; + + for (int i = 0; i < numDust; i++) + { + Vector2 ringSpeed = new Vector2((float)Math.Cos(i / (float)numDust * MathHelper.TwoPi), (float)Math.Sin(i / (float)numDust * MathHelper.TwoPi) * 0.5f).RotatedBy(Projectile.velocity.ToRotation() + MathHelper.PiOver2) * (3.5f * (1 - Progress) + 3f) ; + Dust ringDust = Dust.NewDustPerfect(Projectile.position, 211, ringSpeed, 100, default, 1.25f); + ringDust.noGravity = true; + + } + } + + //Bubbles + if (!Main.rand.NextBool(3)) + { + Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(1f, 1f) * Progress, 411); + bubble.timeLeft = 8 + Main.rand.Next(6); + bubble.scale = Main.rand.NextFloat(0.6f, 1f) * (1 + Progress * 0.4f); + bubble.type = Main.rand.NextBool(3) ? 412 : 411; + } + + //Water trail + for (int i = 0; i < 6; i++) + { + Dust waterDust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 33, 0f, 0f, 100, default, 0.9f); + waterDust.noGravity = true; + waterDust.velocity *= 0.5f; + waterDust.velocity -= Projectile.velocity * 0.1f; + } + } + + public override void Kill(int timeLeft) + { + SoundEngine.PlaySound(SoundID.Item21, Projectile.position); + int bubbleCount = 25 + Main.rand.Next(15); + + for (int i = 0; i <= bubbleCount; i++) + { + Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_Death(), Projectile.position, Projectile.velocity * 0.3f + Main.rand.NextVector2Circular(4f, 4f), 411); + bubble.timeLeft = 8 + Main.rand.Next(6); + bubble.scale = Main.rand.NextFloat(0.6f, 1f) * (1 + Progress * 0.4f); + bubble.type = Main.rand.NextBool(3) ? 412 : 411; + } + } + } +} diff --git a/Projectiles/Ranged/SandWater.cs b/Projectiles/Ranged/SandWater.cs deleted file mode 100644 index 303af7e9a1..0000000000 --- a/Projectiles/Ranged/SandWater.cs +++ /dev/null @@ -1,65 +0,0 @@ -using Microsoft.Xna.Framework; -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.Audio; -namespace CalamityMod.Projectiles.Ranged -{ - public class SandWater : ModProjectile - { - public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; - - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Water"); - } - - public override void SetDefaults() - { - Projectile.width = 12; - Projectile.height = 12; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.DamageType = DamageClass.Ranged; - Projectile.penetrate = 1; - Projectile.timeLeft = 60; - } - - public override void AI() - { - Lighting.AddLight(Projectile.Center, 0f, 0f, 0.5f); - for (int num457 = 0; num457 < 10; num457++) - { - int num458 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 33, 0f, 0f, 100, default, 0.9f); - Main.dust[num458].noGravity = true; - Main.dust[num458].velocity *= 0.5f; - Main.dust[num458].velocity += Projectile.velocity * 0.1f; - } - } - - public override void Kill(int timeLeft) - { - SoundEngine.PlaySound(SoundID.Item21, Projectile.position); - for (int dust = 0; dust <= 40; dust++) - { - float num463 = (float)Main.rand.Next(-10, 11); - float num464 = (float)Main.rand.Next(-10, 11); - float num465 = (float)Main.rand.Next(3, 9); - float num466 = (float)Math.Sqrt((double)(num463 * num463 + num464 * num464)); - num466 = num465 / num466; - num463 *= num466; - num464 *= num466; - int num467 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 33, 0f, 0f, 100, default, 0.6f); - Dust dust2 = Main.dust[num467]; - dust2.noGravity = true; - dust2.position.X = Projectile.Center.X; - dust2.position.Y = Projectile.Center.Y; - dust2.position.X += (float)Main.rand.Next(-10, 11); - dust2.position.Y += (float)Main.rand.Next(-10, 11); - dust2.velocity.X = num463; - dust2.velocity.Y = num464; - } - } - } -} diff --git a/Sounds/Custom/PistolShrimpBubbleBurst.ogg b/Sounds/Custom/PistolShrimpBubbleBurst.ogg new file mode 100644 index 0000000000000000000000000000000000000000..412ca23d4c3ed7b86a66a75c75b45276c895ba83 GIT binary patch literal 11183 zcmeHtbyQZ(x9~i43epH7-CdIMfPyrVl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^dTt_L5R7^8Ai!)10O(i(e2z!6b&D`2e)rq+`&Z%uRGM62EE#uwl@pz)7 zQ~8Lzk-&$~JJ#~W>P|_y*R3mFV5-`>pG>}z||5?}e&xbquR$FsG1@%nDRQ!%Bz zu3s75BHU{#hEEvQZb{85vA#LJWuu?Z=dIBkjve%-NhCA=fv*vLwPk|Yd9dO;m(WIb zV(8}~&?SR@%PnzW#G!D&9~bXktp0<={)IkA?H(aq;V%3oZV&GJFU|dTmcHEH4S9_w zg4luWgsxk~@VN4OU$qYl-D3}VW2x&6eQPeEa=vEO*{V?`Bq@bIHBT0<*Jz6Vu4P1$ z(93B`>&tLPGvX%A69Q?9N4_Vz1g-WACJVS{&qz?hR(U?%&}ALcw10NkgzmFS>8t{# zr#>J&>|rLeYt83WtYKlfT{oj}*Txwcz%5G>vq(o=z2UTho_O_Y$qdpV%u(U(4*o5C z=1+3UJP)a+3scaspj{PMRgGyhnSNuj3QyYNy?dI|(j8n>(EG+ClVUX?^>ku$ROqm_ ze;aRN;N6q-+8r(zBg2-+_K!;Te(ys2Zd(ua1xjZyok?W0cP(iR+{8(|=G8fQ@Cd!F z=Y!=Gfz#vjSw-JZd{UXQy|X;;et-AW6X#EVd^j{Z8b93P66=TK)G@s`7GLCEhBo!bo3A&`Ooc Mconqv&rpE>0QWH;Jpcdz literal 0 HcmV?d00001 From 05cea286550cc7b89c20c6d963b1cb8a52efee4d Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Thu, 2 Jun 2022 03:26:34 +0200 Subject: [PATCH 11/30] Armor rename --- Items/Accessories/ShieldoftheOcean.cs | 5 +- ...VictideVisage.cs => VictideCoralTurban.cs} | 20 +--- ...ctideVisage.png => VictideCoralTurban.png} | Bin ...e_Head.png => VictideCoralTurban_Head.png} | Bin .../{VictideLeggings.cs => VictideGreaves.cs} | 4 +- ...VictideLeggings.png => VictideGreaves.png} | Bin ...gings_Legs.png => VictideGreaves_Legs.png} | Bin ...{VictideHeadgear.cs => VictideHeadcrab.cs} | 20 +--- ...ictideHeadgear.png => VictideHeadcrab.png} | Bin ...gear_Head.png => VictideHeadcrab_Head.png} | Bin Items/Armor/VictideHeadgear_CroppedHead.png | Bin 1488 -> 0 bytes Items/Armor/VictideHelm_CroppedHead.png | Bin 1451 -> 0 bytes Items/Armor/VictideHelmet.cs | 99 ------------------ Items/Armor/VictideHelmet.png | Bin 643 -> 0 bytes Items/Armor/VictideHelmet_CroppedHead.png | Bin 1386 -> 0 bytes Items/Armor/VictideHelmet_Head.png | Bin 1547 -> 0 bytes Items/Armor/VictideHermitHelmet.cs | 62 +++++++++++ Items/Armor/VictideHermitHelmet.png | Bin 0 -> 789 bytes Items/Armor/VictideHermitHelmet_Head.png | Bin 0 -> 1838 bytes Items/Armor/VictideMask.cs | 56 ++++++---- Items/Armor/VictideMask.png | Bin 789 -> 643 bytes Items/Armor/VictideMask_CroppedHead.png | Bin 1801 -> 0 bytes Items/Armor/VictideMask_Head.png | Bin 1838 -> 1547 bytes .../{VictideHelm.cs => VictideSeaShellmet.cs} | 20 +--- ...VictideHelm.png => VictideSeaShellmet.png} | Bin ...m_Head.png => VictideSeaShellmet_Head.png} | Bin Items/Armor/VictideVisage_CroppedHead.png | Bin 1590 -> 0 bytes 27 files changed, 107 insertions(+), 179 deletions(-) rename Items/Armor/{VictideVisage.cs => VictideCoralTurban.cs} (74%) rename Items/Armor/{VictideVisage.png => VictideCoralTurban.png} (100%) rename Items/Armor/{VictideVisage_Head.png => VictideCoralTurban_Head.png} (100%) rename Items/Armor/{VictideLeggings.cs => VictideGreaves.cs} (93%) rename Items/Armor/{VictideLeggings.png => VictideGreaves.png} (100%) rename Items/Armor/{VictideLeggings_Legs.png => VictideGreaves_Legs.png} (100%) rename Items/Armor/{VictideHeadgear.cs => VictideHeadcrab.cs} (78%) rename Items/Armor/{VictideHeadgear.png => VictideHeadcrab.png} (100%) rename Items/Armor/{VictideHeadgear_Head.png => VictideHeadcrab_Head.png} (100%) delete mode 100644 Items/Armor/VictideHeadgear_CroppedHead.png delete mode 100644 Items/Armor/VictideHelm_CroppedHead.png delete mode 100644 Items/Armor/VictideHelmet.cs delete mode 100644 Items/Armor/VictideHelmet.png delete mode 100644 Items/Armor/VictideHelmet_CroppedHead.png delete mode 100644 Items/Armor/VictideHelmet_Head.png create mode 100644 Items/Armor/VictideHermitHelmet.cs create mode 100644 Items/Armor/VictideHermitHelmet.png create mode 100644 Items/Armor/VictideHermitHelmet_Head.png delete mode 100644 Items/Armor/VictideMask_CroppedHead.png rename Items/Armor/{VictideHelm.cs => VictideSeaShellmet.cs} (75%) rename Items/Armor/{VictideHelm.png => VictideSeaShellmet.png} (100%) rename Items/Armor/{VictideHelm_Head.png => VictideSeaShellmet_Head.png} (100%) delete mode 100644 Items/Armor/VictideVisage_CroppedHead.png diff --git a/Items/Accessories/ShieldoftheOcean.cs b/Items/Accessories/ShieldoftheOcean.cs index cc6fcc9e84..56de6175fe 100644 --- a/Items/Accessories/ShieldoftheOcean.cs +++ b/Items/Accessories/ShieldoftheOcean.cs @@ -32,10 +32,7 @@ namespace CalamityMod.Items.Accessories { player.statDefense += 5; } - if ((player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || - player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || - player.armor[0].type == ModContent.ItemType()) && - player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) + if (player.Calamity().victideSet) { player.moveSpeed += 0.1f; player.lifeRegen += 2; diff --git a/Items/Armor/VictideVisage.cs b/Items/Armor/VictideCoralTurban.cs similarity index 74% rename from Items/Armor/VictideVisage.cs rename to Items/Armor/VictideCoralTurban.cs index 288ba2db99..f9bff26f17 100644 --- a/Items/Armor/VictideVisage.cs +++ b/Items/Armor/VictideCoralTurban.cs @@ -7,27 +7,13 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] - public class VictideVisage : ModItem + public class VictideCoralTurban : ModItem { - public override void Load() - { - if (Main.netMode != NetmodeID.Server) - { - EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/VictideVisage_CroppedHead", EquipType.Head, name: Name + "Cropped"); - } - } public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Victide Visage"); + DisplayName.SetDefault("Victide Coral Turban"); Tooltip.SetDefault("5% increased ranged damage"); - - if (Main.netMode == NetmodeID.Server) - return; - - int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name + "Cropped", EquipType.Head); - ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false; - } public override void SetDefaults() @@ -41,7 +27,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/VictideVisage.png b/Items/Armor/VictideCoralTurban.png similarity index 100% rename from Items/Armor/VictideVisage.png rename to Items/Armor/VictideCoralTurban.png diff --git a/Items/Armor/VictideVisage_Head.png b/Items/Armor/VictideCoralTurban_Head.png similarity index 100% rename from Items/Armor/VictideVisage_Head.png rename to Items/Armor/VictideCoralTurban_Head.png diff --git a/Items/Armor/VictideLeggings.cs b/Items/Armor/VictideGreaves.cs similarity index 93% rename from Items/Armor/VictideLeggings.cs rename to Items/Armor/VictideGreaves.cs index 2528149333..57bd196b9e 100644 --- a/Items/Armor/VictideLeggings.cs +++ b/Items/Armor/VictideGreaves.cs @@ -6,12 +6,12 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Legs)] - public class VictideLeggings : ModItem + public class VictideGreaves : ModItem { public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Victide Leggings"); + DisplayName.SetDefault("Victide Greaves"); Tooltip.SetDefault("Movement speed increased by 8%\n" + "Movement speed increased by 30% while submerged in liquid"); diff --git a/Items/Armor/VictideLeggings.png b/Items/Armor/VictideGreaves.png similarity index 100% rename from Items/Armor/VictideLeggings.png rename to Items/Armor/VictideGreaves.png diff --git a/Items/Armor/VictideLeggings_Legs.png b/Items/Armor/VictideGreaves_Legs.png similarity index 100% rename from Items/Armor/VictideLeggings_Legs.png rename to Items/Armor/VictideGreaves_Legs.png diff --git a/Items/Armor/VictideHeadgear.cs b/Items/Armor/VictideHeadcrab.cs similarity index 78% rename from Items/Armor/VictideHeadgear.cs rename to Items/Armor/VictideHeadcrab.cs index 39dd0ce48d..6c8691e729 100644 --- a/Items/Armor/VictideHeadgear.cs +++ b/Items/Armor/VictideHeadcrab.cs @@ -7,27 +7,13 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] - public class VictideHeadgear : ModItem + public class VictideHeadcrab : ModItem { - public override void Load() - { - if (Main.netMode != NetmodeID.Server) - { - EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/VictideHeadgear_CroppedHead", EquipType.Head, name: Name + "Cropped"); - } - } - public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Victide Headgear"); + DisplayName.SetDefault("Victide Headcrab"); Tooltip.SetDefault("5% increased rogue damage"); - - if (Main.netMode == NetmodeID.Server) - return; - - int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name + "Cropped", EquipType.Head); - ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false; } public override void SetDefaults() @@ -41,7 +27,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/VictideHeadgear.png b/Items/Armor/VictideHeadcrab.png similarity index 100% rename from Items/Armor/VictideHeadgear.png rename to Items/Armor/VictideHeadcrab.png diff --git a/Items/Armor/VictideHeadgear_Head.png b/Items/Armor/VictideHeadcrab_Head.png similarity index 100% rename from Items/Armor/VictideHeadgear_Head.png rename to Items/Armor/VictideHeadcrab_Head.png diff --git a/Items/Armor/VictideHeadgear_CroppedHead.png b/Items/Armor/VictideHeadgear_CroppedHead.png deleted file mode 100644 index cec810cf2e86c051c53bc65597b84dfff47c642a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1488 zcmeAS@N?(olHy`uVBq!ia0vp^8Vn392^?%d*6dv(^+1ZTILO_JVcj{ImkbQ7U7jwE zAr*7p-a6YI`&IV%$MZ8%79F#AVWE*Y;fF&?#s!@cWeM-hyDkOk;(14=KDZyywS#*{ z!NYypx94)K3lWk3AgSfVdNfSf#b@zFPXWViJ>ACbXXf5%Y2;Vg`RwbhJC@JO-_1S! z{olDek$Z$2PT#(>Q|w)wF&JUm9IYE|M~OCk&jnT zo1a%b$#2hp{PXdCHBY;mpYqRZo5Sane-$dY#`680q*~GMcXvG}$*;Syahghbnx*Hb zD+ezNU#~BD{BNcHpGWVa)%)UqXI1QZHhKFb73+1;GrT7~R`&y%RR8pSaQyR0^B;WE ze12`xlh47+C#lr$eZ1}KW&3sZeAR{LPZ>P4wVb4~^XUh6&q@08s#A8n`geS?%JR5+ zea}zFtJ~7|8`TI@zFqzB`=9q~4?liCx61y^6PC$2bM8F2*uGA_&SFFUr$e>XlT_ku z{`~H|TwnF3>+x|GFc8 zuReUz6Z`-3XYZ&s-~E1>{PKD7>U%4T>LYd-dlr3dOf=s2`{HNMN%`UJulN1=^&&ro ze_#Eh-&>!&+5P=&ewnJ}=kgCr&$nG=|HfPXHU8cV|4BBx{;esT*;qD)E{+~Vbe#U%@ z{d5PVM*RL0YYPW>Q>t1#DMliEa zUp;>B=TeoEpT4*H;H z`O?`fCC0jFOlGi(&0aX9ftnybSc6qJ#7wY?7@bx9(_SrJ`YU6lT@(@%7%1P)>8pB9 z+pfRL&g@pv*N-<&HG57{{;B7=Y1VwTZ>wHGoInLfGECQg8t7elB}i`T6n9+&bFJ=l z_tVzm?O$`fPc81<79%GcWjRB|a@yqV%h#s5gI!;6ei()W(P`+M`=#g7}JpQ~H$NIB2zImx!%-pKCb{rxJQe6fYUGk*S9ov-2< zS66Iy(47BV+4qOe`hDMyE}Q?L^056gb+Z}!&-1q3{r#c2y!YDwFHiodoV4Bl^KH(< zuA4t6|Btu-aQ*xwmG$e-s8zq-*S_yNllfm3@o#r*eslWI`BP%+`7UOjZ2hKB=i2gr zRQIV_md4MCpTB+Aw})-7y>IKu%f=VI{gfjvUy-?G-%oW5o8rkmWuO13w5PvMh>)MB zqkix9ER~%fuV3$vGq;Is`~CEN*tVW?`L;jam|vfy(th90$jW{tr<&)sIrW8;p4`2< zczJ34pLLw|pDT;Y8|`CCq9;9B*UUaiMcZ0G)?<=?-`=SyUBYwXXVjbVKbwE?u-=^e zXPdj%-`_YvMO<(0Y!%CG7Qc6Y`g~P?l8XG?9SWXBUr)W6`S;H4`a2(r&Hl150+Tz# z1D}g$x0D#`-u3Y|zkCUe2~xmd5V~vTw7g|YXJ@`li$Y_9G7ba7GA~T6FayB~4uoK8 zg&8ObRxv{hs{_EMFoRVDV|4(;6tDt|;1GG;tM1-kF9y|aL1VImRrpNB;SHcE;J|2D zi5>zlZvcY`Y{Y?^UX@pZ() && legs.type == ModContent.ItemType(); - } - - public override void UpdateArmorSet(Player player) - { - player.setBonus = "+3 life regen and 10% increased minion damage while submerged in liquid\n" + - "Summons a sea urchin to protect you\n" + - "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + - "This seashell does true damage and does not benefit from any damage class\n" + - "Provides increased underwater mobility and slightly reduces breath loss in the abyss\n" + - "+1 max minion"; - CalamityPlayer modPlayer = player.Calamity(); - modPlayer.victideSet = true; - modPlayer.urchin = true; - player.maxMinions++; - if (player.whoAmI == Main.myPlayer) - { - if (player.FindBuffIndex(ModContent.BuffType()) == -1) - { - player.AddBuff(ModContent.BuffType(), 3600, true); - } - var source = player.GetSource_ItemUse(Item); - if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) - { - int baseDamage = 7; - int minionDamage = (int)player.GetDamage().CombineWith(player.GetDamage()).ApplyTo(baseDamage); - int p = Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType(), minionDamage, 0f, Main.myPlayer, 0f, 0f); - if (Main.projectile.IndexInRange(p)) - Main.projectile[p].originalDamage = baseDamage; - } - } - player.ignoreWater = true; - if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) - { - player.GetDamage() += 0.1f; - player.lifeRegen += 3; - } - } - - public override void UpdateEquip(Player player) - { - player.GetDamage() += 0.1f; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(3). - AddTile(TileID.Anvils). - Register(); - } - } -} diff --git a/Items/Armor/VictideHelmet.png b/Items/Armor/VictideHelmet.png deleted file mode 100644 index 15bf10493120c64d519434ac61b4c40cd8d8102c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 643 zcmV-}0(||6P)Px%JxN4CR7i=<*3EBBQ5eVZ&&6O&P0?z-Opvq*6+si#9YUK}u#hy^NE0>|B6i{r z5Nm0|&L4n{mxYLUix6Q!(@>Faq=^`PMN!IFoVmEuR=SayXLHYa&U2rW@9#PHIX5zm z9d6na4-0?$GYzYzjDMHOMo>TY0d!qIH(hEl>z}Lt(V}?p7a^FxqzZf;`c#10ZA-v# z-8?WSy9wOs5Ap4NFTmikr4fvb2Y>+SICHwI0PC6>Bg#p< zW<{vwx1SSZn?&|^1FNf28;KVL)r1N+pu4R35V!lyO;?((5_(NX)8jt)KE5Od` zjfsG`b}?ys<)_5@$)la%;blt)k=sw+*STA4aifgRcu}X<&cZAd3xqWxS zfA!K8aQl8Y7#JM_`}c-Uw`_ID6L+*HHy`}olS(3vEv`{>M@!;`#rbgU4BQWdaSeBF zODgrTaVr?Va3jR!s($ZDg%E?eskvZLedyWw{(QKPiweZwWoa)T>w7ch2C*X5>ADC; zYeJs#-^ZmEE3sf+8f1h&kN4vvGg9DD-$PI>9Y}ovPhUPmB@&m~OcjW&CQ}o^;MgGk dkj7Rv;$QyGplDGv&HMlW002ovPDHLkV1m9dGO7Ro diff --git a/Items/Armor/VictideHelmet_CroppedHead.png b/Items/Armor/VictideHelmet_CroppedHead.png deleted file mode 100644 index d23fcc34acc97d07b2949917ce5acf0b7eea0151..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1386 zcmeAS@N?(olHy`uVBq!ia0vp^8Vn392^?%d*6dv(^+1ZTILO_JVcj{ImkbQ7DxNNm zAr*7p-a5Nlv{dH!$Md?n&bw!ZM0xVxQQ%$Ka>VtEgX)$Qt^!xpT5fIW$PoX_D5&ea zBKCsbDqsHY6E8YBmY8*ZaS#zPUzEMFHEL#MvRXqcS3hZaUEh1s8=LoER8BU%Ts=u8|7>61{SQZvdrp!Mn`1py zWp|zI+VgMj%zJV}{n!2(502Pwe|ArLvda8FeU{h1=EWCz zk>$RVp7ip&y}q61KL5nk^mp^UCaFrl^PE((!m;>-p(o_u~A|clqznQQ2Al*jf1a+TBTSk9?ad>HF>Ca(UlR&sB6`R>8L^!t^%o<-m8yfA(GyS&_I zj{UqlH!6zu+ZkKwYfqQC3<}sE{rOi`uiLBaxhd&ozUQR7@#p;Z-0i8q&Q}}uK6XQ` zmgll`J)cQ$Ztv6gG}`|BK*s+!F_WI`etCHk&yPqRU}|MxQ18lHwsdyp%e1InGpC_3 z89@pf7G65LrNmhGu8+6*WppM;0fRvZrdF7Npq#-4@j$QWn$MeV9((aaAHYw~i%}{j`=G^M&?ElX}`ojWt$1C2PH@x|SinRYS zJH6b<^2+yx@2$8ia$OU%nnRq5F9_tgiYc-jIkH6hWdE{d%i2#m|IRTloXLM9=W|tT zS^B)0>Fw{0KcCUrBiwNN_L(g6KPT6{_p96c?cmp9YrE}_zWtvwd%ou+|M)-Ulb&4g zKHq1#Z;kZU>;EtEs{d&0RP{8wv)Rz|)3=@6*C(aCzW&~G(w?ma>64!H{nS_YtSisD zQFs4Q{3Mn1?X_8Ip3~Oxye{8Us&?{~`mc>M9$c~9{(EA+n&-V8f3B;XTzB(#_?`dx zugz6{esK9;c>mi>70ZvEKUGf7KL6*-GWLqo{vZ0J_ZIxJ_x7CB`n6pB=ZCAmF7(|E zK5e}{e}2?Fd()nG5BJ9VPWtohYvSL|;KS;l9>j*HPfB^bPhQ=#Pxjx@uHzf0saM!} z7CpLjQsv}6TcEGb+}~Z7wfpJh>d(KPsJ+&&eY{ZR^W&UpWLo#D%Rz- zg=#?kaX&4ty<@rm^ZnJ8PoF-&bMdIK=Op|67BOe-tv7jKBU`ANM15(vzvm$CqFG z|DpQu-1OVe+x?S@+AIH>*U!i)x~#rxtNp?7bNs?LKeVn_@!VHd`?q-gzBwv4YpN=I zeqNtg9Q@l?&D?P2ovHKrf2aOF7ApHd*Z!b%-M{a5t?yJ{Kbz|}DJO1+wrA0|_v-D> z555k6`lLGd=iXnB9-S1uUtT1dKPz^I=cLckZQmm|e}5GE-`{BF3-$MNd?%ert(at2 zoSGRb{P*#rY|lx)GiBALpZ1)Tod4(Lvik3jjSoHzv%c7=TO6G>>B*a;n?3)1f1;N6 zlamRU=oz-_-}Uh}zkKQJmJ(xKtW1z9hUAxNQM+bN%UiZ|b|zLPBS@75ev@?X@_JiNR%Xiw$tEV_1pT}UtjlRJO>%=>FVdQ&MBb@0QRK`Q2+n{ diff --git a/Items/Armor/VictideHermitHelmet.cs b/Items/Armor/VictideHermitHelmet.cs new file mode 100644 index 0000000000..4756b6b41f --- /dev/null +++ b/Items/Armor/VictideHermitHelmet.cs @@ -0,0 +1,62 @@ +using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Armor +{ + [AutoloadEquip(EquipType.Head)] + public class VictideHermitHelmet : ModItem + { + public override void SetStaticDefaults() + { + SacrificeTotal = 1; + DisplayName.SetDefault("Victide Hermit Helmet"); + Tooltip.SetDefault("5% increased magic damage"); + } + + public override void SetDefaults() + { + Item.width = 18; + Item.height = 18; + Item.value = Item.buyPrice(0, 1, 50, 0); + Item.rare = ItemRarityID.Green; + Item.defense = 2; //9 + } + + public override bool IsArmorSet(Item head, Item body, Item legs) + { + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + } + + public override void UpdateArmorSet(Player player) + { + player.setBonus = "+3 life regen and 10% increased magic damage while submerged in liquid\n" + + "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + + "This seashell does true damage and does not benefit from any damage class\n" + + "Provides increased underwater mobility and slightly reduces breath loss in the abyss"; + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.victideSet = true; + player.ignoreWater = true; + if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) + { + player.GetDamage() += 0.1f; + player.lifeRegen += 3; + } + } + + public override void UpdateEquip(Player player) + { + player.GetDamage() += 0.05f; + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(3). + AddTile(TileID.Anvils). + Register(); + } + } +} diff --git a/Items/Armor/VictideHermitHelmet.png b/Items/Armor/VictideHermitHelmet.png new file mode 100644 index 0000000000000000000000000000000000000000..89ae4b2b0e7831e2a262eca21fb8056e17b84095 GIT binary patch literal 789 zcmV+w1M2*VP)Px%&q+iYNd%fa_70ev{0WTZ?gpoheg$&(ZjNBOH4n~> z>_Zv|Y+T<5`ulpo>};h9hlX~56SaRA^wzuYqn>fl{LbOT_^Asg!QKzP1z(op`E@tS z5zPH~4rw6p*p^4Y^yTR)ytL~{Q2D(B-2e1lpipQ}IBws$CmHF&*I@GO_er~f2T>;x zYGUEezKAps*tov03cI!y6ARC5TLp64?*UU&*TC@pS7U>Qj2nrJTTG1SPQ*2F@Uxgi z*Ol`rB@i+XeIFER;BOKy55@~!g9*FP9it;Zfbsq<;Em@W0>@4zYhlF+wCv~{Xu1$G zeDBlvUx#WQ9r-XesMSJa#-E=VO9rZq4?2K4iEu8gIDu$)p;(3d<7-jx|DaG4LE&U9 zzW68@9*gh&`O(A6+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Ca7U&vv2tK+G8#c?0%t zFF5(TcXm9jKC{PJ9!OdoVpN=KbUlxAsA|`63jm)2_}w%e=!Y@;HAMm&_e6UldxJ zHd{ss%eXIGwB!eW=i!4SdRM4j&EoJwQ-oz)!m>)3xBObl)qOr0al_;S9SHWT^o`B< E8}@v!$^ZZW literal 0 HcmV?d00001 diff --git a/Items/Armor/VictideMask.cs b/Items/Armor/VictideMask.cs index e7d8470b02..d72d0e1b5c 100644 --- a/Items/Armor/VictideMask.cs +++ b/Items/Armor/VictideMask.cs @@ -1,5 +1,8 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.Summon; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; +using CalamityMod.Projectiles.Summon; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -9,25 +12,12 @@ namespace CalamityMod.Items.Armor [AutoloadEquip(EquipType.Head)] public class VictideMask : ModItem { - public override void Load() - { - if (Main.netMode != NetmodeID.Server) - { - EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/VictideMask_CroppedHead", EquipType.Head, name: Name + "Cropped"); - } - } public override void SetStaticDefaults() { SacrificeTotal = 1; DisplayName.SetDefault("Victide Mask"); - Tooltip.SetDefault("5% increased magic damage"); - - if (Main.netMode == NetmodeID.Server) - return; - - int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name + "Cropped", EquipType.Head); - ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false; + Tooltip.SetDefault("10% increased minion damage"); } public override void SetDefaults() @@ -36,33 +26,53 @@ namespace CalamityMod.Items.Armor Item.height = 18; Item.value = Item.buyPrice(0, 1, 50, 0); Item.rare = ItemRarityID.Green; - Item.defense = 2; //9 + Item.defense = 1; //8 } public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) { - player.setBonus = "+3 life regen and 10% increased magic damage while submerged in liquid\n" + - "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + - "This seashell does true damage and does not benefit from any damage class\n" + - "Provides increased underwater mobility and slightly reduces breath loss in the abyss"; + player.setBonus = "+3 life regen and 10% increased minion damage while submerged in liquid\n" + + "Summons a sea urchin to protect you\n" + + "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + + "This seashell does true damage and does not benefit from any damage class\n" + + "Provides increased underwater mobility and slightly reduces breath loss in the abyss\n" + + "+1 max minion"; CalamityPlayer modPlayer = player.Calamity(); modPlayer.victideSet = true; + modPlayer.urchin = true; + player.maxMinions++; + if (player.whoAmI == Main.myPlayer) + { + if (player.FindBuffIndex(ModContent.BuffType()) == -1) + { + player.AddBuff(ModContent.BuffType(), 3600, true); + } + var source = player.GetSource_ItemUse(Item); + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) + { + int baseDamage = 7; + int minionDamage = (int)player.GetDamage().CombineWith(player.GetDamage()).ApplyTo(baseDamage); + int p = Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType(), minionDamage, 0f, Main.myPlayer, 0f, 0f); + if (Main.projectile.IndexInRange(p)) + Main.projectile[p].originalDamage = baseDamage; + } + } player.ignoreWater = true; if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { - player.GetDamage() += 0.1f; + player.GetDamage() += 0.1f; player.lifeRegen += 3; } } public override void UpdateEquip(Player player) { - player.GetDamage() += 0.05f; + player.GetDamage() += 0.1f; } public override void AddRecipes() diff --git a/Items/Armor/VictideMask.png b/Items/Armor/VictideMask.png index 89ae4b2b0e7831e2a262eca21fb8056e17b84095..15bf10493120c64d519434ac61b4c40cd8d8102c 100644 GIT binary patch literal 643 zcmV-}0(||6P)Px%JxN4CR7i=<*3EBBQ5eVZ&&6O&P0?z-Opvq*6+si#9YUK}u#hy^NE0>|B6i{r z5Nm0|&L4n{mxYLUix6Q!(@>Faq=^`PMN!IFoVmEuR=SayXLH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8n}Qdc}a+$VsOY3~l8@mfqR`SXH1Q7683WgiO0Py1KK$ZFJrbHrF7NffHU4 z3IXt#l;&gs{cMzm3`^}}*nr-f-G2l0RK;t%w)9CBIy*J9UCC^aojad$PJZt!@E{^b z$puV#DGzu|6|d%aHT}%W=w6q;j@>ZELA1%nS(V;WL5+fsy&hEM+A&?As_FjrAnTpH z7p~8G#R?AaxR!b~&#G79Mz_%oYEk-Bk;A@%H7;&}r)t&lDb!}WzJ)u&?NAykZg+VJ zBV{&?SUpCD;FWwa9+I4&!P>Qdu`g_9#ORQ%(8Z_ATJ|&%o}Y|JYjV9MCkn=E26}5L z-IfmK)-!{yBCo4fjFE}{QTK39W1N~qWx>tS(j&r)sCadD!*yo1L#x5tjo0<7L;B?F z!k{}_@ZwaBN}`c=AkHZX?Sopi+CHXZO)e$FDd8I_K>C{4=Fo0KKQgU}AQH401K!Cp zl>?!Wsf>kHd_(#*&{Idz$7IS|(Y<=~5+Z-vW02&7u)FG)R|}LhJS|O~1RrDR9`OKu zR+*m#cnVLwHF2hU)X7+3Ar$O4{`NeA4epNN+uH^EJ+$aiDtD}+Q2D;5toxTEe4saU zqBq8oM@Z6>mU3;gK*!a2Hjb~}DNt=ANMN9!HzH!%@JpmWePV_fqtg!Ym9e$WEZO6) zAXpZLna=4c9Ki@Fh+3Xk`GAgxjCHizMtSj*7-B1-sl?^mBCa7U&vv2tK+G8#c?0%t zFF5(TcXm9jKC{PJ9!OdoVpN=KbUlxAsA|`63jm)2_}w%e=!Y@;HAMm&_e6UldxJ zHd{ss%eXIGwB!eW=i!4SdRM4j&EoJwQ-oz)!m>)3xBObl)qOr0al_;S9SHWT^o`B< E8}@v!$^ZZW diff --git a/Items/Armor/VictideHelm.cs b/Items/Armor/VictideSeaShellmet.cs similarity index 75% rename from Items/Armor/VictideHelm.cs rename to Items/Armor/VictideSeaShellmet.cs index b3e7bc53d3..5862db6c6a 100644 --- a/Items/Armor/VictideHelm.cs +++ b/Items/Armor/VictideSeaShellmet.cs @@ -7,27 +7,13 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] - public class VictideHelm : ModItem + public class VictideSeaShellmet : ModItem { - public override void Load() - { - if (Main.netMode != NetmodeID.Server) - { - EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/VictideHelm_CroppedHead", EquipType.Head, name: Name + "Cropped"); - } - } - public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Victide Helm"); + DisplayName.SetDefault("Victide Sea Shellmet"); Tooltip.SetDefault("5% increased melee damage"); - - if (Main.netMode == NetmodeID.Server) - return; - - int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name + "Cropped", EquipType.Head); - ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false; } public override void SetDefaults() @@ -41,7 +27,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void UpdateArmorSet(Player player) diff --git a/Items/Armor/VictideHelm.png b/Items/Armor/VictideSeaShellmet.png similarity index 100% rename from Items/Armor/VictideHelm.png rename to Items/Armor/VictideSeaShellmet.png diff --git a/Items/Armor/VictideHelm_Head.png b/Items/Armor/VictideSeaShellmet_Head.png similarity index 100% rename from Items/Armor/VictideHelm_Head.png rename to Items/Armor/VictideSeaShellmet_Head.png diff --git a/Items/Armor/VictideVisage_CroppedHead.png b/Items/Armor/VictideVisage_CroppedHead.png deleted file mode 100644 index 61e63650e042e1f743a7b216d683cb89c93d1751..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1590 zcmeAS@N?(olHy`uVBq!ia0vp^8Vn392^?%d*6dv(^+1ZTILO_JVcj{ImkbQ7A3R+g zLn`LHz2(?3=d0|okLkUUrdwT_S7c0BHZg!T*TvOPw0lXw5ohhUzK#O7o%yRir+rAv zaG zdw*unpKtc>t-0^B=&hOgS@y$Z={%{rSexqK*R;2vQ#skk8?CnOeD3~IHBYg=TC+lD^xj!Uoem{jxk?{?2gr?=mosq*vH z>A&5co030IQ#rY8Zn?Ur*fV||wUep*duOOve*G5gIq9r(F8BAjrGG)J zzk%nc56u2PHg=T{&U;R>e_Lhex#|CG{>duu&&hjC`cq}I@u}avn&U5?R}{^*`=4>c zbj?Z8>yLiTfAHX({N2eaH+QF+to(iacKb=*dpAG3OV;~#&!isIUJ2Se2>uIpN>ultcMSF3&Ul9ZI1k&jaSZR?MJ5+}9S*;_V; z|NoRS>B(RIIIl^2%Ks!xO36#CtM&V^Xa1w=@_%NYpZ@*$_~GU0ib?uB-|sk27Ot+T z`D3urHvOBbr&+CCRPp!T@AHZk9@|{Z z-9A}mvvhj;q$ejnE!%}j6(%0@89NgLZf4l$3BKzB> zyX4}^AH7yNX}-LF%?`Emv!3`&I+HhN?v47Fs?w8G)ct$+tz2)m^Wd!c3c$R Date: Thu, 2 Jun 2022 05:58:12 +0200 Subject: [PATCH 12/30] Urchin mace wip (fuck) --- Items/Weapons/Melee/UrchinMace.cs | 11 +-- Items/Weapons/Ranged/ReedBlowgun.cs | 2 + Projectiles/Melee/UrchinMaceProjectile.cs | 106 +++++++++++++++------- 3 files changed, 80 insertions(+), 39 deletions(-) diff --git a/Items/Weapons/Melee/UrchinMace.cs b/Items/Weapons/Melee/UrchinMace.cs index 154f14ec01..c12d2b557f 100644 --- a/Items/Weapons/Melee/UrchinMace.cs +++ b/Items/Weapons/Melee/UrchinMace.cs @@ -22,6 +22,8 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 42; Item.damage = 35; + Item.channel = true; + Item.noUseGraphic = true; Item.DamageType = DamageClass.Melee; Item.useAnimation = 19; Item.useStyle = ItemUseStyleID.Swing; @@ -29,20 +31,13 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTurn = true; Item.knockBack = 4; Item.UseSound = SoundID.Item1; - Item.autoReuse = true; - Item.height = 42; + Item.height = 48; Item.value = Item.buyPrice(0, 2, 0, 0); Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 9f; } - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, type, damage / 2, knockback, player.whoAmI, 0f, 0f); - return false; - } - public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Ranged/ReedBlowgun.cs b/Items/Weapons/Ranged/ReedBlowgun.cs index 106e0f162a..0d3de46353 100644 --- a/Items/Weapons/Ranged/ReedBlowgun.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -17,6 +17,8 @@ namespace CalamityMod.Items.Weapons.Ranged { DisplayName.SetDefault("Reed Blowgun"); Tooltip.SetDefault("Fires a high-pressure stream of bubbles"); + //Lore about how the sea kingdom always had the advantage over any attempts at invasions thanks to their armament specifically crafted to work underwater through looking at sealife (Pistol shrimps in this case) + //..That is, until most of the underwater got hellfired away. SacrificeTotal = 1; } diff --git a/Projectiles/Melee/UrchinMaceProjectile.cs b/Projectiles/Melee/UrchinMaceProjectile.cs index 926214e52b..bdf5d4f793 100644 --- a/Projectiles/Melee/UrchinMaceProjectile.cs +++ b/Projectiles/Melee/UrchinMaceProjectile.cs @@ -8,72 +8,116 @@ namespace CalamityMod.Projectiles.Melee { public class UrchinMaceProjectile : ModProjectile { + public Player Owner => Main.player[Projectile.owner]; public override string Texture => "CalamityMod/Items/Weapons/Melee/UrchinMace"; + public const float MaxWindup = 70; + public ref float Windup => ref Projectile.ai[0]; + public float WindupProgress => MathHelper.Clamp(Windup, 0, MaxWindup) / MaxWindup; + + public ref float SoundPlayed => ref Projectile.localAI[0]; + + Vector2 offset; + public override void SetStaticDefaults() { - DisplayName.SetDefault("Whirlpool"); - Main.projFrames[Projectile.type] = 3; + DisplayName.SetDefault("Urchin Mace"); } public override void SetDefaults() { Projectile.width = 60; Projectile.height = 60; - Projectile.scale = 0.5f; Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.penetrate = 2; Projectile.DamageType = DamageClass.Melee; + Projectile.ignoreWater = true; + Projectile.tileCollide = false; + Projectile.penetrate = -1; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 20; + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + float collisionPoint = 0f; + float bladeLenght = 70 * Projectile.scale; + float bladeWidth = 30 * Projectile.scale; + return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center, Projectile.Center + (Projectile.rotation.ToRotationVector2() * bladeLenght), bladeWidth, ref collisionPoint); } public override void AI() { - Lighting.AddLight(Projectile.Center, 0f, 0f, Projectile.scale * 1.5f); - int num626 = 6; - for (int num627 = 0; num627 < num626; num627++) + if (offset == null) + offset = Vector2.Zero; + + if (Owner.controlUp) { - Vector2 vector45 = Vector2.Normalize(Projectile.velocity) * new Vector2((float)Projectile.width / 2f, (float)Projectile.height) * 0.75f; - vector45 = vector45.RotatedBy((double)(num627 - (num626 / 2 - 1)) * 3.1415926535897931 / (double)(float)num626, default) + Projectile.Center; - Vector2 value15 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); - int num628 = Dust.NewDust(vector45 + value15, 0, 0, 172, value15.X * 2f, value15.Y * 2f, 100, default, Projectile.scale); - Main.dust[num628].noGravity = true; - Main.dust[num628].noLight = true; - Main.dust[num628].velocity /= 4f; - Main.dust[num628].velocity -= Projectile.velocity; + offset.X -= 0.5f; } - if (Projectile.scale <= 1f) + if (Owner.controlDown) { - Projectile.scale *= 1.015f; + offset.X += 0.5f; } - if (Projectile.scale >= 1f) + + Main.mouseText = true; + Main.instance.MouseText(offset.X.ToString()); + + Projectile.rotation += WindupProgress * MathHelper.PiOver4 / 23f; + + + if (Owner.channel) { - Projectile.Kill(); + Projectile.timeLeft = 2; + UpdateOwnerVars(); } - Projectile.frameCounter++; - if (Projectile.frameCounter > 3) + + Projectile.Center = Owner.Center + Projectile.rotation.ToRotationVector2() * 0f + Vector2.UnitY * 4; + + if (Owner.direction < 0) //My god why is Owner.direction not properly being updated. + Projectile.Center += Vector2.UnitX * 12; + + if (Projectile.rotation < 0f) { - Projectile.frame++; - Projectile.frameCounter = 0; + SoundPlayed = 0f; } - if (Projectile.frame >= 3) + else if (SoundPlayed == 0f) { - Projectile.frame = 0; + SoundEngine.PlaySound(SoundID.DD2_GhastlyGlaivePierce, Owner.Center); + SoundPlayed = 1f; } - Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; + + Windup++; + } + + public void UpdateOwnerVars() + { + Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, Projectile.rotation - MathHelper.PiOver2); + Owner.heldProj = Projectile.whoAmI; + Owner.itemTime = 2; + Owner.itemAnimation = 2; } public override bool PreDraw(ref Color lightColor) { - Texture2D texture2D13 = ModContent.Request(Texture).Value; - int num214 = ModContent.Request(Texture).Value.Height / Main.projFrames[Projectile.type]; - int y6 = num214 * Projectile.frame; - Main.spriteBatch.Draw(texture2D13, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture2D13.Width, num214)), Projectile.GetAlpha(lightColor), Projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), Projectile.scale, SpriteEffects.None, 0); + Texture2D maceTexture = ModContent.Request(Texture).Value; + Texture2D whirlpoolTexture = ModContent.Request("CalamityMod/Projectiles/Melee/RedtideWhirlpool").Value; + + float whirlpoolScale = WindupProgress * 2.4f; + float whirlpoolOpacity = WindupProgress * 0.2f; + + Main.spriteBatch.Draw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity, Projectile.rotation + Windup * 0.1f, whirlpoolTexture.Size() / 2f, whirlpoolScale, SpriteEffects.None, 0); + + Vector2 handleOrigin = new Vector2(0, maceTexture.Height); + float maceRotation = Projectile.rotation + MathHelper.PiOver4; + Main.spriteBatch.Draw(maceTexture, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), maceRotation, handleOrigin, Projectile.scale, SpriteEffects.None, 0); + return false; } public override void Kill(int timeLeft) { + //Spawn a whirlpool typhoon after sending it out + SoundEngine.PlaySound(SoundID.NPCDeath19, Projectile.position); int num226 = 36; for (int num227 = 0; num227 < num226; num227++) From 96faef3c7886bf418d441b04b111600212abcf03 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Fri, 3 Jun 2022 02:59:54 +0200 Subject: [PATCH 13/30] Fishbone Boomerang --- Items/Weapons/Melee/UrchinMace.cs | 1 - Items/Weapons/Rogue/FishboneBoomerang.cs | 13 +- .../Melee/CnidarianJellyfishOnTheString.cs | 2 + Projectiles/Melee/UrchinMaceProjectile.cs | 1 + Projectiles/Ranged/PressurizedBubbleStream.cs | 1 - .../Rogue/FishboneBoomerangProjectile.cs | 202 +++++++++++++++++- 6 files changed, 208 insertions(+), 12 deletions(-) diff --git a/Items/Weapons/Melee/UrchinMace.cs b/Items/Weapons/Melee/UrchinMace.cs index c12d2b557f..52830a8a63 100644 --- a/Items/Weapons/Melee/UrchinMace.cs +++ b/Items/Weapons/Melee/UrchinMace.cs @@ -28,7 +28,6 @@ namespace CalamityMod.Items.Weapons.Melee Item.useAnimation = 19; Item.useStyle = ItemUseStyleID.Swing; Item.useTime = 19; - Item.useTurn = true; Item.knockBack = 4; Item.UseSound = SoundID.Item1; Item.height = 48; diff --git a/Items/Weapons/Rogue/FishboneBoomerang.cs b/Items/Weapons/Rogue/FishboneBoomerang.cs index a0c5c68228..eaf6bda418 100644 --- a/Items/Weapons/Rogue/FishboneBoomerang.cs +++ b/Items/Weapons/Rogue/FishboneBoomerang.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using System.Linq; namespace CalamityMod.Items.Weapons.Rogue { @@ -13,7 +14,8 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { DisplayName.SetDefault("Fishbone Boomerang"); - Tooltip.SetDefault("Stealth strikes fire seashells at nearby enemies"); + Tooltip.SetDefault("Stealth strikes make the boomerang ricochet between enemies"); + //Lore about the huge loss of wildlife during the sea burn SacrificeTotal = 1; } @@ -27,15 +29,20 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.useTime = 15; Item.knockBack = 5.5f; - Item.UseSound = SoundID.Item1; + Item.UseSound = null; Item.height = 34; Item.value = Item.buyPrice(0, 2, 0, 0); Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 11.5f; + Item.shootSpeed = 3f; Item.DamageType = RogueDamageClass.Instance; } + public override bool CanUseItem(Player player) + { + return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI && n.type == ModContent.ProjectileType()); + } + public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); diff --git a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs index b44de1fd36..a112f6f68a 100644 --- a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs +++ b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs @@ -142,6 +142,8 @@ namespace CalamityMod.Projectiles.Melee public void Electrify(int maxTargets, float targettingDistance) { + //The volt bunnys gores could be nice to look at, but may be too much for this. Maybe for a future ghost bell upgrade? + float timeAfterZap = MathHelper.Clamp(20 - (Timer - 20f) % ElectrifyTimer, 0, 20); float postZapTime = 1 - timeAfterZap / 20f; diff --git a/Projectiles/Melee/UrchinMaceProjectile.cs b/Projectiles/Melee/UrchinMaceProjectile.cs index bdf5d4f793..995db90879 100644 --- a/Projectiles/Melee/UrchinMaceProjectile.cs +++ b/Projectiles/Melee/UrchinMaceProjectile.cs @@ -4,6 +4,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; + namespace CalamityMod.Projectiles.Melee { public class UrchinMaceProjectile : ModProjectile diff --git a/Projectiles/Ranged/PressurizedBubbleStream.cs b/Projectiles/Ranged/PressurizedBubbleStream.cs index caf96df793..49c5312c55 100644 --- a/Projectiles/Ranged/PressurizedBubbleStream.cs +++ b/Projectiles/Ranged/PressurizedBubbleStream.cs @@ -21,7 +21,6 @@ namespace CalamityMod.Projectiles.Ranged public Particle chargeBubble; public Player Owner => Main.player[Projectile.owner]; - public ref float PulseTimer => ref Projectile.localAI[0]; public ref float PrevPulseTimer => ref Projectile.localAI[1]; diff --git a/Projectiles/Rogue/FishboneBoomerangProjectile.cs b/Projectiles/Rogue/FishboneBoomerangProjectile.cs index 9f84b1e49e..649945bfe7 100644 --- a/Projectiles/Rogue/FishboneBoomerangProjectile.cs +++ b/Projectiles/Rogue/FishboneBoomerangProjectile.cs @@ -1,34 +1,222 @@ using CalamityMod.Projectiles.Typeless; using Terraria.ID; using Terraria.ModLoader; +using Terraria; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria.GameContent; +using Terraria.Graphics.Shaders; +using static CalamityMod.CalamityUtils; +using Terraria.Audio; namespace CalamityMod.Projectiles.Rogue { public class FishboneBoomerangProjectile : ModProjectile { + internal PrimitiveTrail TrailRenderer; public override string Texture => "CalamityMod/Items/Weapons/Rogue/FishboneBoomerang"; + public static int ChargeupTime = 20; + public static int Lifetime = 240; + public float OverallProgress => 1 - Projectile.timeLeft / (float)Lifetime; + public float ThrowProgress => 1 - Projectile.timeLeft / (float)(Lifetime); + public float ChargeProgress => 1 - (Projectile.timeLeft - Lifetime) / (float)(ChargeupTime); + + public Player Owner => Main.player[Projectile.owner]; + public ref float Returning => ref Projectile.ai[0]; + public ref float Bouncing => ref Projectile.ai[1]; + public override void SetStaticDefaults() { DisplayName.SetDefault("Fishbone Boomerang"); + ProjectileID.Sets.TrailCacheLength[Projectile.type] = 10; + ProjectileID.Sets.TrailingMode[Projectile.type] = 2; } public override void SetDefaults() { - Projectile.width = 14; - Projectile.height = 14; + Projectile.width = 38; + Projectile.height = 32; Projectile.friendly = true; + Projectile.tileCollide = false; Projectile.penetrate = -1; - Projectile.aiStyle = 3; - Projectile.timeLeft = 240; - AIType = ProjectileID.WoodenBoomerang; + Projectile.timeLeft = Lifetime + ChargeupTime; Projectile.DamageType = RogueDamageClass.Instance; } + public override bool ShouldUpdatePosition() + { + return ChargeProgress >= 1; + } + + public override bool? CanDamage() + { + //We don't want the anticipation to deal damage. + if (ChargeProgress < 1) + return false; + + return base.CanDamage(); + } + + //Swing animation keys + public CurveSegment pullback = new CurveSegment(EasingType.PolyOut, 0f, 0f, MathHelper.PiOver4 * -1.2f, 2); + public CurveSegment throwout = new CurveSegment(EasingType.PolyOut, 0.7f, MathHelper.PiOver4 * -1.2f, MathHelper.PiOver4 * 1.2f + MathHelper.PiOver2, 3); + public CurveSegment stay = new CurveSegment(EasingType.Linear, 0.95f, MathHelper.PiOver2, 0f); + internal float ArmAnticipationMovement() => PiecewiseAnimation(ChargeProgress, new CurveSegment[] { pullback, throwout }); + public override void AI() { - if (Projectile.Calamity().stealthStrike) - CalamityGlobalProjectile.MagnetSphereHitscan(Projectile, 300f, 10f, 20f, 5, ModContent.ProjectileType()); + //if (Projectile.Calamity().stealthStrike) + // CalamityGlobalProjectile.MagnetSphereHitscan(Projectile, 300f, 10f, 20f, 5, ModContent.ProjectileType()); + + //Anticipation animation. Make the player look like theyre holding the fish skeleton + if (ChargeProgress < 1) + { + float armRotation = ArmAnticipationMovement() * Owner.direction; + + Owner.heldProj = Projectile.whoAmI; + + Projectile.Center = Owner.Center + Vector2.UnitY.RotatedBy(armRotation) * -40f; + Projectile.rotation = -MathHelper.PiOver2 + armRotation; + + Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, MathHelper.Pi + armRotation); + + return; + } + + //Play the throw sound when the throw ACTUALLY BEGINS. + //Additionally, make the projectile collide and set its speed and velocity + if (Projectile.timeLeft == Lifetime) + { + SoundEngine.PlaySound(SoundID.Item1, Projectile.Center); + Projectile.Center = Owner.Center +Projectile.velocity * 12f; + Projectile.velocity = Projectile.velocity.SafeNormalize(Vector2.Zero) * 17.5f; + Projectile.tileCollide = true; + } + + //Boomerang spinny sounds + if (Projectile.soundDelay <= 0) + { + SoundEngine.PlaySound(SoundID.Item7, Projectile.Center); + Projectile.soundDelay = 8; + } + + Projectile.rotation += (MathHelper.PiOver4 / 4f + MathHelper.PiOver4 / 2f * Math.Clamp(ThrowProgress * 2f, 0, 1)) * Math.Sign(Projectile.velocity.X); + + if (Projectile.velocity.Length() < 2f && Bouncing == 0f) + { + Returning = 1f; + } + + if (Returning == 0f && Bouncing == 0f && Projectile.velocity.Length() > 2f) + { + Projectile.velocity *= 0.97f; + } + + if (Returning == 1f && Projectile.velocity.Length() < 17f) + { + Projectile.velocity *= 1.1f; + } + + for (int i = 0; i < 2; i++) + { + Vector2 dustPos = Projectile.Center + (i * MathHelper.Pi + Projectile.rotation + MathHelper.PiOver2).ToRotationVector2() * 14f; + Dust dust = Dust.NewDustPerfect(dustPos, 176, (i * MathHelper.Pi + Projectile.rotation * Math.Sign(Projectile.velocity.X)).ToRotationVector2() * 3f); + dust.noGravity = true; + } + + + if (Returning == 1f) + { + Projectile.tileCollide = false; + //Aim back at the player + Projectile.velocity = Projectile.velocity.Length() * (Owner.Center - Projectile.Center).SafeNormalize(Vector2.One); + + if ((Projectile.Center - Owner.Center).Length() < 24f) + { + Projectile.Kill(); + } + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + ImpactEffects(); + + float streakRotation; + for (int i = 0; i < 4; i++) + { + streakRotation = Main.rand.NextFloat(MathHelper.TwoPi); + + for (int j = 0; j < 4; j++) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center + streakRotation.ToRotationVector2() * (4f + 4f * j), 34, streakRotation.ToRotationVector2() * (4f * j + 4f)); + dust.noGravity = true; + } + } + + if (((Projectile.Calamity().stealthStrike && Projectile.numHits > 2) || !Projectile.Calamity().stealthStrike) && Returning != 1f) + { + Projectile.velocity *= 0.3f; + Returning = 1f; + } + + else + { + //Retarget + NPC newTarget = null; + float closestNPCDistance = 10000f; + float targettingDistance = 400f; + + for (int i = 0; i < Main.maxNPCs; i++) + { + if (i == target.whoAmI) + continue; + + if (Main.npc[i].CanBeChasedBy(Projectile)) + { + float potentialNewDistance = (Projectile.Center - Main.npc[i].Center).Length(); + if (potentialNewDistance < targettingDistance && potentialNewDistance < closestNPCDistance) + { + closestNPCDistance = potentialNewDistance; + newTarget = Main.npc[i]; + } + } + } + + if (newTarget == null) + { + Projectile.velocity *= 0.3f; + Returning = 1f; + return; + } + + Bouncing = 1f; + Projectile.velocity = 15f * (newTarget.Center - Projectile.Center).SafeNormalize(Vector2.One); + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + ImpactEffects(); + Projectile.velocity = Projectile.oldVelocity.Length() * 0.3f * (Owner.Center - Projectile.Center).SafeNormalize(Vector2.One); + Returning = 1f; + return false; + } + + public void ImpactEffects() + { + SoundEngine.PlaySound(SoundID.DD2_SkeletonHurt with { Volume = SoundID.DD2_SkeletonHurt.Volume * 0.8f }, Projectile.Center); + int goreNumber = Main.rand.Next(4); + + for (int i = 0; i < goreNumber; i++) + { + int goreID = Main.rand.NextBool() ? 266 : Main.rand.NextBool() ? 971 : 972; + Gore bone = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(5f, 5f), goreID); + bone.scale = Main.rand.NextFloat(0.6f, 1f) * (goreID == 972 ? 0.7f : 1f); //Shrink the larger bones + bone.type = goreID; //Gotta do that or else itll spawn gores from the general pool :( + } } } } From 264d86905024a4803ad2f9e820cf8b451dd9ffd9 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Fri, 3 Jun 2022 06:17:39 +0200 Subject: [PATCH 14/30] Urchin Mace --- Items/Weapons/Melee/UrchinMace.cs | 9 +- Items/Weapons/Rogue/FishboneBoomerang.cs | 3 +- Projectiles/Melee/RedtideWhirlpool.cs | 74 +++++++++++++++ Projectiles/Melee/UrchinMaceProjectile.cs | 93 ++++++++++--------- .../Rogue/FishboneBoomerangProjectile.cs | 5 +- 5 files changed, 136 insertions(+), 48 deletions(-) create mode 100644 Projectiles/Melee/RedtideWhirlpool.cs diff --git a/Items/Weapons/Melee/UrchinMace.cs b/Items/Weapons/Melee/UrchinMace.cs index 52830a8a63..89e6989604 100644 --- a/Items/Weapons/Melee/UrchinMace.cs +++ b/Items/Weapons/Melee/UrchinMace.cs @@ -21,9 +21,11 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { Item.width = 42; - Item.damage = 35; + Item.damage = 20; Item.channel = true; Item.noUseGraphic = true; + Item.noMelee = true; + Item.useTurn = true; Item.DamageType = DamageClass.Melee; Item.useAnimation = 19; Item.useStyle = ItemUseStyleID.Swing; @@ -37,6 +39,11 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 9f; } + public override void HoldItem(Player player) + { + player.Calamity().mouseWorldListener = true; + } + public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Rogue/FishboneBoomerang.cs b/Items/Weapons/Rogue/FishboneBoomerang.cs index eaf6bda418..958fbd47a5 100644 --- a/Items/Weapons/Rogue/FishboneBoomerang.cs +++ b/Items/Weapons/Rogue/FishboneBoomerang.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetDefaults() { Item.width = 18; - Item.damage = 15; + Item.damage = 24; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = 15; @@ -36,6 +36,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 3f; Item.DamageType = RogueDamageClass.Instance; + Item.autoReuse = true; } public override bool CanUseItem(Player player) diff --git a/Projectiles/Melee/RedtideWhirlpool.cs b/Projectiles/Melee/RedtideWhirlpool.cs new file mode 100644 index 0000000000..dcaea355e8 --- /dev/null +++ b/Projectiles/Melee/RedtideWhirlpool.cs @@ -0,0 +1,74 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; +using System; + +namespace CalamityMod.Projectiles.Melee +{ + public class RedtideWhirlpool : ModProjectile + { + public Player Owner => Main.player[Projectile.owner]; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Whirlpool"); + } + + public override void SetDefaults() + { + Projectile.width = 60; + Projectile.height = 60; + Projectile.friendly = true; + Projectile.DamageType = DamageClass.Melee; + Projectile.ignoreWater = true; + Projectile.tileCollide = false; + Projectile.penetrate = -1; + Projectile.timeLeft = 40; + } + + public override void AI() + { + Projectile.velocity *= 0.97f; + Projectile.rotation += MathHelper.PiOver4 / 2.4f * Math.Sign(Projectile.velocity.X); + + int dustCount = Main.rand.Next(4); + float offset = Main.rand.NextFloat(MathHelper.TwoPi); + for (int i = 0; i < dustCount; i++) + { + float angle = i / (float)dustCount * MathHelper.TwoPi + offset; + Vector2 dustPos = Projectile.Center + angle.ToRotationVector2() * 40f; + Dust dust = Dust.NewDustPerfect(dustPos, 176, (angle - MathHelper.PiOver2 * Math.Sign(Projectile.velocity.X)).ToRotationVector2() * 5f + Projectile.velocity, Scale: Main.rand.NextFloat(1f, 2f)); + dust.noGravity = true; + } + } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + + SpriteEffects flip = Math.Sign(Projectile.velocity.X) < 0? SpriteEffects.None : SpriteEffects.FlipHorizontally; + Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, null, lightColor * 0.4f, Projectile.rotation, texture.Size() / 2f, 2f, flip, 0); + + return false; + } + + public override void Kill(int timeLeft) + { + SoundEngine.PlaySound(SoundID.NPCDeath19, Projectile.position); + int num226 = 36; + for (int num227 = 0; num227 < num226; num227++) + { + Vector2 vector6 = Vector2.Normalize(Projectile.velocity) * new Vector2((float)Projectile.width / 2f, (float)Projectile.height) * 0.75f; + vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default) + Projectile.Center; + Vector2 vector7 = vector6 - Projectile.Center; + int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 172, vector7.X * 2f, vector7.Y * 2f, 100, default, 1.4f); + Main.dust[num228].noGravity = true; + Main.dust[num228].noLight = true; + Main.dust[num228].velocity = vector7; + } + } + } +} diff --git a/Projectiles/Melee/UrchinMaceProjectile.cs b/Projectiles/Melee/UrchinMaceProjectile.cs index 995db90879..eed219961a 100644 --- a/Projectiles/Melee/UrchinMaceProjectile.cs +++ b/Projectiles/Melee/UrchinMaceProjectile.cs @@ -4,6 +4,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; +using System; namespace CalamityMod.Projectiles.Melee { @@ -12,13 +13,10 @@ namespace CalamityMod.Projectiles.Melee public Player Owner => Main.player[Projectile.owner]; public override string Texture => "CalamityMod/Items/Weapons/Melee/UrchinMace"; - public const float MaxWindup = 70; + public static float MaxWindup = 110; public ref float Windup => ref Projectile.ai[0]; public float WindupProgress => MathHelper.Clamp(Windup, 0, MaxWindup) / MaxWindup; - - public ref float SoundPlayed => ref Projectile.localAI[0]; - - Vector2 offset; + public static float whirlpoolDamageMultiplier = 1.6f; public override void SetStaticDefaults() { @@ -35,7 +33,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.tileCollide = false; Projectile.penetrate = -1; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 20; + Projectile.localNPCHitCooldown = 10; } public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) @@ -48,23 +46,11 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { - if (offset == null) - offset = Vector2.Zero; + Owner.direction = Math.Sign(Owner.Calamity().mouseWorld.X - Owner.position.X); - if (Owner.controlUp) - { - offset.X -= 0.5f; - } - if (Owner.controlDown) - { - offset.X += 0.5f; - } - - Main.mouseText = true; - Main.instance.MouseText(offset.X.ToString()); - - Projectile.rotation += WindupProgress * MathHelper.PiOver4 / 23f; + Projectile.velocity = Vector2.Zero; + Projectile.rotation += (WindupProgress * MathHelper.PiOver4 / 1.5f) * Owner.direction; if (Owner.channel) { @@ -72,19 +58,25 @@ namespace CalamityMod.Projectiles.Melee UpdateOwnerVars(); } - Projectile.Center = Owner.Center + Projectile.rotation.ToRotationVector2() * 0f + Vector2.UnitY * 4; - - if (Owner.direction < 0) //My god why is Owner.direction not properly being updated. - Projectile.Center += Vector2.UnitX * 12; - - if (Projectile.rotation < 0f) + if (WindupProgress > 0.5f) { - SoundPlayed = 0f; + int dustCount = Main.rand.Next(4); + float offset = Main.rand.NextFloat(MathHelper.TwoPi); + for (int i = 0; i < dustCount; i++) + { + float angle = i / (float)dustCount * MathHelper.TwoPi + offset; + Vector2 dustPos = Owner.Center + angle.ToRotationVector2() * 40f * WindupProgress; + Dust dust = Dust.NewDustPerfect(dustPos, 176, (angle - MathHelper.PiOver2 * Owner.direction).ToRotationVector2() * 5f + Owner.velocity, Scale: Main.rand.NextFloat(1f, 2f)); + dust.noGravity = true; + } } - else if (SoundPlayed == 0f) + + Projectile.Center = Owner.Center + Projectile.rotation.ToRotationVector2() * 10f - Vector2.UnitX * 4 * Owner.direction; + + if (Projectile.soundDelay <= 0) { SoundEngine.PlaySound(SoundID.DD2_GhastlyGlaivePierce, Owner.Center); - SoundPlayed = 1f; + Projectile.soundDelay = 28; } Windup++; @@ -92,6 +84,21 @@ namespace CalamityMod.Projectiles.Melee public void UpdateOwnerVars() { + float armPointingDirection = ((Owner.Calamity().mouseWorld - Owner.Center).ToRotation()); + + //"crop" the rotation so the player only tilts the fishing rod slightly up and slightly down. + if (armPointingDirection < MathHelper.PiOver2 && armPointingDirection >= -MathHelper.PiOver2) + armPointingDirection = -MathHelper.PiOver2 + MathHelper.PiOver4 / 2f + MathHelper.PiOver2 * 1.5f * Utils.GetLerpValue(0f, MathHelper.Pi, armPointingDirection + MathHelper.PiOver2, true); + else + { + if (armPointingDirection > 0) + armPointingDirection = MathHelper.PiOver2 + MathHelper.PiOver4 / 2f + MathHelper.PiOver4 * 1.5f * Utils.GetLerpValue(0f, MathHelper.PiOver2, armPointingDirection - MathHelper.PiOver2, true); + else + armPointingDirection = -MathHelper.Pi + MathHelper.PiOver4 * 1.5f * Utils.GetLerpValue(-MathHelper.Pi, -MathHelper.PiOver4, armPointingDirection, true); + } + + + Owner.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, armPointingDirection - MathHelper.PiOver2); Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, Projectile.rotation - MathHelper.PiOver2); Owner.heldProj = Projectile.whoAmI; Owner.itemTime = 2; @@ -100,13 +107,18 @@ namespace CalamityMod.Projectiles.Melee public override bool PreDraw(ref Color lightColor) { + Owner.direction = Math.Sign(Owner.Calamity().mouseWorld.X - Owner.position.X); + Texture2D maceTexture = ModContent.Request(Texture).Value; Texture2D whirlpoolTexture = ModContent.Request("CalamityMod/Projectiles/Melee/RedtideWhirlpool").Value; - float whirlpoolScale = WindupProgress * 2.4f; - float whirlpoolOpacity = WindupProgress * 0.2f; + float whirlpoolScale = WindupProgress * 2f; + float whirlpoolOpacity = WindupProgress * 0.2f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f; + float whirlpoolRotation = Windup * 0.34f * Owner.direction; + SpriteEffects flip = Owner.direction < 0 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; - Main.spriteBatch.Draw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity, Projectile.rotation + Windup * 0.1f, whirlpoolTexture.Size() / 2f, whirlpoolScale, SpriteEffects.None, 0); + Main.spriteBatch.Draw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity * 0.3f, whirlpoolRotation * 1.2f, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); + Main.spriteBatch.Draw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity, whirlpoolRotation, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); Vector2 handleOrigin = new Vector2(0, maceTexture.Height); float maceRotation = Projectile.rotation + MathHelper.PiOver4; @@ -118,19 +130,12 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { //Spawn a whirlpool typhoon after sending it out - - SoundEngine.PlaySound(SoundID.NPCDeath19, Projectile.position); - int num226 = 36; - for (int num227 = 0; num227 < num226; num227++) + if (WindupProgress >= 1f && Projectile.owner == Main.myPlayer) { - Vector2 vector6 = Vector2.Normalize(Projectile.velocity) * new Vector2((float)Projectile.width / 2f, (float)Projectile.height) * 0.75f; - vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default) + Projectile.Center; - Vector2 vector7 = vector6 - Projectile.Center; - int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 172, vector7.X * 2f, vector7.Y * 2f, 100, default, 1.4f); - Main.dust[num228].noGravity = true; - Main.dust[num228].noLight = true; - Main.dust[num228].velocity = vector7; + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, (Main.MouseWorld - Owner.position).SafeNormalize(Vector2.One) * 25f, ModContent.ProjectileType(), (int)(Projectile.damage * whirlpoolDamageMultiplier), Projectile.knockBack, Projectile.owner, 0, 0f); } + + SoundEngine.PlaySound(SoundID.Item7, Projectile.position); } } } diff --git a/Projectiles/Rogue/FishboneBoomerangProjectile.cs b/Projectiles/Rogue/FishboneBoomerangProjectile.cs index 649945bfe7..1e5ed0cafa 100644 --- a/Projectiles/Rogue/FishboneBoomerangProjectile.cs +++ b/Projectiles/Rogue/FishboneBoomerangProjectile.cs @@ -43,6 +43,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.penetrate = -1; Projectile.timeLeft = Lifetime + ChargeupTime; Projectile.DamageType = RogueDamageClass.Instance; + Projectile.ignoreWater = true; } public override bool ShouldUpdatePosition() @@ -145,13 +146,13 @@ namespace CalamityMod.Projectiles.Rogue ImpactEffects(); float streakRotation; - for (int i = 0; i < 4; i++) + for (int i = 0; i < 5; i++) { streakRotation = Main.rand.NextFloat(MathHelper.TwoPi); for (int j = 0; j < 4; j++) { - Dust dust = Dust.NewDustPerfect(Projectile.Center + streakRotation.ToRotationVector2() * (4f + 4f * j), 34, streakRotation.ToRotationVector2() * (4f * j + 4f)); + Dust dust = Dust.NewDustPerfect(Projectile.Center + streakRotation.ToRotationVector2() * (2f + 0.4f * j), 176, streakRotation.ToRotationVector2() * (0.6f * j + 3f), Scale: 1.4f); dust.noGravity = true; } } From 6306f3d097f21c1d331cf6e4e3497666da5f7d59 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Fri, 3 Jun 2022 19:34:34 +0200 Subject: [PATCH 15/30] Urchin mace visual polish --- Particles/UrchinSpikeParticle.cs | 45 ++++++++++++++++++++++ Particles/UrchinSpikes.png | Bin 0 -> 571 bytes Projectiles/Melee/RedtideWhirlpool.cs | 7 +++- Projectiles/Melee/UrchinMaceProjectile.cs | 19 ++++++++- 4 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 Particles/UrchinSpikeParticle.cs create mode 100644 Particles/UrchinSpikes.png diff --git a/Particles/UrchinSpikeParticle.cs b/Particles/UrchinSpikeParticle.cs new file mode 100644 index 0000000000..72d1f18b84 --- /dev/null +++ b/Particles/UrchinSpikeParticle.cs @@ -0,0 +1,45 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Particles +{ + public class UrchinSpikeParticle : Particle + { + public override string Texture => "CalamityMod/Particles/UrchinSpikes"; + public override bool UseCustomDraw => true; + public override bool SetLifetime => true; + public override int FrameVariants => 6; + + public float Opacity; + + public UrchinSpikeParticle(Vector2 position, Vector2 speed, float rotation, float scale = 1f, float opacity = 1f, int lifetime = 20) + { + Position = position; + Scale = scale; + Color = Color.White; + Opacity = opacity; + Velocity = speed; + Rotation = rotation; + Lifetime = lifetime; + Variant = Main.rand.Next(6); + } + + public override void Update() + { + Color = Lighting.GetColor((int)Position.X / 16, (int)Position.Y / 16) * Opacity; + Velocity *= 0.9f; + if (Velocity.Length() <= 0.01f) + GeneralParticleHandler.RemoveParticle(this); + } + + public override void CustomDraw(SpriteBatch spriteBatch) + { + Texture2D texture = GeneralParticleHandler.GetTexture(Type); + Rectangle frame = new Rectangle(8 * Variant, 0, 6, 10); + spriteBatch.Draw(texture, Position - Main.screenPosition, frame, Color, Rotation, frame.Size() * 0.5f, Scale, SpriteEffects.None, 0f); + } + } +} diff --git a/Particles/UrchinSpikes.png b/Particles/UrchinSpikes.png new file mode 100644 index 0000000000000000000000000000000000000000..852ce2cf3dc74b345b29651ad89a188f1524e9db GIT binary patch literal 571 zcmV-B0>u4^P)Px$^+`lQR5*>@)ICVnQ547V&;LPFLn~54Qk2AeL4xRQD1wG+vZa=!p@={V+p4Xi z0)uD>l3FTg2#aV+GzcTe28Bp65yT+PM zosleVH{JmayN)cU!lgBU>h@=#@c7lFy#L{)zj;C|^OF@-N$VeUH-g&gD@l2M!(|Xl z+I}HMsV*H-WEw2c|#ugY;L?ud=LT>1hcY2OHjjmy@fa zL}p3?KVLTpR`$1S;SUiN{btM60j?IFc>=H2YEt>tD?1(Texture).Value; SpriteEffects flip = Math.Sign(Projectile.velocity.X) < 0? SpriteEffects.None : SpriteEffects.FlipHorizontally; + + Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, null, lightColor * 0.3f, Projectile.rotation * 1.2f, texture.Size() / 2f, 1.5f, flip, 0); Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, null, lightColor * 0.4f, Projectile.rotation, texture.Size() / 2f, 2f, flip, 0); return false; diff --git a/Projectiles/Melee/UrchinMaceProjectile.cs b/Projectiles/Melee/UrchinMaceProjectile.cs index eed219961a..a669fa323e 100644 --- a/Projectiles/Melee/UrchinMaceProjectile.cs +++ b/Projectiles/Melee/UrchinMaceProjectile.cs @@ -5,6 +5,7 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; using System; +using CalamityMod.Particles; namespace CalamityMod.Projectiles.Melee { @@ -79,6 +80,11 @@ namespace CalamityMod.Projectiles.Melee Projectile.soundDelay = 28; } + if (Windup == MaxWindup && Owner.whoAmI == Main.myPlayer) + { + SoundEngine.PlaySound(SoundID.Item43, Owner.Center); + } + Windup++; } @@ -105,6 +111,17 @@ namespace CalamityMod.Projectiles.Melee Owner.itemAnimation = 2; } + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + for (int i = 0; i < 3; i++) + { + float angle = Main.rand.NextFloat(MathHelper.TwoPi); + + Particle spike = new UrchinSpikeParticle(target.Center + angle.ToRotationVector2() * 15f, angle.ToRotationVector2() * 6f, angle + MathHelper.PiOver2, Main.rand.NextFloat(1f, 1.3f), lifetime: Main.rand.Next(10) + 25); + GeneralParticleHandler.SpawnParticle(spike); + } + } + public override bool PreDraw(ref Color lightColor) { Owner.direction = Math.Sign(Owner.Calamity().mouseWorld.X - Owner.position.X); @@ -112,7 +129,7 @@ namespace CalamityMod.Projectiles.Melee Texture2D maceTexture = ModContent.Request(Texture).Value; Texture2D whirlpoolTexture = ModContent.Request("CalamityMod/Projectiles/Melee/RedtideWhirlpool").Value; - float whirlpoolScale = WindupProgress * 2f; + float whirlpoolScale = MathHelper.Clamp(WindupProgress * 3f - 0.4f, 0f, 1f) * 2f; float whirlpoolOpacity = WindupProgress * 0.2f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f; float whirlpoolRotation = Windup * 0.34f * Owner.direction; SpriteEffects flip = Owner.direction < 0 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; From 969b46d21c2456a4cfc0b07ebffc7f70695f0163 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sat, 4 Jun 2022 00:12:46 +0200 Subject: [PATCH 16/30] LegacyNames for renamed stuff --- Items/Armor/VictideCoralTurban.cs | 1 + Items/Armor/VictideGreaves.cs | 1 + Items/Armor/VictideHeadcrab.cs | 1 + Items/Armor/VictideHermitHelmet.cs | 2 ++ Items/Armor/VictideMask.cs | 4 ++++ Items/Armor/VictideSeaShellmet.cs | 1 + Items/Materials/SeaRemains.cs | 1 + Items/Weapons/Melee/RedtideSpear.cs | 1 + Items/Weapons/Melee/UrchinMace.cs | 14 +++++++++----- Items/Weapons/Ranged/ReedBlowgun.cs | 4 ++-- Items/Weapons/Rogue/FishboneBoomerang.cs | 1 + Projectiles/Melee/UrchinMaceProjectile.cs | 4 ++++ 12 files changed, 28 insertions(+), 7 deletions(-) diff --git a/Items/Armor/VictideCoralTurban.cs b/Items/Armor/VictideCoralTurban.cs index f9bff26f17..70d457d996 100644 --- a/Items/Armor/VictideCoralTurban.cs +++ b/Items/Armor/VictideCoralTurban.cs @@ -7,6 +7,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] + [LegacyName("VictideVisage")] public class VictideCoralTurban : ModItem { public override void SetStaticDefaults() diff --git a/Items/Armor/VictideGreaves.cs b/Items/Armor/VictideGreaves.cs index 57bd196b9e..d067bb0c63 100644 --- a/Items/Armor/VictideGreaves.cs +++ b/Items/Armor/VictideGreaves.cs @@ -6,6 +6,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Legs)] + [LegacyName("VictideLeggings")] public class VictideGreaves : ModItem { public override void SetStaticDefaults() diff --git a/Items/Armor/VictideHeadcrab.cs b/Items/Armor/VictideHeadcrab.cs index 6c8691e729..96b7db2ffe 100644 --- a/Items/Armor/VictideHeadcrab.cs +++ b/Items/Armor/VictideHeadcrab.cs @@ -7,6 +7,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] + [LegacyName("VictideHeadgear")] public class VictideHeadcrab : ModItem { public override void SetStaticDefaults() diff --git a/Items/Armor/VictideHermitHelmet.cs b/Items/Armor/VictideHermitHelmet.cs index 4756b6b41f..e34cc2c093 100644 --- a/Items/Armor/VictideHermitHelmet.cs +++ b/Items/Armor/VictideHermitHelmet.cs @@ -7,6 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] + [LegacyName("VictideHelmet")] + //Look at VictideMask.cs for the explanation. public class VictideHermitHelmet : ModItem { public override void SetStaticDefaults() diff --git a/Items/Armor/VictideMask.cs b/Items/Armor/VictideMask.cs index d72d0e1b5c..8b9165a15e 100644 --- a/Items/Armor/VictideMask.cs +++ b/Items/Armor/VictideMask.cs @@ -10,6 +10,10 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] + //[LegacyName("VictideHelmet")] + //While the victide summoner helmet was previously named "VictideHelmet", the victide mage hat was named "VictideMask". + //To avoid bizzare side effects, the victide mage helmet will simply turn into the summoner helm that stole its name, and the old VictideHelmet will become the new victide mage helmet + public class VictideMask : ModItem { diff --git a/Items/Armor/VictideSeaShellmet.cs b/Items/Armor/VictideSeaShellmet.cs index 5862db6c6a..ee94ffd683 100644 --- a/Items/Armor/VictideSeaShellmet.cs +++ b/Items/Armor/VictideSeaShellmet.cs @@ -7,6 +7,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] + [LegacyName("VictideHelm")] public class VictideSeaShellmet : ModItem { public override void SetStaticDefaults() diff --git a/Items/Materials/SeaRemains.cs b/Items/Materials/SeaRemains.cs index e68ee3bd62..33d0c1d557 100644 --- a/Items/Materials/SeaRemains.cs +++ b/Items/Materials/SeaRemains.cs @@ -4,6 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Materials { + [LegacyName("VictideBar")] public class SeaRemains : ModItem { public override void SetStaticDefaults() diff --git a/Items/Weapons/Melee/RedtideSpear.cs b/Items/Weapons/Melee/RedtideSpear.cs index 8401af8488..2adb49019d 100644 --- a/Items/Weapons/Melee/RedtideSpear.cs +++ b/Items/Weapons/Melee/RedtideSpear.cs @@ -6,6 +6,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Melee { + [LegacyName("UrchinSpear")] public class RedtideSpear : ModItem { public override void SetStaticDefaults() diff --git a/Items/Weapons/Melee/UrchinMace.cs b/Items/Weapons/Melee/UrchinMace.cs index 89e6989604..385feb726e 100644 --- a/Items/Weapons/Melee/UrchinMace.cs +++ b/Items/Weapons/Melee/UrchinMace.cs @@ -1,20 +1,19 @@ -using Terraria.DataStructures; -using Terraria.DataStructures; -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; -using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using System.Linq; namespace CalamityMod.Items.Weapons.Melee { + [LegacyName("RedtideSword")] public class UrchinMace : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Urchin Mace"); - Tooltip.SetDefault("Throws short-range whirlpools"); + Tooltip.SetDefault("Throws out a whirlpool when released at full charge"); SacrificeTotal = 1; } @@ -44,6 +43,11 @@ namespace CalamityMod.Items.Weapons.Melee player.Calamity().mouseWorldListener = true; } + public override bool CanUseItem(Player player) + { + return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI && n.type == ModContent.ProjectileType()); + } + public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Ranged/ReedBlowgun.cs b/Items/Weapons/Ranged/ReedBlowgun.cs index 0d3de46353..69ab52d5ce 100644 --- a/Items/Weapons/Ranged/ReedBlowgun.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -1,5 +1,4 @@ -using Terraria.DataStructures; -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using Terraria; @@ -9,6 +8,7 @@ using Terraria.Audio; namespace CalamityMod.Items.Weapons.Ranged { + [LegacyName("Seabow")] public class ReedBlowgun : ModItem { public static readonly SoundStyle BubbleBurstSound = new ("CalamityMod/Sounds/Custom/PistolShrimpBubbleBurst") { PitchVariance = 0.15f, Volume = 0.2f}; diff --git a/Items/Weapons/Rogue/FishboneBoomerang.cs b/Items/Weapons/Rogue/FishboneBoomerang.cs index 958fbd47a5..6c7e81f77f 100644 --- a/Items/Weapons/Rogue/FishboneBoomerang.cs +++ b/Items/Weapons/Rogue/FishboneBoomerang.cs @@ -9,6 +9,7 @@ using System.Linq; namespace CalamityMod.Items.Weapons.Rogue { + [LegacyName("SeashellBoomerang")] public class FishboneBoomerang : ModItem { public override void SetStaticDefaults() diff --git a/Projectiles/Melee/UrchinMaceProjectile.cs b/Projectiles/Melee/UrchinMaceProjectile.cs index a669fa323e..cc30205f39 100644 --- a/Projectiles/Melee/UrchinMaceProjectile.cs +++ b/Projectiles/Melee/UrchinMaceProjectile.cs @@ -39,6 +39,10 @@ namespace CalamityMod.Projectiles.Melee public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) { + //Prevent spam click abuse + if (Windup < Projectile.localNPCHitCooldown) + return false; + float collisionPoint = 0f; float bladeLenght = 70 * Projectile.scale; float bladeWidth = 30 * Projectile.scale; From 2c547143117619d5374e8407420c35c419927d36 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sat, 4 Jun 2022 04:27:47 +0200 Subject: [PATCH 17/30] Coral Spout (no polish) --- Items/Weapons/Magic/CoralSpout.cs | 48 +++++- Particles/UrchinSpikeParticle.cs | 1 + Projectiles/Magic/CoralSpike.cs | 56 +++++- Projectiles/Magic/CoralSpoutHoldout.cs | 141 +++++++++++++++ Projectiles/Magic/ManaChargedCoral.cs | 228 +++++++++++++++++++++++++ Projectiles/Magic/ManaChargedCoral.png | Bin 0 -> 1325 bytes Projectiles/Melee/RedtideWhirlpool.cs | 19 ++- 7 files changed, 475 insertions(+), 18 deletions(-) create mode 100644 Projectiles/Magic/CoralSpoutHoldout.cs create mode 100644 Projectiles/Magic/ManaChargedCoral.cs create mode 100644 Projectiles/Magic/ManaChargedCoral.png diff --git a/Items/Weapons/Magic/CoralSpout.cs b/Items/Weapons/Magic/CoralSpout.cs index 6377426ca0..7e375f215b 100644 --- a/Items/Weapons/Magic/CoralSpout.cs +++ b/Items/Weapons/Magic/CoralSpout.cs @@ -3,38 +3,80 @@ using CalamityMod.Projectiles.Magic; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using System.Linq; +using Microsoft.Xna.Framework; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.Magic { public class CoralSpout : ModItem { + public static readonly SoundStyle ChargeSound = SoundID.LiquidsHoneyWater with { Type = SoundType.Sound }; + public override void SetStaticDefaults() { DisplayName.SetDefault("Coral Spout"); Tooltip.SetDefault("Casts coral water spouts that lay on the ground and damage enemies"); + //Lore about stone tablets being used since paper couldn't be brought underwater. + //Maybe something something, the sea kingdom had to have a large amount of scribes to rewrite books into tablets SacrificeTotal = 1; } public override void SetDefaults() { - Item.damage = 17; + Item.damage = 7; Item.DamageType = DamageClass.Magic; - Item.mana = 4; + Item.mana = 7; Item.width = 28; Item.height = 30; Item.useTime = 26; Item.useAnimation = 26; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; + Item.channel = true; Item.knockBack = 2f; Item.value = Item.buyPrice(0, 2, 0, 0); Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item17; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; } + public override void HoldItem(Player player) + { + player.Calamity().mouseWorldListener = true; + } + + public override bool CanUseItem(Player player) + { + return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI && n.type == ModContent.ProjectileType()); + } + + public override void UseItemFrame(Player player) + { + //Calculate the dirction in which the players arms should be pointing at. + Vector2 playerToCursor = (player.Calamity().mouseWorld - player.Center).SafeNormalize(Vector2.UnitX); + float armPointingDirection = (playerToCursor.ToRotation()); + + player.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, armPointingDirection - MathHelper.PiOver2); + player.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, armPointingDirection - MathHelper.PiOver2); + } + + public override void UseStyle(Player player, Rectangle heldItemFrame) + { + if (player.Calamity().mouseWorld.X > player.Center.X) + { + player.ChangeDir(1); + } + else + { + player.ChangeDir(-1); + } + + CalamityUtils.CleanHoldStyle(player, player.compositeFrontArm.rotation + MathHelper.PiOver2, player.GetFrontHandPosition(player.compositeFrontArm.stretch, player.compositeFrontArm.rotation).Floor(), new Vector2(32, 0), new Vector2(-10, 8)); + } + public override void AddRecipes() { CreateRecipe(). diff --git a/Particles/UrchinSpikeParticle.cs b/Particles/UrchinSpikeParticle.cs index 72d1f18b84..ce66863143 100644 --- a/Particles/UrchinSpikeParticle.cs +++ b/Particles/UrchinSpikeParticle.cs @@ -29,6 +29,7 @@ namespace CalamityMod.Particles public override void Update() { + Opacity *= 0.98f; Color = Lighting.GetColor((int)Position.X / 16, (int)Position.Y / 16) * Opacity; Velocity *= 0.9f; if (Velocity.Length() <= 0.01f) diff --git a/Projectiles/Magic/CoralSpike.cs b/Projectiles/Magic/CoralSpike.cs index 5990df80d9..5c1cdeca89 100644 --- a/Projectiles/Magic/CoralSpike.cs +++ b/Projectiles/Magic/CoralSpike.cs @@ -1,9 +1,20 @@ -using System; +using System; using Terraria.ModLoader; +using Terraria; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Terraria.ModLoader; +using Terraria.Audio; +using Terraria.ID; + namespace CalamityMod.Projectiles.Magic { public class CoralSpike : ModProjectile { + public ref float ChargeCompletion => ref Projectile.ai[0]; + + public static int DustPick => Main.rand.NextBool(2) ? 255 : Main.rand.NextBool() ? 282 : Main.rand.NextBool() ? 281 : 280; + public override void SetStaticDefaults() { DisplayName.SetDefault("Coral Spike"); @@ -14,17 +25,50 @@ namespace CalamityMod.Projectiles.Magic Projectile.width = 30; Projectile.height = 30; Projectile.friendly = true; - Projectile.aiStyle = 14; - Projectile.penetrate = 4; + Projectile.penetrate = 1; Projectile.timeLeft = 360; + Projectile.tileCollide = true; + Projectile.ignoreWater = true; Projectile.DamageType = DamageClass.Magic; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 10; } public override void AI() { - Projectile.velocity.X *= 0.9f; - Projectile.velocity.Y *= 0.99f; - Projectile.rotation = (float)Math.Atan2((double)Projectile.velocity.Y, (double)Projectile.velocity.X) + 1.57f; + Projectile.velocity *= 0.96f; + Projectile.rotation = (float)Math.Atan2(Projectile.velocity.Y, Projectile.velocity.X) + 1.57f; + + if (Projectile.velocity.Length() < 2f) + Projectile.Kill(); + + int dustOpacity = (int)(200 * (1 - ChargeCompletion)); + float dustScale = Main.rand.NextFloat(1f, 1.4f) * (0.6f + 0.4f * ChargeCompletion); + Vector2 dustVelocity = Projectile.velocity.SafeNormalize(Vector2.Zero).RotatedByRandom(MathHelper.PiOver4 * 0.6f) * 4f + Main.rand.NextVector2Circular(4f, 4f); + Dust dust = Dust.NewDustPerfect(Projectile.Center, DustPick, dustVelocity, Alpha: dustOpacity, Scale : dustScale); + dust.noGravity = true; + } + + public override void Kill(int timeLeft) + { + SoundEngine.PlaySound(SoundID.Dig, Projectile.Center); + + for (int i = 0; i < 3; i++) + { + float angle = Main.rand.NextFloat(MathHelper.TwoPi); + + Particle spike = new UrchinSpikeParticle(Projectile.Center + angle.ToRotationVector2() * 2f, angle.ToRotationVector2() * 6f, angle + MathHelper.PiOver2, Main.rand.NextFloat(1f, 1.3f), lifetime: Main.rand.Next(10) + 25); + GeneralParticleHandler.SpawnParticle(spike); + } + + int dustCount = Main.rand.Next(7); + for (int i = 0; i < dustCount; i++) + { + int dustOpacity = (int)(200 * (1 - ChargeCompletion)); + float dustScale = Main.rand.NextFloat(1f, 1.4f) * (0.6f + 0.4f * ChargeCompletion); + Dust dust = Dust.NewDustPerfect(Projectile.Center, DustPick, Main.rand.NextVector2Circular(7f, 7f), Alpha: dustOpacity, Scale: dustScale); + dust.noGravity = true; + } } } } diff --git a/Projectiles/Magic/CoralSpoutHoldout.cs b/Projectiles/Magic/CoralSpoutHoldout.cs new file mode 100644 index 0000000000..cc0e927c03 --- /dev/null +++ b/Projectiles/Magic/CoralSpoutHoldout.cs @@ -0,0 +1,141 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; +using System; +using CalamityMod.Particles; +using CalamityMod.Items.Weapons.Magic; + + +namespace CalamityMod.Projectiles.Magic +{ + //Holdout, but invisible. It may as well be named "CoralSpoutHandler" + public class CoralSpoutHoldout : ModProjectile + { + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + + public static float MaxCharge = 50; + public static int ShotProjectiles = 5; + + public ref float Charge => ref Projectile.ai[0]; + public float ChargeProgress => MathHelper.Clamp(Charge, 0, MaxCharge) / MaxCharge; + public float FullChargeProgress => MathHelper.Clamp(Charge, 0, MaxCharge * 1.5f) / (MaxCharge * 1.5f); + public float Spread => MathHelper.PiOver2 * (1 - ChargeProgress * 0.95f); + + public Player Owner => Main.player[Projectile.owner]; + + + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Coral Spout"); + } + + public override void SetDefaults() + { + Projectile.width = 30; + Projectile.height = 30; + Projectile.friendly = true; + Projectile.DamageType = DamageClass.Magic; + Projectile.ignoreWater = true; + Projectile.tileCollide = false; + } + + public override bool? CanDamage() + { + return false; + } + + public override bool ShouldUpdatePosition() + { + return false; + } + + public override void AI() + { + if (Owner.channel) + { + Projectile.timeLeft = 2; + Owner.itemTime = 25; + Owner.itemAnimation = 25; + Owner.heldProj = Projectile.whoAmI; + } + + float pointingRotation = (Owner.Calamity().mouseWorld - Owner.Center).ToRotation(); + Projectile.Center = Owner.Center + pointingRotation.ToRotationVector2() * 40f; + + for (int i = -1; i <= 1; i += 2) + { + float angle = pointingRotation + (Spread / 2f) * i; + for (int j = 0; j < 10; j++) + { + Dust waterDust = Dust.NewDustPerfect(Owner.Center + angle.ToRotationVector2() * j * 40f, 33, Vector2.Zero, 100, default, 0.9f); + waterDust.noGravity = true; + } + } + + if (Projectile.soundDelay <= 0) + { + SoundEngine.PlaySound(CoralSpout.ChargeSound with { Pitch = 0.5f * ChargeProgress}, Owner.Center); + Projectile.soundDelay = 10; + } + + if (Charge == (int)(MaxCharge * 1.5f) && Owner.whoAmI == Main.myPlayer) + { + SoundEngine.PlaySound(SoundID.MaxMana, Owner.Center); + } + + Charge++; + } + + public override bool PreDraw(ref Color lightColor) + { + return base.PreDraw(ref lightColor); + } + + public override void Kill(int timeLeft) + { + float mainAngle = (Projectile.Center - Owner.Center).ToRotation(); + + if (FullChargeProgress < 1) + { + SoundEngine.PlaySound(SoundID.Item167 with { Volume = SoundID.Item167.Volume * 0.4f }, Owner.Center); + + + for (int i = 0; i < ShotProjectiles; i++) + { + float angleOffset = MathHelper.Lerp(Spread * -0.5f, Spread * 0.5f, i / (float)ShotProjectiles); + Vector2 direction = (mainAngle + angleOffset).ToRotationVector2(); + + if (Owner.whoAmI == Main.myPlayer) + { + float speed = 10 + 15 * ChargeProgress; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.Center + direction * 30f, direction * speed, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Owner.whoAmI, ChargeProgress); + } + + Color pulseColor = Main.rand.NextBool() ? Color.Coral : Color.DeepSkyBlue; + Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, pulseColor, new Vector2(0.5f, 1f), direction.ToRotation(), 0.02f, 0.1f, 30); + GeneralParticleHandler.SpawnParticle(pulse); + } + + } + + else + { + SoundEngine.PlaySound(SoundID.Item42, Owner.Center); + Vector2 direction = mainAngle.ToRotationVector2(); + + if (Owner.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.Center + direction * 30f, direction * 35, ModContent.ProjectileType(), (int)Projectile.damage * (ShotProjectiles + 1), Projectile.knockBack, Owner.whoAmI); + } + + Color pulseColor = Main.rand.NextBool() ? Color.Coral : Color.DeepSkyBlue; + Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, pulseColor, new Vector2(0.5f, 1f), direction.ToRotation(), 0.05f, 0.34f + Main.rand.NextFloat(0.3f), 30); + GeneralParticleHandler.SpawnParticle(pulse); + } + } + } +} diff --git a/Projectiles/Magic/ManaChargedCoral.cs b/Projectiles/Magic/ManaChargedCoral.cs new file mode 100644 index 0000000000..3ee26050ea --- /dev/null +++ b/Projectiles/Magic/ManaChargedCoral.cs @@ -0,0 +1,228 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; +using System; +using CalamityMod.Particles; +using CalamityMod.Items.Weapons.Magic; + +namespace CalamityMod.Projectiles.Magic +{ + public class ManaChargedCoral : ModProjectile + { + public Player Owner => Main.player[Projectile.owner]; + public static float FullMana => 180f; + public ref float ManaCharge => ref Projectile.ai[0]; + public NPC StuckNPC => Projectile.numHits > 0 ? Main.npc[(int)Projectile.ai[1]] : null; + public ref float DetachmentEffectsComplete => ref Projectile.localAI[0]; + public bool Stuck => (StuckNPC != null && StuckNPC.active && ManaCharge < FullMana); + public bool HasStuck => (Projectile.numHits > 0); + public bool DroppedDown => (HasStuck && !Stuck); + + + Vector2 offsetFromStuckNPC; + float rotationFromStuckNPC; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Mana-charged Coral"); + Main.projFrames[Projectile.type] = 3; + } + + public override void SetDefaults() + { + Projectile.width = 30; + Projectile.height = 30; + Projectile.friendly = true; + Projectile.penetrate = -1; + Projectile.timeLeft = 360; + Projectile.DamageType = DamageClass.Magic; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 10; + } + + public override bool ShouldUpdatePosition() + { + return !Stuck; + } + + public override bool? CanDamage() + { + return Projectile.numHits == 0; + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + if (HasStuck) + { + Projectile.velocity.X *= 0.86f; + return false; + } + return true; + } + + public override void AI() + { + if (Projectile.frame == 0) + Projectile.frame = Main.rand.Next(3) + 1; + + if (Stuck) + { + Projectile.Center = StuckNPC.Center + offsetFromStuckNPC.RotatedBy(StuckNPC.rotation) * StuckNPC.scale; + Projectile.rotation = StuckNPC.rotation + rotationFromStuckNPC; + + Projectile.tileCollide = false; + Projectile.timeLeft++; + ManaCharge++; + //Particles + } + + //Act as a magnetized collectible. + else if (HasStuck) + { + if (DetachmentEffectsComplete != 1f) + { + Projectile.tileCollide = true; + Projectile.timeLeft = 360; + DetachmentEffectsComplete = 1f; + Projectile.velocity = Vector2.UnitY.RotatedByRandom(MathHelper.PiOver2) * -1 * (Main.rand.NextFloat(5f) + 5f); + } + + float fallSpeed = Projectile.velocity.Y; + if (Projectile.velocity.X != 0) + Projectile.rotation += 0.02f * Math.Sign(Projectile.velocity.X) * Math.Clamp(Projectile.velocity.Length(), 0f, 5f); + + Projectile.velocity.X *= 0.987f; + Projectile.velocity.Y += 0.8f; + + float distanceToOwner = (Owner.Center - Projectile.Center).Length(); + if (distanceToOwner < 170f) + { + Projectile.timeLeft++; + + Projectile.velocity = (Owner.Center - Projectile.Center).SafeNormalize(Vector2.Zero) * Math.Max(distanceToOwner * 0.09f, 8f); + + if (distanceToOwner < 10f) + Projectile.Kill(); + } + //particles + } + + else + { + float fallSpeed = Projectile.velocity.Y; + if (Projectile.velocity.X != 0) + Projectile.rotation += 0.02f * Math.Sign(Projectile.velocity.X) * Math.Clamp(Projectile.velocity.Length(), 0f, 5f); + + if (Projectile.timeLeft < 345) + Projectile.velocity += Vector2.UnitY * 0.5f * (1 - Math.Clamp((Projectile.timeLeft - 310f) / 35f, 0f, 1f)); + + Projectile.velocity *= 0.98f; + + if (Projectile.velocity.Y > 0) + Projectile.velocity.Y = Math.Clamp(Projectile.velocity.Y, 0, Math.Max(18f, fallSpeed)); + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + SoundEngine.PlaySound(SoundID.GlommerBounce, Projectile.Center); + Projectile.velocity = Vector2.Zero; + Projectile.ai[1] = target.whoAmI; //Assign the stuck npc. + offsetFromStuckNPC = (Projectile.Center - target.Center).RotatedBy(-target.rotation) / target.scale; + rotationFromStuckNPC = Projectile.rotation - target.rotation; + } + + public override void Kill(int timeLeft) + { + if ((Owner.Center - Projectile.Center).Length() < 10f && HasStuck) + { + Owner.statMana += 60; + if (Main.myPlayer == Owner.whoAmI) + Owner.ManaEffect(60); + + if (Owner.statMana > Owner.statManaMax2) + Owner.statMana = Owner.statManaMax2; + + return; + } + + SoundEngine.PlaySound(SoundID.Item171, Projectile.Center); + + //Particles, with extra ones if it crashed chargeless + for (int i = 0; i < 8; i++) + { + float angle = Main.rand.NextFloat(MathHelper.TwoPi); + + Particle spike = new UrchinSpikeParticle(Projectile.Center + angle.ToRotationVector2() * 2f, angle.ToRotationVector2() * 6f, angle + MathHelper.PiOver2, Main.rand.NextFloat(1f, 1.3f), lifetime: Main.rand.Next(10) + 25); + GeneralParticleHandler.SpawnParticle(spike); + } + + int dustCount = Main.rand.Next(7); + for (int i = 0; i < dustCount; i++) + { + int dustOpacity = (int)(200 * Main.rand.NextFloat(0.5f, 1f)); + float dustScale = Main.rand.NextFloat(1f, 1.4f); + int dustType = CoralSpike.DustPick; //Epic reuse of static method babey + Vector2 dustVelocity = (dustType == 255 ? 1 : -1) * Projectile.velocity.RotatedByRandom(MathHelper.PiOver4) * 0.6f + Main.rand.NextVector2Circular(7f, 7f); + + Dust dust = Dust.NewDustPerfect(Projectile.Center, dustType, dustVelocity, Alpha: dustOpacity, Scale: dustScale); + dust.noGravity = true; + } + + int goreNumber = Main.rand.Next(4); + + for (int i = 0; i < goreNumber; i++) + { + int goreID = Main.rand.NextBool() ? 266 : Main.rand.NextBool() ? 971 : 972; + Gore bone = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * -0.2f + Main.rand.NextVector2Circular(5f, 5f), goreID); + bone.scale = Main.rand.NextFloat(0.6f, 1f) * (goreID == 972 ? 0.7f : 1f); //Shrink the larger bones + bone.type = goreID; //Gotta do that or else itll spawn gores from the general pool :( + } + + } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + Vector2 position = Projectile.Center - Main.screenPosition; + int variant = (int)(Projectile.frame - 1); + Rectangle frame = new Rectangle(0, 26 * variant, 24, 24); + float scale = 1.3f; + + Main.EntitySpriteDraw(texture, position, frame, lightColor, Projectile.rotation, frame.Size() / 2f, scale, 0, 0); + + if (Stuck || HasStuck) + { + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + + Texture2D bloomTex = ModContent.Request("CalamityMod/Particles/BloomCircle").Value; + float bloomSize = (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f + 0.4f; + + float period = (int)(FullMana / 4f); + + float pulseProgress = Main.GlobalTimeWrappedHourly % period / period; + + if (Stuck) + pulseProgress = (ManaCharge % period) / period; + + + float overimageSize = scale + (float)Math.Sqrt(pulseProgress) * 0.4f; + float overimageOpacity = (float)Math.Sin(pulseProgress * MathHelper.PiOver2 + MathHelper.PiOver2) * 0.7f; + + Main.EntitySpriteDraw(bloomTex, position, null, Color.DodgerBlue * 0.3f, 0, bloomTex.Size() / 2f, bloomSize, 0, 0); + + Main.EntitySpriteDraw(texture, position, frame, Color.DodgerBlue * overimageOpacity, Projectile.rotation, frame.Size() / 2f, overimageSize, 0, 0); + + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + } + + + return false; + } + } +} diff --git a/Projectiles/Magic/ManaChargedCoral.png b/Projectiles/Magic/ManaChargedCoral.png new file mode 100644 index 0000000000000000000000000000000000000000..e80f3219cf1d7570d0b7e71785b787aaab2c301e GIT binary patch literal 1325 zcmV+|1=9M7P)Px(=Sf6CR9J=WnQcg&Wf;eQPkQt?b-I(&j2Nv2CfL~0uxUxsQQ`?fF|&(PRd?83Z6TJ=*{nwt6E;sWXRhq4fmua82CS z{}IOS$|?Xt!yy17lTj0({_$i0>KbzZIM>$(z@%rTeTMW*1Ayf>NZpfT>%Qs?68*mh zOn|KQ9sq{E83Evf_hrDowLbxHU!T;sK2QU|r^k;;gLh24l2_=Q+W;L5RG~a43xJOi z25s50mh15Xv9%90ePx^Az=3A~80r=u9qLPwi7)*O=!l|Sn;(`p8EGa!L4{b_{&q6} zZ55R=vg67uPir^|Kxox%dVFB4+wueeqobE?8BEdL0KD;<^n07z0cbq`oo!f?B>J@F z{*3Dk0CQp(&=Ez`mRlA(*IHTb#Kzm#0?;%ljAmrG2@o8+4Cr8xHqtL8YYmkpPpt|7 z@cGVzKrEU{8cxf2i-Gb{-JQa`WF!p08S4dFGTE@oCd`g+1;waqyD(AA6w<77+5Ky-n&F9^3e-aL54g`X>RMyJ;vzPA0?q z7XX2w0f}d;U+qoM%uM)$0Rv!(TlS)4R}ui<|2_cd@PV`8#_Lzu>X`|m9>$_R+g_!j zs>KIp zypDHkzX0I*s!{;9S`5lccLUJfx(|SaNYDfbB;`7%(5&o~Wi7350?_G`v-nKg@gL{V+=Bl5c>JPd3-v+SMMVkAV{^z8eSZyQETXDsMKWii$4pkoZ@= z(8gevvfJ?33jp{#dTaxmiyj1GK2RCoV)ZL!=gL?v=SEPsE>aje`i`w09PgHb#Xzn3 zeyiQ7?2?HB(9!=Rpp!ukOAUa*h*)^h_nR%cHaENycLJxfb7KCLohv~|hNBT1qa;_7 z0WqDlsOZI74?gr$N4t^YewlTz7Wr&!Vzh#2oksydVUh1hVbf00000NkvXXu0mjfTMB%3 literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/RedtideWhirlpool.cs b/Projectiles/Melee/RedtideWhirlpool.cs index fc74acaaf8..dc6473e1a0 100644 --- a/Projectiles/Melee/RedtideWhirlpool.cs +++ b/Projectiles/Melee/RedtideWhirlpool.cs @@ -61,16 +61,17 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { SoundEngine.PlaySound(SoundID.NPCDeath19, Projectile.position); - int num226 = 36; - for (int num227 = 0; num227 < num226; num227++) + + int dustCount = 36; + for (int i = 0; i < dustCount; i++) { - Vector2 vector6 = Vector2.Normalize(Projectile.velocity) * new Vector2((float)Projectile.width / 2f, (float)Projectile.height) * 0.75f; - vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default) + Projectile.Center; - Vector2 vector7 = vector6 - Projectile.Center; - int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 172, vector7.X * 2f, vector7.Y * 2f, 100, default, 1.4f); - Main.dust[num228].noGravity = true; - Main.dust[num228].noLight = true; - Main.dust[num228].velocity = vector7; + Vector2 offset = Vector2.Normalize(Projectile.velocity) * new Vector2(Projectile.width / 2f, Projectile.height) * 0.75f; + offset = offset.RotatedBy(((i - (dustCount / 2 - 1)) * MathHelper.TwoPi / (float)dustCount), default) + Projectile.Center; + Vector2 dustDirection = offset - Projectile.Center; + Dust dust = Dust.NewDustPerfect(offset + dustDirection, 172, Vector2.Zero, 100, default, 1.4f); + dust.noGravity = true; + dust.noLight = true; + dust.velocity = dustDirection; } } } From 03350fcffac32acdd54d69f291084d4a65fd54e6 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sat, 4 Jun 2022 05:29:20 +0200 Subject: [PATCH 18/30] Visual additions (still wip) --- Items/Weapons/Magic/CoralSpout.cs | 7 +- Particles/CuteManaStarParticle.cs | 40 +++++++++ Particles/CuteStars.png | Bin 0 -> 328 bytes Projectiles/Magic/CoralSpike.cs | 3 +- Projectiles/Magic/CoralSpoutHoldout.cs | 2 +- Projectiles/Magic/ManaChargedCoral.cs | 115 ++++++++++++++++++------- 6 files changed, 131 insertions(+), 36 deletions(-) create mode 100644 Particles/CuteManaStarParticle.cs create mode 100644 Particles/CuteStars.png diff --git a/Items/Weapons/Magic/CoralSpout.cs b/Items/Weapons/Magic/CoralSpout.cs index 7e375f215b..94f803e3f1 100644 --- a/Items/Weapons/Magic/CoralSpout.cs +++ b/Items/Weapons/Magic/CoralSpout.cs @@ -16,7 +16,12 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { DisplayName.SetDefault("Coral Spout"); - Tooltip.SetDefault("Casts coral water spouts that lay on the ground and damage enemies"); + Tooltip.SetDefault("Casts a shotgun-like blast of coral shards\n" + + "Keep the attack button held down to narrow the spread\n" + + "Fully charging the attack releases a single, bigger chunk of coral that sticks to enemies\n" + + "Grabbing the chunk of coral after it falls from the enemy replenishes 80 mana" + + ); //Lore about stone tablets being used since paper couldn't be brought underwater. //Maybe something something, the sea kingdom had to have a large amount of scribes to rewrite books into tablets SacrificeTotal = 1; diff --git a/Particles/CuteManaStarParticle.cs b/Particles/CuteManaStarParticle.cs new file mode 100644 index 0000000000..94ec2f32e1 --- /dev/null +++ b/Particles/CuteManaStarParticle.cs @@ -0,0 +1,40 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Particles +{ + public class CuteManaStarParticle : Particle + { + public override string Texture => "CalamityMod/Particles/CuteStars"; + public override bool UseCustomDraw => false; + public override bool SetLifetime => true; + public override int FrameVariants => 2; + + public float Opacity; + + public CuteManaStarParticle(Vector2 position, Vector2 speed, float scale = 1f, float opacity = 1f, int lifetime = 20) + { + Position = position; + Scale = scale; + Color = Color.White; + Opacity = opacity; + Velocity = speed; + Rotation = Main.rand.NextFloat(MathHelper.TwoPi); + Lifetime = lifetime; + Variant = Main.rand.Next(2); + } + + public override void Update() + { + Opacity *= 0.96f; + Color = Color.White * Opacity; + Lighting.AddLight(Position, Color.DodgerBlue.ToVector3()); + Velocity *= 0.9f; + if (Velocity.Length() <= 0.01f) + GeneralParticleHandler.RemoveParticle(this); + } + } +} diff --git a/Particles/CuteStars.png b/Particles/CuteStars.png new file mode 100644 index 0000000000000000000000000000000000000000..6854b3beabe84d06444d27dfa3ffee543c014934 GIT binary patch literal 328 zcmV-O0k{5%P)Px$0!c(cR5*?0)4fUqK@t?8qqvBXY_RcGvokDbzL`7xb%k0p0Sj|?V5u?#USDof2!nEf z+x9)E3_4(HT(MAHE`qD;N(zhRbFjU!3mUCn3TuNSFul1Ia*3hVOj0=9Fa7F=Myn^E zxO3bG-DLQqe6rUBh1Gh#jD>D8{B|K`$?o9!qAi#B(K(;@`Itg|Wi~*&^N_-NsUP6! z>@=qs2T>kXmk09`5=Y5ViZ!{6+0(5q7sLDa7kT{7$xcKmc1(PaGUqWlF=mQVHe+t_ aKhzs|_gHme5I@HN0000- literal 0 HcmV?d00001 diff --git a/Projectiles/Magic/CoralSpike.cs b/Projectiles/Magic/CoralSpike.cs index 5c1cdeca89..4854dcf762 100644 --- a/Projectiles/Magic/CoralSpike.cs +++ b/Projectiles/Magic/CoralSpike.cs @@ -51,7 +51,8 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - SoundEngine.PlaySound(SoundID.Dig, Projectile.Center); + if (timeLeft != 0) + SoundEngine.PlaySound(SoundID.Dig with { Volume = SoundID.Dig.Volume * 0.4f}, Projectile.Center); for (int i = 0; i < 3; i++) { diff --git a/Projectiles/Magic/CoralSpoutHoldout.cs b/Projectiles/Magic/CoralSpoutHoldout.cs index cc0e927c03..5c7bae2030 100644 --- a/Projectiles/Magic/CoralSpoutHoldout.cs +++ b/Projectiles/Magic/CoralSpoutHoldout.cs @@ -116,7 +116,7 @@ namespace CalamityMod.Projectiles.Magic } Color pulseColor = Main.rand.NextBool() ? Color.Coral : Color.DeepSkyBlue; - Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, pulseColor, new Vector2(0.5f, 1f), direction.ToRotation(), 0.02f, 0.1f, 30); + Particle pulse = new DirectionalPulseRing(Owner.Center + direction * 44f, Vector2.Zero, pulseColor, new Vector2(0.5f, 1f), direction.ToRotation(), 0.04f, 0.2f, 30); GeneralParticleHandler.SpawnParticle(pulse); } diff --git a/Projectiles/Magic/ManaChargedCoral.cs b/Projectiles/Magic/ManaChargedCoral.cs index 3ee26050ea..362a7ec6f0 100644 --- a/Projectiles/Magic/ManaChargedCoral.cs +++ b/Projectiles/Magic/ManaChargedCoral.cs @@ -19,8 +19,6 @@ namespace CalamityMod.Projectiles.Magic public ref float DetachmentEffectsComplete => ref Projectile.localAI[0]; public bool Stuck => (StuckNPC != null && StuckNPC.active && ManaCharge < FullMana); public bool HasStuck => (Projectile.numHits > 0); - public bool DroppedDown => (HasStuck && !Stuck); - Vector2 offsetFromStuckNPC; float rotationFromStuckNPC; @@ -68,6 +66,7 @@ namespace CalamityMod.Projectiles.Magic if (Projectile.frame == 0) Projectile.frame = Main.rand.Next(3) + 1; + //Stay anchored to the enemy it's stuck in and emit charge particles. if (Stuck) { Projectile.Center = StuckNPC.Center + offsetFromStuckNPC.RotatedBy(StuckNPC.rotation) * StuckNPC.scale; @@ -76,7 +75,12 @@ namespace CalamityMod.Projectiles.Magic Projectile.tileCollide = false; Projectile.timeLeft++; ManaCharge++; - //Particles + + if (Main.rand.NextBool(5)) + { + Particle lilStar = new CuteManaStarParticle(Projectile.Center + Main.rand.NextVector2Circular(19f, 19f), Main.rand.NextVector2Circular(4f, 4f) - Vector2.UnitY * 6f * Main.rand.NextFloat(0.6f, 1.2f), Main.rand.NextFloat(0.8f, 1.8f), lifetime: Main.rand.Next(14) + 14); + GeneralParticleHandler.SpawnParticle(lilStar); + } } //Act as a magnetized collectible. @@ -90,7 +94,6 @@ namespace CalamityMod.Projectiles.Magic Projectile.velocity = Vector2.UnitY.RotatedByRandom(MathHelper.PiOver2) * -1 * (Main.rand.NextFloat(5f) + 5f); } - float fallSpeed = Projectile.velocity.Y; if (Projectile.velocity.X != 0) Projectile.rotation += 0.02f * Math.Sign(Projectile.velocity.X) * Math.Clamp(Projectile.velocity.Length(), 0f, 5f); @@ -107,9 +110,23 @@ namespace CalamityMod.Projectiles.Magic if (distanceToOwner < 10f) Projectile.Kill(); } + //particles + + if (Main.rand.NextBool(2)) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(15f, 15f), 45, Vector2.UnitY * -7f, Alpha: Main.rand.Next(100) + 120, Scale: Main.rand.NextFloat(1f, 2f)); + dust.noGravity = true; + } + + if (Main.rand.NextBool(5)) + { + Particle lilStar = new CuteManaStarParticle(Projectile.Center + Main.rand.NextVector2Circular(19f, 19f), -Vector2.UnitY * 6f * Main.rand.NextFloat(0.6f, 1.2f), Main.rand.NextFloat(0.8f, 1.8f), lifetime: Main.rand.Next(14) + 14); + GeneralParticleHandler.SpawnParticle(lilStar); + } } + //the flung state. else { float fallSpeed = Projectile.velocity.Y; @@ -123,6 +140,19 @@ namespace CalamityMod.Projectiles.Magic if (Projectile.velocity.Y > 0) Projectile.velocity.Y = Math.Clamp(Projectile.velocity.Y, 0, Math.Max(18f, fallSpeed)); + + //Sharticles + if (Main.rand.NextBool(2)) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(15f, 15f), 15, Projectile.velocity * 0.3f, Alpha: Main.rand.Next(100) + 120, Scale: Main.rand.NextFloat(1f, 2f)); + dust.noGravity = true; + } + + if (Main.rand.NextBool(3)) + { + Particle lilStar = new CuteManaStarParticle(Projectile.Center, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(5f, 5f) - Vector2.UnitY * 3f, Main.rand.NextFloat(0.8f, 1.8f), lifetime: Main.rand.Next(14) + 14); + GeneralParticleHandler.SpawnParticle(lilStar); + } } } @@ -139,9 +169,11 @@ namespace CalamityMod.Projectiles.Magic { if ((Owner.Center - Projectile.Center).Length() < 10f && HasStuck) { - Owner.statMana += 60; + SoundEngine.PlaySound(SoundID.Item28 with { Volume = SoundID.Item28.Volume * 0.8f }, Projectile.Center); + + Owner.statMana += 80; if (Main.myPlayer == Owner.whoAmI) - Owner.ManaEffect(60); + Owner.ManaEffect(80); if (Owner.statMana > Owner.statManaMax2) Owner.statMana = Owner.statManaMax2; @@ -149,37 +181,53 @@ namespace CalamityMod.Projectiles.Magic return; } - SoundEngine.PlaySound(SoundID.Item171, Projectile.Center); - - //Particles, with extra ones if it crashed chargeless - for (int i = 0; i < 8; i++) + //don't play the thuk sound & do the particles if it dies of natural causes + if (timeLeft != 0) { - float angle = Main.rand.NextFloat(MathHelper.TwoPi); + SoundEngine.PlaySound(SoundID.Item171, Projectile.Center); - Particle spike = new UrchinSpikeParticle(Projectile.Center + angle.ToRotationVector2() * 2f, angle.ToRotationVector2() * 6f, angle + MathHelper.PiOver2, Main.rand.NextFloat(1f, 1.3f), lifetime: Main.rand.Next(10) + 25); - GeneralParticleHandler.SpawnParticle(spike); + //Particles, with extra ones if it crashed chargeless + for (int i = 0; i < 8; i++) + { + float angle = Main.rand.NextFloat(MathHelper.TwoPi); + + Particle spike = new UrchinSpikeParticle(Projectile.Center + angle.ToRotationVector2() * 2f, angle.ToRotationVector2() * 6f, angle + MathHelper.PiOver2, Main.rand.NextFloat(1f, 1.3f), lifetime: Main.rand.Next(10) + 25); + GeneralParticleHandler.SpawnParticle(spike); + } + + int dustCount = Main.rand.Next(7); + for (int i = 0; i < dustCount; i++) + { + int dustOpacity = (int)(200 * Main.rand.NextFloat(0.5f, 1f)); + float dustScale = Main.rand.NextFloat(1f, 1.4f); + int dustType = CoralSpike.DustPick; //Epic reuse of static method babey + Vector2 dustVelocity = (dustType == 255 ? 1 : -1) * Projectile.velocity.RotatedByRandom(MathHelper.PiOver4) * 0.6f + Main.rand.NextVector2Circular(7f, 7f); + + Dust dust = Dust.NewDustPerfect(Projectile.Center, dustType, dustVelocity, Alpha: dustOpacity, Scale: dustScale); + dust.noGravity = true; + } + + int goreNumber = Main.rand.Next(4); + + for (int i = 0; i < goreNumber; i++) + { + int goreID = Main.rand.NextBool() ? 266 : Main.rand.NextBool() ? 971 : 972; + Gore bone = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * -0.2f + Main.rand.NextVector2Circular(5f, 5f), goreID); + bone.scale = Main.rand.NextFloat(0.6f, 1f) * (goreID == 972 ? 0.7f : 1f); //Shrink the larger bones + bone.type = goreID; //Gotta do that or else itll spawn gores from the general pool :( + } } - int dustCount = Main.rand.Next(7); - for (int i = 0; i < dustCount; i++) + else if (HasStuck) { - int dustOpacity = (int)(200 * Main.rand.NextFloat(0.5f, 1f)); - float dustScale = Main.rand.NextFloat(1f, 1.4f); - int dustType = CoralSpike.DustPick; //Epic reuse of static method babey - Vector2 dustVelocity = (dustType == 255 ? 1 : -1) * Projectile.velocity.RotatedByRandom(MathHelper.PiOver4) * 0.6f + Main.rand.NextVector2Circular(7f, 7f); + for (int i = 0; i < 14; i++) + { + Vector2 direction = Main.rand.NextVector2Circular(10f, 10f); + Dust dust = Dust.NewDustPerfect(Projectile.Center + direction, 45, direction + Vector2.UnitY * -7f, Alpha: Main.rand.Next(100) + 120, Scale: Main.rand.NextFloat(1f, 2f)); + dust.noGravity = true; + } - Dust dust = Dust.NewDustPerfect(Projectile.Center, dustType, dustVelocity, Alpha: dustOpacity, Scale: dustScale); - dust.noGravity = true; - } - - int goreNumber = Main.rand.Next(4); - - for (int i = 0; i < goreNumber; i++) - { - int goreID = Main.rand.NextBool() ? 266 : Main.rand.NextBool() ? 971 : 972; - Gore bone = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * -0.2f + Main.rand.NextVector2Circular(5f, 5f), goreID); - bone.scale = Main.rand.NextFloat(0.6f, 1f) * (goreID == 972 ? 0.7f : 1f); //Shrink the larger bones - bone.type = goreID; //Gotta do that or else itll spawn gores from the general pool :( + SoundEngine.PlaySound(SoundID.Item29 with { Volume = SoundID.Item29.Volume * 0.4f, Pitch = -0.3f }, Projectile.Center); } } @@ -204,11 +252,12 @@ namespace CalamityMod.Projectiles.Magic float period = (int)(FullMana / 4f); - float pulseProgress = Main.GlobalTimeWrappedHourly % period / period; + float pulseProgress = Main.GlobalTimeWrappedHourly % period / period; if (Stuck) + { pulseProgress = (ManaCharge % period) / period; - + } float overimageSize = scale + (float)Math.Sqrt(pulseProgress) * 0.4f; float overimageOpacity = (float)Math.Sin(pulseProgress * MathHelper.PiOver2 + MathHelper.PiOver2) * 0.7f; From 3348ef1482a8ad8103cb3c45271bb196d7b560fe Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sat, 4 Jun 2022 05:30:30 +0200 Subject: [PATCH 19/30] EntitySpriteDraw --- Projectiles/Melee/RedtideWhirlpool.cs | 4 ++-- Projectiles/Melee/UrchinMaceProjectile.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Projectiles/Melee/RedtideWhirlpool.cs b/Projectiles/Melee/RedtideWhirlpool.cs index dc6473e1a0..0f783c550c 100644 --- a/Projectiles/Melee/RedtideWhirlpool.cs +++ b/Projectiles/Melee/RedtideWhirlpool.cs @@ -52,8 +52,8 @@ namespace CalamityMod.Projectiles.Melee SpriteEffects flip = Math.Sign(Projectile.velocity.X) < 0? SpriteEffects.None : SpriteEffects.FlipHorizontally; - Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, null, lightColor * 0.3f, Projectile.rotation * 1.2f, texture.Size() / 2f, 1.5f, flip, 0); - Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, null, lightColor * 0.4f, Projectile.rotation, texture.Size() / 2f, 2f, flip, 0); + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, lightColor * 0.3f, Projectile.rotation * 1.2f, texture.Size() / 2f, 1.5f, flip, 0); + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, lightColor * 0.4f, Projectile.rotation, texture.Size() / 2f, 2f, flip, 0); return false; } diff --git a/Projectiles/Melee/UrchinMaceProjectile.cs b/Projectiles/Melee/UrchinMaceProjectile.cs index cc30205f39..89b3e2579b 100644 --- a/Projectiles/Melee/UrchinMaceProjectile.cs +++ b/Projectiles/Melee/UrchinMaceProjectile.cs @@ -138,12 +138,12 @@ namespace CalamityMod.Projectiles.Melee float whirlpoolRotation = Windup * 0.34f * Owner.direction; SpriteEffects flip = Owner.direction < 0 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; - Main.spriteBatch.Draw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity * 0.3f, whirlpoolRotation * 1.2f, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); - Main.spriteBatch.Draw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity, whirlpoolRotation, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); + Main.EntitySpriteDraw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity * 0.3f, whirlpoolRotation * 1.2f, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); + Main.EntitySpriteDraw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity, whirlpoolRotation, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); Vector2 handleOrigin = new Vector2(0, maceTexture.Height); float maceRotation = Projectile.rotation + MathHelper.PiOver4; - Main.spriteBatch.Draw(maceTexture, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), maceRotation, handleOrigin, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(maceTexture, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), maceRotation, handleOrigin, Projectile.scale, SpriteEffects.None, 0); return false; } From 064c8239bd52c1bacebf95123bb13d9af6ea3064 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sat, 4 Jun 2022 06:08:39 +0200 Subject: [PATCH 20/30] Polish --- Projectiles/Magic/CoralSpoutHoldout.cs | 31 +++++++++++++++----------- Projectiles/Magic/ManaChargedCoral.cs | 6 +++-- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/Projectiles/Magic/CoralSpoutHoldout.cs b/Projectiles/Magic/CoralSpoutHoldout.cs index 5c7bae2030..e3cba9e9f3 100644 --- a/Projectiles/Magic/CoralSpoutHoldout.cs +++ b/Projectiles/Magic/CoralSpoutHoldout.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Magic public ref float Charge => ref Projectile.ai[0]; public float ChargeProgress => MathHelper.Clamp(Charge, 0, MaxCharge) / MaxCharge; public float FullChargeProgress => MathHelper.Clamp(Charge, 0, MaxCharge * 1.5f) / (MaxCharge * 1.5f); - public float Spread => MathHelper.PiOver2 * (1 - ChargeProgress * 0.95f); + public float Spread => MathHelper.PiOver2 * (1 - (float)Math.Pow(ChargeProgress, 1.5) * 0.95f); public Player Owner => Main.player[Projectile.owner]; @@ -66,16 +66,6 @@ namespace CalamityMod.Projectiles.Magic float pointingRotation = (Owner.Calamity().mouseWorld - Owner.Center).ToRotation(); Projectile.Center = Owner.Center + pointingRotation.ToRotationVector2() * 40f; - for (int i = -1; i <= 1; i += 2) - { - float angle = pointingRotation + (Spread / 2f) * i; - for (int j = 0; j < 10; j++) - { - Dust waterDust = Dust.NewDustPerfect(Owner.Center + angle.ToRotationVector2() * j * 40f, 33, Vector2.Zero, 100, default, 0.9f); - waterDust.noGravity = true; - } - } - if (Projectile.soundDelay <= 0) { SoundEngine.PlaySound(CoralSpout.ChargeSound with { Pitch = 0.5f * ChargeProgress}, Owner.Center); @@ -92,7 +82,22 @@ namespace CalamityMod.Projectiles.Magic public override bool PreDraw(ref Color lightColor) { - return base.PreDraw(ref lightColor); + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + + Texture2D texture = ModContent.Request("CalamityMod/Projectiles/Summon/DeathstareBeam").Value; + + for (int i = -1; i <= 1; i += 2) + { + float angle = (Owner.Center - Owner.Calamity().mouseWorld).ToRotation() + (Spread / 2f) * i - MathHelper.PiOver2; + Vector2 scale = new Vector2(0.2f, 1f) * 3f; + Main.EntitySpriteDraw(texture, Owner.Center - Main.screenPosition, null, Color.DodgerBlue * 0.5f * (float)Math.Sqrt(ChargeProgress), angle, new Vector2(texture.Width / 2f, texture.Height), scale, 0, 0); + } + + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + + return false; } public override void Kill(int timeLeft) @@ -101,7 +106,7 @@ namespace CalamityMod.Projectiles.Magic if (FullChargeProgress < 1) { - SoundEngine.PlaySound(SoundID.Item167 with { Volume = SoundID.Item167.Volume * 0.4f }, Owner.Center); + SoundEngine.PlaySound(SoundID.Item167 with { Volume = SoundID.Item167.Volume * 0.4f + 0.2f * ChargeProgress }, Owner.Center); for (int i = 0; i < ShotProjectiles; i++) diff --git a/Projectiles/Magic/ManaChargedCoral.cs b/Projectiles/Magic/ManaChargedCoral.cs index 362a7ec6f0..4bd52ac3f4 100644 --- a/Projectiles/Magic/ManaChargedCoral.cs +++ b/Projectiles/Magic/ManaChargedCoral.cs @@ -171,9 +171,11 @@ namespace CalamityMod.Projectiles.Magic { SoundEngine.PlaySound(SoundID.Item28 with { Volume = SoundID.Item28.Volume * 0.8f }, Projectile.Center); - Owner.statMana += 80; + //To reach full mana, it needs to have stayed at least half the time needed. If you just one shot an enemy with it, you'll only get 10 mana + int manaGained = Math.Max(10, (int)Math.Floor(80 * Math.Clamp(ManaCharge * 2f / FullMana, 0f, 1f))); + Owner.statMana += manaGained; if (Main.myPlayer == Owner.whoAmI) - Owner.ManaEffect(80); + Owner.ManaEffect(manaGained); if (Owner.statMana > Owner.statManaMax2) Owner.statMana = Owner.statManaMax2; From 42ddaa52e93ca41db3bee6fbff0a700786da1fe1 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sat, 4 Jun 2022 23:45:11 +0200 Subject: [PATCH 21/30] Urchin Spear --- ...ctideSeaShellmet.cs => VictideShellmet.cs} | 4 +- ...ideSeaShellmet.png => VictideShellmet.png} | Bin ...lmet_Head.png => VictideShellmet_Head.png} | Bin Items/Weapons/Melee/RedtideSpear.cs | 7 +- .../Melee/CnidarianJellyfishOnTheString.cs | 2 +- .../Melee/Spears/RedtideSpearProjectile.cs | 107 +++++++++++++++--- Projectiles/Melee/UrchinMaceProjectile.cs | 12 +- 7 files changed, 113 insertions(+), 19 deletions(-) rename Items/Armor/{VictideSeaShellmet.cs => VictideShellmet.cs} (95%) rename Items/Armor/{VictideSeaShellmet.png => VictideShellmet.png} (100%) rename Items/Armor/{VictideSeaShellmet_Head.png => VictideShellmet_Head.png} (100%) diff --git a/Items/Armor/VictideSeaShellmet.cs b/Items/Armor/VictideShellmet.cs similarity index 95% rename from Items/Armor/VictideSeaShellmet.cs rename to Items/Armor/VictideShellmet.cs index ee94ffd683..70352d3251 100644 --- a/Items/Armor/VictideSeaShellmet.cs +++ b/Items/Armor/VictideShellmet.cs @@ -8,12 +8,12 @@ namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] [LegacyName("VictideHelm")] - public class VictideSeaShellmet : ModItem + public class VictideShellmet : ModItem { public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Victide Sea Shellmet"); + DisplayName.SetDefault("Victide Shellmet"); Tooltip.SetDefault("5% increased melee damage"); } diff --git a/Items/Armor/VictideSeaShellmet.png b/Items/Armor/VictideShellmet.png similarity index 100% rename from Items/Armor/VictideSeaShellmet.png rename to Items/Armor/VictideShellmet.png diff --git a/Items/Armor/VictideSeaShellmet_Head.png b/Items/Armor/VictideShellmet_Head.png similarity index 100% rename from Items/Armor/VictideSeaShellmet_Head.png rename to Items/Armor/VictideShellmet_Head.png diff --git a/Items/Weapons/Melee/RedtideSpear.cs b/Items/Weapons/Melee/RedtideSpear.cs index 2adb49019d..274866a70c 100644 --- a/Items/Weapons/Melee/RedtideSpear.cs +++ b/Items/Weapons/Melee/RedtideSpear.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { Item.width = 56; - Item.damage = 28; + Item.damage = 33; Item.DamageType = DamageClass.Melee; Item.noMelee = true; Item.useTurn = true; @@ -37,6 +37,11 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 4f; } + public override void HoldItem(Player player) + { + player.Calamity().mouseWorldListener = true; + } + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; public override void AddRecipes() diff --git a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs index a112f6f68a..dbc2f0b7d5 100644 --- a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs +++ b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs @@ -256,7 +256,7 @@ namespace CalamityMod.Projectiles.Melee } - //Swing animation keys + //Squish animation keys public CurveSegment anticipation = new CurveSegment(EasingType.PolyInOut, 0f, 1f, 0.35f, 3); public CurveSegment contraction = new CurveSegment(EasingType.PolyOut, 0.5f, 1.35f, -0.85f, 5); public CurveSegment retract = new CurveSegment(EasingType.SineInOut, 0.7f, 0.5f, 0.5f); diff --git a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs index fded2db56e..54d94ab849 100644 --- a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs +++ b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs @@ -1,12 +1,63 @@ -using System; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Projectiles.BaseProjectiles; +using Terraria.Audio; +using System; +using CalamityMod.Particles; +using static CalamityMod.CalamityUtils; + namespace CalamityMod.Projectiles.Melee.Spears { - public class RedtideSpearProjectile : BaseSpearProjectile + public class RedtideSpearProjectile : ModProjectile { + public Player Owner => Main.player[Projectile.owner]; + public static int Lifetime => 28; + public int Timer => Lifetime - Projectile.timeLeft; + + #region Thrust + //Basic animation variables. + public float ThrustProgress => Timer / (float)Lifetime; + public float ThrustRotation => Projectile.velocity.ToRotation() + Owner.direction * RotationShift; + public float BaseRotation => Projectile.velocity.ToRotation(); + + //Thrust animation keys + public CurveSegment thrust = new CurveSegment(EasingType.PolyIn, 0f, 0.15f, 0.85f, 3); + public CurveSegment hold = new CurveSegment(EasingType.SineBump, 0.3f, 1f, 0.2f); + public CurveSegment retract = new CurveSegment(EasingType.PolyOut, 0.7f, 1f, -1f, 2); + public CurveSegment correct = new CurveSegment(EasingType.PolyIn, 0.85f, 0f, 0.17f); + internal float Displacement => PiecewiseAnimation(ThrustProgress, new CurveSegment[] { thrust, hold, retract, correct }); + + internal const float startRotation = MathHelper.PiOver4 * 0.1f; + internal const float downwardsRotation = MathHelper.PiOver4 * 0.15f; + internal const float upwardsRotation = MathHelper.PiOver4 * -0.44f; + internal const float loweredTime = 0.25f; + + public CurveSegment downwards = new CurveSegment(EasingType.SineOut, 0f, startRotation, downwardsRotation, 2); + public CurveSegment upstamp = new CurveSegment(EasingType.SineIn, loweredTime, startRotation + downwardsRotation, upwardsRotation); + public CurveSegment stayUp = new CurveSegment(EasingType.Linear, 0.8f, startRotation + downwardsRotation + upwardsRotation, 0f); + internal float RotationShift => PiecewiseAnimation(ThrustProgress, new CurveSegment[] { downwards, upstamp, stayUp }); + public int InitializationTime => (int)(loweredTime * Lifetime); + #endregion + + #region Drag along the ground + + //Player can only do the run attack while moving fast horizontally, but remaining on the ground + public static int MaxRunTime = 300; + public bool CanRunAttack => Owner.velocity.Y == 0 && Math.Abs(Owner.velocity.X) >= Owner.maxRunSpeed * 0.7f && Owner.channel && !RunBroken; + public ref float RunTimer => ref Projectile.ai[0]; + public bool RunBroken + { + get => Projectile.ai[1] > 0f; //Basically tracks if the run has been broken. + set { Projectile.ai[1] = value ? 1f : 0f; } + } + #endregion + + internal static enum AttackState { ForwardThrust, RunAttack, UpwardsThrust }; + public AttackState CurrentMode => (RunBroken && RunTimer <= InitializationTime) ? AttackState.ForwardThrust : (RunBroken || RunTimer > MaxRunTime) ? AttackState.UpwardsThrust : AttackState.RunAttack; + + public override void SetStaticDefaults() { DisplayName.SetDefault("Redtide Spear"); @@ -14,11 +65,10 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void SetDefaults() { - Projectile.width = 56; //The width of the .png file in pixels divided by 2. - Projectile.aiStyle = 19; + Projectile.width = 56; Projectile.DamageType = DamageClass.Melee; //Dictates whether this is a melee-class weapon. - Projectile.timeLeft = 90; - Projectile.height = 56; //The height of the .png file in pixels divided by 2. + Projectile.timeLeft = Lifetime; + Projectile.height = 56; Projectile.friendly = true; Projectile.hostile = false; Projectile.tileCollide = false; @@ -27,18 +77,47 @@ namespace CalamityMod.Projectiles.Melee.Spears Projectile.ownerHitCheck = true; } - public override float InitialSpeed => 3f; - public override float ReelbackSpeed => 2.4f; - public override float ForwardSpeed => 0.95f; - public override Action EffectBeforeReelback => (proj) => + public override bool ShouldUpdatePosition() { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X + Projectile.velocity.X, Projectile.Center.Y + Projectile.velocity.Y, - Projectile.velocity.X * 1.6f, Projectile.velocity.Y * 1.6f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack * 0.5f, Projectile.owner, 0f, 0f); - }; + return false; + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + float collisionPoint = 0f; + float bladeLenght = 85 * Projectile.scale; + float bladeWidth = 20 * Projectile.scale; + return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center + ThrustRotation.ToRotationVector2() * bladeLenght * -0.5f, Projectile.Center + ThrustRotation.ToRotationVector2() * bladeLenght * 0.5f, bladeWidth, ref collisionPoint); + } + + public override void AI() + { + UpdateOwnerVars(); + Vector2 thrust = ThrustRotation.ToRotationVector2() * (Displacement * 40f + 5f); + Projectile.Center = Owner.Center + thrust; + + } + + public void UpdateOwnerVars() + { + Owner.direction = Math.Sign(BaseRotation.ToRotationVector2().X); + Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, ThrustRotation - MathHelper.PiOver2); + Owner.heldProj = Projectile.whoAmI; + Owner.itemTime = 2; + Owner.itemAnimation = 2; + } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Poisoned, 180); } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, lightColor, ThrustRotation + MathHelper.PiOver2 * 1.5f - MathHelper.ToRadians(12), texture.Size() / 2f, Projectile.scale, 0, 0); + return false; + } } } diff --git a/Projectiles/Melee/UrchinMaceProjectile.cs b/Projectiles/Melee/UrchinMaceProjectile.cs index 89b3e2579b..0aaae91a08 100644 --- a/Projectiles/Melee/UrchinMaceProjectile.cs +++ b/Projectiles/Melee/UrchinMaceProjectile.cs @@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Melee { float armPointingDirection = ((Owner.Calamity().mouseWorld - Owner.Center).ToRotation()); - //"crop" the rotation so the player only tilts the fishing rod slightly up and slightly down. + //"crop" the rotation so the player only points their arm in a smaller range. (The back arm points in the throw direction) if (armPointingDirection < MathHelper.PiOver2 && armPointingDirection >= -MathHelper.PiOver2) armPointingDirection = -MathHelper.PiOver2 + MathHelper.PiOver4 / 2f + MathHelper.PiOver2 * 1.5f * Utils.GetLerpValue(0f, MathHelper.Pi, armPointingDirection + MathHelper.PiOver2, true); else @@ -126,6 +126,16 @@ namespace CalamityMod.Projectiles.Melee } } + //If we don't do that, the hit enemies get knocked back towards you if you hit them from the right?? + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + // This would knock enemies away consistently, but i'm choosing to go with the other option + //hitDirection = Math.Sign(target.Center.X - Owner.Center.X); + + //Doing it this way lets the player choose if they want to knockback enemies towards them by pointing away from them + hitDirection = Owner.direction; + } + public override bool PreDraw(ref Color lightColor) { Owner.direction = Math.Sign(Owner.Calamity().mouseWorld.X - Owner.position.X); From 9f500b6a449a3bbcfd9299206c22cb25372ac1b3 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sun, 5 Jun 2022 04:01:32 +0200 Subject: [PATCH 22/30] Redtide Spear to skewer people --- Items/Weapons/Melee/RedtideSpear.cs | 1 + .../Melee/Spears/RedtideSpearProjectile.cs | 197 ++++++++++++++++-- .../Rogue/FishboneBoomerangProjectile.cs | 4 - 3 files changed, 184 insertions(+), 18 deletions(-) diff --git a/Items/Weapons/Melee/RedtideSpear.cs b/Items/Weapons/Melee/RedtideSpear.cs index 274866a70c..e0c313bb9d 100644 --- a/Items/Weapons/Melee/RedtideSpear.cs +++ b/Items/Weapons/Melee/RedtideSpear.cs @@ -26,6 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noUseGraphic = true; Item.useAnimation = 25; Item.useStyle = ItemUseStyleID.Shoot; + Item.channel = true; Item.useTime = 25; Item.knockBack = 5f; Item.UseSound = SoundID.Item1; diff --git a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs index 54d94ab849..79066365c5 100644 --- a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs +++ b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs @@ -13,14 +13,16 @@ namespace CalamityMod.Projectiles.Melee.Spears public class RedtideSpearProjectile : ModProjectile { public Player Owner => Main.player[Projectile.owner]; - public static int Lifetime => 28; + public static int Lifetime = 28; public int Timer => Lifetime - Projectile.timeLeft; + public int ChargeDirection => Math.Sign(Projectile.velocity.X); + #region Thrust //Basic animation variables. public float ThrustProgress => Timer / (float)Lifetime; - public float ThrustRotation => Projectile.velocity.ToRotation() + Owner.direction * RotationShift; public float BaseRotation => Projectile.velocity.ToRotation(); + public float ThrustRotation => BaseRotation + Owner.direction * RotationShift; //Thrust animation keys public CurveSegment thrust = new CurveSegment(EasingType.PolyIn, 0f, 0.15f, 0.85f, 3); @@ -35,28 +37,122 @@ namespace CalamityMod.Projectiles.Melee.Spears internal const float loweredTime = 0.25f; public CurveSegment downwards = new CurveSegment(EasingType.SineOut, 0f, startRotation, downwardsRotation, 2); - public CurveSegment upstamp = new CurveSegment(EasingType.SineIn, loweredTime, startRotation + downwardsRotation, upwardsRotation); + public CurveSegment raiseback = new CurveSegment(EasingType.SineIn, loweredTime, startRotation + downwardsRotation, upwardsRotation); public CurveSegment stayUp = new CurveSegment(EasingType.Linear, 0.8f, startRotation + downwardsRotation + upwardsRotation, 0f); - internal float RotationShift => PiecewiseAnimation(ThrustProgress, new CurveSegment[] { downwards, upstamp, stayUp }); + internal float RotationShift => PiecewiseAnimation(ThrustProgress, new CurveSegment[] { downwards, raiseback, stayUp }); public int InitializationTime => (int)(loweredTime * Lifetime); #endregion #region Drag along the ground - //Player can only do the run attack while moving fast horizontally, but remaining on the ground + public static int MaxRunTime = 300; - public bool CanRunAttack => Owner.velocity.Y == 0 && Math.Abs(Owner.velocity.X) >= Owner.maxRunSpeed * 0.7f && Owner.channel && !RunBroken; + //Player can only do the run attack while moving fast horizontally in the direction of the thrust, but remaining on the ground + public bool CanRunAttack => Math.Abs(Owner.velocity.Y) <= 0.4f && Math.Abs(Owner.velocity.X) >= Owner.maxRunSpeed * 0.7f && Math.Sign(Owner.velocity.X) == ChargeDirection && Owner.channel && !RunBroken; + public bool CanStartRunAttack => CanRunAttack && (Owner.Calamity().mouseWorld.Y - Owner.Center.Y) > -50; public ref float RunTimer => ref Projectile.ai[0]; + //The window of time during which the run hasn't fully started, and is indentical to the regular thrust's start. This tells us when we can no longer do this switch. + public bool FullyRunning => RunTimer > InitializationTime; + + //Basically tracks if the run has been broken, either because the player did not try to run at all, stopped running, or ran for too long. public bool RunBroken { - get => Projectile.ai[1] > 0f; //Basically tracks if the run has been broken. + get => Projectile.ai[1] > 0f; set { Projectile.ai[1] = value ? 1f : 0f; } } + + public static int UpThrustLifetime = 20; + public int UpThrustTimer => UpThrustLifetime - Projectile.timeLeft; + public float UpThrustProgress => UpThrustTimer / (float)UpThrustLifetime; + + //Gets the ideal rotation for the spear while running. Basically, slightly angled downwards towards the ground, to the left or right of the player depending on the direction + public float IdealSpearRotationForRun + { + get + { + float rotation = MathHelper.PiOver4 * 0.12f; + + if (ChargeDirection > 0) + return rotation; + + //Mirror the angle if facing left. + return MathHelper.Pi - rotation - MathHelper.TwoPi; + } + } + + //Properly wrap the angle. Indeed, the angles on the left suddenly go from Pi to -Pi + public float ProjectileRotationButWrappedForTransition + { + get + { + if (ChargeDirection < 0 && Projectile.rotation > 0) + return Projectile.rotation - MathHelper.TwoPi; + + return Projectile.rotation; + } + } + + public CurveSegment transitionSegment => new CurveSegment(EasingType.PolyInOut, 0f, ProjectileRotationButWrappedForTransition, IdealSpearRotationForRun - ProjectileRotationButWrappedForTransition, 2); + internal float RunAttackRotation => PiecewiseAnimation(Math.Clamp(RunTimer / 30f, 0f, 1f), new CurveSegment[] { transitionSegment }); + + + public CurveSegment anticipationDown => new CurveSegment(EasingType.SineIn, 0f, IdealSpearRotationForRun, ChargeDirection * MathHelper.PiOver4 * 0.1f, 2); + public CurveSegment upthrust => new CurveSegment(EasingType.SineOut, 0.4f, IdealSpearRotationForRun + ChargeDirection * MathHelper.PiOver4 * 0.1f, ChargeDirection * MathHelper.PiOver2 * -0.75f); + public CurveSegment holdup => new CurveSegment(EasingType.Linear, 0.8f, IdealSpearRotationForRun + ChargeDirection * MathHelper.PiOver2 * -0.7f, -0.14f); + internal float UpThrustRotation => PiecewiseAnimation(UpThrustProgress, new CurveSegment[] { anticipationDown, upthrust, holdup }); + + + public CurveSegment goback = new CurveSegment(EasingType.SineOut, 0f, 0.68f, -0.2f); + public CurveSegment goforwardfast = new CurveSegment(EasingType.PolyIn, 0.33f, 0.58f, 0.7f, 3); + public CurveSegment gobounce = new CurveSegment(EasingType.Linear, 0.6f, 1.28f, 0f); + public CurveSegment gobackagain = new CurveSegment(EasingType.SineOut, 0.86f, 1.28f, -0.2f); + internal float UpThrustDisplacement => PiecewiseAnimation(UpThrustProgress, new CurveSegment[] { goback, goforwardfast, gobounce, gobackagain }); + #endregion - internal static enum AttackState { ForwardThrust, RunAttack, UpwardsThrust }; - public AttackState CurrentMode => (RunBroken && RunTimer <= InitializationTime) ? AttackState.ForwardThrust : (RunBroken || RunTimer > MaxRunTime) ? AttackState.UpwardsThrust : AttackState.RunAttack; + #region General calculations + public enum AttackState { ForwardThrust, RunAttack, UpwardsThrust }; + public AttackState CurrentAttackState => (RunBroken && !FullyRunning) ? AttackState.ForwardThrust : (RunBroken || RunTimer > MaxRunTime) ? AttackState.UpwardsThrust : AttackState.RunAttack; + //Gets the proper rotation based on the current state of the spear + public float AppropriateRotation + { + get + { + //If the player isn't fully running yet, we just don't care about the actual attack, and have them have the default thrust rotation + if (!FullyRunning) + return ThrustRotation; + + if (CurrentAttackState == AttackState.RunAttack) + return RunAttackRotation; + + if (CurrentAttackState == AttackState.UpwardsThrust) + return UpThrustRotation; + + return ThrustRotation; + } + } + + //Gets the proper displacement based on the state of the spear + public float AppropriateDisplacement + { + get + { + //If the player isn't fully running yet, we just don't care about the actual attack, and have them have the default thrust rotation + if (!FullyRunning) + return Displacement; + + //If the player is running, make them keep the lance a bit behind as they run + if (CurrentAttackState == AttackState.RunAttack) + return MathHelper.Lerp(0.93f, 0.68f, Math.Clamp(RunTimer / 30f, 0f, 1f)); + + if (CurrentAttackState == AttackState.UpwardsThrust) + return UpThrustDisplacement; + + return Displacement; + } + } + #endregion public override void SetStaticDefaults() { @@ -87,36 +183,109 @@ namespace CalamityMod.Projectiles.Melee.Spears float collisionPoint = 0f; float bladeLenght = 85 * Projectile.scale; float bladeWidth = 20 * Projectile.scale; - return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center + ThrustRotation.ToRotationVector2() * bladeLenght * -0.5f, Projectile.Center + ThrustRotation.ToRotationVector2() * bladeLenght * 0.5f, bladeWidth, ref collisionPoint); + return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center + AppropriateRotation.ToRotationVector2() * bladeLenght * -0.5f, Projectile.Center + ThrustRotation.ToRotationVector2() * bladeLenght * 0.5f, bladeWidth, ref collisionPoint); } public override void AI() { + UpThrustLifetime = 20; + + + //If the player starts the attack without being able to do a run attack, mark the run as "broken" from the start. + if (Projectile.timeLeft == Lifetime && RunTimer == 0 && !CanStartRunAttack) + { + RunBroken = true; + } + + if (CurrentAttackState == AttackState.RunAttack) + { + //Keep the projectile alive during the run attack. + //The fullyRunning check is important, because the animation timer relies on the projectiles time left for the startup animation. + if (FullyRunning) + Projectile.timeLeft++; + + else + //We never actually use Projectile.rotation to draw or do any collision calculations. + //Instead, we use it to keep track of the final rotation of the spear BEFORE it was fully running + //We proceed to use this value to smooth the transition between the start of the thrust animation with the run animation. + Projectile.rotation = AppropriateRotation; + + //If at any point of the run attack, something happens to interrupt it, break the run and transition back into a forward or upwards thrust, depending on how long the player ran. + if (!CanRunAttack) + { + RunBroken = true; + //If the player was running for long enough, allow them to do a thrust attack. For this, we change the animation timer. + if (FullyRunning) + { + Projectile.timeLeft = UpThrustLifetime; + //Play a sound + } + } + + RunTimer++; + + } + + //Basic spear attack + else if (CurrentAttackState == AttackState.ForwardThrust) + { + //Play a sound if in the middle of the thrust. + } + + else if (CurrentAttackState == AttackState.UpwardsThrust) + { + //Do i even need to do anything here lol + } + UpdateOwnerVars(); - Vector2 thrust = ThrustRotation.ToRotationVector2() * (Displacement * 40f + 5f); + Vector2 thrust = AppropriateRotation.ToRotationVector2() * (AppropriateDisplacement * 40f + 5f); + + //During the run anim, make the spear bob up and down. + if (CurrentAttackState == AttackState.RunAttack) + thrust -= Vector2.UnitY * 2f * MathHelper.Clamp(0.5f + 0.8f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 20f), 0f, 1f); + Projectile.Center = Owner.Center + thrust; - } public void UpdateOwnerVars() { Owner.direction = Math.Sign(BaseRotation.ToRotationVector2().X); - Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, ThrustRotation - MathHelper.PiOver2); + Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, AppropriateRotation - MathHelper.PiOver2); Owner.heldProj = Projectile.whoAmI; Owner.itemTime = 2; Owner.itemAnimation = 2; + + //Add more latency after an upwards thrust, for impact purposes + if (CurrentAttackState == AttackState.UpwardsThrust) + { + Owner.itemTime = 20; + Owner.itemAnimation = 20; + } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { + //Send the enemy flying up if hit by the upwards thrust. + if (CurrentAttackState == AttackState.UpwardsThrust) + target.velocity.Y -= 12 * (float)Math.Sqrt(target.knockBackResist); + target.AddBuff(BuffID.Poisoned, 180); + + Owner.GiveIFrames(5); + } + + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + //Boost the knockback during the run attack + if (CurrentAttackState == AttackState.RunAttack) + knockback *= 1.35f; } public override bool PreDraw(ref Color lightColor) { Texture2D texture = ModContent.Request(Texture).Value; - Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, lightColor, ThrustRotation + MathHelper.PiOver2 * 1.5f - MathHelper.ToRadians(12), texture.Size() / 2f, Projectile.scale, 0, 0); + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, lightColor, AppropriateRotation + MathHelper.PiOver2 * 1.5f - MathHelper.ToRadians(12), texture.Size() / 2f, Projectile.scale, 0, 0); return false; } } diff --git a/Projectiles/Rogue/FishboneBoomerangProjectile.cs b/Projectiles/Rogue/FishboneBoomerangProjectile.cs index 1e5ed0cafa..fa03e224fd 100644 --- a/Projectiles/Rogue/FishboneBoomerangProjectile.cs +++ b/Projectiles/Rogue/FishboneBoomerangProjectile.cs @@ -63,14 +63,10 @@ namespace CalamityMod.Projectiles.Rogue //Swing animation keys public CurveSegment pullback = new CurveSegment(EasingType.PolyOut, 0f, 0f, MathHelper.PiOver4 * -1.2f, 2); public CurveSegment throwout = new CurveSegment(EasingType.PolyOut, 0.7f, MathHelper.PiOver4 * -1.2f, MathHelper.PiOver4 * 1.2f + MathHelper.PiOver2, 3); - public CurveSegment stay = new CurveSegment(EasingType.Linear, 0.95f, MathHelper.PiOver2, 0f); internal float ArmAnticipationMovement() => PiecewiseAnimation(ChargeProgress, new CurveSegment[] { pullback, throwout }); public override void AI() { - //if (Projectile.Calamity().stealthStrike) - // CalamityGlobalProjectile.MagnetSphereHitscan(Projectile, 300f, 10f, 20f, 5, ModContent.ProjectileType()); - //Anticipation animation. Make the player look like theyre holding the fish skeleton if (ChargeProgress < 1) { From 9ff9d4549bae862ae90ea700e94c1e6eaf1fd06f Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sun, 5 Jun 2022 07:26:35 +0200 Subject: [PATCH 23/30] Redtide spear to THRUST enemies --- CalPlayer/CalamityPlayer.cs | 2 +- Items/Weapons/Melee/RedtideSpear.cs | 6 +- Items/Weapons/Ranged/ReedBlowgun.cs | 2 +- NPCs/CalamityFallDamageNPC.cs | 174 ++++++++++++++++++ .../Melee/Spears/RedtideSpearProjectile.cs | 61 +++++- .../Rogue/FishboneBoomerangProjectile.cs | 15 +- Utilities/GeneralExtensionUtils.cs | 3 +- 7 files changed, 251 insertions(+), 12 deletions(-) create mode 100644 NPCs/CalamityFallDamageNPC.cs diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index a5bba7afaf..27b0a99fd2 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5775,7 +5775,7 @@ namespace CalamityMod.CalPlayer bool victideBreastplateVisible = Player.body == EquipLoader.GetEquipSlot(Mod, "VictideBreastplate", EquipType.Body); //Give the player faulds if either the body armor or the leggings are equipped - if (victideBreastplateVisible || Player.legs == EquipLoader.GetEquipSlot(Mod, "VictideLeggings", EquipType.Legs)) + if (victideBreastplateVisible || Player.legs == EquipLoader.GetEquipSlot(Mod, "VictideGreaves", EquipType.Legs)) { Player.waist = (sbyte)EquipLoader.GetEquipSlot(Mod, "VictideFaulds", EquipType.Waist); diff --git a/Items/Weapons/Melee/RedtideSpear.cs b/Items/Weapons/Melee/RedtideSpear.cs index e0c313bb9d..93cbecfe05 100644 --- a/Items/Weapons/Melee/RedtideSpear.cs +++ b/Items/Weapons/Melee/RedtideSpear.cs @@ -12,7 +12,9 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Redtide Spear"); - Tooltip.SetDefault("Poisons enemies and fires short-range stingers"); + Tooltip.SetDefault("Poisons enemies on hit\n"+ + "Aiming the spear in front of you while running holds it down with increased knockback\n"+ + "Releasing the attack button after the charge makes an upwards slash, sending enemies flying into the air"); SacrificeTotal = 1; } @@ -29,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.channel = true; Item.useTime = 25; Item.knockBack = 5f; - Item.UseSound = SoundID.Item1; + Item.UseSound = null; Item.autoReuse = true; Item.height = 56; Item.value = Item.buyPrice(0, 2, 0, 0); diff --git a/Items/Weapons/Ranged/ReedBlowgun.cs b/Items/Weapons/Ranged/ReedBlowgun.cs index 69ab52d5ce..0e5037ca48 100644 --- a/Items/Weapons/Ranged/ReedBlowgun.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 12; + Item.damage = 19; Item.DamageType = DamageClass.Ranged; Item.width = 22; Item.height = 46; diff --git a/NPCs/CalamityFallDamageNPC.cs b/NPCs/CalamityFallDamageNPC.cs new file mode 100644 index 0000000000..06f765a85e --- /dev/null +++ b/NPCs/CalamityFallDamageNPC.cs @@ -0,0 +1,174 @@ +using CalamityMod.Buffs; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatBuffs; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.CalPlayer; +using CalamityMod.Dusts; +using CalamityMod.Events; +using CalamityMod.Items.Accessories; +using CalamityMod.Items.Tools; +using CalamityMod.Items.Weapons.Melee; +using CalamityMod.NPCs.Abyss; +using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.AcidRain; +using CalamityMod.NPCs.AquaticScourge; +using CalamityMod.NPCs.Astral; +using CalamityMod.NPCs.AstrumDeus; +using CalamityMod.NPCs.Bumblebirb; +using CalamityMod.NPCs.Calamitas; +using CalamityMod.NPCs.CeaselessVoid; +using CalamityMod.NPCs.Crabulon; +using CalamityMod.NPCs.Crags; +using CalamityMod.NPCs.DesertScourge; +using CalamityMod.NPCs.DevourerofGods; +using CalamityMod.NPCs.DraedonLabThings; +using CalamityMod.NPCs.ExoMechs.Apollo; +using CalamityMod.NPCs.ExoMechs.Artemis; +using CalamityMod.NPCs.ExoMechs.Ares; +using CalamityMod.NPCs.ExoMechs.Thanatos; +using CalamityMod.NPCs.Leviathan; +using CalamityMod.NPCs.NormalNPCs; +using CalamityMod.NPCs.Perforator; +using CalamityMod.NPCs.PlagueEnemies; +using CalamityMod.NPCs.Polterghast; +using CalamityMod.NPCs.ProfanedGuardians; +using CalamityMod.NPCs.Providence; +using CalamityMod.NPCs.Ravager; +using CalamityMod.NPCs.SlimeGod; +using CalamityMod.NPCs.StormWeaver; +using CalamityMod.NPCs.SupremeCalamitas; +using CalamityMod.Particles; +using CalamityMod.Projectiles; +using CalamityMod.Projectiles.Magic; +using CalamityMod.Projectiles.Melee; +using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Summon; +using CalamityMod.Projectiles.Typeless; +using CalamityMod.UI; +using CalamityMod.Walls.DraedonStructures; +using CalamityMod.World; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using Terraria; +using Terraria.DataStructures; +using Terraria.Enums; +using Terraria.GameContent.Achievements; +using Terraria.GameContent.Events; +using Terraria.Graphics.Effects; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Utilities; +using static Terraria.ModLoader.ModContent; +using CalamityMod.NPCs.ExoMechs; +using CalamityMod.NPCs.VanillaNPCOverrides.Bosses; +using CalamityMod.NPCs.VanillaNPCOverrides.RegularEnemies; +using CalamityMod.Balancing; +using Terraria.GameContent; +using CalamityMod.Systems; +using Terraria.ModLoader.Utilities; + +namespace CalamityMod.NPCs +{ + public class CalamityFallDamageNPC : GlobalNPC + { + /// + /// How much "gravity damage" is this npc slated to recieve once it hits the ground. + /// + private int potentialEnergyDamage = 0; + /// + /// This keeps track of the last recorded vertical velocity, so that we can dispel the potential fall damage if the enemy slows their fall down by any means + /// + private float lastRecordedVerticalVelocity = 0; + /// + /// This keeps track of the last recorded vertical velocity, because terraria is dumb and we need two of them + /// + private float previousLastRecordedVerticalVelocity = 0; + private float terminalVelocityForFullFallDamage = 0; + + public int PotentialEnergyDamage + { + get + { + return potentialEnergyDamage; + } + + private set + { + //You can't stack gravity damage. Higher "gravity" simply replaces the gravity damage. + potentialEnergyDamage = value == 0 ? 0 : Math.Max(potentialEnergyDamage, value); + } + } + + public bool FallDamageSusceptible => PotentialEnergyDamage > 0; + + public override bool InstancePerEntity => true; + + public override GlobalNPC Clone(NPC npc, NPC npcClone) + { + CalamityFallDamageNPC myClone = (CalamityFallDamageNPC)base.Clone(npc, npcClone); + + myClone.potentialEnergyDamage = potentialEnergyDamage; + myClone.lastRecordedVerticalVelocity = lastRecordedVerticalVelocity; + myClone.previousLastRecordedVerticalVelocity = previousLastRecordedVerticalVelocity; + myClone.terminalVelocityForFullFallDamage = terminalVelocityForFullFallDamage; + + return myClone; + } + + public override void SetDefaults(NPC npc) + { + PotentialEnergyDamage = 0; + lastRecordedVerticalVelocity = 0f; + } + + /// + /// Sets up a NPC to recieve fall damage when they hit the ground. + /// + /// The npc to apply fall damage to + /// The maximum fall damage taken by the npc once they hit the ground + /// The downwards velocity necessary to recieve the full fall damage. By default 10, the npc max fall speed + public void ApplyFallDamage(NPC npc, int potentialDamage, float terminalVelocityForFullDamage = 10f) + { + //NPCs that don't collide with tiles simply don't get fall damage, lol. + if (npc.noTileCollide) + return; + + PotentialEnergyDamage = potentialDamage; + lastRecordedVerticalVelocity = npc.velocity.Y; + previousLastRecordedVerticalVelocity = npc.velocity.Y; + terminalVelocityForFullFallDamage = terminalVelocityForFullDamage; + } + + public override void PostAI(NPC npc) + { + if (FallDamageSusceptible) + { + float newVerticalVelocity = npc.velocity.Y; + + //If the thing flies back up, cancel the fall dmg + if (newVerticalVelocity < 0 && lastRecordedVerticalVelocity >= 0) + PotentialEnergyDamage = 0; + + //Same goes for if it slows its fall. + //We use 3 variables cuz there is a frame inbetween the fall and the landing where the velocity is still set to something. + if (newVerticalVelocity > 0 && previousLastRecordedVerticalVelocity > 0 && lastRecordedVerticalVelocity < previousLastRecordedVerticalVelocity) + PotentialEnergyDamage = 0; + + //If the npc hit a tile/Came to a stop after falling + if (newVerticalVelocity == 0 && lastRecordedVerticalVelocity > 0) + { + //I don't think a tile check below the npc is necessary but if we find weird edge cases ill add it + npc.StrikeNPC((int)(PotentialEnergyDamage * Math.Clamp(previousLastRecordedVerticalVelocity / terminalVelocityForFullFallDamage, 0f, 1f)), 0f, 1, fromNet: true); + PotentialEnergyDamage = 0; + } + + previousLastRecordedVerticalVelocity = lastRecordedVerticalVelocity; + lastRecordedVerticalVelocity = newVerticalVelocity; + } + } + } +} diff --git a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs index 79066365c5..9fadc6aa12 100644 --- a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs +++ b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs @@ -7,6 +7,7 @@ using Terraria.Audio; using System; using CalamityMod.Particles; using static CalamityMod.CalamityUtils; +using ReLogic.Utilities; namespace CalamityMod.Projectiles.Melee.Spears { @@ -16,6 +17,19 @@ namespace CalamityMod.Projectiles.Melee.Spears public static int Lifetime = 28; public int Timer => Lifetime - Projectile.timeLeft; + private SlotId ChargeWindSoundSlot; + public ActiveSound ChargeWindSound + { + get + { + ActiveSound sound; + if (SoundEngine.TryGetActiveSound(ChargeWindSoundSlot, out sound)) + return sound; + return null; + } + } + + public int ChargeDirection => Math.Sign(Projectile.velocity.X); #region Thrust @@ -48,8 +62,9 @@ namespace CalamityMod.Projectiles.Melee.Spears public static int MaxRunTime = 300; //Player can only do the run attack while moving fast horizontally in the direction of the thrust, but remaining on the ground - public bool CanRunAttack => Math.Abs(Owner.velocity.Y) <= 0.4f && Math.Abs(Owner.velocity.X) >= Owner.maxRunSpeed * 0.7f && Math.Sign(Owner.velocity.X) == ChargeDirection && Owner.channel && !RunBroken; - public bool CanStartRunAttack => CanRunAttack && (Owner.Calamity().mouseWorld.Y - Owner.Center.Y) > -50; + public bool CanRunAttack => Math.Abs(Owner.velocity.Y) <= 0.8f && Math.Abs(Owner.velocity.X) >= Owner.maxRunSpeed * 0.7f && Math.Sign(Owner.velocity.X) == ChargeDirection && Owner.channel && !RunBroken; + //You can only start a run attack if you meet the other conditions, but ALSO you can't do it if you are aiming too much upwards or downwards + public bool CanStartRunAttack => CanRunAttack && Math.Abs(Owner.Calamity().mouseWorld.Y - Owner.Center.Y) <= 300; public ref float RunTimer => ref Projectile.ai[0]; //The window of time during which the run hasn't fully started, and is indentical to the regular thrust's start. This tells us when we can no longer do this switch. public bool FullyRunning => RunTimer > InitializationTime; @@ -218,23 +233,52 @@ namespace CalamityMod.Projectiles.Melee.Spears if (FullyRunning) { Projectile.timeLeft = UpThrustLifetime; - //Play a sound } } + ActiveSound soundOut; + if (!SoundEngine.TryGetActiveSound(ChargeWindSoundSlot, out soundOut) || !soundOut.IsPlaying) + ChargeWindSoundSlot = SoundEngine.PlaySound(SoundID.DD2_BookStaffTwisterLoop with { IsLooped = true, Volume = SoundID.DD2_BookStaffTwisterLoop.Volume * 0.7f }, Projectile.Center); + + else + { + soundOut.Volume = MathHelper.Lerp(0f, SoundID.DD2_BookStaffTwisterLoop.Volume * 0.7f, Math.Clamp(RunTimer / 120f, 0f, 1f)); + soundOut.Position = Projectile.Center; + } + RunTimer++; + if (Main.rand.NextBool()) + { + int dustOpacity = Main.rand.Next(80); + float dustScale = Main.rand.NextFloat(1f, 1.4f); + Vector2 dustVelocity = (AppropriateRotation + MathHelper.Pi).ToRotationVector2().RotatedByRandom(MathHelper.PiOver4) * Main.rand.NextFloat(0.5f, 5f); + Dust dust = Dust.NewDustPerfect(Projectile.Center + AppropriateRotation.ToRotationVector2() * 40f, 16, dustVelocity, Alpha: dustOpacity, Scale: dustScale); + } } //Basic spear attack else if (CurrentAttackState == AttackState.ForwardThrust) { - //Play a sound if in the middle of the thrust. + if (ThrustProgress == 0.5f) + SoundEngine.PlaySound(SoundID.DD2_JavelinThrowersAttack, Projectile.Center); } else if (CurrentAttackState == AttackState.UpwardsThrust) { - //Do i even need to do anything here lol + ActiveSound soundOut; + + + if (SoundEngine.TryGetActiveSound(ChargeWindSoundSlot, out soundOut)) + { + soundOut.Volume *= 0.7f; + soundOut.Position = Projectile.Center; + if (soundOut.Volume < 0.2f) + soundOut.Stop(); + } + + if (ThrustProgress == 0.5f) + SoundEngine.PlaySound(SoundID.DD2_MonkStaffSwing, Projectile.Center); } UpdateOwnerVars(); @@ -267,11 +311,16 @@ namespace CalamityMod.Projectiles.Melee.Spears { //Send the enemy flying up if hit by the upwards thrust. if (CurrentAttackState == AttackState.UpwardsThrust) + { target.velocity.Y -= 12 * (float)Math.Sqrt(target.knockBackResist); + target.FallingNPC().ApplyFallDamage(target, 50, 5f); + } target.AddBuff(BuffID.Poisoned, 180); - Owner.GiveIFrames(5); + //Give a sliver of iframes to the player so its safer to ram into hordes (which is fun and should be encouraged) + if (CurrentAttackState == AttackState.RunAttack) + Owner.GiveIFrames(5); } public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) diff --git a/Projectiles/Rogue/FishboneBoomerangProjectile.cs b/Projectiles/Rogue/FishboneBoomerangProjectile.cs index fa03e224fd..4ca58d5d68 100644 --- a/Projectiles/Rogue/FishboneBoomerangProjectile.cs +++ b/Projectiles/Rogue/FishboneBoomerangProjectile.cs @@ -204,7 +204,20 @@ namespace CalamityMod.Projectiles.Rogue public void ImpactEffects() { - SoundEngine.PlaySound(SoundID.DD2_SkeletonHurt with { Volume = SoundID.DD2_SkeletonHurt.Volume * 0.8f }, Projectile.Center); + //If the boomerang somehow hits 10 enemies, make it start doing drum sounds + SoundStyle bonkSound = Projectile.numHits < 10 ? SoundID.DD2_SkeletonHurt with { Volume = SoundID.DD2_SkeletonHurt.Volume * 0.8f, Pitch = SoundID.DD2_SkeletonHurt.Pitch + 0.1f * Projectile.numHits } : + Utils.SelectRandom(Main.rand, new SoundStyle[] + { + SoundID.DrumClosedHiHat, + SoundID.DrumCymbal1, + SoundID.DrumCymbal2, + SoundID.DrumKick, + SoundID.DrumTamaSnare, + SoundID.DrumTomHigh, + SoundID.DrumHiHat + }); + + SoundEngine.PlaySound(bonkSound, Projectile.Center); int goreNumber = Main.rand.Next(4); for (int i = 0; i < goreNumber; i++) diff --git a/Utilities/GeneralExtensionUtils.cs b/Utilities/GeneralExtensionUtils.cs index a4b8db2b25..895b51c85f 100644 --- a/Utilities/GeneralExtensionUtils.cs +++ b/Utilities/GeneralExtensionUtils.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; @@ -10,6 +10,7 @@ namespace CalamityMod { public static CalamityPlayer Calamity(this Player player) => player.GetModPlayer(); public static CalamityGlobalNPC Calamity(this NPC npc) => npc.GetGlobalNPC(); + public static CalamityFallDamageNPC FallingNPC(this NPC npc) => npc.GetGlobalNPC(); public static CalamityGlobalItem Calamity(this Item item) => item.GetGlobalItem(); public static CalamityGlobalProjectile Calamity(this Projectile proj) => proj.GetGlobalProjectile(); public static Item ActiveItem(this Player player) => Main.mouseItem.IsAir ? player.HeldItem : Main.mouseItem; From 5c9a9af88aa33d518431a6df496dffe15a591465 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Sun, 5 Jun 2022 17:47:17 +0200 Subject: [PATCH 24/30] Mount works properly --- Projectiles/Magic/CoralSpoutHoldout.cs | 24 +++++++++---------- .../Melee/Spears/RedtideSpearProjectile.cs | 4 ++-- Projectiles/Melee/UrchinMaceProjectile.cs | 14 +++++------ Projectiles/Ranged/PressurizedBubbleStream.cs | 4 ++-- .../Rogue/FishboneBoomerangProjectile.cs | 10 ++++---- 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Projectiles/Magic/CoralSpoutHoldout.cs b/Projectiles/Magic/CoralSpoutHoldout.cs index e3cba9e9f3..d0f88331d5 100644 --- a/Projectiles/Magic/CoralSpoutHoldout.cs +++ b/Projectiles/Magic/CoralSpoutHoldout.cs @@ -63,18 +63,18 @@ namespace CalamityMod.Projectiles.Magic Owner.heldProj = Projectile.whoAmI; } - float pointingRotation = (Owner.Calamity().mouseWorld - Owner.Center).ToRotation(); - Projectile.Center = Owner.Center + pointingRotation.ToRotationVector2() * 40f; + float pointingRotation = (Owner.Calamity().mouseWorld - Owner.MountedCenter).ToRotation(); + Projectile.Center = Owner.MountedCenter + pointingRotation.ToRotationVector2() * 40f; if (Projectile.soundDelay <= 0) { - SoundEngine.PlaySound(CoralSpout.ChargeSound with { Pitch = 0.5f * ChargeProgress}, Owner.Center); + SoundEngine.PlaySound(CoralSpout.ChargeSound with { Pitch = 0.5f * ChargeProgress}, Owner.MountedCenter); Projectile.soundDelay = 10; } if (Charge == (int)(MaxCharge * 1.5f) && Owner.whoAmI == Main.myPlayer) { - SoundEngine.PlaySound(SoundID.MaxMana, Owner.Center); + SoundEngine.PlaySound(SoundID.MaxMana, Owner.MountedCenter); } Charge++; @@ -89,9 +89,9 @@ namespace CalamityMod.Projectiles.Magic for (int i = -1; i <= 1; i += 2) { - float angle = (Owner.Center - Owner.Calamity().mouseWorld).ToRotation() + (Spread / 2f) * i - MathHelper.PiOver2; + float angle = (Owner.MountedCenter - Owner.Calamity().mouseWorld).ToRotation() + (Spread / 2f) * i - MathHelper.PiOver2; Vector2 scale = new Vector2(0.2f, 1f) * 3f; - Main.EntitySpriteDraw(texture, Owner.Center - Main.screenPosition, null, Color.DodgerBlue * 0.5f * (float)Math.Sqrt(ChargeProgress), angle, new Vector2(texture.Width / 2f, texture.Height), scale, 0, 0); + Main.EntitySpriteDraw(texture, Owner.MountedCenter - Main.screenPosition, null, Color.DodgerBlue * 0.5f * (float)Math.Sqrt(ChargeProgress), angle, new Vector2(texture.Width / 2f, texture.Height), scale, 0, 0); } Main.spriteBatch.End(); @@ -102,11 +102,11 @@ namespace CalamityMod.Projectiles.Magic public override void Kill(int timeLeft) { - float mainAngle = (Projectile.Center - Owner.Center).ToRotation(); + float mainAngle = (Projectile.Center - Owner.MountedCenter).ToRotation(); if (FullChargeProgress < 1) { - SoundEngine.PlaySound(SoundID.Item167 with { Volume = SoundID.Item167.Volume * 0.4f + 0.2f * ChargeProgress }, Owner.Center); + SoundEngine.PlaySound(SoundID.Item167 with { Volume = SoundID.Item167.Volume * 0.4f + 0.2f * ChargeProgress }, Owner.MountedCenter); for (int i = 0; i < ShotProjectiles; i++) @@ -117,11 +117,11 @@ namespace CalamityMod.Projectiles.Magic if (Owner.whoAmI == Main.myPlayer) { float speed = 10 + 15 * ChargeProgress; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.Center + direction * 30f, direction * speed, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Owner.whoAmI, ChargeProgress); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.MountedCenter + direction * 30f, direction * speed, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Owner.whoAmI, ChargeProgress); } Color pulseColor = Main.rand.NextBool() ? Color.Coral : Color.DeepSkyBlue; - Particle pulse = new DirectionalPulseRing(Owner.Center + direction * 44f, Vector2.Zero, pulseColor, new Vector2(0.5f, 1f), direction.ToRotation(), 0.04f, 0.2f, 30); + Particle pulse = new DirectionalPulseRing(Owner.MountedCenter + direction * 44f, Vector2.Zero, pulseColor, new Vector2(0.5f, 1f), direction.ToRotation(), 0.04f, 0.2f, 30); GeneralParticleHandler.SpawnParticle(pulse); } @@ -129,12 +129,12 @@ namespace CalamityMod.Projectiles.Magic else { - SoundEngine.PlaySound(SoundID.Item42, Owner.Center); + SoundEngine.PlaySound(SoundID.Item42, Owner.MountedCenter); Vector2 direction = mainAngle.ToRotationVector2(); if (Owner.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.Center + direction * 30f, direction * 35, ModContent.ProjectileType(), (int)Projectile.damage * (ShotProjectiles + 1), Projectile.knockBack, Owner.whoAmI); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.MountedCenter + direction * 30f, direction * 35, ModContent.ProjectileType(), (int)Projectile.damage * (ShotProjectiles + 1), Projectile.knockBack, Owner.whoAmI); } Color pulseColor = Main.rand.NextBool() ? Color.Coral : Color.DeepSkyBlue; diff --git a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs index 9fadc6aa12..55ac5c51e6 100644 --- a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs +++ b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs @@ -64,7 +64,7 @@ namespace CalamityMod.Projectiles.Melee.Spears //Player can only do the run attack while moving fast horizontally in the direction of the thrust, but remaining on the ground public bool CanRunAttack => Math.Abs(Owner.velocity.Y) <= 0.8f && Math.Abs(Owner.velocity.X) >= Owner.maxRunSpeed * 0.7f && Math.Sign(Owner.velocity.X) == ChargeDirection && Owner.channel && !RunBroken; //You can only start a run attack if you meet the other conditions, but ALSO you can't do it if you are aiming too much upwards or downwards - public bool CanStartRunAttack => CanRunAttack && Math.Abs(Owner.Calamity().mouseWorld.Y - Owner.Center.Y) <= 300; + public bool CanStartRunAttack => CanRunAttack && Math.Abs(Owner.Calamity().mouseWorld.Y - Owner.MountedCenter.Y) <= 300; public ref float RunTimer => ref Projectile.ai[0]; //The window of time during which the run hasn't fully started, and is indentical to the regular thrust's start. This tells us when we can no longer do this switch. public bool FullyRunning => RunTimer > InitializationTime; @@ -288,7 +288,7 @@ namespace CalamityMod.Projectiles.Melee.Spears if (CurrentAttackState == AttackState.RunAttack) thrust -= Vector2.UnitY * 2f * MathHelper.Clamp(0.5f + 0.8f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 20f), 0f, 1f); - Projectile.Center = Owner.Center + thrust; + Projectile.Center = Owner.MountedCenter + thrust; } public void UpdateOwnerVars() diff --git a/Projectiles/Melee/UrchinMaceProjectile.cs b/Projectiles/Melee/UrchinMaceProjectile.cs index 0aaae91a08..d00ccab72b 100644 --- a/Projectiles/Melee/UrchinMaceProjectile.cs +++ b/Projectiles/Melee/UrchinMaceProjectile.cs @@ -70,23 +70,23 @@ namespace CalamityMod.Projectiles.Melee for (int i = 0; i < dustCount; i++) { float angle = i / (float)dustCount * MathHelper.TwoPi + offset; - Vector2 dustPos = Owner.Center + angle.ToRotationVector2() * 40f * WindupProgress; + Vector2 dustPos = Owner.MountedCenter + angle.ToRotationVector2() * 40f * WindupProgress; Dust dust = Dust.NewDustPerfect(dustPos, 176, (angle - MathHelper.PiOver2 * Owner.direction).ToRotationVector2() * 5f + Owner.velocity, Scale: Main.rand.NextFloat(1f, 2f)); dust.noGravity = true; } } - Projectile.Center = Owner.Center + Projectile.rotation.ToRotationVector2() * 10f - Vector2.UnitX * 4 * Owner.direction; + Projectile.Center = Owner.MountedCenter + Projectile.rotation.ToRotationVector2() * 10f - Vector2.UnitX * 4 * Owner.direction; if (Projectile.soundDelay <= 0) { - SoundEngine.PlaySound(SoundID.DD2_GhastlyGlaivePierce, Owner.Center); + SoundEngine.PlaySound(SoundID.DD2_GhastlyGlaivePierce, Owner.MountedCenter); Projectile.soundDelay = 28; } if (Windup == MaxWindup && Owner.whoAmI == Main.myPlayer) { - SoundEngine.PlaySound(SoundID.Item43, Owner.Center); + SoundEngine.PlaySound(SoundID.Item43, Owner.MountedCenter); } Windup++; @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Melee public void UpdateOwnerVars() { - float armPointingDirection = ((Owner.Calamity().mouseWorld - Owner.Center).ToRotation()); + float armPointingDirection = ((Owner.Calamity().mouseWorld - Owner.MountedCenter).ToRotation()); //"crop" the rotation so the player only points their arm in a smaller range. (The back arm points in the throw direction) if (armPointingDirection < MathHelper.PiOver2 && armPointingDirection >= -MathHelper.PiOver2) @@ -148,8 +148,8 @@ namespace CalamityMod.Projectiles.Melee float whirlpoolRotation = Windup * 0.34f * Owner.direction; SpriteEffects flip = Owner.direction < 0 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; - Main.EntitySpriteDraw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity * 0.3f, whirlpoolRotation * 1.2f, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); - Main.EntitySpriteDraw(whirlpoolTexture, Owner.Center - Main.screenPosition, null, Lighting.GetColor((int)Owner.Center.X / 16, (int)Owner.Center.Y / 16) * whirlpoolOpacity, whirlpoolRotation, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); + Main.EntitySpriteDraw(whirlpoolTexture, Owner.MountedCenter - Main.screenPosition, null, Lighting.GetColor((int)Owner.MountedCenter.X / 16, (int)Owner.MountedCenter.Y / 16) * whirlpoolOpacity * 0.3f, whirlpoolRotation * 1.2f, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); + Main.EntitySpriteDraw(whirlpoolTexture, Owner.MountedCenter - Main.screenPosition, null, Lighting.GetColor((int)Owner.MountedCenter.X / 16, (int)Owner.MountedCenter.Y / 16) * whirlpoolOpacity, whirlpoolRotation, whirlpoolTexture.Size() / 2f, whirlpoolScale, flip, 0); Vector2 handleOrigin = new Vector2(0, maceTexture.Height); float maceRotation = Projectile.rotation + MathHelper.PiOver4; diff --git a/Projectiles/Ranged/PressurizedBubbleStream.cs b/Projectiles/Ranged/PressurizedBubbleStream.cs index 49c5312c55..a39739e2fa 100644 --- a/Projectiles/Ranged/PressurizedBubbleStream.cs +++ b/Projectiles/Ranged/PressurizedBubbleStream.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Ranged if (Owner.direction < 0) bubbleRotation += MathHelper.Pi; - Vector2 bubblePosition = Owner.Center - Vector2.UnitY * 4f + bubbleRotation.ToRotationVector2() * 55f; + Vector2 bubblePosition = Owner.MountedCenter - Vector2.UnitY * 4f + bubbleRotation.ToRotationVector2() * 55f; Projectile.Center = bubblePosition; Projectile.velocity = Vector2.UnitX.RotatedBy(bubbleRotation) * Projectile.velocity.Length(); @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Ranged if (Owner.direction < 0) bubbleRotation += MathHelper.Pi; - Vector2 bubblePosition = Owner.Center - Vector2.UnitY * 4f + bubbleRotation.ToRotationVector2() * 55f; + Vector2 bubblePosition = Owner.MountedCenter - Vector2.UnitY * 4f + bubbleRotation.ToRotationVector2() * 55f; SoundEngine.PlaySound(ReedBlowgun.BubbleBurstSound, bubblePosition); } diff --git a/Projectiles/Rogue/FishboneBoomerangProjectile.cs b/Projectiles/Rogue/FishboneBoomerangProjectile.cs index 4ca58d5d68..0de1c65212 100644 --- a/Projectiles/Rogue/FishboneBoomerangProjectile.cs +++ b/Projectiles/Rogue/FishboneBoomerangProjectile.cs @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Rogue Owner.heldProj = Projectile.whoAmI; - Projectile.Center = Owner.Center + Vector2.UnitY.RotatedBy(armRotation) * -40f; + Projectile.Center = Owner.MountedCenter + Vector2.UnitY.RotatedBy(armRotation) * -40f; Projectile.rotation = -MathHelper.PiOver2 + armRotation; Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, MathHelper.Pi + armRotation); @@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.timeLeft == Lifetime) { SoundEngine.PlaySound(SoundID.Item1, Projectile.Center); - Projectile.Center = Owner.Center +Projectile.velocity * 12f; + Projectile.Center = Owner.MountedCenter + Projectile.velocity * 12f; Projectile.velocity = Projectile.velocity.SafeNormalize(Vector2.Zero) * 17.5f; Projectile.tileCollide = true; } @@ -128,9 +128,9 @@ namespace CalamityMod.Projectiles.Rogue { Projectile.tileCollide = false; //Aim back at the player - Projectile.velocity = Projectile.velocity.Length() * (Owner.Center - Projectile.Center).SafeNormalize(Vector2.One); + Projectile.velocity = Projectile.velocity.Length() * (Owner.MountedCenter - Projectile.Center).SafeNormalize(Vector2.One); - if ((Projectile.Center - Owner.Center).Length() < 24f) + if ((Projectile.Center - Owner.MountedCenter).Length() < 24f) { Projectile.Kill(); } @@ -197,7 +197,7 @@ namespace CalamityMod.Projectiles.Rogue public override bool OnTileCollide(Vector2 oldVelocity) { ImpactEffects(); - Projectile.velocity = Projectile.oldVelocity.Length() * 0.3f * (Owner.Center - Projectile.Center).SafeNormalize(Vector2.One); + Projectile.velocity = Projectile.oldVelocity.Length() * 0.3f * (Owner.MountedCenter - Projectile.Center).SafeNormalize(Vector2.One); Returning = 1f; return false; } From 1c76f7f34163314c5a12d464c5aca12b5407cbb9 Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 6 Jun 2022 03:21:46 +0200 Subject: [PATCH 25/30] Clearer variable names --- NPCs/CalamityFallDamageNPC.cs | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/NPCs/CalamityFallDamageNPC.cs b/NPCs/CalamityFallDamageNPC.cs index 06f765a85e..75489f2583 100644 --- a/NPCs/CalamityFallDamageNPC.cs +++ b/NPCs/CalamityFallDamageNPC.cs @@ -80,13 +80,13 @@ namespace CalamityMod.NPCs ///
private int potentialEnergyDamage = 0; /// - /// This keeps track of the last recorded vertical velocity, so that we can dispel the potential fall damage if the enemy slows their fall down by any means + /// This keeps track of the last recorded velocity, so that we can dispel the potential fall damage if the enemy slows their fall down by any means /// - private float lastRecordedVerticalVelocity = 0; + private Vector2 OldVelocity = Vector2.Zero; /// - /// This keeps track of the last recorded vertical velocity, because terraria is dumb and we need two of them + /// This keeps track of the last recorded velocity, because terraria is dumb and we need two of them /// - private float previousLastRecordedVerticalVelocity = 0; + private Vector2 OlderVelocity = Vector2.Zero; private float terminalVelocityForFullFallDamage = 0; public int PotentialEnergyDamage @@ -112,8 +112,8 @@ namespace CalamityMod.NPCs CalamityFallDamageNPC myClone = (CalamityFallDamageNPC)base.Clone(npc, npcClone); myClone.potentialEnergyDamage = potentialEnergyDamage; - myClone.lastRecordedVerticalVelocity = lastRecordedVerticalVelocity; - myClone.previousLastRecordedVerticalVelocity = previousLastRecordedVerticalVelocity; + myClone.OldVelocity = OldVelocity; + myClone.OlderVelocity = OlderVelocity; myClone.terminalVelocityForFullFallDamage = terminalVelocityForFullFallDamage; return myClone; @@ -122,7 +122,8 @@ namespace CalamityMod.NPCs public override void SetDefaults(NPC npc) { PotentialEnergyDamage = 0; - lastRecordedVerticalVelocity = 0f; + OldVelocity = Vector2.Zero; + OlderVelocity = Vector2.Zero; } /// @@ -138,8 +139,8 @@ namespace CalamityMod.NPCs return; PotentialEnergyDamage = potentialDamage; - lastRecordedVerticalVelocity = npc.velocity.Y; - previousLastRecordedVerticalVelocity = npc.velocity.Y; + OldVelocity = npc.velocity; + OlderVelocity = npc.velocity; terminalVelocityForFullFallDamage = terminalVelocityForFullDamage; } @@ -148,26 +149,28 @@ namespace CalamityMod.NPCs if (FallDamageSusceptible) { float newVerticalVelocity = npc.velocity.Y; + float oldVerticalVelocity = OldVelocity.Y; + float olderVerticalVelocity = OlderVelocity.Y; //If the thing flies back up, cancel the fall dmg - if (newVerticalVelocity < 0 && lastRecordedVerticalVelocity >= 0) + if (newVerticalVelocity < 0 && oldVerticalVelocity >= 0) PotentialEnergyDamage = 0; //Same goes for if it slows its fall. //We use 3 variables cuz there is a frame inbetween the fall and the landing where the velocity is still set to something. - if (newVerticalVelocity > 0 && previousLastRecordedVerticalVelocity > 0 && lastRecordedVerticalVelocity < previousLastRecordedVerticalVelocity) + if (newVerticalVelocity > 0 && olderVerticalVelocity > 0 && oldVerticalVelocity < olderVerticalVelocity) PotentialEnergyDamage = 0; //If the npc hit a tile/Came to a stop after falling - if (newVerticalVelocity == 0 && lastRecordedVerticalVelocity > 0) + if (newVerticalVelocity == 0 && oldVerticalVelocity > 0) { //I don't think a tile check below the npc is necessary but if we find weird edge cases ill add it - npc.StrikeNPC((int)(PotentialEnergyDamage * Math.Clamp(previousLastRecordedVerticalVelocity / terminalVelocityForFullFallDamage, 0f, 1f)), 0f, 1, fromNet: true); + npc.StrikeNPC((int)(PotentialEnergyDamage * Math.Clamp(olderVerticalVelocity / terminalVelocityForFullFallDamage, 0f, 1f)), 0f, 1, fromNet: true); PotentialEnergyDamage = 0; } - previousLastRecordedVerticalVelocity = lastRecordedVerticalVelocity; - lastRecordedVerticalVelocity = newVerticalVelocity; + OlderVelocity = OldVelocity; + OldVelocity = npc.velocity; } } } From 3d7e12c32624ecbb6fa8e89a3609fe36da45811f Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Mon, 6 Jun 2022 07:02:46 +0200 Subject: [PATCH 26/30] Lore tooltips (Potential Dark Souls Reference??) --- Items/Weapons/Magic/CoralSpout.cs | 8 ++++---- Items/Weapons/Melee/Cnidarian.cs | 7 +++++-- Items/Weapons/Melee/RedtideSpear.cs | 5 ++++- Items/Weapons/Ranged/ReedBlowgun.cs | 9 ++++++--- Items/Weapons/Rogue/FishboneBoomerang.cs | 7 +++++-- Projectiles/Magic/ManaChargedCoral.cs | 2 +- 6 files changed, 25 insertions(+), 13 deletions(-) diff --git a/Items/Weapons/Magic/CoralSpout.cs b/Items/Weapons/Magic/CoralSpout.cs index 94f803e3f1..06c281bbaf 100644 --- a/Items/Weapons/Magic/CoralSpout.cs +++ b/Items/Weapons/Magic/CoralSpout.cs @@ -19,11 +19,11 @@ namespace CalamityMod.Items.Weapons.Magic Tooltip.SetDefault("Casts a shotgun-like blast of coral shards\n" + "Keep the attack button held down to narrow the spread\n" + "Fully charging the attack releases a single, bigger chunk of coral that sticks to enemies\n" + - "Grabbing the chunk of coral after it falls from the enemy replenishes 80 mana" - + "Grabbing the chunk of coral after it falls from the enemy replenishes 100 mana\n" + + //Lore tooltip time. Sekiro. + "[c/5C95A1:Knowledge is important, and the Old Sea Kingdom’s many scribes knew it had to be preserved at any cost.]\n" + + "[c/5C95A1:Their libraries were much larger than most, because of the water-proof stone tablets occupying them.]" ); - //Lore about stone tablets being used since paper couldn't be brought underwater. - //Maybe something something, the sea kingdom had to have a large amount of scribes to rewrite books into tablets SacrificeTotal = 1; } diff --git a/Items/Weapons/Melee/Cnidarian.cs b/Items/Weapons/Melee/Cnidarian.cs index 92d09cdcae..a6220bccea 100644 --- a/Items/Weapons/Melee/Cnidarian.cs +++ b/Items/Weapons/Melee/Cnidarian.cs @@ -18,8 +18,11 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("Cnidarian"); Tooltip.SetDefault("Fishes up an electric jellyfish\n" + - "Periodically sends out sparks to electrocute nearby enemies."); - //Tooltip could include a lore line about electric attributes that are shared in sunken sealife + "Periodically sends out sparks to electrocute nearby enemies.\n" + + //Lore tooltip time. Elden Ring. + "[c/5C95A1:From looking at their less sapient brethren, the Old Kingdom’s inhabitants adapted tools and weapons designed for underwater efficiency.]\n" + + "[c/5C95A1:The electric properties of ghost bells remain useful even after death, having been commonly used as conduits.]" + ); SacrificeTotal = 1; } diff --git a/Items/Weapons/Melee/RedtideSpear.cs b/Items/Weapons/Melee/RedtideSpear.cs index 93cbecfe05..7e512bd277 100644 --- a/Items/Weapons/Melee/RedtideSpear.cs +++ b/Items/Weapons/Melee/RedtideSpear.cs @@ -14,7 +14,10 @@ namespace CalamityMod.Items.Weapons.Melee DisplayName.SetDefault("Redtide Spear"); Tooltip.SetDefault("Poisons enemies on hit\n"+ "Aiming the spear in front of you while running holds it down with increased knockback\n"+ - "Releasing the attack button after the charge makes an upwards slash, sending enemies flying into the air"); + "Releasing the attack button after the charge makes an upwards slash, sending enemies flying into the air\n"+ + //Lore tooltip time. Dark souls. + "[c/5C95A1:The people of the sea were adept hunters, but they abhorred unnecessary violence.]\n" + + "[c/5C95A1:Unfortunately, neighboring nations were brutish, so they fashioned their tools for war.]"); SacrificeTotal = 1; } diff --git a/Items/Weapons/Ranged/ReedBlowgun.cs b/Items/Weapons/Ranged/ReedBlowgun.cs index 0e5037ca48..e9250898a3 100644 --- a/Items/Weapons/Ranged/ReedBlowgun.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -16,9 +16,12 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { DisplayName.SetDefault("Reed Blowgun"); - Tooltip.SetDefault("Fires a high-pressure stream of bubbles"); - //Lore about how the sea kingdom always had the advantage over any attempts at invasions thanks to their armament specifically crafted to work underwater through looking at sealife (Pistol shrimps in this case) - //..That is, until most of the underwater got hellfired away. + Tooltip.SetDefault("Fires a high-pressure stream of bubbles\n" + + //Lore tooltip time. King's field + "[c/5C95A1:The Old Sea Kingdom never truly sought to expand beyond its initial borders.]\n" + + "[c/5C95A1:However, they had a perfect track record of repelling any invasions, thanks to their insurmountable advantage in the water.]" + ); + SacrificeTotal = 1; } diff --git a/Items/Weapons/Rogue/FishboneBoomerang.cs b/Items/Weapons/Rogue/FishboneBoomerang.cs index 6c7e81f77f..22b691d7a3 100644 --- a/Items/Weapons/Rogue/FishboneBoomerang.cs +++ b/Items/Weapons/Rogue/FishboneBoomerang.cs @@ -15,8 +15,11 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { DisplayName.SetDefault("Fishbone Boomerang"); - Tooltip.SetDefault("Stealth strikes make the boomerang ricochet between enemies"); - //Lore about the huge loss of wildlife during the sea burn + Tooltip.SetDefault("Stealth strikes make the boomerang ricochet between enemies\n" + + //lore tooltip u get the thing + "[c/5C95A1:Even as their home slowly evaporated during their war against the Tyrant, those of the Sea Kingdom did not go down without a fight.]\n" + + "[c/5C95A1:As a last resort, they had to fashion weapons from the skeletons of dead animals.]" + ); SacrificeTotal = 1; } diff --git a/Projectiles/Magic/ManaChargedCoral.cs b/Projectiles/Magic/ManaChargedCoral.cs index 4bd52ac3f4..e4bbdf0031 100644 --- a/Projectiles/Magic/ManaChargedCoral.cs +++ b/Projectiles/Magic/ManaChargedCoral.cs @@ -172,7 +172,7 @@ namespace CalamityMod.Projectiles.Magic SoundEngine.PlaySound(SoundID.Item28 with { Volume = SoundID.Item28.Volume * 0.8f }, Projectile.Center); //To reach full mana, it needs to have stayed at least half the time needed. If you just one shot an enemy with it, you'll only get 10 mana - int manaGained = Math.Max(10, (int)Math.Floor(80 * Math.Clamp(ManaCharge * 2f / FullMana, 0f, 1f))); + int manaGained = Math.Max(10, (int)Math.Floor(100 * Math.Clamp(ManaCharge * 2f / FullMana, 0f, 1f))); Owner.statMana += manaGained; if (Main.myPlayer == Owner.whoAmI) Owner.ManaEffect(manaGained); From c8771c696d25b5da4ecc3df637d64ecf9665767e Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Tue, 7 Jun 2022 00:18:37 +0200 Subject: [PATCH 27/30] Culled unecessary imports --- Items/Weapons/Magic/CoralSpout.cs | 8 +-- Items/Weapons/Melee/Cnidarian.cs | 4 +- Items/Weapons/Melee/UrchinMace.cs | 4 +- Items/Weapons/Ranged/ReedBlowgun.cs | 2 +- Items/Weapons/Rogue/FishboneBoomerang.cs | 4 +- NPCs/CalamityFallDamageNPC.cs | 70 +------------------ Projectiles/Magic/CoralSpike.cs | 5 +- Projectiles/Magic/CoralSpoutHoldout.cs | 10 +-- Projectiles/Magic/ManaChargedCoral.cs | 9 ++- .../Melee/CnidarianJellyfishOnTheString.cs | 15 ++-- Projectiles/Melee/CnidarianSpark.cs | 7 +- Projectiles/Melee/RedtideWhirlpool.cs | 7 +- .../Melee/Spears/RedtideSpearProjectile.cs | 9 ++- Projectiles/Melee/UrchinMaceProjectile.cs | 8 +-- Projectiles/Ranged/PressurizedBubbleStream.cs | 10 +-- .../Rogue/FishboneBoomerangProjectile.cs | 12 ++-- 16 files changed, 53 insertions(+), 131 deletions(-) diff --git a/Items/Weapons/Magic/CoralSpout.cs b/Items/Weapons/Magic/CoralSpout.cs index 06c281bbaf..663d81b415 100644 --- a/Items/Weapons/Magic/CoralSpout.cs +++ b/Items/Weapons/Magic/CoralSpout.cs @@ -1,11 +1,11 @@ -using CalamityMod.Items.Materials; +using System.Linq; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using System.Linq; -using Microsoft.Xna.Framework; -using Terraria.Audio; namespace CalamityMod.Items.Weapons.Magic { diff --git a/Items/Weapons/Melee/Cnidarian.cs b/Items/Weapons/Melee/Cnidarian.cs index a6220bccea..32a798c2d5 100644 --- a/Items/Weapons/Melee/Cnidarian.cs +++ b/Items/Weapons/Melee/Cnidarian.cs @@ -1,11 +1,11 @@ -using CalamityMod.Items.Materials; +using System.Linq; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using System.Linq; using static Terraria.ModLoader.ModContent; namespace CalamityMod.Items.Weapons.Melee diff --git a/Items/Weapons/Melee/UrchinMace.cs b/Items/Weapons/Melee/UrchinMace.cs index 385feb726e..2dba577151 100644 --- a/Items/Weapons/Melee/UrchinMace.cs +++ b/Items/Weapons/Melee/UrchinMace.cs @@ -1,9 +1,9 @@ -using CalamityMod.Items.Materials; +using System.Linq; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using System.Linq; namespace CalamityMod.Items.Weapons.Melee { diff --git a/Items/Weapons/Ranged/ReedBlowgun.cs b/Items/Weapons/Ranged/ReedBlowgun.cs index e9250898a3..fba563fb8a 100644 --- a/Items/Weapons/Ranged/ReedBlowgun.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -2,9 +2,9 @@ using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Terraria.Audio; namespace CalamityMod.Items.Weapons.Ranged { diff --git a/Items/Weapons/Rogue/FishboneBoomerang.cs b/Items/Weapons/Rogue/FishboneBoomerang.cs index 22b691d7a3..5ff3a554ed 100644 --- a/Items/Weapons/Rogue/FishboneBoomerang.cs +++ b/Items/Weapons/Rogue/FishboneBoomerang.cs @@ -1,11 +1,11 @@ -using Terraria.DataStructures; +using System.Linq; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; -using System.Linq; namespace CalamityMod.Items.Weapons.Rogue { diff --git a/NPCs/CalamityFallDamageNPC.cs b/NPCs/CalamityFallDamageNPC.cs index 75489f2583..6aa61324e3 100644 --- a/NPCs/CalamityFallDamageNPC.cs +++ b/NPCs/CalamityFallDamageNPC.cs @@ -1,75 +1,7 @@ -using CalamityMod.Buffs; -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Buffs.StatBuffs; -using CalamityMod.Buffs.StatDebuffs; -using CalamityMod.CalPlayer; -using CalamityMod.Dusts; -using CalamityMod.Events; -using CalamityMod.Items.Accessories; -using CalamityMod.Items.Tools; -using CalamityMod.Items.Weapons.Melee; -using CalamityMod.NPCs.Abyss; -using CalamityMod.NPCs.AdultEidolonWyrm; -using CalamityMod.NPCs.AcidRain; -using CalamityMod.NPCs.AquaticScourge; -using CalamityMod.NPCs.Astral; -using CalamityMod.NPCs.AstrumDeus; -using CalamityMod.NPCs.Bumblebirb; -using CalamityMod.NPCs.Calamitas; -using CalamityMod.NPCs.CeaselessVoid; -using CalamityMod.NPCs.Crabulon; -using CalamityMod.NPCs.Crags; -using CalamityMod.NPCs.DesertScourge; -using CalamityMod.NPCs.DevourerofGods; -using CalamityMod.NPCs.DraedonLabThings; -using CalamityMod.NPCs.ExoMechs.Apollo; -using CalamityMod.NPCs.ExoMechs.Artemis; -using CalamityMod.NPCs.ExoMechs.Ares; -using CalamityMod.NPCs.ExoMechs.Thanatos; -using CalamityMod.NPCs.Leviathan; -using CalamityMod.NPCs.NormalNPCs; -using CalamityMod.NPCs.Perforator; -using CalamityMod.NPCs.PlagueEnemies; -using CalamityMod.NPCs.Polterghast; -using CalamityMod.NPCs.ProfanedGuardians; -using CalamityMod.NPCs.Providence; -using CalamityMod.NPCs.Ravager; -using CalamityMod.NPCs.SlimeGod; -using CalamityMod.NPCs.StormWeaver; -using CalamityMod.NPCs.SupremeCalamitas; -using CalamityMod.Particles; -using CalamityMod.Projectiles; -using CalamityMod.Projectiles.Magic; -using CalamityMod.Projectiles.Melee; -using CalamityMod.Projectiles.Rogue; -using CalamityMod.Projectiles.Summon; -using CalamityMod.Projectiles.Typeless; -using CalamityMod.UI; -using CalamityMod.Walls.DraedonStructures; -using CalamityMod.World; +using System; using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; using Terraria; -using Terraria.DataStructures; -using Terraria.Enums; -using Terraria.GameContent.Achievements; -using Terraria.GameContent.Events; -using Terraria.Graphics.Effects; -using Terraria.ID; using Terraria.ModLoader; -using Terraria.Utilities; -using static Terraria.ModLoader.ModContent; -using CalamityMod.NPCs.ExoMechs; -using CalamityMod.NPCs.VanillaNPCOverrides.Bosses; -using CalamityMod.NPCs.VanillaNPCOverrides.RegularEnemies; -using CalamityMod.Balancing; -using Terraria.GameContent; -using CalamityMod.Systems; -using Terraria.ModLoader.Utilities; namespace CalamityMod.NPCs { diff --git a/Projectiles/Magic/CoralSpike.cs b/Projectiles/Magic/CoralSpike.cs index 4854dcf762..5a65fe0b07 100644 --- a/Projectiles/Magic/CoralSpike.cs +++ b/Projectiles/Magic/CoralSpike.cs @@ -1,11 +1,10 @@ using System; -using Terraria.ModLoader; -using Terraria; using CalamityMod.Particles; using Microsoft.Xna.Framework; -using Terraria.ModLoader; +using Terraria; using Terraria.Audio; using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Magic/CoralSpoutHoldout.cs b/Projectiles/Magic/CoralSpoutHoldout.cs index d0f88331d5..735dcbf049 100644 --- a/Projectiles/Magic/CoralSpoutHoldout.cs +++ b/Projectiles/Magic/CoralSpoutHoldout.cs @@ -1,12 +1,12 @@ -using Microsoft.Xna.Framework; +using System; +using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Terraria.Audio; -using System; -using CalamityMod.Particles; -using CalamityMod.Items.Weapons.Magic; namespace CalamityMod.Projectiles.Magic diff --git a/Projectiles/Magic/ManaChargedCoral.cs b/Projectiles/Magic/ManaChargedCoral.cs index e4bbdf0031..77bc571a9a 100644 --- a/Projectiles/Magic/ManaChargedCoral.cs +++ b/Projectiles/Magic/ManaChargedCoral.cs @@ -1,12 +1,11 @@ -using Microsoft.Xna.Framework; +using System; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Terraria.Audio; -using System; -using CalamityMod.Particles; -using CalamityMod.Items.Weapons.Magic; namespace CalamityMod.Projectiles.Magic { diff --git a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs index dbc2f0b7d5..5e0575cef8 100644 --- a/Projectiles/Melee/CnidarianJellyfishOnTheString.cs +++ b/Projectiles/Melee/CnidarianJellyfishOnTheString.cs @@ -1,17 +1,16 @@ -using CalamityMod.Projectiles.Typeless; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using CalamityMod.Particles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using System.Collections.Generic; -using System.Linq; -using System; -using static Terraria.ModLoader.ModContent; -using CalamityMod.Particles; -using Terraria.Audio; using static CalamityMod.CalamityUtils; -using System.IO; +using static Terraria.ModLoader.ModContent; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Melee/CnidarianSpark.cs b/Projectiles/Melee/CnidarianSpark.cs index bbb3b5d561..ebce8453c4 100644 --- a/Projectiles/Melee/CnidarianSpark.cs +++ b/Projectiles/Melee/CnidarianSpark.cs @@ -1,9 +1,8 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Terraria; -using Terraria.ID; -using Terraria.ModLoader; using Terraria.Audio; -using CalamityMod.Particles; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Melee/RedtideWhirlpool.cs b/Projectiles/Melee/RedtideWhirlpool.cs index 0f783c550c..9559418ff1 100644 --- a/Projectiles/Melee/RedtideWhirlpool.cs +++ b/Projectiles/Melee/RedtideWhirlpool.cs @@ -1,11 +1,10 @@ -using Microsoft.Xna.Framework; +using System; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Terraria.Audio; -using System; -using CalamityMod.Particles; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs index 55ac5c51e6..5ede7b2556 100644 --- a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs +++ b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs @@ -1,13 +1,12 @@ -using Microsoft.Xna.Framework; +using System; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Utilities; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Terraria.Audio; -using System; -using CalamityMod.Particles; using static CalamityMod.CalamityUtils; -using ReLogic.Utilities; namespace CalamityMod.Projectiles.Melee.Spears { diff --git a/Projectiles/Melee/UrchinMaceProjectile.cs b/Projectiles/Melee/UrchinMaceProjectile.cs index d00ccab72b..9310242891 100644 --- a/Projectiles/Melee/UrchinMaceProjectile.cs +++ b/Projectiles/Melee/UrchinMaceProjectile.cs @@ -1,11 +1,11 @@ -using Microsoft.Xna.Framework; +using System; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Terraria.Audio; -using System; -using CalamityMod.Particles; namespace CalamityMod.Projectiles.Melee { diff --git a/Projectiles/Ranged/PressurizedBubbleStream.cs b/Projectiles/Ranged/PressurizedBubbleStream.cs index a39739e2fa..efa7b8dea8 100644 --- a/Projectiles/Ranged/PressurizedBubbleStream.cs +++ b/Projectiles/Ranged/PressurizedBubbleStream.cs @@ -1,11 +1,11 @@ -using Microsoft.Xna.Framework; -using System; +using System; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Terraria.Audio; -using CalamityMod.Particles; -using CalamityMod.Items.Weapons.Ranged; namespace CalamityMod.Projectiles.Ranged { diff --git a/Projectiles/Rogue/FishboneBoomerangProjectile.cs b/Projectiles/Rogue/FishboneBoomerangProjectile.cs index 0de1c65212..c1339a3a1d 100644 --- a/Projectiles/Rogue/FishboneBoomerangProjectile.cs +++ b/Projectiles/Rogue/FishboneBoomerangProjectile.cs @@ -1,14 +1,10 @@ -using CalamityMod.Projectiles.Typeless; +using System; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Terraria; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using System; -using Terraria.GameContent; -using Terraria.Graphics.Shaders; using static CalamityMod.CalamityUtils; -using Terraria.Audio; namespace CalamityMod.Projectiles.Rogue { From 7bb176109fdd65bbe7fa17a53139666b5f147eca Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Tue, 7 Jun 2022 00:28:53 +0200 Subject: [PATCH 28/30] Internal helmet renames for clarity --- .../{VictideHermitHelmet.cs => VictideHeadMagic.cs} | 5 ++--- ...VictideHermitHelmet.png => VictideHeadMagic.png} | Bin ...mitHelmet_Head.png => VictideHeadMagic_Head.png} | Bin .../{VictideShellmet.cs => VictideHeadMelee.cs} | 2 +- .../{VictideShellmet.png => VictideHeadMelee.png} | Bin ...eShellmet_Head.png => VictideHeadMelee_Head.png} | Bin .../{VictideCoralTurban.cs => VictideHeadRanged.cs} | 2 +- ...VictideCoralTurban.png => VictideHeadRanged.png} | Bin ...alTurban_Head.png => VictideHeadRanged_Head.png} | Bin .../{VictideHeadcrab.cs => VictideHeadRogue.cs} | 2 +- .../{VictideHeadcrab.png => VictideHeadRogue.png} | Bin ...eHeadcrab_Head.png => VictideHeadRogue_Head.png} | Bin .../Armor/{VictideMask.cs => VictideHeadSummon.cs} | 7 ++----- .../{VictideMask.png => VictideHeadSummon.png} | Bin ...tideMask_Head.png => VictideHeadSummon_Head.png} | Bin 15 files changed, 7 insertions(+), 11 deletions(-) rename Items/Armor/{VictideHermitHelmet.cs => VictideHeadMagic.cs} (94%) rename Items/Armor/{VictideHermitHelmet.png => VictideHeadMagic.png} (100%) rename Items/Armor/{VictideHermitHelmet_Head.png => VictideHeadMagic_Head.png} (100%) rename Items/Armor/{VictideShellmet.cs => VictideHeadMelee.cs} (98%) rename Items/Armor/{VictideShellmet.png => VictideHeadMelee.png} (100%) rename Items/Armor/{VictideShellmet_Head.png => VictideHeadMelee_Head.png} (100%) rename Items/Armor/{VictideCoralTurban.cs => VictideHeadRanged.cs} (97%) rename Items/Armor/{VictideCoralTurban.png => VictideHeadRanged.png} (100%) rename Items/Armor/{VictideCoralTurban_Head.png => VictideHeadRanged_Head.png} (100%) rename Items/Armor/{VictideHeadcrab.cs => VictideHeadRogue.cs} (98%) rename Items/Armor/{VictideHeadcrab.png => VictideHeadRogue.png} (100%) rename Items/Armor/{VictideHeadcrab_Head.png => VictideHeadRogue_Head.png} (100%) rename Items/Armor/{VictideMask.cs => VictideHeadSummon.cs} (89%) rename Items/Armor/{VictideMask.png => VictideHeadSummon.png} (100%) rename Items/Armor/{VictideMask_Head.png => VictideHeadSummon_Head.png} (100%) diff --git a/Items/Armor/VictideHermitHelmet.cs b/Items/Armor/VictideHeadMagic.cs similarity index 94% rename from Items/Armor/VictideHermitHelmet.cs rename to Items/Armor/VictideHeadMagic.cs index e34cc2c093..27f7d0ed05 100644 --- a/Items/Armor/VictideHermitHelmet.cs +++ b/Items/Armor/VictideHeadMagic.cs @@ -7,9 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] - [LegacyName("VictideHelmet")] - //Look at VictideMask.cs for the explanation. - public class VictideHermitHelmet : ModItem + [LegacyName("VictideMask")] + public class VictideHeadMagic : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Armor/VictideHermitHelmet.png b/Items/Armor/VictideHeadMagic.png similarity index 100% rename from Items/Armor/VictideHermitHelmet.png rename to Items/Armor/VictideHeadMagic.png diff --git a/Items/Armor/VictideHermitHelmet_Head.png b/Items/Armor/VictideHeadMagic_Head.png similarity index 100% rename from Items/Armor/VictideHermitHelmet_Head.png rename to Items/Armor/VictideHeadMagic_Head.png diff --git a/Items/Armor/VictideShellmet.cs b/Items/Armor/VictideHeadMelee.cs similarity index 98% rename from Items/Armor/VictideShellmet.cs rename to Items/Armor/VictideHeadMelee.cs index 70352d3251..7e01621dde 100644 --- a/Items/Armor/VictideShellmet.cs +++ b/Items/Armor/VictideHeadMelee.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] [LegacyName("VictideHelm")] - public class VictideShellmet : ModItem + public class VictideHeadMelee : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Armor/VictideShellmet.png b/Items/Armor/VictideHeadMelee.png similarity index 100% rename from Items/Armor/VictideShellmet.png rename to Items/Armor/VictideHeadMelee.png diff --git a/Items/Armor/VictideShellmet_Head.png b/Items/Armor/VictideHeadMelee_Head.png similarity index 100% rename from Items/Armor/VictideShellmet_Head.png rename to Items/Armor/VictideHeadMelee_Head.png diff --git a/Items/Armor/VictideCoralTurban.cs b/Items/Armor/VictideHeadRanged.cs similarity index 97% rename from Items/Armor/VictideCoralTurban.cs rename to Items/Armor/VictideHeadRanged.cs index 70d457d996..07d6549ed1 100644 --- a/Items/Armor/VictideCoralTurban.cs +++ b/Items/Armor/VictideHeadRanged.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] [LegacyName("VictideVisage")] - public class VictideCoralTurban : ModItem + public class VictideHeadRanged : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Armor/VictideCoralTurban.png b/Items/Armor/VictideHeadRanged.png similarity index 100% rename from Items/Armor/VictideCoralTurban.png rename to Items/Armor/VictideHeadRanged.png diff --git a/Items/Armor/VictideCoralTurban_Head.png b/Items/Armor/VictideHeadRanged_Head.png similarity index 100% rename from Items/Armor/VictideCoralTurban_Head.png rename to Items/Armor/VictideHeadRanged_Head.png diff --git a/Items/Armor/VictideHeadcrab.cs b/Items/Armor/VictideHeadRogue.cs similarity index 98% rename from Items/Armor/VictideHeadcrab.cs rename to Items/Armor/VictideHeadRogue.cs index 96b7db2ffe..8bccee598e 100644 --- a/Items/Armor/VictideHeadcrab.cs +++ b/Items/Armor/VictideHeadRogue.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] [LegacyName("VictideHeadgear")] - public class VictideHeadcrab : ModItem + public class VictideHeadRogue : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Armor/VictideHeadcrab.png b/Items/Armor/VictideHeadRogue.png similarity index 100% rename from Items/Armor/VictideHeadcrab.png rename to Items/Armor/VictideHeadRogue.png diff --git a/Items/Armor/VictideHeadcrab_Head.png b/Items/Armor/VictideHeadRogue_Head.png similarity index 100% rename from Items/Armor/VictideHeadcrab_Head.png rename to Items/Armor/VictideHeadRogue_Head.png diff --git a/Items/Armor/VictideMask.cs b/Items/Armor/VictideHeadSummon.cs similarity index 89% rename from Items/Armor/VictideMask.cs rename to Items/Armor/VictideHeadSummon.cs index 8b9165a15e..8d7b9dca85 100644 --- a/Items/Armor/VictideMask.cs +++ b/Items/Armor/VictideHeadSummon.cs @@ -10,11 +10,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] - //[LegacyName("VictideHelmet")] - //While the victide summoner helmet was previously named "VictideHelmet", the victide mage hat was named "VictideMask". - //To avoid bizzare side effects, the victide mage helmet will simply turn into the summoner helm that stole its name, and the old VictideHelmet will become the new victide mage helmet - - public class VictideMask : ModItem + [LegacyName("VictideHelmet")] + public class VictideHeadSummon : ModItem { public override void SetStaticDefaults() diff --git a/Items/Armor/VictideMask.png b/Items/Armor/VictideHeadSummon.png similarity index 100% rename from Items/Armor/VictideMask.png rename to Items/Armor/VictideHeadSummon.png diff --git a/Items/Armor/VictideMask_Head.png b/Items/Armor/VictideHeadSummon_Head.png similarity index 100% rename from Items/Armor/VictideMask_Head.png rename to Items/Armor/VictideHeadSummon_Head.png From e39d40e7271ab5090eafe88d459ddc845a00d64e Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Tue, 7 Jun 2022 03:24:51 +0200 Subject: [PATCH 29/30] Sea Snail friend :) --- Buffs/Summon/VictideSummonSetBuff.cs | 15 +- CalPlayer/CalamityPlayer.cs | 8 +- Items/Armor/VictideHeadSummon.cs | 6 +- ModSupport/ModCalls.cs | 4 +- Projectiles/Summon/Urchin.cs | 123 --------- Projectiles/Summon/UrchinSpike.cs | 1 + Projectiles/Summon/VictideSeaSnail.cs | 237 ++++++++++++++++++ ...monerSetMinion.png => VictideSeaSnail.png} | Bin 8 files changed, 256 insertions(+), 138 deletions(-) delete mode 100644 Projectiles/Summon/Urchin.cs create mode 100644 Projectiles/Summon/VictideSeaSnail.cs rename Projectiles/Summon/{VictideSummonerSetMinion.png => VictideSeaSnail.png} (100%) diff --git a/Buffs/Summon/VictideSummonSetBuff.cs b/Buffs/Summon/VictideSummonSetBuff.cs index 06d6e1fb52..a2d81dfa9b 100644 --- a/Buffs/Summon/VictideSummonSetBuff.cs +++ b/Buffs/Summon/VictideSummonSetBuff.cs @@ -1,4 +1,4 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; @@ -9,8 +9,8 @@ namespace CalamityMod.Buffs.Summon { public override void SetStaticDefaults() { - DisplayName.SetDefault("Urchin"); - Description.SetDefault("The urchin will protect you"); + DisplayName.SetDefault("Sea Snail"); + Description.SetDefault("Meow?"); Main.buffNoTimeDisplay[Type] = true; Main.buffNoSave[Type] = true; //Main.persistentBuff[Type] = true; @@ -19,11 +19,14 @@ namespace CalamityMod.Buffs.Summon public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) + + + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { - modPlayer.vUrchin = true; + modPlayer.victideSnail = true; } - if (!modPlayer.vUrchin) + + if (!modPlayer.victideSnail) { player.DelBuff(buffIndex); buffIndex--; diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 985dcad885..0a847a571a 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -625,6 +625,7 @@ namespace CalamityMod.CalPlayer public bool eskimoSet = false; //vanilla armor public bool meteorSet = false; //vanilla armor, for space gun nerf public bool victideSet = false; + public bool victideSummoner = false; public bool sulfurSet = false; public bool sulfurJump = false; public bool jumpAgainSulfur = false; @@ -723,7 +724,6 @@ namespace CalamityMod.CalPlayer public bool omegaBlueChestplate = false; public bool omegaBlueSet = false; public bool omegaBlueHentai = false; - public bool urchin = false; public bool valkyrie = false; public bool slimeGod = false; public bool molluskSet = false; @@ -949,7 +949,7 @@ namespace CalamityMod.CalPlayer public bool hauntedDishes = false; public bool stormjaw = false; public bool sGod = false; - public bool vUrchin = false; + public bool victideSnail = false; public bool cSpirit = false; public bool rOrb = false; public bool dCrystal = false; @@ -1780,6 +1780,7 @@ namespace CalamityMod.CalPlayer meteorSet = false; //vanilla armor, for Space Gun nerf victideSet = false; + victideSummoner = false; sulfurSet = false; sulfurJump = false; @@ -2023,7 +2024,7 @@ namespace CalamityMod.CalPlayer sandnado = false; plantera = false; aProbe = false; - vUrchin = false; + victideSnail = false; cSpirit = false; rOrb = false; dCrystal = false; @@ -2040,7 +2041,6 @@ namespace CalamityMod.CalPlayer redDevil = false; valkyrie = false; slimeGod = false; - urchin = false; chaosSpirit = false; daedalusCrystal = false; shellfish = false; diff --git a/Items/Armor/VictideHeadSummon.cs b/Items/Armor/VictideHeadSummon.cs index 8d7b9dca85..84073b1880 100644 --- a/Items/Armor/VictideHeadSummon.cs +++ b/Items/Armor/VictideHeadSummon.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Armor "+1 max minion"; CalamityPlayer modPlayer = player.Calamity(); modPlayer.victideSet = true; - modPlayer.urchin = true; + modPlayer.victideSummoner = true; player.maxMinions++; if (player.whoAmI == Main.myPlayer) { @@ -54,11 +54,11 @@ namespace CalamityMod.Items.Armor player.AddBuff(ModContent.BuffType(), 3600, true); } var source = player.GetSource_ItemUse(Item); - if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] < 1) { int baseDamage = 7; int minionDamage = (int)player.GetDamage().CombineWith(player.GetDamage()).ApplyTo(baseDamage); - int p = Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType(), minionDamage, 0f, Main.myPlayer, 0f, 0f); + int p = Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType(), minionDamage, 0f, Main.myPlayer, 0f, 0f); if (Main.projectile.IndexInRange(p)) Main.projectile[p].originalDamage = baseDamage; } diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index fbad3cce1a..f2936a52fc 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -545,7 +545,7 @@ namespace CalamityMod // Victide if (setBonus == "victide_summon" || setBonus == "victide summon") - return mp.urchin; // the bool set directly by VictideHelmet.UpdateArmorSet + return mp.victideSummoner; // the bool set directly by VictideHelmet.UpdateArmorSet else if (setBonus == "victide" || setBonus.StartsWith("victide_") || setBonus.StartsWith("victide ")) return mp.victideSet; @@ -863,7 +863,7 @@ namespace CalamityMod if (setBonus == "victide_summon" || setBonus == "victide summon") { mp.victideSet = enabled; - mp.urchin = enabled; // LATER -- remove this when player.urchin actually controls victide summoner + mp.victideSummoner = enabled; return true; } else if (setBonus == "victide" || setBonus.StartsWith("victide_") || setBonus.StartsWith("victide ")) diff --git a/Projectiles/Summon/Urchin.cs b/Projectiles/Summon/Urchin.cs deleted file mode 100644 index ab829cf32f..0000000000 --- a/Projectiles/Summon/Urchin.cs +++ /dev/null @@ -1,123 +0,0 @@ -using CalamityMod.CalPlayer; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.Audio; - -namespace CalamityMod.Projectiles.Summon -{ - public class Urchin : ModProjectile - { - public int dust = 3; - - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Urchin"); - ProjectileID.Sets.MinionSacrificable[Projectile.type] = true; - } - - public override void SetDefaults() - { - Projectile.width = 30; - Projectile.height = 30; - Projectile.netImportant = true; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.minion = true; - Projectile.minionSlots = 0f; - Projectile.timeLeft = 18000; - Projectile.penetrate = -1; - Projectile.tileCollide = false; - Projectile.timeLeft *= 5; - } - - public override void AI() - { - Player player = Main.player[Projectile.owner]; - CalamityPlayer modPlayer = player.Calamity(); - if (!modPlayer.urchin) - { - Projectile.active = false; - return; - } - bool correctMinion = Projectile.type == ModContent.ProjectileType(); - if (correctMinion) - { - if (player.dead) - { - modPlayer.vUrchin = false; - } - if (modPlayer.vUrchin) - { - Projectile.timeLeft = 2; - } - } - dust--; - if (dust >= 0) - { - int dustAmt = 50; - for (int d = 0; d < dustAmt; d++) - { - int index = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y + 16f), Projectile.width, Projectile.height - 16, 179, 0f, 0f, 0, default, 1f); - Main.dust[index].velocity *= 2f; - Main.dust[index].scale *= 1.15f; - } - } - float scalar = (float)Main.mouseTextColor / 200f - 0.35f; - scalar *= 0.2f; - Projectile.scale = scalar + 0.95f; - Projectile.Center = player.Center + Vector2.UnitY * (player.gfxOffY - 60f); - if (player.gravDir == -1f) - { - Projectile.position.Y += 120f; - Projectile.rotation = MathHelper.Pi; - } - else - { - Projectile.rotation = 0f; - } - Projectile.position.X = (int)Projectile.position.X; - Projectile.position.Y = (int)Projectile.position.Y; - if (Projectile.owner == Main.myPlayer) - { - if (Projectile.ai[0] != 0f) - { - Projectile.ai[0] -= 1f; - return; - } - bool foundTarget = false; - float maxDist = 300f; - for (int i = 0; i < Main.maxNPCs; i++) - { - NPC npc = Main.npc[i]; - if (npc.CanBeChasedBy(Projectile, false)) - { - if (Vector2.Distance(Projectile.Center, npc.Center) < maxDist && Collision.CanHit(Projectile.position, Projectile.width, Projectile.height, npc.position, npc.width, npc.height)) - { - foundTarget = true; - break; - } - } - } - if (foundTarget) - { - int projAmt = Main.rand.Next(3, 7); - for (int u = 0; u < projAmt; u++) - { - Vector2 source = new Vector2(Projectile.Center.X - 4f, Projectile.Center.Y); - Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f); - int spore = Projectile.NewProjectile(Projectile.GetSource_FromThis(), source, velocity, ModContent.ProjectileType(), Projectile.damage, 1f, Projectile.owner, 0f, 0f); - Main.projectile[spore].minion = true; - Main.projectile[spore].minionSlots = 0f; - Main.projectile[spore].originalDamage = Projectile.originalDamage; - } - SoundEngine.PlaySound(SoundID.Item42, Projectile.position); - Projectile.ai[0] = 60f; - } - } - } - - public override bool? CanDamage() => false; - } -} diff --git a/Projectiles/Summon/UrchinSpike.cs b/Projectiles/Summon/UrchinSpike.cs index d8cc51e33b..fa8b090ce4 100644 --- a/Projectiles/Summon/UrchinSpike.cs +++ b/Projectiles/Summon/UrchinSpike.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.penetrate = 1; Projectile.timeLeft = 600; Projectile.aiStyle = 1; + Projectile.DamageType = DamageClass.Summon; } public override void AI() diff --git a/Projectiles/Summon/VictideSeaSnail.cs b/Projectiles/Summon/VictideSeaSnail.cs new file mode 100644 index 0000000000..98acaec37e --- /dev/null +++ b/Projectiles/Summon/VictideSeaSnail.cs @@ -0,0 +1,237 @@ +using CalamityMod.CalPlayer; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; +using System; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Projectiles.Summon +{ + public class VictideSeaSnail : ModProjectile + { + public ref float DustTimer => ref Projectile.localAI[0]; + public ref float FireCooldown => ref Projectile.localAI[1]; + public ref float PeekingOut => ref Projectile.ai[0]; + public ref float PlayerStandStillTimer => ref Projectile.ai[1]; + + public const int frameTime = 6; + public const int timeToStandStillBeforePeekOut = 200; + + public bool CanComePeekOut => !Main.player[Projectile.owner].mount.Active && PlayerStandStillTimer >= timeToStandStillBeforePeekOut || Projectile.frame > 0; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sea Snail"); + ProjectileID.Sets.MinionSacrificable[Projectile.type] = true; + Main.projFrames[Projectile.type] = 7; + } + + public override void SetDefaults() + { + Projectile.width = 30; + Projectile.height = 30; + Projectile.netImportant = true; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.minion = true; + Projectile.minionSlots = 0f; + Projectile.timeLeft = 18000; + Projectile.penetrate = -1; + Projectile.tileCollide = false; + Projectile.timeLeft *= 5; + } + + public override void AI() + { + Player player = Main.player[Projectile.owner]; + CalamityPlayer modPlayer = player.Calamity(); + + if (!modPlayer.victideSummoner) + { + for (int d = 0; d < 45; d++) + { + Dust dust = Dust.NewDustDirect(new Vector2(Projectile.position.X, Projectile.position.Y + 16f), Projectile.width, Projectile.height - 16, 179, 0f, 0f, 0, default, 1f); + dust.velocity *= 2f; + dust.scale *= 1.15f; + } + Projectile.active = false; + return; + } + + if (player.dead) + modPlayer.victideSnail = false; + + if (modPlayer.victideSnail) + Projectile.timeLeft = 2; + + //Create a burst of dust as it gets created + DustTimer++; + if (DustTimer <= 3) + { + int dustAmount = Main.rand.Next(40, 50); + for (int d = 0; d < dustAmount; d++) + { + Dust dust = Dust.NewDustDirect(new Vector2(Projectile.position.X, Projectile.position.Y + 16f), Projectile.width, Projectile.height - 16, 179, 0f, 0f, 0, default, 1f); + dust.velocity *= 2f; + dust.scale *= 1.15f; + } + } + + if (player.velocity.Length() == 0) + { + PlayerStandStillTimer++; + //pop out the shell + if (PlayerStandStillTimer == timeToStandStillBeforePeekOut ) + { + DustTimer = 0; + float direction = Main.rand.NextBool() ? 1f : -1f; + Projectile.velocity = new Vector2(Main.rand.NextFloat(4f, 10f) * direction, Main.rand.NextFloat(-6f, 0f)); + } + + Projectile.velocity *= 0.98f; + Projectile.velocity.X *= 0.95f; + Projectile.velocity.Y = Math.Min(Projectile.velocity.Y + 0.1f, 14f); + Projectile.tileCollide = true; + + if (CanComePeekOut) + Projectile.rotation = Projectile.rotation.AngleTowards(0, MathHelper.PiOver4 * 0.14f); + + if (PeekingOut > 0) + { + Projectile.frameCounter++; + if (Projectile.frameCounter > frameTime) + { + Projectile.frameCounter = 0; + Projectile.frame = Math.Min(6, Projectile.frame + 1); + } + } + } + + //Go back, in the shell + if (player.velocity.Length() > 0 && CanComePeekOut) + { + + Projectile.frameCounter++; + if (Projectile.frameCounter > frameTime) + { + Projectile.frameCounter = 0; + Projectile.frame--; + } + + if (Projectile.frame == 0) + { + PlayerStandStillTimer = 0f; + } + + } + + if (!CanComePeekOut) + { + PeekingOut = 0f; + + if (player.velocity.Length() > 0) + PlayerStandStillTimer = 0f; + + Projectile.velocity = Vector2.Zero; + Projectile.tileCollide = false; + Vector2 desiredPosition = player.Center + Vector2.UnitY * (player.gfxOffY - 60f) * player.gravDir; + //Round the result so it doesn't jitter. + desiredPosition = new Vector2((int)desiredPosition.X, (int)desiredPosition.Y); + + Projectile.rotation += MathHelper.PiOver4 * 0.2f; + + Projectile.Center = Projectile.Center.MoveTowards(desiredPosition, 7f + player.velocity.Length()); + } + + //Fire a projectile + if (Projectile.owner == Main.myPlayer) + { + if (FireCooldown > 0f) + { + FireCooldown --; + return; + } + + bool foundTarget = false; + float maxDist = 300f; + for (int i = 0; i < Main.maxNPCs; i++) + { + NPC npc = Main.npc[i]; + if (npc.CanBeChasedBy(Projectile, false)) + { + if (Vector2.Distance(Projectile.Center, npc.Center) < maxDist && Collision.CanHit(Projectile.position, Projectile.width, Projectile.height, npc.position, npc.width, npc.height)) + { + foundTarget = true; + break; + } + } + } + + if (foundTarget) + { + int projAmt = Main.rand.Next(3, 7); + for (int u = 0; u < projAmt; u++) + { + Vector2 source = new Vector2(Projectile.Center.X - 4f, Projectile.Center.Y); + Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f); + int spore = Projectile.NewProjectile(Projectile.GetSource_FromThis(), source, velocity, ModContent.ProjectileType(), Projectile.damage, 1f, Projectile.owner, 0f, 0f); + Main.projectile[spore].minion = true; + Main.projectile[spore].minionSlots = 0f; + Main.projectile[spore].originalDamage = Projectile.originalDamage; + } + + SoundEngine.PlaySound(SoundID.Item42, Projectile.position); + FireCooldown = 60f; + } + } + + if ((Projectile.Center - player.Center).Length() > 400) + { + DustTimer = 0; + Projectile.Center = player.Center + Vector2.UnitY * (player.gfxOffY - 60f) * player.gravDir; + PlayerStandStillTimer = 0f; + Projectile.frame = 0; + } + } + + public override bool? CanDamage() => false; + + public override void Kill(int timeLeft) + { + for (int d = 0; d < 45; d++) + { + Dust dust = Dust.NewDustDirect(new Vector2(Projectile.position.X, Projectile.position.Y + 16f), Projectile.width, Projectile.height - 16, 179, 0f, 0f, 0, default, 1f); + dust.velocity *= 2f; + dust.scale *= 1.15f; + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + //Touches the ground + if (oldVelocity.Y >= 0) + { + PeekingOut = 1f; + } + return false; + } + + public override bool PreDraw(ref Color lightColor) + { + Player owner = Main.player[Projectile.owner]; + + Texture2D tex = ModContent.Request(Texture).Value; + Rectangle frame = new Rectangle(0, 36 * Projectile.frame, 38, 34); + Vector2 origin = !CanComePeekOut ? new Vector2(15, 23) : frame.Size() / 2f; + + //Look at the player + SpriteEffects flipperoni = Math.Sign(Projectile.position.X - owner.position.X) > 0 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, frame, lightColor, Projectile.rotation, origin, Projectile.scale, flipperoni, 0); + + return false; + } + } +} diff --git a/Projectiles/Summon/VictideSummonerSetMinion.png b/Projectiles/Summon/VictideSeaSnail.png similarity index 100% rename from Projectiles/Summon/VictideSummonerSetMinion.png rename to Projectiles/Summon/VictideSeaSnail.png From 6c5cdbd169165f635add05318d1c094a2283066c Mon Sep 17 00:00:00 2001 From: IbanPlay <56191483+IbanPlay@users.noreply.github.com> Date: Tue, 7 Jun 2022 04:37:19 +0200 Subject: [PATCH 30/30] Fishbone boomerang tooltip twealk --- Items/Weapons/Rogue/FishboneBoomerang.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Rogue/FishboneBoomerang.cs b/Items/Weapons/Rogue/FishboneBoomerang.cs index 5ff3a554ed..0ac9d43dc7 100644 --- a/Items/Weapons/Rogue/FishboneBoomerang.cs +++ b/Items/Weapons/Rogue/FishboneBoomerang.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue DisplayName.SetDefault("Fishbone Boomerang"); Tooltip.SetDefault("Stealth strikes make the boomerang ricochet between enemies\n" + //lore tooltip u get the thing - "[c/5C95A1:Even as their home slowly evaporated during their war against the Tyrant, those of the Sea Kingdom did not go down without a fight.]\n" + + "[c/5C95A1:Though the evaporating Sea Kingdom fought a losing battle, its proud inhabitants did not go down easily.]\n" + "[c/5C95A1:As a last resort, they had to fashion weapons from the skeletons of dead animals.]" ); SacrificeTotal = 1;