Giant Shell and Tortoise Shell changes
Added a visual effect when you are hit and don't have defense recovery on cooldown to both Giant Shell and Tortoise Shell. Buffed dash velocity reduction on Tortoise shell from 15% down to 10%.
This commit is contained in:
1 parent
279ce5d42e
commit
802aee5ee6
3 files changed
+36
-2
No files matched your search
@@ -2020,10 +2020,44 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
if (gShell) //5 seconds of no dash reduction and reduced defense
|
||||
{
|
||||
if (giantShellPostHit == 0)
|
||||
{
|
||||
float numberOfDusts = 35f;
|
||||
float rotFactor = 360f / numberOfDusts;
|
||||
for (int i = 0; i < numberOfDusts; i++)
|
||||
{
|
||||
float rot = MathHelper.ToRadians(i * rotFactor);
|
||||
Vector2 offset = new Vector2(Main.rand.NextFloat(0.5f, 2.5f), 0).RotatedBy(rot * Main.rand.NextFloat(1.1f, 9.1f));
|
||||
Vector2 velOffset = new Vector2(Main.rand.NextFloat(0.5f, 2.5f), 0).RotatedBy(rot * Main.rand.NextFloat(1.1f, 9.1f));
|
||||
Dust dust = Dust.NewDustPerfect(Player.Center + offset, Main.rand.NextBool() ? 249 : 118, new Vector2(velOffset.X, velOffset.Y));
|
||||
dust.noGravity = false;
|
||||
dust.velocity = velOffset;
|
||||
dust.scale = Main.rand.NextFloat(1.5f, 1.2f);
|
||||
}
|
||||
}
|
||||
giantShellPostHit = 300;
|
||||
}
|
||||
|
||||
if (tortShell) //5 seconds of no dash reduction and reduced defense
|
||||
{
|
||||
if (tortShellPostHit == 0)
|
||||
{
|
||||
float numberOfDusts = 43f;
|
||||
float rotFactor = 360f / numberOfDusts;
|
||||
for (int i = 0; i < numberOfDusts; i++)
|
||||
{
|
||||
float rot = MathHelper.ToRadians(i * rotFactor);
|
||||
Vector2 offset = new Vector2(Main.rand.NextFloat(0.5f, 3.1f), 0).RotatedBy(rot * Main.rand.NextFloat(1.1f, 9.1f));
|
||||
Vector2 velOffset = new Vector2(Main.rand.NextFloat(0.5f, 3.1f), 0).RotatedBy(rot * Main.rand.NextFloat(1.1f, 9.1f));
|
||||
Dust dust = Dust.NewDustPerfect(Player.Center + offset, Main.rand.NextBool() ? 215 : 22, new Vector2(velOffset.X, velOffset.Y));
|
||||
dust.noGravity = false;
|
||||
dust.velocity = velOffset;
|
||||
dust.scale = Main.rand.NextFloat(1.6f, 2.2f);
|
||||
}
|
||||
}
|
||||
tortShellPostHit = 300;
|
||||
}
|
||||
|
||||
if (abyssalDivingSuitPlates && hurtInfo.Damage > 50)
|
||||
{
|
||||
|
||||
@@ -315,7 +315,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (!HasReducedDashFirstFrame)
|
||||
{
|
||||
Player.velocity.X *= 0.85f;
|
||||
Player.velocity.X *= 0.9f;
|
||||
HasReducedDashFirstFrame = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -800,7 +800,7 @@ GiantTortoiseShell: {
|
||||
Tooltip:
|
||||
'''
|
||||
5% increased damage reduction
|
||||
15% reduced dash velocity
|
||||
10% reduced dash velocity
|
||||
Taking a hit will remove the dash penalty and reduce defense and damage reduction for 5 seconds
|
||||
'''
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user