Destroyer telegraph color fixes, greyscale glows for Destroyer and Prime, Rev+ Prime Cannon rockets no longer home and Rev+ Prime Head rockets have more aggressive homing.
This commit is contained in:
1 parent
335a641345
commit
bf28268920
8 files changed
+37
-22
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
+26
-12
@@ -6760,12 +6760,13 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Light colors
|
||||
Color groundColor = new Color(50, 10, 10, 0);
|
||||
Color flightColor = revenge ? new Color(10, 10, 50, 0) : groundColor;
|
||||
int alpha = 192;
|
||||
Color groundColor = new Color(150, 0, 0, alpha);
|
||||
Color flightColor = revenge ? new Color(0, 0, 150, alpha) : groundColor;
|
||||
Color segmentColor = Color.Lerp(groundColor, flightColor, phaseTransitionColorAmount);
|
||||
Color telegraphColor_Red = new Color(255, 150, 150);
|
||||
Color telegraphColor_Green = new Color(150, 255, 150);
|
||||
Color telegraphColor_Cyan = new Color(50, 255, 255);
|
||||
Color telegraphColor_Red = new Color(255, 125, 125, alpha);
|
||||
Color telegraphColor_Green = new Color(125, 255, 125, alpha);
|
||||
Color telegraphColor_Cyan = new Color(0, 255, 255, alpha);
|
||||
Color telegraphColor = telegraphColor_Red;
|
||||
|
||||
// Telegraph for the laser breath and body lasers
|
||||
@@ -6830,13 +6831,24 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
int totalDraws = 3;
|
||||
float alphaMultiplier = 1f - npc.alpha / 255f;
|
||||
for (int i = 0; i < totalDraws; i++)
|
||||
Texture2D glowTexture = Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow").Value;
|
||||
switch (npc.type)
|
||||
{
|
||||
spriteBatch.Draw(TextureAssets.Dest[npc.type - NPCID.TheDestroyer].Value, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame,
|
||||
Color.Lerp(segmentColor, telegraphColor, telegraphProgress) * alphaMultiplier, npc.rotation, halfSize, npc.scale, spriteEffects, 0f);
|
||||
default:
|
||||
case NPCID.TheDestroyer:
|
||||
break;
|
||||
|
||||
case NPCID.TheDestroyerBody:
|
||||
glowTexture = Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow").Value;
|
||||
break;
|
||||
|
||||
case NPCID.TheDestroyerTail:
|
||||
glowTexture = Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow").Value;
|
||||
break;
|
||||
}
|
||||
|
||||
float alphaMultiplier = 1f - npc.alpha / 255f;
|
||||
spriteBatch.Draw(glowTexture, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, Color.Lerp(segmentColor, telegraphColor, telegraphProgress) * alphaMultiplier, npc.rotation, halfSize, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7065,9 +7077,11 @@ namespace CalamityMod.NPCs
|
||||
Color eyesColor = new Color(200, 200, 200, 0);
|
||||
if (masterMode && revenge)
|
||||
{
|
||||
eyesColor = npc.type == ModContent.NPCType<SkeletronPrime2>() ? new Color(150, 100, 255, 0) : new Color(255, 255, 0, 0);
|
||||
int alpha = 192;
|
||||
eyesColor = npc.type == ModContent.NPCType<SkeletronPrime2>() ? new Color(150, 100, 255, alpha) : new Color(255, 255, 0, alpha);
|
||||
Texture2D glowTexture = Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/SkeletronPrimeHeadGlow").Value;
|
||||
for (int i = 0; i < 3; i++)
|
||||
spriteBatch.Draw(TextureAssets.BoneEyes.Value, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, eyesColor, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(glowTexture, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, eyesColor, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
else
|
||||
spriteBatch.Draw(TextureAssets.BoneEyes.Value, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, eyesColor, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0f);
|
||||
|
||||
@@ -684,7 +684,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
// Light colors
|
||||
Vector3 groundColor = new Vector3(0.3f, 0.1f, 0.05f);
|
||||
Vector3 flightColor = new Vector3(0.05f, 0.1f, 0.3f);
|
||||
Vector3 segmentColor = Vector3.Lerp(groundColor, flightColor, phaseTransitionColorAmount) * 0.2f;
|
||||
Vector3 segmentColor = Vector3.Lerp(groundColor, flightColor, phaseTransitionColorAmount);
|
||||
Vector3 telegraphColor = groundColor;
|
||||
|
||||
// Telegraph for the laser breath and body lasers
|
||||
@@ -740,7 +740,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
}
|
||||
}
|
||||
|
||||
Lighting.AddLight(npc.Center, Vector3.Lerp(segmentColor, telegraphColor, telegraphProgress));
|
||||
Lighting.AddLight(npc.Center, Vector3.Lerp(segmentColor, telegraphColor * 2f, telegraphProgress));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1325,7 +1325,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
{
|
||||
// Light colors
|
||||
Vector3 groundColor = new Vector3(0.3f, 0.1f, 0.05f);
|
||||
Vector3 segmentColor = groundColor * 0.2f;
|
||||
Vector3 segmentColor = groundColor;
|
||||
Vector3 telegraphColor = groundColor;
|
||||
|
||||
// Telegraph for the laser breath and body lasers
|
||||
@@ -1343,7 +1343,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
}
|
||||
}
|
||||
|
||||
Lighting.AddLight(npc.Center, Vector3.Lerp(segmentColor, telegraphColor, telegraphProgress));
|
||||
Lighting.AddLight(npc.Center, Vector3.Lerp(segmentColor, telegraphColor * 2f, telegraphProgress));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1236,7 +1236,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
cannonArmTargetY *= cannonArmTargetDist;
|
||||
|
||||
Vector2 rocketVelocity = new Vector2(cannonArmTargetX, cannonArmTargetY);
|
||||
int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), cannonArmPosition + rocketVelocity.SafeNormalize(Vector2.UnitY) * 40f, rocketVelocity, type, damage, 0f, Main.myPlayer, npc.target, 1f);
|
||||
int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), cannonArmPosition + rocketVelocity.SafeNormalize(Vector2.UnitY) * 40f, rocketVelocity, type, damage, 0f, Main.myPlayer, npc.target, 2f);
|
||||
Main.projectile[proj].timeLeft = 600;
|
||||
}
|
||||
}
|
||||
@@ -1285,7 +1285,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
for (int i = 0; i < numProj; i++)
|
||||
{
|
||||
Vector2 perturbedSpeed = cannonSpreadTargetDist.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1)));
|
||||
int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + perturbedSpeed.SafeNormalize(Vector2.UnitY) * 40f, perturbedSpeed, type, damage, 0f, Main.myPlayer, npc.target, 1f);
|
||||
int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + perturbedSpeed.SafeNormalize(Vector2.UnitY) * 40f, perturbedSpeed, type, damage, 0f, Main.myPlayer, npc.target, 2f);
|
||||
Main.projectile[proj].timeLeft = 600;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2179,15 +2179,16 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
else if (projectile.type == ProjectileID.RocketSkeleton && projectile.ai[1] == 1f)
|
||||
{
|
||||
bool primeCannonProjectile = projectile.ai[1] == 2f;
|
||||
bool homeIn = false;
|
||||
float homingTime = masterMode ? 210f : 150f;
|
||||
float spreadOutCutoffTime = 555f;
|
||||
float homeInCutoffTime = spreadOutCutoffTime - homingTime;
|
||||
float minAcceleration = 0.04f;
|
||||
float maxAcceleration = 0.08f;
|
||||
float homingVelocity = 24f;
|
||||
float minAcceleration = 0.05f;
|
||||
float maxAcceleration = 0.1f;
|
||||
float homingVelocity = 27f;
|
||||
|
||||
if (projectile.timeLeft > homeInCutoffTime && projectile.timeLeft <= spreadOutCutoffTime)
|
||||
if (projectile.timeLeft > homeInCutoffTime && projectile.timeLeft <= spreadOutCutoffTime && !primeCannonProjectile)
|
||||
homeIn = true;
|
||||
else if (projectile.velocity.Length() < (masterMode ? 20f : 15f))
|
||||
projectile.velocity *= 1.01f;
|
||||
|
||||
Reference in new issue
Block a user