1 - Alicorn.

2 - Defense damage now affects DR.
3 - Hide of Astrum Deus now has a cooldown.
4 - Fixed The Wand and Celestial Reaper.
5 - Increased Polterghast tile enrage distance so that he doesn't enrage as often.
6 - Signus resists Lunar Kunai.
7 - Bloodsoaked Crasher heals less.
8 - Reduced Elysian Arrow meteor damage.
9 - Buffed Dragonblood Disgorger attack rate.
This commit is contained in:
Andrew Marheine committed 2021-01-18 21:26:58 -06:00
1 parent 4837dd5168
commit 39b69d24f2
17 files changed
+50 -26

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 579 B

After

Width:  |  Height:  |  Size: 698 B

+14
View File
@@ -5770,6 +5770,13 @@ namespace CalamityMod.CalPlayer
if (wCleave)
contactDamageReduction *= 0.75;
if (defenseDamage > 0)
{
// Reduce player DR based on defense stat damage accumulated, this is done before defense is reduced
if (defenseStat > 0)
contactDamageReduction -= defenseDamage / (double)defenseStat * contactDamageReduction * 0.5;
}
// Scale with base damage reduction
if (DRStat > 0)
contactDamageReduction *= 1f - (DRStat * 0.01f);
@@ -6103,6 +6110,13 @@ namespace CalamityMod.CalPlayer
if (wCleave)
projectileDamageReduction *= 0.75;
if (defenseDamage > 0)
{
// Reduce player DR based on defense stat damage accumulated, this is done before defense is reduced
if (defenseStat > 0)
projectileDamageReduction -= defenseDamage / (double)defenseStat * projectileDamageReduction * 0.5;
}
// Scale with base damage reduction
if (DRStat > 0)
projectileDamageReduction *= 1f - (DRStat * 0.01f);
+7 -3
View File
@@ -97,9 +97,6 @@ namespace CalamityMod.CalPlayer
// Limits
Limits(player, modPlayer);
// Endurance reductions
EnduranceReductions(player, modPlayer);
// Stat Meter
UpdateStatMeter(player, modPlayer);
@@ -3728,6 +3725,9 @@ namespace CalamityMod.CalPlayer
player.statDefense += (int)(player.statDefense * 0.75);
}
// Endurance reductions
EnduranceReductions(player, modPlayer);
// Defense stat damage calcs
// This was not done to prevent facetanking, but to push players to not just stand completely fucking still taking 1 or 2 damage the entire time
if (modPlayer.defenseDamage > 0)
@@ -3742,6 +3742,10 @@ namespace CalamityMod.CalPlayer
if (modPlayer.defenseDamage > player.statDefense)
modPlayer.defenseDamage = player.statDefense;
// Reduce player DR based on defense stat damage accumulated, this is done before defense is reduced
if (player.statDefense > 0 && player.endurance > 0f)
player.endurance -= modPlayer.defenseDamage / (float)player.statDefense * player.endurance * 0.5f;
// Reduce player defense based on defense stat damage accumulated
player.statDefense -= modPlayer.defenseDamage;
+2 -1
View File
@@ -216,8 +216,9 @@ namespace CalamityMod.CalPlayer
if (player.wingTime > player.wingTimeMax)
player.wingTime = player.wingTimeMax;
}
if (modPlayer.aBulwarkRare)
if (modPlayer.aBulwarkRare && modPlayer.aBulwarkRareTimer == 0)
{
modPlayer.aBulwarkRareTimer = 10;
for (int n = 0; n < 3; n++)
CalamityUtils.ProjectileRain(player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileType<AstralStar>(), (int)(320 * player.AverageDamage()), 5f, player.whoAmI);
}
+4 -4
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Mounts
mountData.spawnDust = 234;
mountData.spawnDustNoGravity = true;
mountData.buff = ModContent.BuffType<AlicornBuff>();
mountData.heightBoost = 34;
mountData.heightBoost = 35;
mountData.fallDamage = 0f; //0.5
mountData.runSpeed = 7f; //12
mountData.dashSpeed = 21f; //8
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Mounts
mountData.standingFrameDelay = 12;
mountData.standingFrameStart = 0;
mountData.runningFrameCount = 8; //7
mountData.runningFrameDelay = 36; //36
mountData.runningFrameDelay = 42; //36
mountData.runningFrameStart = 1; //9
mountData.flyingFrameCount = 6; //0
mountData.flyingFrameDelay = 4; //0
@@ -55,9 +55,9 @@ namespace CalamityMod.Items.Mounts
mountData.inAirFrameCount = 1; //1
mountData.inAirFrameDelay = 12; //12
mountData.inAirFrameStart = 10; //10
mountData.idleFrameCount = 5; //4
mountData.idleFrameCount = 1; //4
mountData.idleFrameDelay = 12; //12
mountData.idleFrameStart = 0;
mountData.idleFrameStart = 5;
mountData.idleFrameLoop = true;
mountData.swimFrameCount = mountData.inAirFrameCount;
mountData.swimFrameDelay = mountData.inAirFrameDelay;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 30 KiB

+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
public class TheWand : ModItem
{
public static int BaseDamage = 998;
public static int BaseDamage = 1998;
public override void SetStaticDefaults()
{
+1 -1
View File
@@ -3367,7 +3367,7 @@ namespace CalamityMod.NPCs
else if (npc.type == NPCType<Signus.Signus>())
{
if (projectile.type == ProjectileType<CelestialReaperProjectile>() || projectile.type == ProjectileType<CelestialReaperAfterimage>() || projectile.type == ProjectileType<Knife>() ||
projectile.type == ProjectileType<Fork>() || projectile.type == ProjectileType<CarvingFork>() || projectile.type == ProjectileType<ButcherKnife>())
projectile.type == ProjectileType<Fork>() || projectile.type == ProjectileType<CarvingFork>() || projectile.type == ProjectileType<ButcherKnife>() || projectile.type == ProjectileType<LunarKunaiProj>())
{
damage = (int)(damage * 0.75);
}
+7 -7
View File
@@ -267,12 +267,12 @@ namespace CalamityMod.NPCs.Polterghast
}
// Detect active tiles around Polterghast
int radius = 20; // 20 tile radius
int radius = 30; // 30 tile radius
int diameter = radius * 2;
int npcCenterX = (int)(vector.X / 16f);
int npcCenterY = (int)(vector.Y / 16f);
Rectangle area = new Rectangle(npcCenterX - radius, npcCenterY - radius, diameter, diameter);
int nearbyActiveTiles = 0; // 0 to 1600
int nearbyActiveTiles = 0; // 0 to 3600
for (int x = area.Left; x < area.Right; x++)
{
for (int y = area.Top; y < area.Bottom; y++)
@@ -287,8 +287,8 @@ namespace CalamityMod.NPCs.Polterghast
// Scale multiplier based on nearby active tiles
float tileEnrageMult = 1f;
if (nearbyActiveTiles < 800)
tileEnrageMult += (800 - nearbyActiveTiles) * 0.00075f; // Ranges from 1f to 1.6f
if (nearbyActiveTiles < 1800)
tileEnrageMult += (1800 - nearbyActiveTiles) * 0.0005f; // Ranges from 1f to 1.9f
// Used to inform clone and hooks about number of active tiles nearby
npc.ai[3] = tileEnrageMult;
@@ -306,8 +306,8 @@ namespace CalamityMod.NPCs.Polterghast
// Increase damage of projectiles and contact damage based on number of nearby active tiles
int damageIncrease = 0;
if (nearbyActiveTiles < 400)
damageIncrease += (400 - nearbyActiveTiles) / 20; // Ranges from 0 to 20
if (nearbyActiveTiles < 900)
damageIncrease += (900 - nearbyActiveTiles) / 45; // Ranges from 0 to 20
// Look at target
float num740 = player.Center.X - vector.X;
@@ -416,7 +416,7 @@ namespace CalamityMod.NPCs.Polterghast
}
// Slow down considerably if near player
if (!speedUp && nearbyActiveTiles > 800 && !Collision.SolidCollision(npc.position, npc.width, npc.height) && Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height) && !charging)
if (!speedUp && nearbyActiveTiles > 1800 && !Collision.SolidCollision(npc.position, npc.width, npc.height) && Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height) && !charging)
{
if (npc.velocity.Length() > velocity)
npc.velocity *= 0.97f;
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Magic
projectile.alpha = 255;
projectile.timeLeft = 500;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 1;
projectile.localNPCHitCooldown = 10;
projectile.magic = true;
}
+3 -2
View File
@@ -43,8 +43,9 @@ namespace CalamityMod.Projectiles.Melee
Player player = Main.player[projectile.owner];
if (player.moonLeech)
return;
player.statLife += 5;
player.HealEffect(5);
int healAmt = projectile.ai[0] == 1f ? 3 : 5;
player.statLife += healAmt;
player.HealEffect(healAmt);
}
}
}
+1 -1
View File
@@ -89,7 +89,7 @@ namespace CalamityMod.Projectiles.Ranged
num16 *= num18;
if (projectile.owner == Main.myPlayer)
{
int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType<SkyFlareFriendly>(), projectile.damage, 5f, projectile.owner, 0f, 0f);
int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType<SkyFlareFriendly>(), projectile.damage / 2, 5f, projectile.owner, 0f, 0f);
Main.projectile[num19].ai[1] = projectile.position.Y;
}
}
+1 -1
View File
@@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Rogue
if (projectile.Calamity().stealthStrike && projectile.owner == Main.myPlayer) //stealth strike attack
{
int stealth = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<Blood>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
int stealth = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<Blood>(), projectile.damage, projectile.knockBack, projectile.owner, 1f, 0.85f + Main.rand.NextFloat() * 1.15f);
if (stealth.WithinBounds(Main.maxProjectiles))
{
Main.projectile[stealth].Calamity().forceRogue = true;
@@ -9,6 +9,7 @@ namespace CalamityMod.Projectiles.Rogue
public override string Texture => "CalamityMod/Items/Weapons/Rogue/CelestialReaper";
public int HomingCooldown = 0;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Celestial Reaper");
@@ -26,6 +27,7 @@ namespace CalamityMod.Projectiles.Rogue
projectile.localNPCHitCooldown = 5;
projectile.timeLeft = 600;
}
public override void AI()
{
projectile.rotation += MathHelper.ToRadians(30f) / (float)Math.Log(6f - projectile.penetrate + 2f) / 1.4f; // Slow down the more hits the scythe has accumulated.
@@ -67,12 +69,14 @@ namespace CalamityMod.Projectiles.Rogue
HomingCooldown = 25;
projectile.velocity *= -0.75f; // Bounce off of the enemy.
}
public override void Kill(int timeLeft)
{
for (float i = 0f; i < 7f; i += 1f)
float totalProjectiles = 4f;
for (float i = 0f; i < totalProjectiles; i += 1f)
{
float angle = MathHelper.TwoPi * i / 7f;
Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 12f, ModContent.ProjectileType<CelestialReaperAfterimage>(), projectile.damage, 2f, projectile.owner);
float angle = MathHelper.TwoPi * i / totalProjectiles;
Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 12f, ModContent.ProjectileType<CelestialReaperAfterimage>(), projectile.damage / 4, projectile.knockBack / 4f, projectile.owner);
}
}
}
+1 -1
View File
@@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Summon
projectile.ai[0]++;
// Arc towards enemy every 60 frames for 30 frames.
float modulo = projectile.ai[0] % 300f;
float modulo = projectile.ai[0] % 150f;
if ((modulo < 30f) ||
(modulo >= 90 && modulo < 120f))
{