nerfs, meme sugg, 24 min death boss spawn cooldown

This commit is contained in:
termigator1359 committed 2020-01-21 21:14:01 -05:00
1 parent cbf981d47b
commit 2faa5446ad
3 files changed
+18 -9

No files matched your search

+6 -5
View File
@@ -4905,8 +4905,10 @@ namespace CalamityMod.CalPlayer
#endregion
#region MultiplicativeReductions
// Fearmonger armor makes you immune to the summoner cross-class nerf
if (isSummon && !fearmongerSet)
// Forbidden and Fearmonger armor makes you immune to the summoner cross-class nerf
bool forbidden = player.armor[0].type == ItemID.AncientBattleArmorHat &&
player.armor[1].type == ItemID.AncientBattleArmorShirt && player.armor[2].type == ItemID.AncientBattleArmorPants;
if (isSummon && !fearmongerSet && !forbidden)
{
if (heldItem.type > 0)
{
@@ -5618,14 +5620,13 @@ namespace CalamityMod.CalPlayer
num79 *= num80;
float speedX4 = num78 + (float)Main.rand.Next(-30, 31) * 0.02f;
float speedY5 = num79 + (float)Main.rand.Next(-30, 31) * 0.02f;
int p = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, (int)(damage), (int)(knockBack), player.whoAmI, 0f, (float)Main.rand.Next(15));
Main.projectile[p].damage /= 5;
int p = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, (int)((float)damage * 0.15f), (int)(knockBack), player.whoAmI, 0f, (float)Main.rand.Next(15));
Main.projectile[p].knockBack /= 2;
Main.projectile[p].Calamity().forceRogue = true; //in case melee/rogue variants bug out
if (StealthStrikeAvailable())
{
int knifeCount = 15;
int knifeDamage = 250;
int knifeDamage = 200;
float angleStep = MathHelper.TwoPi / knifeCount;
float speed = 15f;
+3 -3
View File
@@ -19,12 +19,12 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 72;
item.damage = 1100;
item.damage = 1010;
item.noMelee = true;
item.noUseGraphic = true;
item.useAnimation = 20;
item.useAnimation = 21;
item.useStyle = 1;
item.useTime = 20;
item.useTime = 21;
item.knockBack = 3.5f;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
+9 -1
View File
@@ -68,6 +68,7 @@ namespace CalamityMod.World
//Death Mode natural boss spawns
public static int bossSpawnCountdown = 0; //Death Mode natural boss spawn countdown
public static int bossType = 0; //Death Mode natural boss spawn type
public static int deathBossSpawnCooldown = 0; //Cooldown between Death Mode natural boss spawns
//Modes
public static bool demonMode = false; //Spawn rate boost
@@ -1258,7 +1259,7 @@ namespace CalamityMod.World
if (death && !CalamityPlayer.areThereAnyDamnBosses && Main.player[closestPlayer].statLifeMax2 >= 300)
{
if (bossSpawnCountdown <= 0) //check for countdown being 0
if (bossSpawnCountdown <= 0 && deathBossSpawnCooldown <= 0) //check for countdown and cooldown being 0
{
if (Main.rand.NextBool(50000))
{
@@ -1555,9 +1556,14 @@ namespace CalamityMod.World
NPC.SpawnOnPlayer(closestPlayer, ModContent.NPCType<DesertScourgeHeadSmall>());
}
if (bossType == NPCID.DukeFishron)
{
NPC.NewNPC((int)Main.player[closestPlayer].Center.X - 300, (int)Main.player[closestPlayer].Center.Y - 300, bossType);
}
else
{
NPC.SpawnOnPlayer(closestPlayer, bossType);
}
deathBossSpawnCooldown = 86400; //24 minutes (1 full Terraria day)
}
bossType = 0;
if (Main.netMode == NetmodeID.Server)
@@ -1570,6 +1576,8 @@ namespace CalamityMod.World
}
}
}
if (deathBossSpawnCooldown > 0)
deathBossSpawnCooldown--;
if (!downedDesertScourge && Main.netMode != NetmodeID.MultiplayerClient)
CalamityUtils.StopSandstorm();