Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
e8d714b2f5
3 files changed
+10
-10
No files matched your search
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Mourningstar");
|
||||
Tooltip.SetDefault("Launches a solar whip sword and a solar particle trail that explodes on hit");
|
||||
Tooltip.SetDefault("Launches two solar whip swords that explode on hit");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -420,17 +420,17 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
float num1052 = revenge ? 0.12f : 0.1f;
|
||||
if ((double)npc.life < (double)npc.lifeMax * 0.8 || death)
|
||||
{
|
||||
npc.velocity *= 0.9f;
|
||||
npc.velocity *= 0.98f;
|
||||
num1052 += 0.05f;
|
||||
}
|
||||
if ((double)npc.life < (double)npc.lifeMax * 0.6 || death)
|
||||
{
|
||||
npc.velocity *= 0.9f;
|
||||
npc.velocity *= 0.98f;
|
||||
num1052 += 0.05f;
|
||||
}
|
||||
if ((double)npc.life < (double)npc.lifeMax * 0.4 || death)
|
||||
{
|
||||
npc.velocity *= 0.9f;
|
||||
npc.velocity *= 0.98f;
|
||||
num1052 += 0.05f;
|
||||
}
|
||||
|
||||
@@ -852,17 +852,17 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
float num1052 = revenge ? 0.12f : 0.1f;
|
||||
if (npc.life < npc.lifeMax / 2 || death)
|
||||
{
|
||||
npc.velocity *= 0.9f;
|
||||
npc.velocity *= 0.98f;
|
||||
num1052 += 0.05f;
|
||||
}
|
||||
if (npc.life < npc.lifeMax / 3 || death)
|
||||
{
|
||||
npc.velocity *= 0.9f;
|
||||
npc.velocity *= 0.98f;
|
||||
num1052 += 0.05f;
|
||||
}
|
||||
if (npc.life < npc.lifeMax / 5 || death)
|
||||
{
|
||||
npc.velocity *= 0.9f;
|
||||
npc.velocity *= 0.98f;
|
||||
num1052 += 0.05f;
|
||||
}
|
||||
|
||||
|
||||
@@ -296,7 +296,7 @@ namespace CalamityMod.Projectiles.BaseProjectiles
|
||||
{
|
||||
DelegateMethods.tilecut_0 = TileCuttingContext.AttackProjectile;
|
||||
Vector2 unit = projectile.velocity;
|
||||
Utils.PlotTileLine(projectile.Center, projectile.Center + unit * projectile.localAI[1], projectile.width * projectile.scale, new Utils.PerLinePoint(DelegateMethods.CutTiles));
|
||||
Utils.PlotTileLine(projectile.Center, projectile.Center + unit, projectile.width * projectile.scale, new Utils.PerLinePoint(DelegateMethods.CutTiles));
|
||||
}
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
{
|
||||
@@ -304,8 +304,8 @@ namespace CalamityMod.Projectiles.BaseProjectiles
|
||||
{
|
||||
return true;
|
||||
}
|
||||
float num8 = 0f;
|
||||
if (Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), projectile.Center, projectile.Center + projectile.velocity, 16f * projectile.scale, ref num8))
|
||||
float _ = 0f;
|
||||
if (Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), projectile.Center, projectile.Center + projectile.velocity, 16f * projectile.scale, ref _))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user