CV grows darker yet darker...

This commit is contained in:
GinYuH authored and Cameron Ewell committed 2022-12-22 22:14:11 -05:00
1 parent 3c10a61dda
commit f88af76e71
6 files changed
+37 -4

No files matched your search

+8
View File
@@ -5728,6 +5728,14 @@ namespace CalamityMod.NPCs
spriteBatch.Draw(TextureAssets.MagicPixel.Value, drawPosition, null, beamColor, 0f, origin, scale, SpriteEffects.None, 0f);
}
}
if (Main.getGoodWorld && NPC.AnyNPCs(NPCType<CeaselessVoid.CeaselessVoid>())) // move to zenith seed later
{
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.Default, RasterizerState.CullNone, null, Main.GameViewMatrix.ZoomMatrix);
var midnightShader = Terraria.Graphics.Shaders.GameShaders.Armor.GetShaderFromItemId(ItemID.MidnightRainbowDye);
midnightShader.Apply();
}
return true;
}
+6 -1
View File
@@ -256,7 +256,12 @@ namespace CalamityMod.NPCs.CeaselessVoid
if (NPC.soundDelay == 0 && NPC.life >= NPC.lifeMax * 0.05f)
{
NPC.soundDelay = 8;
SoundEngine.PlaySound(CommonCalamitySounds.OtherwordlyHitSound, NPC.Center);
float pitchVar = 0;
if (Main.getGoodWorld) // move to zenith seed later
{
pitchVar = Main.rand.Next(-60, 41) * 0.01f;
}
SoundEngine.PlaySound(CommonCalamitySounds.OtherwordlyHitSound with { Pitch = CommonCalamitySounds.OtherwordlyHitSound.Pitch + pitchVar}, NPC.Center);
}
for (int k = 0; k < 5; k++)
+3 -1
View File
@@ -274,8 +274,10 @@ namespace CalamityMod.NPCs.CeaselessVoid
public override void OnHitPlayer(Player player, int damage, bool crit)
{
int debufftype = Main.getGoodWorld ? BuffID.Obstructed : BuffID.VortexDebuff; // move to zenith seed later
int duration = Main.getGoodWorld ? 30 : 60;
if (damage > 0)
player.AddBuff(BuffID.VortexDebuff, 60, true);
player.AddBuff(debufftype, duration, true);
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
+6 -1
View File
@@ -86,7 +86,12 @@ namespace CalamityMod.Projectiles.Boss
return;
if (Projectile.Opacity == 1f)
target.AddBuff(BuffID.VortexDebuff, 60);
{
int debufftype = Main.getGoodWorld ? BuffID.Obstructed : BuffID.VortexDebuff; // move to zenith seed later
int duration = Main.getGoodWorld ? 30 : 60;
if (damage > 0)
target.AddBuff(debufftype, duration, true);
}
}
public override void Kill(int timeLeft)
+6 -1
View File
@@ -88,7 +88,12 @@ namespace CalamityMod.Projectiles.Boss
return;
if (Projectile.Opacity == 1f)
target.AddBuff(BuffID.VortexDebuff, 60);
{
int debufftype = Main.getGoodWorld ? BuffID.Obstructed : BuffID.VortexDebuff; // move to zenith seed later
int duration = Main.getGoodWorld ? 30 : 60;
if (damage > 0)
target.AddBuff(debufftype, duration, true);
}
}
public override void Kill(int timeLeft)
+8
View File
@@ -2599,6 +2599,14 @@ namespace CalamityMod.Projectiles
}
}
if (Main.getGoodWorld && NPC.AnyNPCs(NPCType<NPCs.CeaselessVoid.CeaselessVoid>())) // move to zenith seed later
{
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.Default, RasterizerState.CullNone, null, Main.GameViewMatrix.ZoomMatrix);
var midnightShader = Terraria.Graphics.Shaders.GameShaders.Armor.GetShaderFromItemId(ItemID.MidnightRainbowDye);
midnightShader.Apply();
}
return true;
}
#endregion