From 7bd3fe83dc8c066a4820f95cea67be1986e876f7 Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Tue, 13 Jul 2021 22:22:48 -0500 Subject: [PATCH] 1 - Astrum Deus phases are more obvious. --- NPCs/AstrumDeus/AstrumDeusBodyAltGlow2.png | Bin 0 -> 474 bytes NPCs/AstrumDeus/AstrumDeusBodyGlow3.png | Bin 0 -> 489 bytes NPCs/AstrumDeus/AstrumDeusBodyGlow4.png | Bin 0 -> 519 bytes NPCs/AstrumDeus/AstrumDeusBodySpectral.cs | 33 +++++++++++++++------ NPCs/AstrumDeus/AstrumDeusHeadGlow3.png | Bin 0 -> 444 bytes NPCs/AstrumDeus/AstrumDeusHeadGlow4.png | Bin 0 -> 525 bytes NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs | 22 ++++++++++---- NPCs/AstrumDeus/AstrumDeusTailGlow2.png | Bin 0 -> 477 bytes NPCs/AstrumDeus/AstrumDeusTailSpectral.cs | 15 ++++++++-- 9 files changed, 53 insertions(+), 17 deletions(-) create mode 100644 NPCs/AstrumDeus/AstrumDeusBodyAltGlow2.png create mode 100644 NPCs/AstrumDeus/AstrumDeusBodyGlow3.png create mode 100644 NPCs/AstrumDeus/AstrumDeusBodyGlow4.png create mode 100644 NPCs/AstrumDeus/AstrumDeusHeadGlow3.png create mode 100644 NPCs/AstrumDeus/AstrumDeusHeadGlow4.png create mode 100644 NPCs/AstrumDeus/AstrumDeusTailGlow2.png diff --git a/NPCs/AstrumDeus/AstrumDeusBodyAltGlow2.png b/NPCs/AstrumDeus/AstrumDeusBodyAltGlow2.png new file mode 100644 index 0000000000000000000000000000000000000000..80988be26637477300aecaa59a4873bbb3c43628 GIT binary patch literal 474 zcmeAS@N?(olHy`uVBq!ia0vp^Za{3q!3HF6Pd}r~z`(fB)5S5QBJS<9wSLTw0u476 zUOOmNw0h~}a_}?s&1dO#Sv1k3L|B7Qu3>^$_Y+Y8j{=XPCDCDDcAZWuOS3#!zHaB; zn>+LO&0HJ(uv4g@pi`K^=Mc{U1~)Sk1GZ!XH#dgllsz*HC7KP5m?V@RAMH6P(KAu- zfP|!e8qcwWo*sr{Cn^k+fl57vURB3sg~B`Kasm#Q$r}o;^rWd{Z~0f(E@ zN)+@&S}Yi*)GUc<-z6L={x3E34l9at*!WZkloM#38@c9GmrScT8UT zh_xrbb_s`;#M;*~g%da1MJ?kyP_gGfTX5E2rLEjgPbMTYJQlom$tLUAiCt@b_cgqf zv)_`CmC0(7oN}H;qTY83OK?@cO7F!Wj})GSZQ?zGGcHxDWcHN(;Foy1OM@xcJ8}8m zxlVr?KDIoGHA`T)T%Xlw$R&Ru;$VucoOZ${C41%58}%9jHJE?_$lHbV!Z literal 0 HcmV?d00001 diff --git a/NPCs/AstrumDeus/AstrumDeusBodyGlow4.png b/NPCs/AstrumDeus/AstrumDeusBodyGlow4.png new file mode 100644 index 0000000000000000000000000000000000000000..30363b9f3d1648811853ee5836ac43808a2e0daf GIT binary patch literal 519 zcmV+i0{H!jP)0Ap;t$QX>l z7#jhMvGF2fFa~361g17-|N8c4sNwVOX4K>B9dD&Isz~c3Lx1nWyyLAkcLQ^L|B#GX z9_^(XU(U{}=01IXO5@h=UuoRi)n(N5!gLkrWP@#WPk=K{l7of z={jSxs@A0D#sDUBD{`SJ*^$edTzjt&?q-Zu|KEd=tcZG>L|-qLIn9lUUP$!yCIeIZ z7TC6a&5hZ%1=rT&1|w?Agi%>iy8!7IT?b%V?XL9)+|a?W6n4)?)Se8oKLt8zY5E)&NG`I=OT5ckKyXlrhos zh8Y8xf+?kwIj>~#>{o$ zrMdyr>e!(~ey;5pgE2ODF$QBW#zp{RY`n-AjKLTi0gSQn`UTAv08DAQ|3Cl$002ov JPDHLkV1iA??v(%l literal 0 HcmV?d00001 diff --git a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs index f4ac21e06f..3a3c4ffa73 100644 --- a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs @@ -80,7 +80,11 @@ namespace CalamityMod.NPCs.AstrumDeus if (npc.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; - Texture2D texture2D15 = npc.localAI[3] == 1f ? ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltSpectral") : Main.npcTexture[npc.type]; + bool altBodyTextures = npc.localAI[3] == 1f; + bool drawCyan = npc.Calamity().newAI[3] >= 600f; + bool doubleWormPhase = npc.Calamity().newAI[0] != 0f; + + Texture2D texture2D15 = altBodyTextures ? ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltSpectral") : Main.npcTexture[npc.type]; Texture2D texture2D16 = ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow2"); Vector2 vector11 = new Vector2(Main.npcTexture[npc.type].Width / 2, Main.npcTexture[npc.type].Height / 2); Color color36 = Color.White; @@ -107,10 +111,15 @@ namespace CalamityMod.NPCs.AstrumDeus vector43 += vector11 * npc.scale + new Vector2(0f, npc.gfxOffY); spriteBatch.Draw(texture2D15, vector43, npc.frame, npc.GetAlpha(lightColor), npc.rotation, vector11, npc.scale, spriteEffects, 0f); - texture2D15 = npc.localAI[3] == 1f ? ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltGlow") : ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow"); - Color phaseColor = npc.Calamity().newAI[3] >= 600f ? Color.Cyan : Color.Orange; - Color color37 = Color.Lerp(Color.White, npc.Calamity().newAI[0] != 0f ? phaseColor : Color.Cyan, 0.5f) * npc.Opacity; - Color color42 = Color.Lerp(Color.White, npc.Calamity().newAI[0] != 0f ? phaseColor : Color.Orange, 0.5f) * npc.Opacity; + texture2D15 = altBodyTextures ? ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltGlow") : ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow"); + Color phaseColor = drawCyan ? Color.Cyan : Color.Orange; + if (doubleWormPhase) + { + texture2D15 = drawCyan ? texture2D15 : (altBodyTextures ? ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltGlow2") : ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow3")); + texture2D16 = drawCyan ? ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow4") : texture2D16; + } + Color color37 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Cyan, 0.5f) * npc.Opacity; + Color color42 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Orange, 0.5f) * npc.Opacity; if (CalamityConfig.Instance.Afterimages) { @@ -124,7 +133,7 @@ namespace CalamityMod.NPCs.AstrumDeus vector44 += vector11 * npc.scale + new Vector2(0f, npc.gfxOffY); spriteBatch.Draw(texture2D15, vector44, npc.frame, color41, npc.rotation, vector11, npc.scale, spriteEffects, 0f); - if (npc.localAI[3] != 1f) + if (!altBodyTextures) { Color color43 = color42; color43 = Color.Lerp(color43, color36, amount9); @@ -134,10 +143,16 @@ namespace CalamityMod.NPCs.AstrumDeus } } - spriteBatch.Draw(texture2D15, vector43, npc.frame, color37, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + int timesToDraw = drawCyan ? 1 : 2; + for (int i = 0; i < timesToDraw; i++) + spriteBatch.Draw(texture2D15, vector43, npc.frame, color37, npc.rotation, vector11, npc.scale, spriteEffects, 0f); - if (npc.localAI[3] != 1f) - spriteBatch.Draw(texture2D16, vector43, npc.frame, color42, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + if (!altBodyTextures) + { + timesToDraw = drawCyan ? 2 : 1; + for (int i = 0; i < timesToDraw; i++) + spriteBatch.Draw(texture2D16, vector43, npc.frame, color42, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + } return false; } diff --git a/NPCs/AstrumDeus/AstrumDeusHeadGlow3.png b/NPCs/AstrumDeus/AstrumDeusHeadGlow3.png new file mode 100644 index 0000000000000000000000000000000000000000..fc07ca9a1185d08111eb138176de41f68158c9ae GIT binary patch literal 444 zcmeAS@N?(olHy`uVBq!ia0vp^0U*r51|<6gKdoh8U~KkuaSW-5dwb2$h&hp=?ctJZ zfxB9a11uO+`PwHjYgjaUYrMQ-crE2vPugU4<=w{X)q2bS{(dw4MA1clPMwu{aV#Cm z90m>|2llYCbui7?et;p6;j@^80$0L4CT17LGtmhR8V!})JOZo+`HhT=7@p~pq4=Ea zho4`HzSi=qA3uEh(TjJ5SDb72?~`b{zI}eYeRZY8)rHsR*XY-O`L4-y#C_M>N!wbF zKlTG!_wLukb8o7u|MSe5dHu`1LyYHQ8P4zjzWu|m`6nL!JXoN8diCwV^r*Y{dG0gY z&$BcC^{*rDay2)5M}NuQC0|p`VjnD%l`F5}<|(+|Uy^oR`fH=@=IUS9AG3AbVWgU8 bT@L7HybB84zc|SR7%L2(u6{1-oD!M<#s;(6 literal 0 HcmV?d00001 diff --git a/NPCs/AstrumDeus/AstrumDeusHeadGlow4.png b/NPCs/AstrumDeus/AstrumDeusHeadGlow4.png new file mode 100644 index 0000000000000000000000000000000000000000..cfa0f73fb3bfd4093308d4c47ba46f0261f092fd GIT binary patch literal 525 zcmeAS@N?(olHy`uVBq!ia0vp^0U*r51|<6gKdoh8V7%h#;uum9_x6^d7qg>8+ruX; zX4Axyb}N`&Yns-SzG3ra=7?&Bw{L8k6ILe7b!*8zdg#(IVGTZ>HLDNpcz@u}MDw#w zC$|55eluTKEyeD0Bg-?5+zK@XoyG!5^yzQ0@9Mj^`n{{)#$Wo} zf81SBudYL}Er{t*w9@hN{QMx{hz4ZAWUc17!ATI94+>V9~jgM^$x5#?@VB?Bd+4wW8 z@6+%56_JVd%%2x9g=HmOx!jVU5VB+GPa#2rT?}*1M@KklFg!L3AWWW>-ceWd?dkj# z=btZkHTFI0xIX{mqQva|FF(`-D=vGMwSK8&0^1FX8(!H}yXriS?>8&R+9$T8Az+hb z!o2-kDj$E{wr?tH%r&+{I}ab3ZEDcNAmie|xR9aeHkhnuxc6g4U`i3!ZeTPsc)I$z JtaD0e0suU1*VX_4 literal 0 HcmV?d00001 diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index 2723515d0a..a156498159 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -95,6 +95,9 @@ namespace CalamityMod.NPCs.AstrumDeus if (npc.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; + bool drawCyan = npc.Calamity().newAI[3] >= 600f; + bool doubleWormPhase = npc.Calamity().newAI[0] != 0f; + Texture2D texture2D15 = Main.npcTexture[npc.type]; Texture2D texture2D16 = ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow2"); Vector2 vector11 = new Vector2(Main.npcTexture[npc.type].Width / 2, Main.npcTexture[npc.type].Height / 2); @@ -123,9 +126,14 @@ namespace CalamityMod.NPCs.AstrumDeus spriteBatch.Draw(texture2D15, vector43, npc.frame, npc.GetAlpha(lightColor), npc.rotation, vector11, npc.scale, spriteEffects, 0f); texture2D15 = ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow"); - Color phaseColor = npc.Calamity().newAI[3] >= 600f ? Color.Cyan : Color.Orange; - Color color37 = Color.Lerp(Color.White, npc.Calamity().newAI[0] != 0f ? phaseColor : Color.Cyan, 0.5f) * npc.Opacity; - Color color42 = Color.Lerp(Color.White, npc.Calamity().newAI[0] != 0f ? phaseColor : Color.Orange, 0.5f) * npc.Opacity; + Color phaseColor = drawCyan ? Color.Cyan : Color.Orange; + if (doubleWormPhase) + { + texture2D15 = drawCyan ? texture2D15 : ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow3"); + texture2D16 = drawCyan ? ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow4") : texture2D16; + } + Color color37 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Cyan, 0.5f) * npc.Opacity; + Color color42 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Orange, 0.5f) * npc.Opacity; if (CalamityConfig.Instance.Afterimages) { @@ -146,9 +154,13 @@ namespace CalamityMod.NPCs.AstrumDeus } } - spriteBatch.Draw(texture2D15, vector43, npc.frame, color37, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + int timesToDraw = drawCyan ? 1 : 2; + for (int i = 0; i < timesToDraw; i++) + spriteBatch.Draw(texture2D15, vector43, npc.frame, color37, npc.rotation, vector11, npc.scale, spriteEffects, 0f); - spriteBatch.Draw(texture2D16, vector43, npc.frame, color42, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + timesToDraw = drawCyan ? 2 : 1; + for (int i = 0; i < timesToDraw; i++) + spriteBatch.Draw(texture2D16, vector43, npc.frame, color42, npc.rotation, vector11, npc.scale, spriteEffects, 0f); return false; } diff --git a/NPCs/AstrumDeus/AstrumDeusTailGlow2.png b/NPCs/AstrumDeus/AstrumDeusTailGlow2.png new file mode 100644 index 0000000000000000000000000000000000000000..b51185735758067dbdd954bf660f4936c97759bc GIT binary patch literal 477 zcmV<30V4j1P)t+g$RhQPKbu*0st(z%0R$W@x%euGYw_~;UdN_av8G5lwU@=15i@6Y8 zcDm3YLoZed3@=nI+v+zZ{a2HXtf*Xt5e+Z&`te0_^5)@A2sZDpWZk@f%DSC?$hvzS zxdz>J^GZN5LbdoPNqaskS??v~sP617z^)o11?Xrux!M%E!=bF>(t zcES*rXn3LFhhv(P#R%0QS?{?e+GkHI$n+218BwV7JeNdM^|p2&JIF>&=>LtV{xlI* zsC@uObwqHY6zWwJ%)YS4G!iAzv=N|n)5i06xA6Z;@e16z`@*ez?v17X-Z$}E2v}c` TVN3u3002ovPDHLkV1fVu-E7*c literal 0 HcmV?d00001 diff --git a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs index ffcde84d21..27a4014a79 100644 --- a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs @@ -80,6 +80,9 @@ namespace CalamityMod.NPCs.AstrumDeus if (npc.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; + bool drawCyan = npc.Calamity().newAI[3] >= 600f; + bool doubleWormPhase = npc.Calamity().newAI[0] != 0f; + Texture2D texture2D15 = Main.npcTexture[npc.type]; Vector2 vector11 = new Vector2(Main.npcTexture[npc.type].Width / 2, Main.npcTexture[npc.type].Height / 2); Color color36 = Color.White; @@ -107,8 +110,12 @@ namespace CalamityMod.NPCs.AstrumDeus spriteBatch.Draw(texture2D15, vector43, npc.frame, npc.GetAlpha(lightColor), npc.rotation, vector11, npc.scale, spriteEffects, 0f); texture2D15 = ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusTailGlow"); - Color phaseColor = npc.Calamity().newAI[3] >= 600f ? Color.Cyan : Color.Orange; - Color color37 = Color.Lerp(Color.White, npc.Calamity().newAI[0] != 0f ? phaseColor : Color.Orange, 0.5f) * npc.Opacity; + Color phaseColor = drawCyan ? Color.Cyan : Color.Orange; + if (doubleWormPhase) + { + texture2D15 = drawCyan ? ModContent.GetTexture("CalamityMod/NPCs/AstrumDeus/AstrumDeusTailGlow2") : texture2D15; + } + Color color37 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Orange, 0.5f) * npc.Opacity; if (CalamityConfig.Instance.Afterimages) { @@ -124,7 +131,9 @@ namespace CalamityMod.NPCs.AstrumDeus } } - spriteBatch.Draw(texture2D15, vector43, npc.frame, color37, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + int timesToDraw = drawCyan ? 2 : 1; + for (int i = 0; i < timesToDraw; i++) + spriteBatch.Draw(texture2D15, vector43, npc.frame, color37, npc.rotation, vector11, npc.scale, spriteEffects, 0f); return false; }