1 - DoG doesn't deal damage and is immune to damage for 3 seconds after entering phase 2.

This commit is contained in:
mountaindrew10 committed 2022-04-30 16:47:23 -05:00
1 parent ba27585e84
commit d484fb82cc
4 files changed
+7 -17

No files matched your search

-6
View File
@@ -178,12 +178,6 @@ namespace CalamityMod.Items
SetDefaults_ApplyTweaks(item);
if (item.type == ItemID.ObsidianSkullRose || item.type == ItemID.LavaSkull)
item.defense = 4;
if (item.type == ItemID.MoltenSkullRose)
item.defense = 8;
// TODO -- these properties should be some sort of dictionary.
// Perhaps the solution here is to just apply all changes of all kinds using the "Balance" system.
if (CalamityLists.noGravityList.Contains(item.type))
+4 -1
View File
@@ -247,6 +247,7 @@ namespace CalamityMod.Items
{ ItemID.Kraken, autoReuse },
{ ItemID.LaserDrill, Do(PickPower(220), AxePower(120), UseTimeExact(4)) },
{ ItemID.LastPrism, Do(DamageRatio(0.75f)) },
{ ItemID.LavaSkull, Do(DefenseExact(4)) },
{ ItemID.LeadAxe, Do(AxePower(60), UseTimeExact(15), TileBoostExact(+0)) },
{ ItemID.LeadBow, Do(PointBlank, DamageRatio(1.1f)) },
{ ItemID.LeadBroadsword, Do(AutoReuse, UseTurn, DamageRatio(1.25f)) },
@@ -281,6 +282,7 @@ namespace CalamityMod.Items
{ ItemID.MoltenFury, Do(PointBlank, DamageRatio(1.1f)) },
{ ItemID.MoltenHamaxe, Do(HammerPower(75), AxePower(125), UseTimeExact(14), TileBoostExact(+0)) },
{ ItemID.MoltenPickaxe, Do(PickPower(100), UseTimeExact(10)) },
{ ItemID.MoltenSkullRose, Do(DefenseExact(8)) },
{ ItemID.MonkStaffT1, Do(TrueMelee, DamageExact(110)) },
{ ItemID.MonkStaffT2, Do(AutoReuse, TrueMelee, DamageRatio(2f)) },
{ ItemID.MonkStaffT3, Do(DamageExact(225)) },
@@ -306,6 +308,7 @@ namespace CalamityMod.Items
{ ItemID.NorthPole, autoReuse },
{ ItemID.ObsidianShield, Do(DefenseDelta(+5)) },
{ ItemID.ObsidianSkull, Do(DefenseDelta(+1)) },
{ ItemID.ObsidianSkullRose, Do(DefenseExact(4)) },
{ ItemID.ObsidianSwordfish, Do(AutoReuse, TrueMelee, DamageExact(45)) },
{ ItemID.OnyxBlaster, pointBlank },
{ ItemID.OpticStaff, Do(AutoReuse, UseExact(25), DamageRatio(0.75f)) }, // NOTE: Optic Staff minions have local iframes, so they should be much better overall
@@ -690,7 +693,7 @@ namespace CalamityMod.Items
internal readonly int newDefense = 0;
public DefenseExactRule(int def) => newDefense = def;
public bool AppliesTo(Item it) => HasDefense(it);
public bool AppliesTo(Item it) => HasDefense(it) || it.accessory;
public void ApplyTweak(Item it)
{
it.defense = newDefense;
+1 -9
View File
@@ -2553,8 +2553,6 @@ namespace CalamityMod.NPCs
Vector2 destination = new Vector2(spawnVector.X + randomSpread, spawnVector.Y - 100f);
Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center, Vector2.Normalize(destination - npc.Center) * velocity, type, damage, 0f, Main.myPlayer);
}
npc.netUpdate = true;
}
if (npc.localAI[0] >= 180f)
@@ -2603,8 +2601,6 @@ namespace CalamityMod.NPCs
num182 *= num183;
Projectile.NewProjectile(npc.GetSource_FromAI(), value9.X, value9.Y, num180, num182, type, damage, 0f, Main.myPlayer);
}
npc.netUpdate = true;
}
}
}
@@ -2628,7 +2624,7 @@ namespace CalamityMod.NPCs
// Stay vulnerable for a maximum of 2 seconds
npc.ai[1] += 1f;
if (npc.ai[1] >= 120f || malice)
if (npc.ai[1] >= (phase2 ? 30f : 120f) || malice)
{
// Stop colliding with tiles
npc.noTileCollide = true;
@@ -2883,8 +2879,6 @@ namespace CalamityMod.NPCs
num182 *= num183;
Projectile.NewProjectile(npc.GetSource_FromAI(), value9.X, value9.Y, num180, num182, type, damage, 0f, Main.myPlayer, 0f, 0f);
}
npc.netUpdate = true;
}
}
else
@@ -2983,7 +2977,6 @@ namespace CalamityMod.NPCs
npc.life = 1;
npc.HealEffect(-damageAmt, true);
npc.netUpdate = true;
}
}
@@ -3087,7 +3080,6 @@ namespace CalamityMod.NPCs
npc.life = 1;
npc.HealEffect(-damageAmt, true);
npc.netUpdate = true;
}
}
+2 -1
View File
@@ -451,6 +451,7 @@ namespace CalamityMod.NPCs.DevourerofGods
// Once before DoG spawns, set new size and become visible again.
if (CalamityWorld.DoGSecondStageCountdown == 60)
{
preventBullshitHitsAtStartofFinalPhaseTimer = 180;
NPC.position = NPC.Center;
NPC.width = 186;
NPC.height = 186;
@@ -613,7 +614,7 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.Opacity = 1f;
}
// This exists so that DoG doesn't sometimes instantly kill the player when he goes to final phase
// This exists so that DoG doesn't sometimes hit the player when he goes to phase 2 or final phase
if (preventBullshitHitsAtStartofFinalPhaseTimer > 0)
{
preventBullshitHitsAtStartofFinalPhaseTimer--;