Merge branch 'master' into hotfixes
This commit is contained in:
commit
b6075becae
4 files changed
+151
-18
No files matched your search
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Exodus Wings");
|
||||
Tooltip.SetDefault("Highly radioactive\n" +
|
||||
Tooltip.SetDefault("Pulsing with an alien heartbeat\n" +
|
||||
"Horizontal speed: 8.5\n" +
|
||||
"Acceleration multiplier: 2\n" +
|
||||
"Good vertical speed\n" +
|
||||
|
||||
+30
-16
@@ -27,11 +27,11 @@ namespace CalamityMod
|
||||
case "acid rain":
|
||||
case "acidrain":
|
||||
|
||||
case "acid rain initial":
|
||||
case "acid rain 1":
|
||||
case "acidrain 1":
|
||||
case "acidrain1":
|
||||
case "acid rain eoc":
|
||||
case "acidrain eoc":
|
||||
case "acidrain initial":
|
||||
case "acidraininitial":
|
||||
case "acidraineoc":
|
||||
return CalamityWorld.downedEoCAcidRain;
|
||||
|
||||
@@ -69,18 +69,25 @@ namespace CalamityMod
|
||||
case "the slime god":
|
||||
return CalamityWorld.downedSlimeGod;
|
||||
|
||||
case "acid rain aquatic":
|
||||
case "acidrain aquatic":
|
||||
case "acidrainaquatic":
|
||||
case "acid rain scourge":
|
||||
case "acidrain scourge":
|
||||
case "acidrainscourge":
|
||||
case "acid rain as":
|
||||
case "acidrain as":
|
||||
return CalamityWorld.downedAquaticScourgeAcidRain;
|
||||
|
||||
case "cryogen":
|
||||
return CalamityWorld.downedCryogen;
|
||||
|
||||
case "acid rain 2":
|
||||
case "acidrain 2":
|
||||
case "acidrain2":
|
||||
case "acid rain scourge":
|
||||
case "acid rain aquatic scourge":
|
||||
case "acid rain aquaticscourge":
|
||||
case "acidrain scourge":
|
||||
case "acidrain aquatic scourge":
|
||||
case "acidrain aquaticscourge":
|
||||
case "acidrainscourge":
|
||||
case "acidrainaquaticscourge":
|
||||
return CalamityWorld.downedAquaticScourgeAcidRain;
|
||||
|
||||
case "aquaticscourge":
|
||||
case "aquatic scourge":
|
||||
return CalamityWorld.downedAquaticScourge;
|
||||
|
||||
case "brimstoneelemental":
|
||||
case "brimstone elemental":
|
||||
@@ -100,6 +107,7 @@ namespace CalamityMod
|
||||
case "great sand shark":
|
||||
return CalamityWorld.downedGSS;
|
||||
|
||||
// Don't remove the old references to "Siren" here to avoid breaking other mods
|
||||
case "sirenleviathan":
|
||||
case "siren leviathan":
|
||||
case "sirenandleviathan":
|
||||
@@ -108,7 +116,6 @@ namespace CalamityMod
|
||||
case "siren":
|
||||
case "thesiren":
|
||||
case "the siren":
|
||||
|
||||
case "anahita":
|
||||
case "leviathan":
|
||||
case "theleviathan":
|
||||
@@ -168,16 +175,23 @@ namespace CalamityMod
|
||||
case "necroplasm":
|
||||
return CalamityWorld.downedPolterghast;
|
||||
|
||||
// Old Duke is also Acid Rain tier 3, so he gets those names too
|
||||
case "oldduke":
|
||||
case "old duke":
|
||||
case "theoldduke":
|
||||
case "the old duke":
|
||||
case "boomerduke":
|
||||
case "boomer duke":
|
||||
case "acidrainduke":
|
||||
case "acid rain duke":
|
||||
case "sulphurduke":
|
||||
case "sulphur duke":
|
||||
case "sulfurduke":
|
||||
case "sulfur duke":
|
||||
case "acid rain 3":
|
||||
case "acidrain 3":
|
||||
case "acidrain3":
|
||||
case "acid rain duke":
|
||||
case "acidrain duke":
|
||||
case "acidrainduke":
|
||||
return CalamityWorld.downedBoomerDuke;
|
||||
|
||||
case "sentinel1": // backwards compatibility
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
return 0f;
|
||||
}
|
||||
return SpawnCondition.TownCritter.Chance * 0.01f;
|
||||
return SpawnCondition.TownCritter.Chance * 0.005f;
|
||||
}
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
|
||||
@@ -347,6 +347,125 @@ namespace CalamityMod.Projectiles
|
||||
return false;
|
||||
}
|
||||
|
||||
// Change the stupid homing eyes
|
||||
else if (projectile.type == ProjectileID.PhantasmalEye)
|
||||
{
|
||||
projectile.alpha -= 40;
|
||||
if (projectile.alpha < 0)
|
||||
{
|
||||
projectile.alpha = 0;
|
||||
}
|
||||
if (projectile.ai[0] == 0f)
|
||||
{
|
||||
projectile.localAI[0] += 1f;
|
||||
if (projectile.localAI[0] >= 45f)
|
||||
{
|
||||
projectile.localAI[0] = 0f;
|
||||
projectile.ai[0] = 1f;
|
||||
projectile.ai[1] = 0f - projectile.ai[1];
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
projectile.velocity.X = projectile.velocity.RotatedBy(projectile.ai[1]).X;
|
||||
projectile.velocity.X = MathHelper.Clamp(projectile.velocity.X, -6f, 6f);
|
||||
projectile.velocity.Y -= 0.08f;
|
||||
if (projectile.velocity.Y > 0f)
|
||||
{
|
||||
projectile.velocity.Y -= 0.2f;
|
||||
}
|
||||
if (projectile.velocity.Y < -7f)
|
||||
{
|
||||
projectile.velocity.Y = -7f;
|
||||
}
|
||||
}
|
||||
else if (projectile.ai[0] == 1f)
|
||||
{
|
||||
projectile.localAI[0] += 1f;
|
||||
if (projectile.localAI[0] >= 90f)
|
||||
{
|
||||
projectile.localAI[0] = 0f;
|
||||
projectile.ai[0] = 2f;
|
||||
projectile.ai[1] = Player.FindClosest(projectile.position, projectile.width, projectile.height);
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
projectile.velocity.X = projectile.velocity.RotatedBy(projectile.ai[1]).X;
|
||||
projectile.velocity.X = MathHelper.Clamp(projectile.velocity.X, -6f, 6f);
|
||||
projectile.velocity.Y -= 0.08f;
|
||||
if (projectile.velocity.Y > 0f)
|
||||
{
|
||||
projectile.velocity.Y -= 0.2f;
|
||||
}
|
||||
if (projectile.velocity.Y < -7f)
|
||||
{
|
||||
projectile.velocity.Y = -7f;
|
||||
}
|
||||
}
|
||||
else if (projectile.ai[0] == 2f)
|
||||
{
|
||||
projectile.localAI[0] += 1f;
|
||||
if (projectile.localAI[0] >= 60f)
|
||||
{
|
||||
projectile.localAI[0] = 0f;
|
||||
projectile.ai[0] = 3f;
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
Vector2 value23 = Main.player[(int)projectile.ai[1]].Center - projectile.Center;
|
||||
value23.Normalize();
|
||||
value23 *= 12f;
|
||||
value23 = Vector2.Lerp(projectile.velocity, value23, 0.6f);
|
||||
float num675 = 0.4f;
|
||||
if (projectile.velocity.X < value23.X)
|
||||
{
|
||||
projectile.velocity.X += num675;
|
||||
if (projectile.velocity.X < 0f && value23.X > 0f)
|
||||
{
|
||||
projectile.velocity.X += num675;
|
||||
}
|
||||
}
|
||||
else if (projectile.velocity.X > value23.X)
|
||||
{
|
||||
projectile.velocity.X -= num675;
|
||||
if (projectile.velocity.X > 0f && value23.X < 0f)
|
||||
{
|
||||
projectile.velocity.X -= num675;
|
||||
}
|
||||
}
|
||||
if (projectile.velocity.Y < value23.Y)
|
||||
{
|
||||
projectile.velocity.Y += num675;
|
||||
if (projectile.velocity.Y < 0f && value23.Y > 0f)
|
||||
{
|
||||
projectile.velocity.Y += num675;
|
||||
}
|
||||
}
|
||||
else if (projectile.velocity.Y > value23.Y)
|
||||
{
|
||||
projectile.velocity.Y -= num675;
|
||||
if (projectile.velocity.Y > 0f && value23.Y < 0f)
|
||||
{
|
||||
projectile.velocity.Y -= num675;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (projectile.ai[0] == 3f)
|
||||
{
|
||||
Vector2 value23 = Main.player[(int)projectile.ai[1]].Center - projectile.Center;
|
||||
if (value23.Length() < 30f)
|
||||
{
|
||||
projectile.Kill();
|
||||
return false;
|
||||
}
|
||||
if (projectile.velocity.Length() < 18f)
|
||||
projectile.velocity *= 1.01f;
|
||||
}
|
||||
if (projectile.alpha < 40)
|
||||
{
|
||||
int num676 = Dust.NewDust(projectile.Center - Vector2.One * 5f, 10, 10, 229, (0f - projectile.velocity.X) / 3f, (0f - projectile.velocity.Y) / 3f, 150, Color.Transparent, 1.2f);
|
||||
Main.dust[num676].noGravity = true;
|
||||
}
|
||||
projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Moon Lord Deathray
|
||||
else if (projectile.type == ProjectileID.PhantasmalDeathray)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user