Merge branch 'master' into fixes-because-e

This commit is contained in:
termigator1359 committed 2020-10-05 18:55:23 -04:00
commit d368efa9fa
7 files changed
+24 -22

No files matched your search

+2 -1
View File
@@ -240,7 +240,8 @@ namespace CalamityMod.Events
{
[ModContent.NPCType<HiveMind>()] = new int[] { ModContent.NPCType<HiveMindP2>() },
[ModContent.NPCType<StormWeaverHead>()] = new int[] { ModContent.NPCType<StormWeaverHeadNaked>(), ModContent.NPCType<StormWeaverBodyNaked>(), ModContent.NPCType<StormWeaverTailNaked>() },
};
[ModContent.NPCType<Calamitas>()] = new int[] { ModContent.NPCType<CalamitasRun3>() },
};
BossDeathEffects = new Dictionary<int, Action<NPC>>()
{
+8 -8
View File
@@ -97,7 +97,7 @@ namespace CalamityMod.NPCs.Calamitas
spriteEffects = SpriteEffects.FlipHorizontally;
Texture2D texture2D15 = Main.npcTexture[npc.type];
Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2));
Vector2 vector11 = new Vector2(Main.npcTexture[npc.type].Width / 2, Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2);
Color color36 = Color.White;
float amount9 = 0.5f;
int num153 = 7;
@@ -109,16 +109,16 @@ namespace CalamityMod.NPCs.Calamitas
Color color38 = lightColor;
color38 = Color.Lerp(color38, color36, amount9);
color38 = npc.GetAlpha(color38);
color38 *= (float)(num153 - num155) / 15f;
Vector2 vector41 = npc.oldPos[num155] + new Vector2((float)npc.width, (float)npc.height) / 2f - Main.screenPosition;
vector41 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f;
color38 *= (num153 - num155) / 15f;
Vector2 vector41 = npc.oldPos[num155] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
vector41 -= new Vector2(texture2D15.Width, texture2D15.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
vector41 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY);
spriteBatch.Draw(texture2D15, vector41, npc.frame, color38, npc.rotation, vector11, npc.scale, spriteEffects, 0f);
}
}
Vector2 vector43 = npc.Center - Main.screenPosition;
vector43 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f;
vector43 -= new Vector2(texture2D15.Width, texture2D15.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
vector43 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY);
spriteBatch.Draw(texture2D15, vector43, npc.frame, npc.GetAlpha(lightColor), npc.rotation, vector11, npc.scale, spriteEffects, 0f);
@@ -131,9 +131,9 @@ namespace CalamityMod.NPCs.Calamitas
{
Color color41 = color37;
color41 = Color.Lerp(color41, color36, amount9);
color41 *= (float)(num153 - num163) / 15f;
Vector2 vector44 = npc.oldPos[num163] + new Vector2((float)npc.width, (float)npc.height) / 2f - Main.screenPosition;
vector44 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f;
color41 *= (num153 - num163) / 15f;
Vector2 vector44 = npc.oldPos[num163] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
vector44 -= new Vector2(texture2D15.Width, texture2D15.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
vector44 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY);
spriteBatch.Draw(texture2D15, vector44, npc.frame, color41, npc.rotation, vector11, npc.scale, spriteEffects, 0f);
}
+3 -3
View File
@@ -201,7 +201,7 @@ namespace CalamityMod.NPCs.Calamitas
Color afterImageColor = lightColor;
afterImageColor = Color.Lerp(afterImageColor, white, colorLerpAmt);
afterImageColor = npc.GetAlpha(afterImageColor);
afterImageColor *= (float)(afterImageAmt - a) / 15f;
afterImageColor *= (afterImageAmt - a) / 15f;
Vector2 afterimagePos = npc.oldPos[a] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
afterimagePos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
afterimagePos += origin * npc.scale + new Vector2(0f, 4f + npc.gfxOffY);
@@ -210,7 +210,7 @@ namespace CalamityMod.NPCs.Calamitas
}
Vector2 drawPos = npc.Center - Main.screenPosition;
drawPos -= new Vector2((float)texture.Width, (float)(texture.Height)) * npc.scale / 2f;
drawPos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
drawPos += origin * npc.scale + new Vector2(0f, 4f + npc.gfxOffY);
spriteBatch.Draw(texture, drawPos, npc.frame, npc.GetAlpha(lightColor), npc.rotation, origin, npc.scale, spriteEffects, 0f);
@@ -223,7 +223,7 @@ namespace CalamityMod.NPCs.Calamitas
{
Color glowColor = glow;
glowColor = Color.Lerp(glowColor, white, colorLerpAmt);
glowColor *= (float)(afterImageAmt - a) / 15f;
glowColor *= (afterImageAmt - a) / 15f;
Vector2 afterimagePos = npc.oldPos[a] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
afterimagePos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
afterimagePos += origin * npc.scale + new Vector2(0f, 4f + npc.gfxOffY);
+6 -6
View File
@@ -1307,27 +1307,27 @@ namespace CalamityMod.NPCs
break;
case 2:
scalar = 0.82;
scalar = 0.82; // 1.64
break;
case 3:
scalar = 0.72;
scalar = 0.72; // 2.16
break;
case 4:
scalar = 0.64;
scalar = 0.64; // 2.56
break;
case 5:
scalar = 0.57;
scalar = 0.57; // 2.85
break;
case 6:
scalar = 0.52;
scalar = 0.52; // 3.12
break;
default:
scalar = 0.47;
scalar = 0.47; // 3.29 + 0.47 per player beyond 7
break;
}
+1 -3
View File
@@ -226,13 +226,11 @@ namespace CalamityMod.NPCs.DevourerofGods
}
else if (laserWallPhase == (int)LaserWallPhase.FireLaserWalls)
{
if (idleCounter == idleCounterMax / 2)
SpawnTeleportLocation(player);
// Remain in laser wall firing phase for 6 seconds
idleCounter--;
if (idleCounter <= 0)
{
SpawnTeleportLocation(player);
laserWallPhase = (int)LaserWallPhase.End;
idleCounter = idleCounterMax;
}
+3
View File
@@ -33,6 +33,9 @@ namespace CalamityMod.Projectiles.Boss
if (projectile.ai[0] == -1f)
return;
if (projectile.timeLeft < 160)
projectile.timeLeft = 160;
if (!Main.npc[(int)projectile.ai[0]].active)
projectile.Kill();
+1 -1
View File
@@ -1,5 +1,5 @@
author = Fabsol and the Dev Team
version = 1.4.5.002
version = 1.4.5.003
displayName = Calamity Mod (No Calamity Music)
homepage = https://forums.terraria.org/index.php?threads/calamity-mod.44065/
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes