Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
704a825b9e
17 files changed
+759
-597
No files matched your search
+269
-264
File diff suppressed because it is too large.
Load diff
+55
-16
@@ -2967,7 +2967,20 @@ namespace CalamityMod.CalPlayer
|
||||
((deepDiver && Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) ? 0.15f : 0f) +
|
||||
(rogueStealthMax > 0f ? (rogueStealth >= rogueStealthMax ? rogueStealth * 0.05f : rogueStealth * 0.025f) : 0f);
|
||||
|
||||
if (abyssalDivingSuit && !Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (destroyerLore)
|
||||
{
|
||||
runAccMult *= 0.95f;
|
||||
}
|
||||
if (twinsLore)
|
||||
{
|
||||
if (player.statLife < (int)(player.statLifeMax2 * 0.5))
|
||||
runAccMult *= 0.95f;
|
||||
}
|
||||
if (skeletronPrimeLore)
|
||||
{
|
||||
runAccMult *= 0.95f;
|
||||
}
|
||||
if (abyssalDivingSuit && !Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
{
|
||||
runAccMult *= 0.4f;
|
||||
runSpeedMult *= 0.4f;
|
||||
@@ -4753,7 +4766,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (auricSet)
|
||||
{
|
||||
if (silvaThrowing && proj.Calamity().rogue &&
|
||||
crit && player.statLife > (int)((double)player.statLifeMax2 * 0.5))
|
||||
crit && player.statLife > (int)(player.statLifeMax2 * 0.5))
|
||||
{
|
||||
damageMult += 0.25;
|
||||
}
|
||||
@@ -4860,7 +4873,7 @@ namespace CalamityMod.CalPlayer
|
||||
damageMult += 0.5;
|
||||
}
|
||||
}
|
||||
damage = (int)((double)damage * damageMult);
|
||||
damage = (int)(damage * damageMult);
|
||||
|
||||
if (oldDie)
|
||||
{
|
||||
@@ -4877,7 +4890,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region AdditiveBoosts
|
||||
if (proj.type == ModContent.ProjectileType<AcidBulletProj>())
|
||||
{
|
||||
int defenseAdd = (int)((double)target.defense * 0.05 * ((double)proj.damage / 50.0) * acidRoundMultiplier); //100 defense * 0.05 = 5
|
||||
int defenseAdd = (int)((double)target.defense * 0.05 * ((double)proj.damage / 50D) * acidRoundMultiplier); //100 defense * 0.05 = 5
|
||||
damage += defenseAdd;
|
||||
}
|
||||
if (uberBees && (proj.type == ProjectileID.GiantBee || proj.type == ProjectileID.Bee || proj.type == ProjectileID.Wasp || proj.type == ModContent.ProjectileType<PlaguenadeBee>()))
|
||||
@@ -4925,7 +4938,7 @@ namespace CalamityMod.CalPlayer
|
||||
(heldItem.melee || heldItem.ranged || heldItem.magic || heldItem.Calamity().rogue) &&
|
||||
heldItem.hammer == 0 && heldItem.pick == 0 && heldItem.axe == 0 && heldItem.useStyle != 0)
|
||||
{
|
||||
damage = (int)((double)damage * 0.75);
|
||||
damage = (int)(damage * 0.75);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4934,22 +4947,24 @@ namespace CalamityMod.CalPlayer
|
||||
switch (proj.type)
|
||||
{
|
||||
case ProjectileID.CrystalShard:
|
||||
damage = (int)((double)damage * 0.6);
|
||||
damage = (int)(damage * 0.6);
|
||||
break;
|
||||
case ProjectileID.ChlorophyteBullet:
|
||||
damage = (int)((double)damage * 0.8);
|
||||
damage = (int)(damage * 0.8);
|
||||
break;
|
||||
case ProjectileID.HallowStar:
|
||||
damage = (int)((double)damage * 0.7);
|
||||
damage = (int)(damage * 0.7);
|
||||
break;
|
||||
}
|
||||
if (proj.type == ModContent.ProjectileType<VeriumBulletProj>())
|
||||
damage = (int)((double)damage * 0.8);
|
||||
}
|
||||
damage = (int)(damage * 0.8);
|
||||
else if (proj.type == ModContent.ProjectileType<AcidBulletProj>() && heldItem.type == ModContent.ItemType<P90>())
|
||||
damage = (int)(damage * 0.5);
|
||||
}
|
||||
if (proj.type == ProjectileID.SpectreWrath && player.ghostHurt)
|
||||
damage = (int)((double)damage * 0.7);
|
||||
damage = (int)(damage * 0.7);
|
||||
if (yharonLore)
|
||||
damage = (int)((double)damage * 0.75);
|
||||
damage = (int)(damage * 0.75);
|
||||
#endregion
|
||||
|
||||
if (tarraMage && crit && proj.magic)
|
||||
@@ -5084,7 +5099,7 @@ namespace CalamityMod.CalPlayer
|
||||
value15.Normalize();
|
||||
value15 *= (float)Main.rand.Next(70, 101) * 0.1f;
|
||||
int fire = Projectile.NewProjectile(target.position.X + (float)(target.width / 2), target.position.Y + (float)(target.height / 2),
|
||||
value15.X, value15.Y, 15, (int)((double)damage * 0.5), 0f, player.whoAmI, 0f, 0f);
|
||||
value15.X, value15.Y, 15, (int)(damage * 0.5), 0f, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[fire].magic = false;
|
||||
Main.projectile[fire].netUpdate = true;
|
||||
}
|
||||
@@ -5226,7 +5241,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (isTrueMelee)
|
||||
{
|
||||
int stressGain = (int)((double)damage * 0.1);
|
||||
int stressGain = (int)(damage * 0.1);
|
||||
int stressMaxGain = 10;
|
||||
if (stressGain < 1)
|
||||
{
|
||||
@@ -5372,8 +5387,32 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
if (CalamityMod.revengeanceProjectileBuffList.Contains(proj.type))
|
||||
damage = (int)((double)damage * 1.25);
|
||||
double damageMultiplier = 1D;
|
||||
if (CalamityMod.revengeanceProjectileBuffList25Percent.Contains(proj.type))
|
||||
{
|
||||
damageMultiplier += 0.25;
|
||||
}
|
||||
else if (CalamityMod.revengeanceProjectileBuffList20Percent.Contains(proj.type))
|
||||
{
|
||||
damageMultiplier += 0.2;
|
||||
}
|
||||
else if (CalamityMod.revengeanceProjectileBuffList15Percent.Contains(proj.type))
|
||||
{
|
||||
damageMultiplier += 0.15;
|
||||
}
|
||||
else if (CalamityMod.revengeanceProjectileBuffList10Percent.Contains(proj.type))
|
||||
{
|
||||
damageMultiplier += 0.1;
|
||||
}
|
||||
else if (CalamityMod.revengeanceProjectileBuffList5Percent.Contains(proj.type))
|
||||
{
|
||||
damageMultiplier += 0.05;
|
||||
}
|
||||
|
||||
if (CalamityWorld.death)
|
||||
damageMultiplier += (damageMultiplier - 1D) * 0.6;
|
||||
|
||||
damage = (int)(damage * damageMultiplier);
|
||||
}
|
||||
|
||||
// Reduce damage from vanilla traps
|
||||
|
||||
@@ -1215,7 +1215,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (modPlayer.destroyerLore)
|
||||
{
|
||||
player.pickSpeed -= 0.05f;
|
||||
player.moveSpeed -= 0.025f;
|
||||
}
|
||||
if (modPlayer.aquaticScourgeLore)
|
||||
{
|
||||
@@ -1241,7 +1240,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (modPlayer.skeletronPrimeLore)
|
||||
{
|
||||
player.armorPenetration += 5;
|
||||
player.moveSpeed -= 0.025f;
|
||||
}
|
||||
if (modPlayer.leviathanAndSirenLore)
|
||||
{
|
||||
@@ -2658,7 +2656,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (modPlayer.manaOverloader)
|
||||
{
|
||||
player.magicDamage += 0.06f;
|
||||
if (player.statMana < (int)((double)player.statManaMax2 * 0.1))
|
||||
if (player.statMana < (int)(player.statManaMax2 * 0.1))
|
||||
player.ghostHeal = true;
|
||||
}
|
||||
|
||||
@@ -2671,23 +2669,21 @@ namespace CalamityMod.CalPlayer
|
||||
modPlayer.throwingDamage += 0.05f;
|
||||
}
|
||||
|
||||
if (player.statLife < (int)((double)player.statLifeMax2 * 0.5))
|
||||
player.moveSpeed -= 0.025f;
|
||||
else
|
||||
if (player.statLife >= (int)(player.statLifeMax2 * 0.5))
|
||||
player.statDefense -= 10;
|
||||
}
|
||||
|
||||
if (modPlayer.rBrain)
|
||||
{
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.75))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.75))
|
||||
player.allDamage += 0.1f;
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
player.moveSpeed -= 0.05f;
|
||||
}
|
||||
|
||||
if (modPlayer.bloodyWormTooth)
|
||||
{
|
||||
if (player.statLife < (int)((double)player.statLifeMax2 * 0.5))
|
||||
if (player.statLife < (int)(player.statLifeMax2 * 0.5))
|
||||
{
|
||||
player.meleeDamage += 0.1f;
|
||||
player.meleeSpeed += 0.1f;
|
||||
@@ -2712,7 +2708,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
player.armorPenetration += 10;
|
||||
player.noKnockback = true;
|
||||
if (player.statLife > (int)((double)player.statLifeMax2 * 0.25))
|
||||
if (player.statLife > (int)(player.statLifeMax2 * 0.25))
|
||||
{
|
||||
player.hasPaladinShield = true;
|
||||
if (player.whoAmI != Main.myPlayer && player.miscCounter % 10 == 0)
|
||||
@@ -2729,15 +2725,15 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
player.AddBuff(62, 5, true);
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.15))
|
||||
player.endurance += 0.05f;
|
||||
}
|
||||
else if (modPlayer.fBulwark)
|
||||
{
|
||||
player.noKnockback = true;
|
||||
if (player.statLife > (int)((double)player.statLifeMax2 * 0.25))
|
||||
if (player.statLife > (int)(player.statLifeMax2 * 0.25))
|
||||
{
|
||||
player.hasPaladinShield = true;
|
||||
if (player.whoAmI != Main.myPlayer && player.miscCounter % 10 == 0)
|
||||
@@ -2754,9 +2750,9 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
player.AddBuff(62, 5, true);
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.15))
|
||||
player.endurance += 0.05f;
|
||||
}
|
||||
|
||||
@@ -2767,27 +2763,27 @@ namespace CalamityMod.CalPlayer
|
||||
player.buffImmune[46] = true;
|
||||
player.buffImmune[47] = true;
|
||||
|
||||
if (player.statLife > (int)((double)player.statLifeMax2 * 0.75))
|
||||
if (player.statLife > (int)(player.statLifeMax2 * 0.75))
|
||||
player.allDamage += 0.1f;
|
||||
if (player.statLife < (int)((double)player.statLifeMax2 * 0.25))
|
||||
if (player.statLife < (int)(player.statLifeMax2 * 0.25))
|
||||
player.statDefense += 10;
|
||||
}
|
||||
|
||||
if (modPlayer.vexation)
|
||||
{
|
||||
if (player.statLife < (int)((double)player.statLifeMax2 * 0.5))
|
||||
if (player.statLife < (int)(player.statLifeMax2 * 0.5))
|
||||
player.allDamage += 0.2f;
|
||||
}
|
||||
|
||||
if (modPlayer.ataxiaBlaze)
|
||||
{
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
player.AddBuff(BuffID.Inferno, 2);
|
||||
}
|
||||
|
||||
if (modPlayer.bloodflareThrowing)
|
||||
{
|
||||
if (player.statLife > (int)((double)player.statLifeMax2 * 0.8))
|
||||
if (player.statLife > (int)(player.statLifeMax2 * 0.8))
|
||||
{
|
||||
modPlayer.throwingCrit += 5;
|
||||
player.statDefense += 30;
|
||||
@@ -2798,9 +2794,9 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.bloodflareSummon)
|
||||
{
|
||||
if (player.statLife >= (int)((double)player.statLifeMax2 * 0.9))
|
||||
if (player.statLife >= (int)(player.statLifeMax2 * 0.9))
|
||||
player.minionDamage += 0.1f;
|
||||
else if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5))
|
||||
else if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
player.statDefense += 20;
|
||||
|
||||
if (modPlayer.bloodflareSummonTimer > 0)
|
||||
@@ -2824,7 +2820,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.kbGlove = true;
|
||||
player.meleeDamage += 0.05f;
|
||||
player.lavaMax += 240;
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
player.allDamage += 0.1f;
|
||||
}
|
||||
|
||||
@@ -2837,7 +2833,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (modPlayer.deepDiver)
|
||||
{
|
||||
player.allDamage += 0.15f;
|
||||
player.statDefense += (int)((double)player.statDefense * 0.15);
|
||||
player.statDefense += (int)(player.statDefense * 0.15);
|
||||
player.moveSpeed += 0.15f;
|
||||
}
|
||||
|
||||
@@ -2853,12 +2849,12 @@ namespace CalamityMod.CalPlayer
|
||||
if (player.statDefense < 100)
|
||||
player.allDamage += 0.15f;
|
||||
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.15))
|
||||
{
|
||||
player.endurance += 0.1f;
|
||||
player.allDamage += 0.2f;
|
||||
}
|
||||
else if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5))
|
||||
else if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
{
|
||||
player.endurance += 0.05f;
|
||||
player.allDamage += 0.1f;
|
||||
|
||||
+209
-210
@@ -163,8 +163,12 @@ namespace CalamityMod
|
||||
public static List<int> revengeanceEnemyBuffList15Percent;
|
||||
public static List<int> revengeanceEnemyBuffList10Percent;
|
||||
public static List<int> revengeanceEnemyBuffList5Percent;
|
||||
public static List<int> revengeanceProjectileBuffList;
|
||||
public static List<int> revengeanceLifeStealExceptionList;
|
||||
public static List<int> revengeanceProjectileBuffList25Percent;
|
||||
public static List<int> revengeanceProjectileBuffList20Percent;
|
||||
public static List<int> revengeanceProjectileBuffList15Percent;
|
||||
public static List<int> revengeanceProjectileBuffList10Percent;
|
||||
public static List<int> revengeanceProjectileBuffList5Percent;
|
||||
public static List<int> revengeanceLifeStealExceptionList;
|
||||
public static List<int> movementImpairImmuneList;
|
||||
public static List<int> trapProjectileList;
|
||||
public static List<int> scopedWeaponList;
|
||||
@@ -352,8 +356,12 @@ namespace CalamityMod
|
||||
revengeanceEnemyBuffList15Percent = null;
|
||||
revengeanceEnemyBuffList10Percent = null;
|
||||
revengeanceEnemyBuffList5Percent = null;
|
||||
revengeanceProjectileBuffList = null;
|
||||
revengeanceLifeStealExceptionList = null;
|
||||
revengeanceProjectileBuffList25Percent = null;
|
||||
revengeanceProjectileBuffList20Percent = null;
|
||||
revengeanceProjectileBuffList15Percent = null;
|
||||
revengeanceProjectileBuffList10Percent = null;
|
||||
revengeanceProjectileBuffList5Percent = null;
|
||||
revengeanceLifeStealExceptionList = null;
|
||||
movementImpairImmuneList = null;
|
||||
trapProjectileList = null;
|
||||
scopedWeaponList = null;
|
||||
@@ -1546,152 +1554,143 @@ namespace CalamityMod
|
||||
ModContent.NPCType<SupremeCalamitas>()
|
||||
};
|
||||
|
||||
revengeanceProjectileBuffList = new List<int>()
|
||||
revengeanceProjectileBuffList25Percent = new List<int>()
|
||||
{
|
||||
ProjectileID.Sharknado,
|
||||
ProjectileID.Cthulunado,
|
||||
ProjectileID.DD2BetsyFireball,
|
||||
ProjectileID.DD2BetsyFlameBreath,
|
||||
|
||||
ProjectileID.SandBallFalling,
|
||||
ProjectileID.AshBallFalling,
|
||||
ProjectileID.DemonSickle,
|
||||
ProjectileID.EbonsandBallFalling,
|
||||
ProjectileID.PearlSandBallFalling,
|
||||
ProjectileID.Boulder,
|
||||
ProjectileID.PoisonDartTrap,
|
||||
ProjectileID.SpikyBallTrap,
|
||||
ProjectileID.SpearTrap,
|
||||
ProjectileID.FlamethrowerTrap,
|
||||
ProjectileID.FlamesTrap,
|
||||
ProjectileID.CrimsandBallFalling,
|
||||
ProjectileID.Fireball,
|
||||
ProjectileID.PaladinsHammerHostile,
|
||||
ProjectileID.FlamingWood,
|
||||
ProjectileID.FlamingScythe,
|
||||
ProjectileID.FrostWave,
|
||||
ProjectileID.Present,
|
||||
ProjectileID.Spike,
|
||||
ProjectileID.SaucerDeathray,
|
||||
ProjectileID.NebulaBolt,
|
||||
ProjectileID.NebulaSphere,
|
||||
ProjectileID.NebulaLaser,
|
||||
ProjectileID.StardustSoldierLaser,
|
||||
ProjectileID.VortexLaser,
|
||||
ProjectileID.VortexVortexLightning,
|
||||
ProjectileID.VortexLightning,
|
||||
ProjectileID.VortexAcid,
|
||||
ProjectileID.GeyserTrap,
|
||||
ProjectileID.SandnadoHostile,
|
||||
|
||||
ModContent.ProjectileType<SandBlast>(),
|
||||
|
||||
ModContent.ProjectileType<MushBomb>(),
|
||||
ModContent.ProjectileType<MushBombFall>(),
|
||||
ModContent.ProjectileType<Mushmash>(),
|
||||
|
||||
ModContent.ProjectileType<ShaderainHostile>(),
|
||||
|
||||
ModContent.ProjectileType<BloodGeyser>(),
|
||||
ModContent.ProjectileType<IchorShot>(),
|
||||
|
||||
ModContent.ProjectileType<AbyssMine>(),
|
||||
ModContent.ProjectileType<AbyssMine2>(),
|
||||
ModContent.ProjectileType<AbyssBallVolley>(),
|
||||
ModContent.ProjectileType<AbyssBallVolley2>(),
|
||||
|
||||
ModContent.ProjectileType<IceBlast>(),
|
||||
ModContent.ProjectileType<IceBomb>(),
|
||||
ModContent.ProjectileType<IceRain>(),
|
||||
|
||||
ModContent.ProjectileType<SandPoisonCloud>(),
|
||||
ModContent.ProjectileType<SandTooth>(),
|
||||
|
||||
ModContent.ProjectileType<BrimstoneHellfireball>(),
|
||||
ModContent.ProjectileType<HellfireExplosion>(),
|
||||
ModContent.ProjectileType<BrimstoneBarrage>(),
|
||||
ModContent.ProjectileType<BrimstoneHellblast>(),
|
||||
ModContent.ProjectileType<BrimstoneRay>(),
|
||||
|
||||
ModContent.ProjectileType<BrimstoneLaser>(),
|
||||
ModContent.ProjectileType<BrimstoneLaserSplit>(),
|
||||
ModContent.ProjectileType<BrimstoneBall>(),
|
||||
ModContent.ProjectileType<BrimstoneFire>(),
|
||||
|
||||
ModContent.ProjectileType<LeviathanBomb>(),
|
||||
ModContent.ProjectileType<WaterSpear>(),
|
||||
ModContent.ProjectileType<FrostMist>(),
|
||||
ModContent.ProjectileType<SirenSong>(),
|
||||
|
||||
ModContent.ProjectileType<AstralFlame>(),
|
||||
ModContent.ProjectileType<AstralLaser>(),
|
||||
|
||||
ModContent.ProjectileType<PlagueExplosion>(),
|
||||
ModContent.ProjectileType<PlagueStingerGoliath>(),
|
||||
ModContent.ProjectileType<PlagueStingerGoliathV2>(),
|
||||
ModContent.ProjectileType<HiveBombGoliath>(),
|
||||
|
||||
ModContent.ProjectileType<ScavengerNuke>(),
|
||||
|
||||
ModContent.ProjectileType<AstralShot2>(),
|
||||
ModContent.ProjectileType<DeusMine>(),
|
||||
|
||||
ModContent.ProjectileType<ProfanedSpear>(),
|
||||
ModContent.ProjectileType<FlareDust>(),
|
||||
|
||||
ModContent.ProjectileType<RedLightningFeather>(),
|
||||
|
||||
ModContent.ProjectileType<HolyBlast>(),
|
||||
ModContent.ProjectileType<HolyBomb>(),
|
||||
ModContent.ProjectileType<HolyFire>(),
|
||||
ModContent.ProjectileType<HolyFire2>(),
|
||||
ModContent.ProjectileType<HolyFlare>(),
|
||||
ModContent.ProjectileType<HolyShot>(),
|
||||
ModContent.ProjectileType<HolySpear>(),
|
||||
ModContent.ProjectileType<MoltenBlast>(),
|
||||
ModContent.ProjectileType<MoltenBlob>(),
|
||||
ModContent.ProjectileType<ProvidenceCrystalShard>(),
|
||||
ModContent.ProjectileType<ProvidenceHolyRay>(),
|
||||
|
||||
ModContent.ProjectileType<DarkEnergyBall>(),
|
||||
ModContent.ProjectileType<DoGBeam>(),
|
||||
|
||||
ModContent.ProjectileType<CosmicFlameBurst>(),
|
||||
ModContent.ProjectileType<SignusScythe>(),
|
||||
ModContent.ProjectileType<EssenceDust>(),
|
||||
|
||||
ModContent.ProjectileType<PhantomBlast>(),
|
||||
ModContent.ProjectileType<PhantomBlast2>(),
|
||||
ModContent.ProjectileType<PhantomGhostShot>(),
|
||||
ModContent.ProjectileType<PhantomHookShot>(),
|
||||
ModContent.ProjectileType<PhantomMine>(),
|
||||
ModContent.ProjectileType<PhantomShot>(),
|
||||
ModContent.ProjectileType<PhantomShot2>(),
|
||||
|
||||
ModContent.ProjectileType<DoGDeath>(),
|
||||
ModContent.ProjectileType<DoGFire>(),
|
||||
ModContent.ProjectileType<DoGNebulaShot>(),
|
||||
|
||||
ModContent.ProjectileType<FlareBomb>(),
|
||||
ModContent.ProjectileType<FlareDust2>(),
|
||||
ModContent.ProjectileType<Flarenado>(),
|
||||
ModContent.ProjectileType<Infernado>(),
|
||||
ModContent.ProjectileType<Infernado2>(),
|
||||
ModContent.ProjectileType<YharonFireball>(),
|
||||
ModContent.ProjectileType<YharonFireball2>(),
|
||||
|
||||
ModContent.ProjectileType<BrimstoneFireblast>(),
|
||||
ModContent.ProjectileType<BrimstoneGigaBlast>(),
|
||||
ModContent.ProjectileType<BrimstoneHellblast2>(),
|
||||
ModContent.ProjectileType<BrimstoneMonster>(),
|
||||
ModContent.ProjectileType<BrimstoneWave>(),
|
||||
|
||||
ModContent.ProjectileType<GreatSandBlast>(),
|
||||
ModContent.ProjectileType<PearlBurst>(),
|
||||
ModContent.ProjectileType<PearlRain>()
|
||||
ModContent.ProjectileType<BloodGeyser>(),
|
||||
ModContent.ProjectileType<IchorShot>()
|
||||
};
|
||||
|
||||
revengeanceLifeStealExceptionList = new List<int>()
|
||||
revengeanceProjectileBuffList20Percent = new List<int>()
|
||||
{
|
||||
ProjectileID.PoisonDartTrap,
|
||||
ProjectileID.DemonSickle,
|
||||
ProjectileID.SandnadoHostile,
|
||||
ProjectileID.DD2BetsyFireball,
|
||||
ProjectileID.DD2BetsyFlameBreath,
|
||||
ModContent.ProjectileType<Mushmash>(),
|
||||
ModContent.ProjectileType<ShaderainHostile>(),
|
||||
ModContent.ProjectileType<AbyssMine>(),
|
||||
ModContent.ProjectileType<AbyssMine2>(),
|
||||
ModContent.ProjectileType<AbyssBallVolley>(),
|
||||
ModContent.ProjectileType<AbyssBallVolley2>(),
|
||||
ModContent.ProjectileType<IceBlast>(),
|
||||
ModContent.ProjectileType<IceBomb>(),
|
||||
ModContent.ProjectileType<IceRain>(),
|
||||
ModContent.ProjectileType<SandTooth>()
|
||||
};
|
||||
|
||||
revengeanceProjectileBuffList15Percent = new List<int>()
|
||||
{
|
||||
ProjectileID.SpikyBallTrap,
|
||||
ProjectileID.SpearTrap,
|
||||
ProjectileID.FlamethrowerTrap,
|
||||
ProjectileID.FlamesTrap,
|
||||
ProjectileID.Fireball,
|
||||
ProjectileID.PaladinsHammerHostile,
|
||||
ProjectileID.FlamingWood,
|
||||
ProjectileID.FlamingScythe,
|
||||
ProjectileID.FrostWave,
|
||||
ProjectileID.Present,
|
||||
ProjectileID.Spike,
|
||||
ProjectileID.SaucerDeathray,
|
||||
ProjectileID.NebulaBolt,
|
||||
ProjectileID.NebulaSphere,
|
||||
ProjectileID.NebulaLaser,
|
||||
ProjectileID.StardustSoldierLaser,
|
||||
ProjectileID.VortexLaser,
|
||||
ProjectileID.VortexVortexLightning,
|
||||
ProjectileID.VortexLightning,
|
||||
ProjectileID.VortexAcid,
|
||||
ProjectileID.Sharknado,
|
||||
ProjectileID.Cthulunado,
|
||||
ModContent.ProjectileType<SandPoisonCloud>(),
|
||||
ModContent.ProjectileType<BrimstoneHellfireball>(),
|
||||
ModContent.ProjectileType<HellfireExplosion>(),
|
||||
ModContent.ProjectileType<BrimstoneRay>(),
|
||||
ModContent.ProjectileType<BrimstoneLaser>(),
|
||||
ModContent.ProjectileType<BrimstoneLaserSplit>(),
|
||||
ModContent.ProjectileType<BrimstoneBall>(),
|
||||
ModContent.ProjectileType<BrimstoneFire>(),
|
||||
ModContent.ProjectileType<LeviathanBomb>(),
|
||||
ModContent.ProjectileType<WaterSpear>(),
|
||||
ModContent.ProjectileType<FrostMist>(),
|
||||
ModContent.ProjectileType<SirenSong>(),
|
||||
ModContent.ProjectileType<AstralFlame>(),
|
||||
ModContent.ProjectileType<AstralLaser>(),
|
||||
ModContent.ProjectileType<PlagueExplosion>(),
|
||||
ModContent.ProjectileType<PlagueStingerGoliath>(),
|
||||
ModContent.ProjectileType<PlagueStingerGoliathV2>(),
|
||||
ModContent.ProjectileType<HiveBombGoliath>(),
|
||||
ModContent.ProjectileType<ScavengerNuke>(),
|
||||
ModContent.ProjectileType<AstralShot2>(),
|
||||
ModContent.ProjectileType<DeusMine>(),
|
||||
ModContent.ProjectileType<HolyBomb>(),
|
||||
ModContent.ProjectileType<HolyFire>(),
|
||||
ModContent.ProjectileType<HolyFire2>(),
|
||||
ModContent.ProjectileType<HolyFlare>(),
|
||||
ModContent.ProjectileType<MoltenBlast>(),
|
||||
ModContent.ProjectileType<MoltenBlob>(),
|
||||
ModContent.ProjectileType<DarkEnergyBall>(),
|
||||
ModContent.ProjectileType<DoGBeam>(),
|
||||
ModContent.ProjectileType<GreatSandBlast>(),
|
||||
ModContent.ProjectileType<PearlBurst>(),
|
||||
ModContent.ProjectileType<PearlRain>()
|
||||
};
|
||||
|
||||
revengeanceProjectileBuffList10Percent = new List<int>()
|
||||
{
|
||||
ProjectileID.Boulder,
|
||||
ModContent.ProjectileType<ProfanedSpear>(),
|
||||
ModContent.ProjectileType<FlareDust>(),
|
||||
ModContent.ProjectileType<RedLightningFeather>(),
|
||||
ModContent.ProjectileType<HolyBlast>(),
|
||||
ModContent.ProjectileType<HolyShot>(),
|
||||
ModContent.ProjectileType<HolySpear>(),
|
||||
ModContent.ProjectileType<ProvidenceCrystalShard>(),
|
||||
ModContent.ProjectileType<ProvidenceHolyRay>(),
|
||||
ModContent.ProjectileType<CosmicFlameBurst>(),
|
||||
ModContent.ProjectileType<SignusScythe>(),
|
||||
ModContent.ProjectileType<EssenceDust>(),
|
||||
ModContent.ProjectileType<PhantomBlast>(),
|
||||
ModContent.ProjectileType<PhantomBlast2>(),
|
||||
ModContent.ProjectileType<PhantomGhostShot>(),
|
||||
ModContent.ProjectileType<PhantomHookShot>(),
|
||||
ModContent.ProjectileType<PhantomMine>(),
|
||||
ModContent.ProjectileType<PhantomShot>(),
|
||||
ModContent.ProjectileType<PhantomShot2>(),
|
||||
ModContent.ProjectileType<DoGDeath>(),
|
||||
ModContent.ProjectileType<DoGFire>(),
|
||||
ModContent.ProjectileType<DoGNebulaShot>(),
|
||||
ModContent.ProjectileType<FlareBomb>(),
|
||||
ModContent.ProjectileType<FlareDust2>(),
|
||||
ModContent.ProjectileType<Flarenado>()
|
||||
};
|
||||
|
||||
revengeanceProjectileBuffList5Percent = new List<int>()
|
||||
{
|
||||
ModContent.ProjectileType<Infernado>(),
|
||||
ModContent.ProjectileType<Infernado2>(),
|
||||
ModContent.ProjectileType<YharonFireball>(),
|
||||
ModContent.ProjectileType<YharonFireball2>(),
|
||||
ModContent.ProjectileType<BrimstoneBarrage>(),
|
||||
ModContent.ProjectileType<BrimstoneHellblast>(),
|
||||
ModContent.ProjectileType<BrimstoneFireblast>(),
|
||||
ModContent.ProjectileType<BrimstoneGigaBlast>(),
|
||||
ModContent.ProjectileType<BrimstoneHellblast2>(),
|
||||
ModContent.ProjectileType<BrimstoneMonster>(),
|
||||
ModContent.ProjectileType<BrimstoneWave>()
|
||||
};
|
||||
|
||||
revengeanceLifeStealExceptionList = new List<int>()
|
||||
{
|
||||
NPCID.Probe,
|
||||
NPCID.MoonLordFreeEye,
|
||||
@@ -2542,78 +2541,78 @@ namespace CalamityMod
|
||||
revengeanceEnemyBuffList15Percent.Add(thorium.NPCType("Aquaius"));
|
||||
revengeanceEnemyBuffList15Percent.Add(thorium.NPCType("Aquaius2"));
|
||||
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("GrandThunderBirdZap"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("ThunderGust"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BubbleBomb"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("QueenJellyArm"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("QueenTorrent"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountRipple"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountRipple2"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountBlood"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountStomp"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountStomp2"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountRockFall"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("GraniteCharge"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedShock"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedDagger"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrow"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrow2"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrowF"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrowP"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrowC"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedMagic"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedMagicPop"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("MainBeamOuter"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("MainBeam"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("MainBeamCheese"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("VaporizeBlast"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("GravitonSurge"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("Vaporize"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("GravitonCharge"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("GravitySpark"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("DoomBeholderBeam"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("VoidLaserPro"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BeholderBeam"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BlizzardBarrage"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("FrostSurge"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("FrostSurgeR"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BlizzardCascade"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BlizzardBoom"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("BlizzardFang"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("FrostMytePro"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("IceAnomaly"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichGaze"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichGazeB"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichFlareSpawn"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichFlare"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichPulse"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichMatter"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("SoulRenderLich"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichFlareDeathD"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichFlareDeathU"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("Whirlpool"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("AbyssionSpit"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("AbyssionSpit2"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("AquaRipple"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("AbyssalStrike2"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("OldGodSpit"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("OldGodSpit2"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("WaterPulse"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("TyphoonBlastHostile"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("TyphoonBlastHostileSmaller"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("AquaBarrage"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("DeathRaySpawnR"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("DeathRaySpawnL"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("DeathRaySpawn"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("OmniDeath"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("OmniSphereOrb"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("FlameLash"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("FlamePulse"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("FlamePulseTorn"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("FlameNova"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("MoltenFury"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("RealityFury"));
|
||||
revengeanceProjectileBuffList.Add(thorium.ProjectileType("UFOBlast"));
|
||||
revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("GrandThunderBirdZap"));
|
||||
revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("ThunderGust"));
|
||||
revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("BubbleBomb"));
|
||||
revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("QueenJellyArm"));
|
||||
revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("QueenTorrent"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountRipple"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountRipple2"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountBlood"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountStomp"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountStomp2"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountRockFall"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("GraniteCharge"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedShock"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedDagger"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrow"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrow2"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrowF"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrowP"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrowC"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedMagic"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedMagicPop"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("MainBeamOuter"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("MainBeam"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("MainBeamCheese"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("VaporizeBlast"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("GravitonSurge"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("Vaporize"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("GravitonCharge"));
|
||||
revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("GravitySpark"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("DoomBeholderBeam"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("VoidLaserPro"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BeholderBeam"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BlizzardBarrage"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FrostSurge"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FrostSurgeR"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BlizzardCascade"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BlizzardBoom"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BlizzardFang"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FrostMytePro"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("IceAnomaly"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichGaze"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichGazeB"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichFlareSpawn"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichFlare"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichPulse"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichMatter"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("SoulRenderLich"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichFlareDeathD"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichFlareDeathU"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("Whirlpool"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AbyssionSpit"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AbyssionSpit2"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AquaRipple"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AbyssalStrike2"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("OldGodSpit"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("OldGodSpit2"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("WaterPulse"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("TyphoonBlastHostile"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("TyphoonBlastHostileSmaller"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AquaBarrage"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("DeathRaySpawnR"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("DeathRaySpawnL"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("DeathRaySpawn"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("OmniDeath"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("OmniSphereOrb"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FlameLash"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FlamePulse"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FlamePulseTorn"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FlameNova"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("MoltenFury"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("RealityFury"));
|
||||
revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("UFOBlast"));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
DisplayName.SetDefault("Cryogen");
|
||||
Tooltip.SetDefault("The archmage's prison.\n" +
|
||||
"I am unsure if it has grown weaker over the decades of imprisonment.\n" +
|
||||
"Place in your inventory to gain a frost dash that freezes enemies, at the cost of slightly reduced defense.");
|
||||
"Place in your inventory to gain a frost dash that freezes enemies, at the cost of slightly reduced defense due to your brittle body.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A machine brought to life by the mighty souls of warriors, and built to excavate massive tunnels in planets to gather resources.\n" +
|
||||
"Could have proven useful if Draedon didn't have an obsession with turning everything into a tool of destruction.\n" +
|
||||
"Place in your inventory to gain a boost to your pick speed.\n" +
|
||||
"However, your movement speed is decreased slightly due to you feeling heavier.");
|
||||
"However, your max acceleration is decreased slightly due to you feeling heavier.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("That eye...how peculiar.\n" +
|
||||
"I sensed it watching you more intensely as you grew stronger.\n" +
|
||||
"Place in your inventory for night vision at night.\n" +
|
||||
"However, this effect does not trigger while underground.");
|
||||
"However, your vision is reduced during the day.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -29,8 +29,10 @@ namespace CalamityMod.Items.LoreItems
|
||||
|
||||
public override void UpdateInventory(Player player)
|
||||
{
|
||||
if (!Main.dayTime && (player.ZoneOverworldHeight || player.ZoneSkyHeight))
|
||||
player.nightVision = true;
|
||||
if (!Main.dayTime)
|
||||
player.nightVision = true;
|
||||
else
|
||||
player.blind = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("Only a fool could be caught by this pitiful excuse for a hunter.\n" +
|
||||
"Unfortunately, our world has no shortage of those.\n" +
|
||||
"Place in your inventory to gain a slight movement speed and jump boost.\n" +
|
||||
"However, your defense will be reduced.");
|
||||
"However, your defense is slightly reduced due to your gelatinous body.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("What a silly and pointless contraption for something created with the essence of pure terror.\n" +
|
||||
"Draedon obviously took several liberties with its design...I am not impressed.\n" +
|
||||
"Place in your inventory to gain a boost to your armor penetration.\n" +
|
||||
"However, your movement speed is decreased due to you feeling heavier.");
|
||||
"However, your max acceleration is decreased due to you feeling heavier.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
"These creatures did not belong in this world, it's best to be rid of them.\n" +
|
||||
"Place in your inventory to gain invisibility and rogue bonuses at night.\n" +
|
||||
"However, your defense is reduced while above 50% life due to you feeling softer.\n" +
|
||||
"Your movement speed is reduced while below 50% life due to you feeling heavier.");
|
||||
"Your max acceleration is reduced while below 50% life due to you feeling heavier.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
npc.height = 150;
|
||||
npc.defense = 15;
|
||||
npc.value = Item.buyPrice(0, 12, 0, 0);
|
||||
npc.LifeMaxNERB(26000, 35708, 6500000);
|
||||
npc.LifeMaxNERB(30000, 41000, 6500000);
|
||||
if (CalamityWorld.downedProvidence && !CalamityWorld.bossRushActive)
|
||||
{
|
||||
npc.damage *= 3;
|
||||
|
||||
+182
-54
@@ -1430,7 +1430,9 @@ namespace CalamityMod.NPCs
|
||||
|
||||
float num418 = CalamityWorld.bossRushActive ? 18f : 12f;
|
||||
int num419 = 15;
|
||||
int num420 = ProjectileID.CursedFlameHostile;
|
||||
if (death)
|
||||
num419 += 2;
|
||||
int num420 = ProjectileID.CursedFlameHostile;
|
||||
num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350));
|
||||
num351 = num418 / num351;
|
||||
num349 *= num351;
|
||||
@@ -2983,6 +2985,8 @@ namespace CalamityMod.NPCs
|
||||
num626 *= num627;
|
||||
|
||||
int damage = Main.player[npc.target].buffImmune[BuffID.Poisoned] ? 18 : 14;
|
||||
if (death)
|
||||
damage += 2;
|
||||
int type = ProjectileID.Stinger;
|
||||
int projectile = Projectile.NewProjectile(vector78.X, vector78.Y, num625, num626, type, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Main.projectile[projectile].timeLeft = 300;
|
||||
@@ -3121,14 +3125,23 @@ namespace CalamityMod.NPCs
|
||||
|
||||
int num155 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)npc.position.Y + npc.height / 2, NPCID.SkeletronHand, npc.whoAmI, 0f, 0f, 0f, 0f, 255);
|
||||
Main.npc[num155].ai[0] = -1f;
|
||||
|
||||
if (death)
|
||||
Main.npc[num155].Calamity().newAI[0] = -1f;
|
||||
|
||||
Main.npc[num155].ai[1] = (float)npc.whoAmI;
|
||||
Main.npc[num155].ai[3] = (death ? -75f : 0f);
|
||||
Main.npc[num155].target = npc.target;
|
||||
Main.npc[num155].netUpdate = true;
|
||||
|
||||
num155 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)npc.position.Y + npc.height / 2, NPCID.SkeletronHand, npc.whoAmI, 0f, 0f, 0f, 0f, 255);
|
||||
Main.npc[num155].ai[0] = 1f;
|
||||
Main.npc[num155].ai[1] = (float)npc.whoAmI;
|
||||
Main.npc[num155].ai[3] = 150f;
|
||||
|
||||
if (death)
|
||||
Main.npc[num155].Calamity().newAI[0] = -1f;
|
||||
|
||||
Main.npc[num155].ai[1] = (float)npc.whoAmI;
|
||||
Main.npc[num155].ai[3] = (death ? 75f : 150f);
|
||||
Main.npc[num155].target = npc.target;
|
||||
Main.npc[num155].netUpdate = true;
|
||||
}
|
||||
@@ -3188,7 +3201,9 @@ namespace CalamityMod.NPCs
|
||||
num151 = 5f;
|
||||
|
||||
int num152 = 19;
|
||||
int num153 = ProjectileID.Shadowflames;
|
||||
if (death)
|
||||
num152 += 2;
|
||||
int num153 = ProjectileID.Shadowflames;
|
||||
|
||||
Vector2 value19 = Main.player[npc.target].Center - npc.Center;
|
||||
value19.Normalize();
|
||||
@@ -3331,7 +3346,9 @@ namespace CalamityMod.NPCs
|
||||
num163 = vector19.X;
|
||||
num164 = vector19.Y;
|
||||
int num166 = 21;
|
||||
int num167 = ProjectileID.Skull;
|
||||
if (death)
|
||||
num166 += 2;
|
||||
int num167 = ProjectileID.Skull;
|
||||
vector18 += vector19 * 5f;
|
||||
int num168 = Projectile.NewProjectile(vector18.X, vector18.Y, num163, num164, num167, num166, 0f, Main.myPlayer, -1f, 0f);
|
||||
Main.projectile[num168].timeLeft = 300;
|
||||
@@ -3515,7 +3532,13 @@ namespace CalamityMod.NPCs
|
||||
|
||||
public static bool BuffedSkeletronHandAI(NPC npc, bool enraged, Mod mod)
|
||||
{
|
||||
npc.spriteDirection = -(int)npc.ai[0];
|
||||
CalamityGlobalNPC calamityGlobalNPC = npc.Calamity();
|
||||
|
||||
float yMultiplier = 1f;
|
||||
if (calamityGlobalNPC.newAI[0] != 0f)
|
||||
yMultiplier = calamityGlobalNPC.newAI[0];
|
||||
|
||||
npc.spriteDirection = -(int)npc.ai[0];
|
||||
if (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != 11)
|
||||
{
|
||||
npc.ai[2] += 10f;
|
||||
@@ -3535,7 +3558,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
float maxX = CalamityWorld.bossRushActive ? 6f : 7f;
|
||||
float maxY = CalamityWorld.bossRushActive ? 4.5f : 5f;
|
||||
if (npc.position.Y > Main.npc[(int)npc.ai[1]].position.Y - 100f)
|
||||
if (npc.position.Y > Main.npc[(int)npc.ai[1]].position.Y - 100f * yMultiplier)
|
||||
{
|
||||
if (npc.velocity.Y > 0f)
|
||||
npc.velocity.Y *= 0.96f;
|
||||
@@ -3543,7 +3566,7 @@ namespace CalamityMod.NPCs
|
||||
if (npc.velocity.Y > maxY)
|
||||
npc.velocity.Y = maxY;
|
||||
}
|
||||
else if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y - 100f)
|
||||
else if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y - 100f * yMultiplier)
|
||||
{
|
||||
if (npc.velocity.Y < 0f)
|
||||
npc.velocity.Y *= 0.96f;
|
||||
@@ -3583,7 +3606,7 @@ namespace CalamityMod.NPCs
|
||||
float maxX = CalamityWorld.bossRushActive ? 6f : 7f;
|
||||
float maxY = CalamityWorld.bossRushActive ? 2f : 2.5f;
|
||||
|
||||
if (npc.position.Y > Main.npc[(int)npc.ai[1]].position.Y + 230f)
|
||||
if (npc.position.Y > Main.npc[(int)npc.ai[1]].position.Y + 230f * yMultiplier)
|
||||
{
|
||||
if (npc.velocity.Y > 0f)
|
||||
npc.velocity.Y *= 0.92f;
|
||||
@@ -3591,7 +3614,7 @@ namespace CalamityMod.NPCs
|
||||
if (npc.velocity.Y > maxY)
|
||||
npc.velocity.Y = maxY;
|
||||
}
|
||||
else if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y + 230f)
|
||||
else if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y + 230f * yMultiplier)
|
||||
{
|
||||
if (npc.velocity.Y < 0f)
|
||||
npc.velocity.Y *= 0.92f;
|
||||
@@ -4187,7 +4210,9 @@ namespace CalamityMod.NPCs
|
||||
velocity *= 1.5f;
|
||||
|
||||
int damage = phase2 ? 22 : 17;
|
||||
int projectileType = phase2 ? ProjectileID.DeathLaser : ProjectileID.EyeLaser;
|
||||
if (death)
|
||||
damage += 2;
|
||||
int projectileType = phase2 ? ProjectileID.DeathLaser : ProjectileID.EyeLaser;
|
||||
|
||||
vector38 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f);
|
||||
num357 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector38.X;
|
||||
@@ -4389,8 +4414,11 @@ namespace CalamityMod.NPCs
|
||||
else
|
||||
projectileType = ProjectileID.SaucerScrap;
|
||||
|
||||
// Get target vector
|
||||
Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2));
|
||||
if (death)
|
||||
damage += 2;
|
||||
|
||||
// Get target vector
|
||||
Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2));
|
||||
float num6 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector.X;
|
||||
float num7 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector.Y;
|
||||
float num8 = (float)Math.Sqrt((double)(num6 * num6 + num7 * num7));
|
||||
@@ -4873,7 +4901,9 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
float num389 = CalamityWorld.bossRushActive ? 12f : 10.5f;
|
||||
int num390 = 23;
|
||||
int num391 = ProjectileID.EyeLaser;
|
||||
if (death)
|
||||
num390 += 2;
|
||||
int num391 = ProjectileID.EyeLaser;
|
||||
|
||||
num387 = (float)Math.Sqrt((double)(num385 * num385 + num386 * num386));
|
||||
num387 = num389 / num387;
|
||||
@@ -5095,7 +5125,9 @@ namespace CalamityMod.NPCs
|
||||
npc.localAI[1] = 0f;
|
||||
float num404 = CalamityWorld.bossRushActive ? 12f : 10f;
|
||||
int num405 = 28;
|
||||
int num406 = ProjectileID.DeathLaser;
|
||||
if (death)
|
||||
num405 += 3;
|
||||
int num406 = ProjectileID.DeathLaser;
|
||||
|
||||
num403 = (float)Math.Sqrt((double)(num401 * num401 + num402 * num402));
|
||||
num403 = num404 / num403;
|
||||
@@ -5188,7 +5220,9 @@ namespace CalamityMod.NPCs
|
||||
npc.localAI[1] = 0f;
|
||||
float num414 = CalamityWorld.bossRushActive ? 11f : 9f;
|
||||
int num415 = 21;
|
||||
int num416 = ProjectileID.DeathLaser;
|
||||
if (death)
|
||||
num415 += 2;
|
||||
int num416 = ProjectileID.DeathLaser;
|
||||
|
||||
num413 = (float)Math.Sqrt((double)(num411 * num411 + num412 * num412));
|
||||
num413 = num414 / num413;
|
||||
@@ -5285,7 +5319,9 @@ namespace CalamityMod.NPCs
|
||||
|
||||
float num353 = 6f;
|
||||
int num354 = 30;
|
||||
int num355 = ModContent.ProjectileType<ScavengerLaser>();
|
||||
if (death)
|
||||
num354 += 3;
|
||||
int num355 = ModContent.ProjectileType<ScavengerLaser>();
|
||||
|
||||
vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f);
|
||||
num349 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector34.X;
|
||||
@@ -5564,7 +5600,9 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
float num430 = CalamityWorld.bossRushActive ? 20f : 15f;
|
||||
int num431 = 27;
|
||||
int num432 = ProjectileID.CursedFlameHostile;
|
||||
if (death)
|
||||
num431 += 3;
|
||||
int num432 = ProjectileID.CursedFlameHostile;
|
||||
|
||||
num429 = (float)Math.Sqrt((double)(num427 * num427 + num428 * num428));
|
||||
num429 = num430 / num429;
|
||||
@@ -5821,7 +5859,9 @@ namespace CalamityMod.NPCs
|
||||
float num446 = CalamityWorld.bossRushActive ? 9f : 6f;
|
||||
|
||||
int num447 = 33;
|
||||
int num448 = ModContent.ProjectileType<Shadowflamethrower>();
|
||||
if (death)
|
||||
num447 += 3;
|
||||
int num448 = ModContent.ProjectileType<Shadowflamethrower>();
|
||||
|
||||
vector46 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f);
|
||||
num443 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector46.X;
|
||||
@@ -6102,7 +6142,9 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
float num430 = 16f;
|
||||
int num431 = 31;
|
||||
int num432 = ModContent.ProjectileType<ShadowflameFireball>();
|
||||
if (death)
|
||||
num431 += 3;
|
||||
int num432 = ModContent.ProjectileType<ShadowflameFireball>();
|
||||
|
||||
float num429 = (float)Math.Sqrt((double)(num427 * num427 + num428 * num428));
|
||||
num429 = num430 / num429;
|
||||
@@ -6298,7 +6340,9 @@ namespace CalamityMod.NPCs
|
||||
double offsetAngle;
|
||||
float velocity = CalamityWorld.bossRushActive ? 6.5f : 5f;
|
||||
int damage = 31;
|
||||
int i;
|
||||
if (death)
|
||||
damage += 3;
|
||||
int i;
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; // Used to be 32
|
||||
@@ -6322,7 +6366,9 @@ namespace CalamityMod.NPCs
|
||||
npc.localAI[2] = 0f;
|
||||
float num502 = CalamityWorld.bossRushActive ? 12f : 8f;
|
||||
int num503 = 33;
|
||||
int num504 = ProjectileID.RocketSkeleton;
|
||||
if (death)
|
||||
num503 += 3;
|
||||
int num504 = ProjectileID.RocketSkeleton;
|
||||
Vector2 value19 = Main.player[npc.target].Center - npc.Center;
|
||||
value19.Normalize();
|
||||
value19 *= num502;
|
||||
@@ -6427,7 +6473,9 @@ namespace CalamityMod.NPCs
|
||||
double offsetAngle;
|
||||
float velocity = CalamityWorld.bossRushActive ? 6.5f : 5f;
|
||||
int damage = 31;
|
||||
int i;
|
||||
if (death)
|
||||
damage += 3;
|
||||
int i;
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; // Used to be 32
|
||||
@@ -6615,7 +6663,9 @@ namespace CalamityMod.NPCs
|
||||
num161 = value.Y;
|
||||
|
||||
int num163 = 28;
|
||||
int num164 = ProjectileID.Skull;
|
||||
if (death)
|
||||
num163 += 3;
|
||||
int num164 = ProjectileID.Skull;
|
||||
vector16 += value * 5f;
|
||||
int num165 = Projectile.NewProjectile(vector16.X, vector16.Y, num160, num161, num164, num163, 0f, Main.myPlayer, -1f, 0f);
|
||||
Main.projectile[num165].timeLeft = 180;
|
||||
@@ -6704,7 +6754,9 @@ namespace CalamityMod.NPCs
|
||||
velocity = velocity.RotatedBy((Main.rand.NextDouble() - 0.5) * 0.78539818525314331, default);
|
||||
velocity *= CalamityWorld.bossRushActive ? 7.5f : 5f;
|
||||
int damage = 33;
|
||||
float delayBeforeHoming = CalamityWorld.bossRushActive ? 30f : 45f;
|
||||
if (death)
|
||||
damage += 3;
|
||||
float delayBeforeHoming = CalamityWorld.bossRushActive ? 30f : 45f;
|
||||
Projectile.NewProjectile(npc.Center.X + Main.rand.Next(npc.width / 2), npc.Center.Y + 4f, velocity.X, velocity.Y, ProjectileID.SaucerMissile, damage, 0f, Main.myPlayer, 0f, delayBeforeHoming);
|
||||
}
|
||||
|
||||
@@ -6732,8 +6784,10 @@ namespace CalamityMod.NPCs
|
||||
|
||||
public static bool BuffedPrimeLaserAI(NPC npc, Mod mod)
|
||||
{
|
||||
// Set direction
|
||||
npc.spriteDirection = -(int)npc.ai[0];
|
||||
bool death = CalamityWorld.death || CalamityWorld.bossRushActive;
|
||||
|
||||
// Set direction
|
||||
npc.spriteDirection = -(int)npc.ai[0];
|
||||
|
||||
// Despawn if head is gone
|
||||
if (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != 32)
|
||||
@@ -6858,7 +6912,9 @@ namespace CalamityMod.NPCs
|
||||
npc.localAI[0] = 0f;
|
||||
float num509 = CalamityWorld.bossRushActive ? 13f : 11f;
|
||||
int num510 = 31;
|
||||
int num511 = ProjectileID.DeathLaser;
|
||||
if (death)
|
||||
num510 += 3;
|
||||
int num511 = ProjectileID.DeathLaser;
|
||||
num508 = num509 / num508;
|
||||
num506 *= num508;
|
||||
num507 *= num508;
|
||||
@@ -6954,7 +7010,9 @@ namespace CalamityMod.NPCs
|
||||
double offsetAngle;
|
||||
float velocity = CalamityWorld.bossRushActive ? 6.5f : 5f;
|
||||
int damage = 31;
|
||||
int i;
|
||||
if (death)
|
||||
damage += 3;
|
||||
int i;
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; // Used to be 32
|
||||
@@ -6973,7 +7031,9 @@ namespace CalamityMod.NPCs
|
||||
|
||||
public static bool BuffedPrimeCannonAI(NPC npc, Mod mod)
|
||||
{
|
||||
npc.spriteDirection = -(int)npc.ai[0];
|
||||
bool death = CalamityWorld.death || CalamityWorld.bossRushActive;
|
||||
|
||||
npc.spriteDirection = -(int)npc.ai[0];
|
||||
|
||||
if (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != 32)
|
||||
{
|
||||
@@ -7133,7 +7193,9 @@ namespace CalamityMod.NPCs
|
||||
npc.localAI[0] = 0f;
|
||||
float num495 = CalamityWorld.bossRushActive ? 12f : 8f;
|
||||
int num496 = 33;
|
||||
int num497 = ProjectileID.RocketSkeleton;
|
||||
if (death)
|
||||
num496 += 3;
|
||||
int num497 = ProjectileID.RocketSkeleton;
|
||||
num494 = num495 / num494;
|
||||
num492 *= num494;
|
||||
num493 *= num494;
|
||||
@@ -7203,7 +7265,9 @@ namespace CalamityMod.NPCs
|
||||
npc.localAI[0] = 0f;
|
||||
float num502 = CalamityWorld.bossRushActive ? 12f : 8f;
|
||||
int num503 = 33;
|
||||
int num504 = ProjectileID.RocketSkeleton;
|
||||
if (death)
|
||||
num503 += 3;
|
||||
int num504 = ProjectileID.RocketSkeleton;
|
||||
Vector2 value19 = Main.player[npc.target].Center - npc.Center;
|
||||
value19.Normalize();
|
||||
value19 *= num502;
|
||||
@@ -8143,6 +8207,9 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
if (death)
|
||||
damage += 3;
|
||||
|
||||
if (enrage)
|
||||
damage *= 2;
|
||||
|
||||
@@ -8254,6 +8321,8 @@ namespace CalamityMod.NPCs
|
||||
vector93.Y += num744 * 3f;
|
||||
|
||||
int damage = 30;
|
||||
if (death)
|
||||
damage += 3;
|
||||
int numProj = 2;
|
||||
|
||||
int spread = 2 + tentacleScale; // 3 to 10, wider spread is harder to avoid
|
||||
@@ -8292,7 +8361,9 @@ namespace CalamityMod.NPCs
|
||||
vector93.Y += num744 * 3f;
|
||||
|
||||
int damage = 35;
|
||||
int numProj = 4;
|
||||
if (death)
|
||||
damage += 3;
|
||||
int numProj = 4;
|
||||
|
||||
int spread = 30;
|
||||
if (nearbyActiveTiles <= 300)
|
||||
@@ -8769,9 +8840,13 @@ namespace CalamityMod.NPCs
|
||||
vector82.X += num674 * 3f;
|
||||
vector82.Y += num675 * 3f;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
int damage = 35;
|
||||
if (death)
|
||||
damage += 3;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int num677 = Projectile.NewProjectile(vector82.X, vector82.Y, num674, num675, ProjectileID.EyeBeam, 35, 0f, Main.myPlayer, 0f, 0f);
|
||||
int num677 = Projectile.NewProjectile(vector82.X, vector82.Y, num674, num675, ProjectileID.EyeBeam, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Main.projectile[num677].timeLeft = 480;
|
||||
}
|
||||
}
|
||||
@@ -8889,8 +8964,12 @@ namespace CalamityMod.NPCs
|
||||
velocityY *= 2f;
|
||||
}
|
||||
|
||||
int proj = Projectile.NewProjectile(npc.Center.X + (float)Main.rand.Next(-spawnX, spawnX), npc.Center.Y + (float)(npc.height / 2) * 0.8f,
|
||||
velocityX, velocityY, ProjectileID.Fireball, 37, 0f, Main.myPlayer, 0f, 0f);
|
||||
int damage = 37;
|
||||
if (death)
|
||||
damage += 3;
|
||||
|
||||
int proj = Projectile.NewProjectile(npc.Center.X + (float)Main.rand.Next(-spawnX, spawnX), npc.Center.Y + (float)(npc.height / 2) * 0.8f,
|
||||
velocityX, velocityY, ProjectileID.Fireball, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Main.projectile[proj].timeLeft = 240;
|
||||
}
|
||||
}
|
||||
@@ -9055,8 +9134,12 @@ namespace CalamityMod.NPCs
|
||||
num656 *= num658;
|
||||
num657 *= num658;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
Projectile.NewProjectile(vector81.X, vector81.Y, num656, num657, ProjectileID.Fireball, 37, 0f, Main.myPlayer, 0f, 0f);
|
||||
int damage = 37;
|
||||
if (death)
|
||||
damage += 3;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
Projectile.NewProjectile(vector81.X, vector81.Y, num656, num657, ProjectileID.Fireball, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9105,8 +9188,12 @@ namespace CalamityMod.NPCs
|
||||
num664 *= num666;
|
||||
num665 *= num666;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
Projectile.NewProjectile(vector82.X, vector82.Y, num664, num665, ProjectileID.Fireball, 37, 0f, Main.myPlayer, 0f, 0f);
|
||||
int damage = 37;
|
||||
if (death)
|
||||
damage += 3;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
Projectile.NewProjectile(vector82.X, vector82.Y, num664, num665, ProjectileID.Fireball, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
|
||||
// Lasers
|
||||
@@ -9122,7 +9209,9 @@ namespace CalamityMod.NPCs
|
||||
npc.ai[2] = 0f;
|
||||
|
||||
int num670 = 35;
|
||||
int num671 = ProjectileID.EyeBeam;
|
||||
if (death)
|
||||
num670 += 3;
|
||||
int num671 = ProjectileID.EyeBeam;
|
||||
|
||||
if (npc.localAI[1] == 0f)
|
||||
{
|
||||
@@ -9424,9 +9513,13 @@ namespace CalamityMod.NPCs
|
||||
num710 *= num711;
|
||||
|
||||
int projectileType = phase3 ? ProjectileID.InfernoHostileBolt : ProjectileID.Fireball;
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
int damage = 40;
|
||||
if (death)
|
||||
damage += 4;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int proj = Projectile.NewProjectile(vector88.X, vector88.Y, num709, num710, projectileType, 40, 0f, Main.myPlayer, 0f, 0f);
|
||||
int proj = Projectile.NewProjectile(vector88.X, vector88.Y, num709, num710, projectileType, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
if (projectileType == ProjectileID.InfernoHostileBolt)
|
||||
{
|
||||
Main.projectile[proj].timeLeft = 300;
|
||||
@@ -9465,9 +9558,13 @@ namespace CalamityMod.NPCs
|
||||
vector89.X += num717 * 3f;
|
||||
vector89.Y += num718 * 3f;
|
||||
|
||||
int damage = 35;
|
||||
if (death)
|
||||
damage += 3;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int num720 = Projectile.NewProjectile(vector89.X, vector89.Y, num717, num718, ProjectileID.EyeBeam, 35, 0f, Main.myPlayer, 0f, 0f);
|
||||
int num720 = Projectile.NewProjectile(vector89.X, vector89.Y, num717, num718, ProjectileID.EyeBeam, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Main.projectile[num720].timeLeft = enrage ? 480 : 300;
|
||||
}
|
||||
}
|
||||
@@ -10566,6 +10663,13 @@ namespace CalamityMod.NPCs
|
||||
int fireballDamage = isCultist ? 30 : 27;
|
||||
int lightningDamage = 45;
|
||||
|
||||
if (death)
|
||||
{
|
||||
iceMistDamage += 3;
|
||||
fireballDamage += 3;
|
||||
lightningDamage += 4;
|
||||
}
|
||||
|
||||
int iceMistFireRate = 60 -
|
||||
(phase2 ? 5 : 0) -
|
||||
(phase3 ? 5 : 0) -
|
||||
@@ -11651,13 +11755,17 @@ namespace CalamityMod.NPCs
|
||||
npc.localAI[1] = 0.25f + Vector2.UnitY.RotatedBy((double)(npc.ai[1] * 6.28318548f / 60f), default).Y * 0.25f;
|
||||
if (npc.ai[1] >= num1496)
|
||||
{
|
||||
int damage = 50;
|
||||
if (death)
|
||||
damage += 5;
|
||||
|
||||
flag110 = true;
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
for (int num1501 = 0; num1501 < 4; num1501++)
|
||||
{
|
||||
Vector2 vector255 = new Vector2(0f, -num1499).RotatedBy((double)(1.57079637f * (float)num1501), default);
|
||||
Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector255.X, vector255.Y, ProjectileID.AncientDoomProjectile, 50, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector255.X, vector255.Y, ProjectileID.AncientDoomProjectile, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12279,6 +12387,10 @@ namespace CalamityMod.NPCs
|
||||
if (calamityGlobalNPC.newAI[0] == 1f || death)
|
||||
rotation -= 60f;
|
||||
|
||||
int damage = 95;
|
||||
if (death)
|
||||
damage += 10;
|
||||
|
||||
if (num1207 == 180f && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
npc.TargetClosest(false);
|
||||
@@ -12290,7 +12402,7 @@ namespace CalamityMod.NPCs
|
||||
num1225 = 1f;
|
||||
|
||||
vector200 = vector200.RotatedBy((double)(-(double)num1225 * 6.28318548f / 6f), default);
|
||||
Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector200.X, vector200.Y, ProjectileID.PhantasmalDeathray, 95, 0f, Main.myPlayer, num1225 * 6.28318548f / rotation, (float)npc.whoAmI);
|
||||
Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector200.X, vector200.Y, ProjectileID.PhantasmalDeathray, damage, 0f, Main.myPlayer, num1225 * 6.28318548f / rotation, (float)npc.whoAmI);
|
||||
npc.ai[2] = (vector200.ToRotation() + 9.424778f) * num1225;
|
||||
npc.netUpdate = true;
|
||||
}
|
||||
@@ -12378,12 +12490,16 @@ namespace CalamityMod.NPCs
|
||||
if (num1207 == num1208 - 35f)
|
||||
Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f);
|
||||
|
||||
int damage = 40;
|
||||
if (death)
|
||||
damage += 4;
|
||||
|
||||
if ((num1207 == num1208 - 14f || num1207 == num1208 - 7f || num1207 == num1208) && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Vector2 vector203 = Utils.Vector2FromElipse(npc.localAI[0].ToRotationVector2(), value19 * npc.localAI[1]);
|
||||
float velocity = CalamityWorld.bossRushActive ? 9f : 6.75f;
|
||||
Vector2 vector204 = Vector2.Normalize(v4) * velocity;
|
||||
Projectile.NewProjectile(npc.Center.X + vector203.X, npc.Center.Y + vector203.Y, vector204.X, vector204.Y, ProjectileID.PhantasmalBolt, 40, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(npc.Center.X + vector203.X, npc.Center.Y + vector203.Y, vector204.X, vector204.Y, ProjectileID.PhantasmalBolt, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12543,7 +12659,11 @@ namespace CalamityMod.NPCs
|
||||
float num1188 = 6.28318548f * (num1178 % (float)(num1186 * num1187)) / (float)(num1186 * num1187) - 1.57079637f;
|
||||
npc.localAI[0] = new Vector2((float)Math.Cos((double)num1188) * vector165.X, (float)Math.Sin((double)num1188) * vector165.Y).ToRotation();
|
||||
|
||||
if (num1178 % (float)num1187 == 0f)
|
||||
int damage = 40;
|
||||
if (death)
|
||||
damage += 4;
|
||||
|
||||
if (num1178 % (float)num1187 == 0f)
|
||||
{
|
||||
Vector2 value11 = new Vector2(1f * -num1177, 3f);
|
||||
Vector2 vector168 = Utils.Vector2FromElipse(npc.localAI[0].ToRotationVector2(), vector165 * npc.localAI[1]);
|
||||
@@ -12551,7 +12671,7 @@ namespace CalamityMod.NPCs
|
||||
float velocity = CalamityWorld.bossRushActive ? 12f : 9f;
|
||||
Vector2 vector170 = Vector2.Normalize(vector168) * velocity;
|
||||
float ai = (6.28318548f * (float)Main.rand.NextDouble() - 3.14159274f) / 30f + 0.0174532924f * num1177;
|
||||
Projectile.NewProjectile(vector169.X, vector169.Y, vector170.X, vector170.Y, ProjectileID.PhantasmalEye, 40, 0f, Main.myPlayer, 0f, ai);
|
||||
Projectile.NewProjectile(vector169.X, vector169.Y, vector170.X, vector170.Y, ProjectileID.PhantasmalEye, damage, 0f, Main.myPlayer, 0f, ai);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -12594,14 +12714,18 @@ namespace CalamityMod.NPCs
|
||||
num1180 = 1;
|
||||
int num1190 = (int)num1178 - 30;
|
||||
|
||||
if (num1190 % 30 == 0 && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
int damage = 65;
|
||||
if (death)
|
||||
damage += 6;
|
||||
|
||||
if (num1190 % 30 == 0 && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Vector2 vector173 = new Vector2(5f * num1177, -8f);
|
||||
int num1191 = num1190 / 30;
|
||||
vector173.X += ((float)num1191 - 3.5f) * num1177 * 3f;
|
||||
vector173.Y += ((float)num1191 - 4.5f) * 1f;
|
||||
vector173 *= 1.2f;
|
||||
Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector173.X, vector173.Y, ProjectileID.PhantasmalSphere, 65, 1f, Main.myPlayer, 0f, (float)npc.whoAmI);
|
||||
Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector173.X, vector173.Y, ProjectileID.PhantasmalSphere, damage, 1f, Main.myPlayer, 0f, (float)npc.whoAmI);
|
||||
}
|
||||
|
||||
Vector2 vector174 = Vector2.SmoothStep(value12, value12 + value13, (num1178 - 30f) / 180f) - npc.Center;
|
||||
@@ -12696,12 +12820,16 @@ namespace CalamityMod.NPCs
|
||||
if (num1178 == num1179 - 35f)
|
||||
Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f);
|
||||
|
||||
if ((num1178 == num1179 - 14f || num1178 == num1179 - 7f || num1178 == num1179) && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
int damage = 40;
|
||||
if (death)
|
||||
damage += 4;
|
||||
|
||||
if ((num1178 == num1179 - 14f || num1178 == num1179 - 7f || num1178 == num1179) && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Vector2 vector181 = Utils.Vector2FromElipse(npc.localAI[0].ToRotationVector2(), vector165 * npc.localAI[1]);
|
||||
float velocity = CalamityWorld.bossRushActive ? 9f : 6.75f;
|
||||
Vector2 vector182 = Vector2.Normalize(v) * velocity;
|
||||
Projectile.NewProjectile(npc.Center.X + vector181.X, npc.Center.Y + vector181.Y, vector182.X, vector182.Y, ProjectileID.PhantasmalBolt, 40, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(npc.Center.X + vector181.X, npc.Center.Y + vector181.Y, vector182.X, vector182.Y, ProjectileID.PhantasmalBolt, damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -143,22 +143,19 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
npc.ai[3] = 0f;
|
||||
}
|
||||
float num353 = 10f;
|
||||
int num354 = expertMode ? 11 : 14;
|
||||
int num354 = expertMode ? 12 : 16;
|
||||
int num355 = ModContent.ProjectileType<MushBomb>();
|
||||
Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42);
|
||||
if (CalamityWorld.bossRushActive)
|
||||
{
|
||||
num354 += 3;
|
||||
num353 += 3f;
|
||||
}
|
||||
if ((double)npc.life < (double)npc.lifeMax * 0.5 || death)
|
||||
{
|
||||
num354++;
|
||||
num353 += 1f;
|
||||
}
|
||||
if ((double)npc.life < (double)npc.lifeMax * 0.1 || death)
|
||||
{
|
||||
num354++;
|
||||
num353 += 1f;
|
||||
}
|
||||
vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f);
|
||||
@@ -388,7 +385,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
Projectile.NewProjectile((int)npc.Center.X, (int)npc.Center.Y + 20, 0f, 0f, ModContent.ProjectileType<Mushmash>(), 20, 0f, Main.myPlayer, 0f, 0f);
|
||||
|
||||
int num354 = expertMode ? 11 : 14;
|
||||
int num354 = expertMode ? 12 : 16;
|
||||
if (npc.ai[2] % 2f == 0f && (double)npc.life < (double)npc.lifeMax * 0.5 && revenge)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
|
||||
@@ -113,7 +113,9 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
float num509 = CalamityWorld.bossRushActive ? 18f : 9f;
|
||||
int num510 = 11;
|
||||
int num511 = ProjectileID.RubyBolt;
|
||||
if (CalamityWorld.death)
|
||||
num510 += 1;
|
||||
int num511 = ProjectileID.RubyBolt;
|
||||
|
||||
num508 = num509 / num508;
|
||||
num506 *= num508;
|
||||
|
||||
@@ -71,14 +71,12 @@ namespace CalamityMod.NPCs.Perforator
|
||||
{
|
||||
float num941 = revenge ? 9f : 8f;
|
||||
Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2));
|
||||
float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21);
|
||||
float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21);
|
||||
float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X;
|
||||
float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y;
|
||||
float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943));
|
||||
num944 = num941 / num944;
|
||||
num942 *= num944;
|
||||
num943 *= num944;
|
||||
num942 += (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
num943 += (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
int num945 = expertMode ? 12 : 15;
|
||||
int num946 = ModContent.ProjectileType<BloodClot>();
|
||||
vector104.X += num942 * 5f;
|
||||
|
||||
@@ -70,14 +70,12 @@ namespace CalamityMod.NPCs.Perforator
|
||||
{
|
||||
float num941 = revenge ? 9f : 8f;
|
||||
Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2));
|
||||
float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21);
|
||||
float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21);
|
||||
float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X;
|
||||
float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y;
|
||||
float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943));
|
||||
num944 = num941 / num944;
|
||||
num942 *= num944;
|
||||
num943 *= num944;
|
||||
num942 += (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
num943 += (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
int num945 = expertMode ? 12 : 15;
|
||||
int num946 = ModContent.ProjectileType<BloodClot>();
|
||||
vector104.X += num942 * 5f;
|
||||
|
||||
@@ -70,14 +70,12 @@ namespace CalamityMod.NPCs.Perforator
|
||||
{
|
||||
float num941 = revenge ? 9f : 8f;
|
||||
Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2));
|
||||
float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21);
|
||||
float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21);
|
||||
float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X;
|
||||
float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y;
|
||||
float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943));
|
||||
num944 = num941 / num944;
|
||||
num942 *= num944;
|
||||
num943 *= num944;
|
||||
num942 += (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
num943 += (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
int num945 = expertMode ? 12 : 15;
|
||||
int num946 = ModContent.ProjectileType<BloodClot>();
|
||||
vector104.X += num942 * 5f;
|
||||
|
||||
Reference in new issue
Block a user