boosted light from cryo's minions and added it to his projectiles

This commit is contained in:
termigator1359 committed 2020-02-17 10:46:15 -05:00
1 parent 328cf4e06e
commit 01bb8147cc
6 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ namespace CalamityMod.NPCs.Cryogen
public override void AI()
{
bool revenge = CalamityWorld.revenge;
Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.01f, 0.25f, 0.25f);
Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.02f, 0.5f, 0.5f);
npc.TargetClosest(true);
float num1372 = revenge ? 12f : 11f;
if (CalamityWorld.bossRushActive)
+1 -1
View File
@@ -48,7 +48,7 @@ namespace CalamityMod.NPCs.Cryogen
public override void AI()
{
bool revenge = CalamityWorld.revenge;
Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.01f, 0.25f, 0.25f);
Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.02f, 0.5f, 0.5f);
npc.TargetClosest(true);
float num1372 = revenge ? 14f : 12f;
if (CalamityWorld.bossRushActive)
+1 -1
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.Cryogen
public override void AI()
{
Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.01f, 0.35f, 0.35f);
Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.02f, 0.7f, 0.7f);
}
public override bool PreNPCLoot()
+1
View File
@@ -24,6 +24,7 @@ namespace CalamityMod.Projectiles.Boss
public override void AI()
{
Lighting.AddLight((int)((projectile.position.X + (float)(projectile.width / 2)) / 16f), (int)((projectile.position.Y + (float)(projectile.height / 2)) / 16f), 0.01f, 0.25f, 0.25f);
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
int num3;
for (int num322 = 0; num322 < 2; num322 = num3 + 1)
+1
View File
@@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Boss
public override void Kill(int timeLeft)
{
Lighting.AddLight((int)((projectile.position.X + (float)(projectile.width / 2)) / 16f), (int)((projectile.position.Y + (float)(projectile.height / 2)) / 16f), 0.01f, 0.25f, 0.25f);
Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27);
float spread = 60f * 0.0174f;
double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2;
+1
View File
@@ -34,6 +34,7 @@ namespace CalamityMod.Projectiles.Boss
public override void AI()
{
Lighting.AddLight((int)((projectile.position.X + (float)(projectile.width / 2)) / 16f), (int)((projectile.position.Y + (float)(projectile.height / 2)) / 16f), 0.01f, 0.25f, 0.25f);
if (projectile.ai[0] == 0f)
projectile.velocity.Y = projectile.velocity.Y + 0.2f;