Merge branch '1.4.4' into Judgement-And-Order-Reworks
No files matched your search
@@ -62,6 +62,10 @@ namespace CalamityMod.Balancing
|
||||
|
||||
UniversalBalancingChanges = new List<IBalancingRule[]>()
|
||||
{
|
||||
// Nerf Crystal bullet shards by 45%
|
||||
// Currently crystal bullet projectiles deal 50% of the bullet's damage which is absurd in vanilla, this nerfs them to 27.5%
|
||||
Do(new ProjectileResistBalancingRule(0.55f, ProjectileID.CrystalShard)),
|
||||
|
||||
// Nerf Luminite Arrow trails by 50%.
|
||||
Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.MoonlordArrowTrail)),
|
||||
|
||||
@@ -76,6 +80,7 @@ namespace CalamityMod.Balancing
|
||||
|
||||
// Nerf Spectre Mask set bonus projectiles by 30%.
|
||||
Do(new ProjectileSpecificRequirementBalancingRule(0.7f, SpectreMaskSetBonusFilter)),
|
||||
|
||||
};
|
||||
|
||||
NPCSpecificBalancingChanges = new List<NPCBalancingChange>();
|
||||
@@ -107,9 +112,6 @@ namespace CalamityMod.Balancing
|
||||
|
||||
// 40% resist to Sky Glaze.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.EaterofWorldsIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<StickyFeather>()))));
|
||||
|
||||
// 30% resist to Jester Arrows.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.EaterofWorldsIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileID.JestersArrow))));
|
||||
#endregion
|
||||
|
||||
#region The Perforators
|
||||
@@ -127,7 +129,7 @@ namespace CalamityMod.Balancing
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AquaticScourgeIDs, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
// 50% resist to Adamantite Throwing Axe's lightning.
|
||||
// Twisting Thunder and Gael's greatsword use this projectile too, but they are far beyond progression, so who cares!
|
||||
// Twisting Thunder and Gael's Greatsword use this projectile too, but they are far beyond progression, so who cares!
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AquaticScourgeIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CultistBossLightningOrbArc))));
|
||||
|
||||
// 50% resist to Dormant Brimseeker.
|
||||
@@ -153,13 +155,22 @@ namespace CalamityMod.Balancing
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
// 50% resist to Dormant Brimseeker.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<DormantBrimseekerBab>()))));
|
||||
|
||||
// 50% resist to Adamantite Throwing Axe's lightning.
|
||||
// See Aquatic Scourge comment.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CultistBossLightningOrbArc))));
|
||||
|
||||
// 50% resist to Dormant Brimseeker.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<DormantBrimseekerBab>()))));
|
||||
|
||||
// 50% resist to Aftershock Rocks.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AftershockRock>()))));
|
||||
|
||||
// 50% resist to Avalanche Ice Bombs.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<IceBombFriendly>()))));
|
||||
|
||||
// 50% resist to Avalanche Frost Shards.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<FrostShardFriendly>()))));
|
||||
|
||||
// 45% resist to Mounted Scanner.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<MountedScannerLaser>()))));
|
||||
|
||||
@@ -177,8 +188,8 @@ namespace CalamityMod.Balancing
|
||||
#endregion
|
||||
|
||||
#region Astrum Aureus
|
||||
// 35% resist to The Ballista's greatarrows.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<AstrumAureus>(), Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<BallistaGreatArrow>()))));
|
||||
// 30% resist to The Ballista's greatarrows.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<AstrumAureus>(), Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<BallistaGreatArrow>()))));
|
||||
#endregion
|
||||
|
||||
#region Ravager
|
||||
@@ -188,14 +199,17 @@ namespace CalamityMod.Balancing
|
||||
// 50% resist to Aegis Blade's explosions because the true melee resist ain't enough.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AegisBlast>()))));
|
||||
|
||||
// 40% resist to Flying Dragon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileID.DD2SquireSonicBoom))));
|
||||
// 35% resist to Flying Dragon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2SquireSonicBoom))));
|
||||
|
||||
// 30% resist to Aurora Blazer.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<AuroraFire>()))));
|
||||
|
||||
// 30% resist to Flak Kraken.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<FlakKrakenProjectile>()))));
|
||||
|
||||
// 30% resist to Aurora Blazer.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<AuroraFire>()))));
|
||||
// 25% resist to Lucrecia.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<DNA>()))));
|
||||
#endregion
|
||||
|
||||
#region Duke Fishron
|
||||
@@ -264,6 +278,9 @@ namespace CalamityMod.Balancing
|
||||
#region Providence
|
||||
// 80% resist to Hell's Sun.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<Providence>(), new ProjectileResistBalancingRule(0.2f, ProjectileType<HellsSunProj>())));
|
||||
|
||||
// 35% resist to Elemental Lance. This thing desperately needs a rework.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<Providence>(), new ProjectileResistBalancingRule(0.65f, ProjectileType<SpatialSpear>(), ProjectileType<SpatialSpear2>(), ProjectileType<SpatialSpear3>(), ProjectileType<SpatialSpear4>())));
|
||||
#endregion
|
||||
|
||||
#region Ceaseless Void: Dark Energies
|
||||
@@ -380,7 +397,7 @@ namespace CalamityMod.Balancing
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<TarraThornRight>()))));
|
||||
|
||||
// 50% resist to Vehemence's skulls.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<VehemenceSkull>(), ProjectileType<PrismaticBeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<VehemenceSkull>()))));
|
||||
|
||||
// 50% resist to Yharim's Crystal.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<YharimsCrystalBeam>()))));
|
||||
@@ -394,21 +411,21 @@ namespace CalamityMod.Balancing
|
||||
// 35% resist to The Anomaly's Nanogun bomb explosions.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<AnomalysNanogunMPFBBoom>()))));
|
||||
|
||||
// 30% resist to Ultima.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<UltimaRay>()))));
|
||||
// 35% resist to Prismatic Breaker's laser beam.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<PrismaticBeam>()))));
|
||||
|
||||
// 30% resist to Eclipse's Fall.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<EclipsesFallMain>()))));
|
||||
|
||||
// 30% resist to Prismatic Breaker's laser beam.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<PrismaticBeam>()))));
|
||||
|
||||
// 30% resist to Pulse Rifle.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<PulseRifleShot>()))));
|
||||
|
||||
// 30% resist to Sirius.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<SiriusExplosion>()))));
|
||||
|
||||
// 30% resist to Ultima's rays.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<UltimaRay>()))));
|
||||
|
||||
// 30% resist to Dragon Scales and The Wand's tornadoes.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<InfernadoFriendly>(), ProjectileType<DragonScalesInfernado>()))));
|
||||
|
||||
|
||||
@@ -33,12 +33,18 @@
|
||||
|
||||
// Dodge cooldowns (in frames)
|
||||
// TODO -- Some of these could be moved to the respective item files
|
||||
internal static readonly int BeltDodgeCooldown = 5400;
|
||||
internal static readonly int BrainDodgeCooldown = 5400;
|
||||
internal static readonly int AmalgamDodgeCooldown = 5400;
|
||||
internal static readonly int MirrorDodgeCooldown = 5400;
|
||||
internal static readonly int DaedalusReflectCooldown = 5400;
|
||||
internal static readonly int EvolutionReflectCooldown = 5400;
|
||||
internal static readonly int BeltDodgeCooldownMin = 900;
|
||||
internal static readonly int BeltDodgeCooldownMax = 5400;
|
||||
internal static readonly int BrainDodgeCooldownMin = 900;
|
||||
internal static readonly int BrainDodgeCooldownMax = 5400;
|
||||
internal static readonly int AmalgamDodgeCooldownMin = 900;
|
||||
internal static readonly int AmalgamDodgeCooldownMax = 5400;
|
||||
internal static readonly int MirrorDodgeCooldownMin = 900;
|
||||
internal static readonly int MirrorDodgeCooldownMax = 5400;
|
||||
internal static readonly int DaedalusReflectCooldownMin = 900;
|
||||
internal static readonly int DaedalusReflectCooldownMax = 5400;
|
||||
internal static readonly int EvolutionReflectCooldownMin = 900;
|
||||
internal static readonly int EvolutionReflectCooldownMax = 5400;
|
||||
#endregion
|
||||
|
||||
#region Damage
|
||||
@@ -79,6 +85,54 @@
|
||||
// nothing here yet
|
||||
#endregion
|
||||
|
||||
#region Life Steal
|
||||
// Life steal accessories require a more strict cooldown due to their ease of use and global application
|
||||
internal static readonly float LifeStealAccessoryCooldownMultiplier = 3f;
|
||||
|
||||
// Life steal cooldown multipliers used for armor set bonuses
|
||||
internal static readonly float LifeStealSetBonusCooldownMultiplier = 2f;
|
||||
internal static readonly float LifeStealReaverTankCooldownMultiplier = 4f;
|
||||
|
||||
// The range was buffed in vanilla from 1200 to 3000 in 1.4.4, and I agree with that decision
|
||||
internal static readonly float LifeStealRange = 3000f;
|
||||
|
||||
// Life steal caps (aka, how much life steal the player is allowed before it goes on cooldown)
|
||||
internal static readonly float LifeStealCap_Classic = 60f;
|
||||
internal static readonly float LifeStealCap_Expert = 50f;
|
||||
internal static readonly float LifeStealCap_Revengeance = 40f;
|
||||
internal static readonly float LifeStealCap_Death = 30f;
|
||||
|
||||
// Master nerfs the life steal cap by 10, resulting in 40 in non-Rev Master, 30 in Rev Master, and 20 in Death Master
|
||||
internal static readonly float LifeStealCapReduction_Master = 10f;
|
||||
|
||||
// The base life steal cooldowns from vanilla
|
||||
internal static readonly float LifeStealRecoveryRate_Classic = 0.6f;
|
||||
internal static readonly float LifeStealRecoveryRate_Expert = 0.5f;
|
||||
|
||||
// The calculations below show the time (in frames) for 10 life steal cooldown to recover in each difficulty
|
||||
// Classic: 10 / 0.2 = 50
|
||||
// Expert: 10 / 0.15 = 66.667
|
||||
// Revengeance: 10 / 0.125 = 80
|
||||
// Death: 10 / 0.1 = 100
|
||||
// Master: 10 / 0.1 = 100
|
||||
// Revengeance Master: 10 / 0.075 = 133.333
|
||||
// Death Master: 10 / 0.05 = 200
|
||||
// Nerfs the life steal recovery rate in Classic from 0.6/s to 0.2/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Classic = 0.4f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Expert from 0.5/s to 0.15/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Expert = 0.35f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Revengeance from 0.5/s to 0.125/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Revengeance = 0.375f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Death from 0.5/s to 0.1/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Death = 0.4f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Master by 0.05/s, resulting in 0.1/s in non-Rev Master, 0.075/s in Rev Master, and 0.05/s in Death Master
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Master = 0.05f;
|
||||
#endregion
|
||||
|
||||
#region Rogue Base Stats
|
||||
// If stealth is too weak, increase this number. If stealth is too strong, decrease this number.
|
||||
// This value is intentionally not readonly.
|
||||
@@ -143,10 +197,16 @@
|
||||
internal static readonly int RageFadeTime = CalamityUtils.SecondsToFrames(30);
|
||||
internal static readonly float DefaultRageDamageBoost = 0.35f; // +35%
|
||||
|
||||
internal static readonly float AdrenalineDamageBoost = 2f; // +200%
|
||||
internal static readonly float AdrenalineDamagePerBooster = 0.15f; // +15%
|
||||
internal static readonly float AdrenalineDamageBoost = 1.5f; // +150%
|
||||
internal static readonly float AdrenalineDamagePerBooster = 0.2f; // +20%
|
||||
internal static readonly float FullAdrenalineDR = 0.5f; // 50%
|
||||
internal static readonly float AdrenalineDRPerBooster = 0.05f; // +5% per booster
|
||||
|
||||
internal static readonly int AdrenalinePauseAfterDamage = CalamityUtils.SecondsToFrames(1);
|
||||
internal static readonly float MinimumAdrenalineLoss = 0.1f; // No matter how small a hit, you will always lose at least 10% current Adrenaline
|
||||
internal static readonly float AdrenalineFalloffTinyHitHealthRatio = 0.05f; // Hits for 5% max HP or less result in less Adrenaline loss
|
||||
|
||||
internal static readonly float TrueMeleeRipperReductionFactor = 0.5f; // True melee benefits less from rippers to prevent excessive melting.
|
||||
#endregion
|
||||
|
||||
// TODO -- NPC classification is not done consistently with predictable thresholds.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Placeables.Furniture;
|
||||
using CalamityMod.Systems;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.Events;
|
||||
using Terraria.Graphics.Effects;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -12,7 +13,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AstralWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/AstralDesertSurfaceBGStyle");
|
||||
public override int BiomeTorchItemType => ModContent.ItemType<AstralTorch>();
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
public override SceneEffectPriority Priority => Sandstorm.Happening ? SceneEffectPriority.Environment : SceneEffectPriority.BiomeHigh;
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AstralDesertIcon";
|
||||
// Could use its own unique background
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AstralBG";
|
||||
|
||||
|
Before Width: | Height: | Size: 381 B After Width: | Height: | Size: 633 B |
|
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 564 B |
|
Before Width: | Height: | Size: 589 B After Width: | Height: | Size: 720 B |
|
Before Width: | Height: | Size: 751 B After Width: | Height: | Size: 596 B |
@@ -1,7 +1,12 @@
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.Particles;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using ReLogic.Utilities;
|
||||
using CalamityMod.Dusts;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -46,5 +51,22 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
internal static void DrawEffects(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player Player = drawInfo.drawPlayer;
|
||||
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
VoidSparkParticle spark2 = new VoidSparkParticle(Player.Calamity().RandomDebuffVisualSpot, new Vector2(0, Main.rand.NextFloat(-6f, -10f)), false, Main.rand.Next(18, 27), Main.rand.NextFloat(0.015f, 0.045f), Main.rand.NextBool() ? Color.Red : Color.Lerp(Color.Red, Color.Magenta, 0.65f));
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
}
|
||||
|
||||
Dust dust = Dust.NewDustPerfect(Player.Calamity().RandomDebuffVisualSpot, Main.rand.NextBool() ? 261 :(int)CalamityDusts.Brimstone);
|
||||
dust.scale = Main.rand.NextFloat(0.4f, 0.5f);
|
||||
dust.velocity = new Vector2(0, Main.rand.NextFloat(-0.5f, -2.5f)).RotatedByRandom(0.6f);
|
||||
if (dust.type == 261)
|
||||
dust.color = Color.Lerp(Color.Red, Color.Magenta, 0.65f);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 435 B After Width: | Height: | Size: 603 B |
@@ -7,9 +7,9 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
public class ArmorCrunch : ModBuff
|
||||
{
|
||||
public static int DefenseReduction = 15;
|
||||
public static float MultiplicativeDamageReductionPlayer = 0.33f;
|
||||
//20% dr reduction
|
||||
public static float MultiplicativeDamageReductionEnemy = 0.80f;
|
||||
public static float MultiplicativeDamageReductionPlayer = 0.5f;
|
||||
// 15% DR reduction
|
||||
public static float MultiplicativeDamageReductionEnemy = 0.85f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -7,9 +7,9 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
public class Crumbling : ModBuff
|
||||
{
|
||||
public static int DefenseReduction = 10;
|
||||
public static float MultiplicativeDamageReductionPlayer = 0.55f;
|
||||
//12% dr reduction
|
||||
public static float MultiplicativeDamageReductionEnemy = 0.9f;
|
||||
public static float MultiplicativeDamageReductionPlayer = 0.7f;
|
||||
// 8% DR reduction
|
||||
public static float MultiplicativeDamageReductionEnemy = 0.92f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 618 B |
|
Before Width: | Height: | Size: 580 B After Width: | Height: | Size: 563 B |
|
Before Width: | Height: | Size: 813 B After Width: | Height: | Size: 649 B |
|
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 611 B |
@@ -355,6 +355,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool AdrenalineTrail = false;
|
||||
public float adrenaline = 0f;
|
||||
public float adrenalineMax = 100f; // 0 to 100% by default
|
||||
public int adrenalinePauseTimer = 0;
|
||||
public int AdrenalineDuration = CalamityUtils.SecondsToFrames(5);
|
||||
public int AdrenalineChargeTime = CalamityUtils.SecondsToFrames(30);
|
||||
public int AdrenalineFadeTime = CalamityUtils.SecondsToFrames(2);
|
||||
@@ -493,7 +494,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool laudanum = false;
|
||||
public bool heartOfDarkness = false;
|
||||
public bool draedonsHeart = false;
|
||||
public int nanomachinesLockoutTimer = 0;
|
||||
public bool vexation = false;
|
||||
public bool dodgeScarf = false;
|
||||
public bool evasionScarf = false;
|
||||
@@ -577,6 +577,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool chaliceOfTheBloodGod = false;
|
||||
public double chaliceBleedoutBuffer = 0D;
|
||||
public double chaliceDamagePointPartialProgress = 0D;
|
||||
public int chaliceHitOriginalDamage = 0;
|
||||
public bool elementalHeart = false;
|
||||
public bool crownJewel = false;
|
||||
public bool infectedJewel = false;
|
||||
@@ -723,7 +724,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool tarragonCloak = false;
|
||||
public int tarraDefenseTime = 600;
|
||||
public bool tarraMage = false;
|
||||
public int tarraMageHealCooldown = 0;
|
||||
public int tarraCrits = 0;
|
||||
public bool tarraRanged = false;
|
||||
public int tarraRangedCooldown = 0;
|
||||
@@ -963,6 +963,7 @@ namespace CalamityMod.CalPlayer
|
||||
public double pinkCandleHealFraction = 0D;
|
||||
public bool yellowCandle = false;
|
||||
public bool trippy = false;
|
||||
public int trippyLevel = 1;
|
||||
public bool amidiasBlessing = false;
|
||||
public bool bloodfinBoost = false;
|
||||
public int bloodfinTimer = 30;
|
||||
@@ -1178,6 +1179,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Draedon Summoning
|
||||
public bool AbleToSelectExoMech = false;
|
||||
public bool HasTalkedAtCodebreaker = false;
|
||||
public bool HasCraftedDraedonsForge = false;
|
||||
public List<ulong> SeenDraedonDialogs = new();
|
||||
#endregion Draedon Summoning
|
||||
|
||||
@@ -1312,6 +1314,7 @@ namespace CalamityMod.CalPlayer
|
||||
boost.AddWithCondition("newCalamitasInventory", newCalamitasInventory);
|
||||
boost.AddWithCondition("GivenBrimstoneLocus", GivenBrimstoneLocus);
|
||||
boost.AddWithCondition("HasTalkedAtCodebreaker", HasTalkedAtCodebreaker);
|
||||
boost.AddWithCondition("HasCraftedDraedonsForge", HasCraftedDraedonsForge);
|
||||
|
||||
// Calculate the new total time of all sessions at the instant of this player save.
|
||||
TimeSpan newSessionTotal = previousSessionTotal.Add(CalamityMod.SpeedrunTimer.Elapsed);
|
||||
@@ -1402,6 +1405,7 @@ namespace CalamityMod.CalPlayer
|
||||
newCalamitasInventory = boost.Contains("newCalamitasInventory");
|
||||
GivenBrimstoneLocus = boost.Contains("GivenBrimstoneLocus");
|
||||
HasTalkedAtCodebreaker = boost.Contains("HasTalkedAtCodebreaker");
|
||||
HasCraftedDraedonsForge = boost.Contains("HasCraftedDraedonsForge");
|
||||
|
||||
// Load rage if it's there, which it will be for any players saved with 1.5.
|
||||
// Older players have "stress" instead, which will be ignored. This is intentional.
|
||||
@@ -2279,7 +2283,6 @@ namespace CalamityMod.CalPlayer
|
||||
silvaMageCooldown = 0;
|
||||
bloodflareMageCooldown = 0;
|
||||
tarraRangedCooldown = 0;
|
||||
tarraMageHealCooldown = 0;
|
||||
hideOfDeusMeleeBoostTimer = 0;
|
||||
externalAbyssLight = 0;
|
||||
externalColdImmunity = externalHeatImmunity = false;
|
||||
@@ -2401,7 +2404,7 @@ namespace CalamityMod.CalPlayer
|
||||
soaring = false;
|
||||
bounding = false;
|
||||
shadow = false;
|
||||
nanomachinesLockoutTimer = 0;
|
||||
adrenalinePauseTimer = 0;
|
||||
photosynthesis = false;
|
||||
astralInjection = false;
|
||||
gravityNormalizer = false;
|
||||
@@ -2450,6 +2453,7 @@ namespace CalamityMod.CalPlayer
|
||||
pinkCandleHealFraction = 0D;
|
||||
yellowCandle = false;
|
||||
trippy = false;
|
||||
trippyLevel = 1;
|
||||
amidiasBlessing = false;
|
||||
bloodfinBoost = false;
|
||||
bloodfinTimer = 0;
|
||||
@@ -2611,6 +2615,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
chaliceBleedoutBuffer = 0D;
|
||||
chaliceDamagePointPartialProgress = 0D;
|
||||
chaliceHitOriginalDamage = 0;
|
||||
|
||||
if (BossRushEvent.BossRushActive)
|
||||
{
|
||||
@@ -2733,6 +2738,8 @@ namespace CalamityMod.CalPlayer
|
||||
Projectile.NewProjectile(source, new Vector2((int)(Player.Center.X + (Math.Sin(projIndex * start) * 300)), (int)(Player.Center.Y + (Math.Cos(projIndex * start) * 300))), Vector2.Zero, ModContent.ProjectileType<AngelicAllianceArchangel>(), damage, proj.knockBack / 10f, Player.whoAmI, Main.rand.Next(180), projIndex * start);
|
||||
Player.statLife += 2;
|
||||
Player.HealEffect(2);
|
||||
if (Player.statLife > Player.statLifeMax2)
|
||||
Player.statLife = Player.statLifeMax2;
|
||||
}
|
||||
}
|
||||
if (CalamityKeybinds.SandCloakHotkey.JustPressed && sandCloak && Main.myPlayer == Player.whoAmI && rogueStealth >= rogueStealthMax * 0.1f &&
|
||||
@@ -2857,7 +2864,7 @@ namespace CalamityMod.CalPlayer
|
||||
SoundEngine.PlaySound(BloodflareHeadRanged.ActivationSound, Player.Center);
|
||||
for (int d = 0; d < 64; d++)
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(Player.position.X, Player.position.Y + 16f), Player.width, Player.height - 16, (int)CalamityDusts.Polterplasm, 0f, 0f, 0, default, 1f);
|
||||
int dust = Dust.NewDust(new Vector2(Player.position.X, Player.position.Y + 16f), Player.width, Player.height - 16, (int)CalamityDusts.Necroplasm, 0f, 0f, 0, default, 1f);
|
||||
Main.dust[dust].velocity *= 3f;
|
||||
Main.dust[dust].scale *= 1.15f;
|
||||
}
|
||||
@@ -2867,7 +2874,7 @@ namespace CalamityMod.CalPlayer
|
||||
Vector2 source = Vector2.Normalize(Player.velocity) * new Vector2((float)Player.width / 2f, (float)Player.height) * 0.75f;
|
||||
source = source.RotatedBy((double)((float)(d - (dustAmt / 2 - 1)) * MathHelper.TwoPi / (float)dustAmt), default) + Player.Center;
|
||||
Vector2 dustVel = source - Player.Center;
|
||||
int phanto = Dust.NewDust(source + dustVel, 0, 0, (int)CalamityDusts.Polterplasm, dustVel.X * 1.5f, dustVel.Y * 1.5f, 100, default, 1.4f);
|
||||
int phanto = Dust.NewDust(source + dustVel, 0, 0, (int)CalamityDusts.Necroplasm, dustVel.X * 1.5f, dustVel.Y * 1.5f, 100, default, 1.4f);
|
||||
Main.dust[phanto].noGravity = true;
|
||||
Main.dust[phanto].noLight = true;
|
||||
Main.dust[phanto].velocity = dustVel;
|
||||
@@ -3579,17 +3586,27 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
// Add a cooldown display for the vanilla lifesteal cooldown, which is active when negative
|
||||
if (Player.whoAmI == Main.myPlayer && Player.lifeSteal < 0f)
|
||||
// Add a cooldown display for the vanilla lifesteal cooldown, which is active when negative.
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
float duration = Player.lifeSteal;
|
||||
float baseCooldown = Main.expertMode ? 0.5f : 0.6f;
|
||||
float lifeStealNerf = BossRushEvent.BossRushActive ? 0.3f : CalamityWorld.death ? 0.25f : CalamityWorld.revenge ? 0.2f : Main.expertMode ? 0.15f : 0.1f;
|
||||
duration /= baseCooldown - lifeStealNerf;
|
||||
duration *= -1f;
|
||||
float baseRecoveryRate = Main.expertMode ? BalancingConstants.LifeStealRecoveryRate_Expert : BalancingConstants.LifeStealRecoveryRate_Classic;
|
||||
|
||||
if (!Player.HasCooldown(LifeSteal.ID) || (cooldowns[LifeSteal.ID].duration < (int)duration))
|
||||
Player.AddCooldown(LifeSteal.ID, (int)duration);
|
||||
float lifeStealRecoveryRateReduction =
|
||||
CalamityWorld.death ? BalancingConstants.LifeStealRecoveryRateReduction_Death :
|
||||
CalamityWorld.revenge ? BalancingConstants.LifeStealRecoveryRateReduction_Revengeance :
|
||||
Main.expertMode ? BalancingConstants.LifeStealRecoveryRateReduction_Expert :
|
||||
BalancingConstants.LifeStealRecoveryRateReduction_Classic;
|
||||
|
||||
if (Main.masterMode)
|
||||
lifeStealRecoveryRateReduction += BalancingConstants.LifeStealRecoveryRateReduction_Master;
|
||||
|
||||
float lifeStealRecoveryRate = baseRecoveryRate - lifeStealRecoveryRateReduction;
|
||||
if (Player.lifeSteal < -lifeStealRecoveryRate)
|
||||
{
|
||||
int duration = (int)Math.Ceiling(Math.Abs(Player.lifeSteal) / lifeStealRecoveryRate);
|
||||
if (!Player.HasCooldown(LifeSteal.ID) || (cooldowns[LifeSteal.ID].duration < duration))
|
||||
Player.AddCooldown(LifeSteal.ID, duration);
|
||||
}
|
||||
}
|
||||
|
||||
ForceVariousEffects();
|
||||
@@ -3601,7 +3618,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
// True melee damage from various vanilla equipment placed here.
|
||||
|
||||
// Titan Glove and ALL upgrades
|
||||
// Titan Glove and ALL upgrades.
|
||||
if (Player.kbGlove)
|
||||
Player.GetDamage<TrueMeleeDamageClass>() += 0.1f;
|
||||
|
||||
@@ -3611,11 +3628,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (gSabatonTempJumpSpeed > 0)
|
||||
{
|
||||
gSabatonTempJumpSpeed--;
|
||||
//Only give temporary jump speed if Gravistar Sabaton is equipped, but still decrement the time so that you can't store it for later
|
||||
// Only give temporary jump speed if Gravistar Sabaton is equipped, but still decrement the time so that you can't store it for later.
|
||||
if (gSabaton && Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Player.jumpSpeedBoost += 2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3649,7 +3664,6 @@ namespace CalamityMod.CalPlayer
|
||||
(silvaSet ? 0.05f : 0f) +
|
||||
(blueCandle ? 0.05f : 0f) +
|
||||
(planarSpeedBoost > 0 ? (0.01f * planarSpeedBoost) : 0f) +
|
||||
((deepDiver && Player.IsUnderwater()) ? 0.15f : 0f) +
|
||||
(hasteLevel * 0.05f);
|
||||
|
||||
float runSpeedMult = 1f +
|
||||
@@ -3664,7 +3678,6 @@ namespace CalamityMod.CalPlayer
|
||||
(CobaltSet ? CobaltArmorSetChange.SpeedBoostSetBonusPercentage * 0.01f : 0f) +
|
||||
(silvaSet ? 0.05f : 0f) +
|
||||
(planarSpeedBoost > 0 ? (0.01f * planarSpeedBoost) : 0f) +
|
||||
((deepDiver && Player.IsUnderwater()) ? 0.15f : 0f) +
|
||||
(hasteLevel * 0.05f);
|
||||
|
||||
if ((Player.slippy || Player.slippy2) && Player.iceSkate)
|
||||
@@ -4041,9 +4054,9 @@ namespace CalamityMod.CalPlayer
|
||||
int d = (int)Player.GetTotalDamage<RangedDamageClass>().ApplyTo(RustyMedallion.AcidDropBaseDamage);
|
||||
d = Player.ApplyArmorAccDamageBonusesTo(d);
|
||||
|
||||
Vector2 startingPosition = Main.MouseWorld - Vector2.UnitY.RotatedByRandom(0.4f) * 1250f;
|
||||
Vector2 directionToMouse = (Main.MouseWorld - startingPosition).SafeNormalize(Vector2.UnitY).RotatedByRandom(0.1f);
|
||||
int drop = Projectile.NewProjectile(source, startingPosition, directionToMouse * 15f, ModContent.ProjectileType<FlakToxicannonHoldout>(), d, 0f, Player.whoAmI);
|
||||
Vector2 startingPosition = Main.MouseWorld - Vector2.UnitY.RotatedByRandom(0.3f) * 1250f;
|
||||
Vector2 directionToMouse = (Main.MouseWorld - startingPosition).SafeNormalize(Vector2.UnitX);
|
||||
int drop = Projectile.NewProjectile(source, startingPosition, directionToMouse * 15f, ModContent.ProjectileType<AcidBarrelDrop>(), d, 0f, Player.whoAmI, 3);
|
||||
if (drop.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[drop].penetrate = 2;
|
||||
@@ -4669,7 +4682,7 @@ namespace CalamityMod.CalPlayer
|
||||
return rogueStealth >= rogueStealthMax * consumptionMult;
|
||||
}
|
||||
|
||||
internal void ConsumeStealthByAttacking()
|
||||
public void ConsumeStealthByAttacking()
|
||||
{
|
||||
stealthStrikeThisFrame = true;
|
||||
stealthAcceleration = 1f; // Reset acceleration when you attack
|
||||
|
||||
@@ -127,6 +127,8 @@ namespace CalamityMod.CalPlayer
|
||||
dashDelayToApply = BalancingConstants.UniversalShieldSlamCooldown;
|
||||
else if (UsedDash.CollisionType == DashCollisionType.ShieldBonk)
|
||||
dashDelayToApply = BalancingConstants.UniversalShieldBonkCooldown;
|
||||
if (DashID == "Deep Diver")
|
||||
dashDelayToApply = 23;
|
||||
|
||||
float dashSpeed = 12f;
|
||||
float dashSpeedDecelerationFactor = 0.985f;
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.CalPlayer
|
||||
Rectangle screenArea = new Rectangle((int)Main.screenPosition.X - 500, (int)Main.screenPosition.Y - 50, Main.screenWidth + 1000, Main.screenHeight + 100);
|
||||
int dustDrawn = 0;
|
||||
float maxShroomDust = Main.maxDustToDraw / 2;
|
||||
Color shroomColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, 0);
|
||||
Color shroomColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, Main.DiscoR);
|
||||
for (int i = 0; i < Main.maxDustToDraw; i++)
|
||||
{
|
||||
Dust dust = Main.dust[i];
|
||||
@@ -104,6 +104,10 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
else // This is such a stupid way to reset this but you can't just put it in ResetEffects
|
||||
{
|
||||
calamityPlayer.trippyLevel = 1;
|
||||
}
|
||||
|
||||
// TODO -- rogue stealth visuals are an utter catastrophe and should be fully destroyed on next stealth rework
|
||||
if (calamityPlayer.rogueStealth > 0f && calamityPlayer.rogueStealthMax > 0f && Player.townNPCs < 3f && CalamityConfig.Instance.StealthInvisibility)
|
||||
@@ -291,6 +295,9 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (calamityPlayer.vaporfied && drawInfo.shadow == 0f)
|
||||
Vaporfied.DrawEffects(drawInfo);
|
||||
|
||||
if (calamityPlayer.vHex && drawInfo.shadow == 0f)
|
||||
VulnerabilityHex.DrawEffects(drawInfo);
|
||||
#endregion
|
||||
|
||||
if (calamityPlayer.PinkJellyRegen && drawInfo.shadow == 0f)
|
||||
|
||||
@@ -443,7 +443,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (Player.FindBuffIndex(BuffID.Gills) > -1 && DownedBossSystem.downedCalamitasClone && (attempt.legendary || (attempt.veryrare && Main.rand.NextBool())))
|
||||
if (Player.FindBuffIndex(BuffID.Gills) > -1 && DownedBossSystem.downedLeviathan && (attempt.legendary || (attempt.veryrare && Main.rand.NextBool())))
|
||||
{
|
||||
itemDrop = ModContent.ItemType<Floodtide>();
|
||||
}
|
||||
|
||||
@@ -135,11 +135,21 @@ namespace CalamityMod.CalPlayer
|
||||
NetMessage.SendData(MessageID.Dodge, -1, -1, null, Player.whoAmI, 1f, 0f, 0f, 0, 0, 0);
|
||||
}
|
||||
|
||||
public void AbyssMirrorDodge()
|
||||
public void AbyssMirrorDodge(double dodgeDamageGateValuePercent, int dodgeDamageGateValue, int hitDamage)
|
||||
{
|
||||
double maxCooldownDurationDamagePercent = 0.5;
|
||||
int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
|
||||
|
||||
// Just in case...
|
||||
if (maxCooldownDurationDamageValue <= 0)
|
||||
maxCooldownDurationDamageValue = 1;
|
||||
|
||||
float cooldownDurationScalar = MathHelper.Clamp((hitDamage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
|
||||
|
||||
if (Player.whoAmI == Main.myPlayer && abyssalMirror && !eclipseMirror)
|
||||
{
|
||||
Player.AddCooldown(GlobalDodge.ID, BalancingConstants.MirrorDodgeCooldown, true, "abyssmirror");
|
||||
int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.MirrorDodgeCooldownMin, BalancingConstants.MirrorDodgeCooldownMax, cooldownDurationScalar);
|
||||
Player.AddCooldown(GlobalDodge.ID, cooldownDuration, true, "abyssmirror");
|
||||
|
||||
// TODO -- why is this here?
|
||||
Player.noKnockback = true;
|
||||
@@ -169,11 +179,21 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
public void EclipseMirrorDodge()
|
||||
public void EclipseMirrorDodge(double dodgeDamageGateValuePercent, int dodgeDamageGateValue, int hitDamage)
|
||||
{
|
||||
double maxCooldownDurationDamagePercent = 0.5;
|
||||
int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
|
||||
|
||||
// Just in case...
|
||||
if (maxCooldownDurationDamageValue <= 0)
|
||||
maxCooldownDurationDamageValue = 1;
|
||||
|
||||
float cooldownDurationScalar = MathHelper.Clamp((hitDamage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
|
||||
|
||||
if (Player.whoAmI == Main.myPlayer && eclipseMirror)
|
||||
{
|
||||
Player.AddCooldown(GlobalDodge.ID, BalancingConstants.MirrorDodgeCooldown, true, "eclipsemirror");
|
||||
int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.MirrorDodgeCooldownMin, BalancingConstants.MirrorDodgeCooldownMax, cooldownDurationScalar);
|
||||
Player.AddCooldown(GlobalDodge.ID, cooldownDuration, true, "eclipsemirror");
|
||||
|
||||
// TODO -- why is this here?
|
||||
Player.noKnockback = true;
|
||||
@@ -628,6 +648,7 @@ namespace CalamityMod.CalPlayer
|
||||
Item heldItem = Player.ActiveItem();
|
||||
|
||||
bool wearingForbiddenSet = Player.armor[0].type == ItemID.AncientBattleArmorHat && Player.armor[1].type == ItemID.AncientBattleArmorShirt && Player.armor[2].type == ItemID.AncientBattleArmorPants;
|
||||
|
||||
bool forbiddenWithMagicWeapon = wearingForbiddenSet && heldItem.CountsAsClass<MagicDamageClass>();
|
||||
bool gemTechBlueGem = GemTechSet && GemTechState.IsBlueGemActive;
|
||||
|
||||
@@ -742,9 +763,8 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (transformer)
|
||||
{
|
||||
if (npc.type == NPCID.BlueJellyfish || npc.type == NPCID.PinkJellyfish || npc.type == NPCID.GreenJellyfish ||
|
||||
npc.type == NPCID.FungoFish || npc.type == NPCID.BloodJelly || npc.type == NPCID.AngryNimbus || npc.type == NPCID.GigaZapper ||
|
||||
npc.type == NPCID.MartianTurret || npc.type == ModContent.NPCType<Stormlion>() || npc.type == ModContent.NPCType<GhostBell>() || npc.type == ModContent.NPCType<BoxJellyfish>())
|
||||
if (npc.type == NPCID.BlueJellyfish || npc.type == NPCID.PinkJellyfish || npc.type == NPCID.GreenJellyfish || npc.type == NPCID.FungoFish ||
|
||||
npc.type == NPCID.BloodJelly || npc.type == ModContent.NPCType<Stormlion>() || npc.type == ModContent.NPCType<GhostBell>() || npc.type == ModContent.NPCType<BoxJellyfish>())
|
||||
contactDamageReduction += 0.5;
|
||||
}
|
||||
|
||||
@@ -872,9 +892,21 @@ namespace CalamityMod.CalPlayer
|
||||
// This should probably be changed so that when the evolution reflects it gives you 1 frame of guaranteed free dodging everything.
|
||||
if (CalamityLists.projectileDestroyExceptionList.TrueForAll(x => proj.type != x) && proj.active && !proj.friendly && proj.hostile && proj.damage > 0)
|
||||
{
|
||||
double dodgeDamageGateValuePercent = 0.05;
|
||||
int dodgeDamageGateValue = (int)Math.Round(Player.statLifeMax2 * dodgeDamageGateValuePercent);
|
||||
|
||||
// Reflects count as dodges. They share the timer and can be disabled by Armageddon right click.
|
||||
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID))
|
||||
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID) && proj.damage >= dodgeDamageGateValue)
|
||||
{
|
||||
double maxCooldownDurationDamagePercent = 0.5;
|
||||
int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
|
||||
|
||||
// Just in case...
|
||||
if (maxCooldownDurationDamageValue <= 0)
|
||||
maxCooldownDurationDamageValue = 1;
|
||||
|
||||
float cooldownDurationScalar = MathHelper.Clamp((proj.damage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
|
||||
|
||||
// The Evolution
|
||||
if (evolution)
|
||||
{
|
||||
@@ -889,7 +921,9 @@ namespace CalamityMod.CalPlayer
|
||||
evolutionLifeRegenCounter = 300;
|
||||
projTypeJustHitBy = proj.type;
|
||||
|
||||
Player.AddCooldown(GlobalDodge.ID, BalancingConstants.EvolutionReflectCooldown);
|
||||
int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.EvolutionReflectCooldownMin, BalancingConstants.EvolutionReflectCooldownMax, cooldownDurationScalar);
|
||||
Player.AddCooldown(GlobalDodge.ID, cooldownDuration);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1283,27 +1317,44 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (proj.type == ProjectileID.FrostBeam && !Player.frozen && !gState)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<GlacialState>(), 120);
|
||||
Player.AddBuff(ModContent.BuffType<GlacialState>(), 60);
|
||||
}
|
||||
else if (proj.type == ProjectileID.DeathLaser || proj.type == ProjectileID.RocketSkeleton)
|
||||
else if (proj.type == ProjectileID.DeathLaser || proj.type == ProjectileID.RocketSkeleton || proj.type == ProjectileID.BombSkeletronPrime)
|
||||
{
|
||||
Player.AddBuff(BuffID.OnFire, 240);
|
||||
Player.AddBuff(BuffID.OnFire, 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.Skull)
|
||||
{
|
||||
Player.AddBuff(BuffID.Weak, 300);
|
||||
Player.AddBuff(BuffID.Weak, 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CursedFlameHostile)
|
||||
else if (proj.type == ProjectileID.CursedFlameHostile || proj.type == ProjectileID.EyeFire)
|
||||
{
|
||||
Player.AddBuff(BuffID.CursedInferno, 120);
|
||||
// Guaranteed Cursed Inferno for 1 second (vanilla also has a 68.75% chance of Cursed Inferno for 2 to 3 seconds)
|
||||
Player.AddBuff(BuffID.CursedInferno, 60);
|
||||
}
|
||||
else if (proj.type == ProjectileID.Stinger || proj.type == ProjectileID.QueenBeeStinger)
|
||||
{
|
||||
// 66.6% chance of Poison for 3 seconds, 1 guaranteed second of Poison otherwise (vanilla also has a 33.3% chance of Poison for 10 seconds)
|
||||
if (Main.rand.Next(3) > 0)
|
||||
Player.AddBuff(BuffID.Poisoned, 180);
|
||||
else
|
||||
Player.AddBuff(BuffID.Poisoned, 60);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PoisonSeedPlantera)
|
||||
{
|
||||
// 75% chance of Poison for 3 to 5 seconds, guaranteed Poison for 2 seconds (vanilla also has a 50% chance of Poison for 3 to 7 seconds)
|
||||
if (Main.rand.Next(4) > 0)
|
||||
Player.AddBuff(BuffID.Poisoned, Main.rand.Next(180, 301));
|
||||
else
|
||||
Player.AddBuff(BuffID.Poisoned, 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.ThornBall)
|
||||
{
|
||||
Player.AddBuff(BuffID.Poisoned, 480);
|
||||
Player.AddBuff(BuffID.Poisoned, 300);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossIceMist)
|
||||
{
|
||||
Player.AddBuff(BuffID.Frozen, 90);
|
||||
Player.AddBuff(BuffID.Frozen, 60);
|
||||
Player.AddBuff(BuffID.Chilled, 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossLightningOrbArc)
|
||||
@@ -1320,35 +1371,35 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalBolt || proj.type == ProjectileID.PhantasmalEye)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 120);
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 60);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalSphere)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 240);
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalDeathray)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 400);
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 300);
|
||||
}
|
||||
else if (proj.type == ProjectileID.FairyQueenLance || proj.type == ProjectileID.HallowBossRainbowStreak || proj.type == ProjectileID.HallowBossSplitShotCore)
|
||||
{
|
||||
Player.AddBuff(Main.dayTime ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 120);
|
||||
Player.AddBuff(Main.dayTime ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 60);
|
||||
}
|
||||
else if (proj.type == ProjectileID.HallowBossLastingRainbow)
|
||||
{
|
||||
Player.AddBuff(Main.dayTime ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 160);
|
||||
Player.AddBuff(Main.dayTime ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.FairyQueenSunDance)
|
||||
{
|
||||
Player.AddBuff(Main.dayTime ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 200);
|
||||
Player.AddBuff(Main.dayTime ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>(), 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.BloodNautilusShot)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 240);
|
||||
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.BloodShot)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 180);
|
||||
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 60);
|
||||
}
|
||||
else if (proj.type == ProjectileID.RuneBlast && Main.zenithWorld)
|
||||
{
|
||||
@@ -1373,9 +1424,21 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
double dodgeDamageGateValuePercent = 0.05;
|
||||
int dodgeDamageGateValue = (int)Math.Round(Player.statLifeMax2 * dodgeDamageGateValuePercent);
|
||||
|
||||
// Reflects count as dodges. They share the timer and can be disabled by global dodge disabling effects.
|
||||
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID))
|
||||
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID) && proj.damage >= dodgeDamageGateValue)
|
||||
{
|
||||
double maxCooldownDurationDamagePercent = 0.5;
|
||||
int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
|
||||
|
||||
// Just in case...
|
||||
if (maxCooldownDurationDamageValue <= 0)
|
||||
maxCooldownDurationDamageValue = 1;
|
||||
|
||||
float cooldownDurationScalar = MathHelper.Clamp((proj.damage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
|
||||
|
||||
if (daedalusReflect && !evolution)
|
||||
{
|
||||
proj.hostile = false;
|
||||
@@ -1383,7 +1446,9 @@ namespace CalamityMod.CalPlayer
|
||||
proj.velocity *= -1f;
|
||||
proj.penetrate = 1;
|
||||
Player.GiveIFrames(20, false);
|
||||
Player.AddCooldown(GlobalDodge.ID, BalancingConstants.DaedalusReflectCooldown);
|
||||
|
||||
int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.DaedalusReflectCooldownMin, BalancingConstants.DaedalusReflectCooldownMax, cooldownDurationScalar);
|
||||
Player.AddCooldown(GlobalDodge.ID, cooldownDuration);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1402,21 +1467,14 @@ namespace CalamityMod.CalPlayer
|
||||
if (info.Damage < 1 /* || (godSlayerDamage && info.Damage <= 80) */)
|
||||
return true;
|
||||
|
||||
// If this hit was marked to be completely ignored due to shield absorption, then ignore it.
|
||||
// If this hit was marked to be completely ignored due to shield absorption, then process Adrenaline changes and ignore it.
|
||||
if (freeDodgeFromShieldAbsorption)
|
||||
{
|
||||
freeDodgeFromShieldAbsorption = false;
|
||||
|
||||
// 20FEB2024: Ozzatron: Hits fully absorbed by shields remove half of your current Adrenaline.
|
||||
if (AdrenalineEnabled)
|
||||
{
|
||||
// Draedon's Heart instead pauses for half the usual duration.
|
||||
if (draedonsHeart)
|
||||
nanomachinesLockoutTimer += DraedonsHeart.NanomachinePauseAfterShieldDamage;
|
||||
else if (adrenaline >= 0f)
|
||||
adrenaline /= 2f;
|
||||
}
|
||||
|
||||
// If using Draedon's Heart, it pauses for half the typical duration.
|
||||
LoseAdrenalineOnHurt(info, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1456,13 +1514,26 @@ namespace CalamityMod.CalPlayer
|
||||
public override bool ConsumableDodge(Player.HurtInfo info)
|
||||
{
|
||||
// Vanilla dodges are gated behind the global dodge cooldown
|
||||
if (!Player.HasCooldown(GlobalDodge.ID))
|
||||
// The dodges will only trigger if the player has taken greater than or equal to 5% of their max HP in damage
|
||||
double dodgeDamageGateValuePercent = 0.05;
|
||||
int dodgeDamageGateValue = (int)Math.Round(Player.statLifeMax2 * dodgeDamageGateValuePercent);
|
||||
if (!Player.HasCooldown(GlobalDodge.ID) && info.Damage >= dodgeDamageGateValue)
|
||||
{
|
||||
double maxCooldownDurationDamagePercent = 0.5;
|
||||
int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
|
||||
|
||||
// Just in case...
|
||||
if (maxCooldownDurationDamageValue <= 0)
|
||||
maxCooldownDurationDamageValue = 1;
|
||||
|
||||
float cooldownDurationScalar = MathHelper.Clamp((info.Damage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
|
||||
|
||||
// Re-implementation of vanilla item Black Belt as a consumable dodge
|
||||
if (Player.whoAmI == Main.myPlayer && Player.blackBelt)
|
||||
{
|
||||
Player.NinjaDodge();
|
||||
Player.AddCooldown(GlobalDodge.ID, BalancingConstants.BeltDodgeCooldown);
|
||||
int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.BeltDodgeCooldownMin, BalancingConstants.BeltDodgeCooldownMax, cooldownDurationScalar);
|
||||
Player.AddCooldown(GlobalDodge.ID, cooldownDuration);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1470,7 +1541,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.whoAmI == Main.myPlayer && Player.brainOfConfusionItem != null && !Player.brainOfConfusionItem.IsAir)
|
||||
{
|
||||
Player.BrainOfConfusionDodge();
|
||||
int cooldownTime = amalgam ? BalancingConstants.AmalgamDodgeCooldown : BalancingConstants.BrainDodgeCooldown;
|
||||
int cooldownTime = amalgam ?
|
||||
(int)MathHelper.Lerp(BalancingConstants.AmalgamDodgeCooldownMin, BalancingConstants.AmalgamDodgeCooldownMax, cooldownDurationScalar) :
|
||||
(int)MathHelper.Lerp(BalancingConstants.BrainDodgeCooldownMin, BalancingConstants.BrainDodgeCooldownMax, cooldownDurationScalar);
|
||||
Player.AddCooldown(GlobalDodge.ID, cooldownTime);
|
||||
return true;
|
||||
}
|
||||
@@ -1494,16 +1567,16 @@ namespace CalamityMod.CalPlayer
|
||||
return true;
|
||||
|
||||
// Mirror evades do not work if the global dodge cooldown is active. This cooldown can be triggered by either mirror.
|
||||
if (!Player.HasCooldown(GlobalDodge.ID))
|
||||
if (!Player.HasCooldown(GlobalDodge.ID) && info.Damage >= dodgeDamageGateValue)
|
||||
{
|
||||
if (eclipseMirror)
|
||||
{
|
||||
EclipseMirrorDodge();
|
||||
EclipseMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, info.Damage);
|
||||
return true;
|
||||
}
|
||||
else if (abyssalMirror)
|
||||
{
|
||||
AbyssMirrorDodge();
|
||||
AbyssMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, info.Damage);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1901,6 +1974,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
int bleedoutToApply = info.Damage - ChaliceOfTheBloodGod.MinAllowedDamage;
|
||||
chaliceBleedoutBuffer += bleedoutToApply;
|
||||
chaliceHitOriginalDamage = info.Damage;
|
||||
info.Damage = ChaliceOfTheBloodGod.MinAllowedDamage;
|
||||
|
||||
// Defense damage is applied here.
|
||||
@@ -2053,21 +2127,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Lose adrenaline on hit, unless using Draedon's Heart.
|
||||
if (AdrenalineEnabled)
|
||||
{
|
||||
// Being hit for zero from Paladin's Shield damage share does not cancel Adrenaline.
|
||||
// Adrenaline is not lost when hit if using Draedon's Heart.
|
||||
// Adrenaline is not lost when an empowered parry is performed with blazing core (reduces damage to 1, but not 0)
|
||||
if (!draedonsHeart && !blazingCoreEmpoweredParry && !adrenalineModeActive && hurtInfo.Damage > 0)
|
||||
{
|
||||
if (adrenaline >= adrenalineMax)
|
||||
{
|
||||
SoundEngine.PlaySound(AdrenalineHurtSound, Player.Center);
|
||||
}
|
||||
adrenaline = 0f;
|
||||
}
|
||||
|
||||
// If using Draedon's Heart and not actively healing with Nanomachines, pause generation briefly.
|
||||
if (draedonsHeart && !adrenalineModeActive)
|
||||
nanomachinesLockoutTimer += DraedonsHeart.NanomachinePauseAfterDamage;
|
||||
LoseAdrenalineOnHurt(hurtInfo, false);
|
||||
}
|
||||
|
||||
if (evilSmasherBoost > 0)
|
||||
@@ -2191,8 +2251,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (tarraMelee)
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
Player.AddBuff(ModContent.BuffType<TarraLifeRegen>(), 120);
|
||||
Player.AddBuff(ModContent.BuffType<TarraLifeRegen>(), 120);
|
||||
}
|
||||
else if (xerocSet)
|
||||
{
|
||||
@@ -2201,8 +2260,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (reaverDefense)
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
Player.AddBuff(ModContent.BuffType<ReaverRage>(), 180);
|
||||
Player.AddBuff(ModContent.BuffType<ReaverRage>(), 180);
|
||||
}
|
||||
|
||||
if ((fBarrier || (aquaticHeart && NPC.downedBoss3)) && !areThereAnyDamnBosses)
|
||||
@@ -2838,7 +2896,13 @@ namespace CalamityMod.CalPlayer
|
||||
// Play a sound from taking defense damage.
|
||||
if (hurtSoundTimer == 0 && Main.myPlayer == Player.whoAmI)
|
||||
{
|
||||
SoundEngine.PlaySound(DefenseDamageSound with { Volume = DefenseDamageSound.Volume * 0.75f }, Player.Center);
|
||||
double maxVolumeDefenseDamageScalar = Main.masterMode ? 0.7 : CalamityWorld.death ? 0.6 : CalamityWorld.revenge ? 0.55 : Main.expertMode ? 0.5 : 0.4;
|
||||
float maxVolumeDefenseDamage = (float)Math.Round(Player.statDefense * maxVolumeDefenseDamageScalar);
|
||||
float minVolume = 0.5f;
|
||||
float maxVolume = 1f;
|
||||
float lerpAmount = MathHelper.Clamp(defenseDamage / maxVolumeDefenseDamage, 0f, 1f);
|
||||
float defenseDamageSoundVolumeMultiplier = MathHelper.Lerp(minVolume, maxVolume, lerpAmount);
|
||||
SoundEngine.PlaySound(DefenseDamageSound with { Volume = DefenseDamageSound.Volume * defenseDamageSoundVolumeMultiplier }, Player.Center);
|
||||
hurtSoundTimer = 30;
|
||||
}
|
||||
|
||||
@@ -2849,5 +2913,72 @@ namespace CalamityMod.CalPlayer
|
||||
CombatText.NewText(location, messageColor, Language.GetTextValue(text));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Adrenaline Loss Function
|
||||
/// <summary>
|
||||
/// Causes the player to lose Adrenaline based on an incoming hit. The behavior differs based on energy shields or Draedon's Heart.
|
||||
/// </summary>
|
||||
/// <param name="hurtInfo">The incoming damage event to the player.</param>
|
||||
/// <param name="fullyAbsorbedByShield">Whether or not the hit was fully absorbed by one or more energy shields. Tends to halve Adrenaline loss.</param>
|
||||
private void LoseAdrenalineOnHurt(Player.HurtInfo hurtInfo, bool fullyAbsorbedByShield = false)
|
||||
{
|
||||
// Being hit for zero from Paladin's Shield damage share has no effects on Adrenaline, regardless of all other circumstances.
|
||||
// Likewise, being struck while Adrenaline is actively burning has no effects on Adrenaline.
|
||||
if (hurtInfo.Damage <= 0 || adrenalineModeActive)
|
||||
return;
|
||||
|
||||
// Draedon's Heart pauses for half the usual duration on a shield hit.
|
||||
// Otherwise, nothing happens here because no Adrenaline is actually lost.
|
||||
if (draedonsHeart)
|
||||
{
|
||||
int pauseTime = fullyAbsorbedByShield ? DraedonsHeart.NanomachinePauseAfterShieldDamage : DraedonsHeart.NanomachinePauseAfterDamage;
|
||||
adrenalinePauseTimer += pauseTime;
|
||||
}
|
||||
|
||||
// Standard Adrenaline behavior
|
||||
else
|
||||
{
|
||||
// Regular Adrenaline pauses on any hit, even if you lose all Adrenaline.
|
||||
adrenalinePauseTimer += BalancingConstants.AdrenalinePauseAfterDamage;
|
||||
|
||||
// Play a sound if Adrenaline was lost from full (this means Adrenaline DR helped mitigate the hit).
|
||||
// If this occurs, since Adrenaline DR helped mitigate the hit's damage, we can't allow the amount of Adrenaline lost to actually be reduced.
|
||||
bool hitAtFullAdrenaline = adrenaline >= adrenalineMax;
|
||||
if (hitAtFullAdrenaline)
|
||||
{
|
||||
SoundEngine.PlaySound(AdrenalineHurtSound, Player.Center);
|
||||
adrenaline = 0f;
|
||||
return;
|
||||
}
|
||||
|
||||
// 19MAR2024: Ozzatron: Chalice makes you lose adrenaline based on the damage you would have suffered in total.
|
||||
int damageToUse = hurtInfo.Damage;
|
||||
if (chaliceOfTheBloodGod && chaliceHitOriginalDamage > 0)
|
||||
{
|
||||
damageToUse = chaliceHitOriginalDamage;
|
||||
// Maybe at some point in the future, tracking this value will be useful elsewhere. Until then, it's only used here, so it is reset here.
|
||||
chaliceHitOriginalDamage = 0;
|
||||
}
|
||||
|
||||
// Calculate the amount of Adrenaline to lose. This is done in 3 steps:
|
||||
// 1. Find out how much %HP the player lost (or was absorbed by a shield).
|
||||
// 2. Use an inverse lerp to calculate the Adrenaline loss scaling down for very small hits (5% HP or less).
|
||||
// 3. Re-scale the lerp result into a % of Adrenaline loss from 10% (min loss) to 100%.
|
||||
float damageMaxHPRatio = (float)damageToUse / Player.statLifeMax2;
|
||||
float smallHitAdrenalineLossRatio = (float)Utils.GetLerpValue(0f, BalancingConstants.AdrenalineFalloffTinyHitHealthRatio, damageMaxHPRatio, true);
|
||||
float adrenalineLossFraction = MathHelper.Lerp(BalancingConstants.MinimumAdrenalineLoss, 1f, smallHitAdrenalineLossRatio);
|
||||
float adrenalineToLose = adrenaline * adrenalineLossFraction;
|
||||
|
||||
// If the hit was fully absorbed by a shield, then lose half that much instead.
|
||||
if (fullyAbsorbedByShield)
|
||||
adrenalineToLose /= 2f;
|
||||
|
||||
// Actually subtract Adrenaline.
|
||||
adrenaline -= adrenalineToLose;
|
||||
if (adrenaline < 0f)
|
||||
adrenaline = 0f;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -103,7 +103,7 @@ namespace CalamityMod.CalPlayer
|
||||
ApplyDoTDebuff(bFlames, abaddon ? 10 : 30, purity);
|
||||
ApplyDoTDebuff(nightwither, reducedNightwitherDamage ? 20 : 40, purity);
|
||||
ApplyDoTDebuff(hFlames, reducedHolyFlamesDamage ? 20 : 40, purity);
|
||||
ApplyDoTDebuff(vHex, 30);
|
||||
ApplyDoTDebuff(vHex, 35);
|
||||
ApplyDoTDebuff(cDepth, 18, purity);
|
||||
ApplyDoTDebuff(astralInfection, 24, infectedJewel || purity);
|
||||
ApplyDoTDebuff(pFlames, 30, purity);
|
||||
|
||||
@@ -7,6 +7,7 @@ using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Buffs.Summon;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.DataStructures;
|
||||
@@ -364,11 +365,6 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
// Adjusts the life steal cap in rev/death
|
||||
float lifeStealCap = BossRushEvent.BossRushActive ? 30f : CalamityWorld.death ? 45f : 60f;
|
||||
if (Player.lifeSteal > lifeStealCap)
|
||||
Player.lifeSteal = lifeStealCap;
|
||||
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
// Hallowed Armor nerf
|
||||
@@ -608,7 +604,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Apply the adrenaline change and cap adrenaline in both directions.
|
||||
// Changes are only applied if the Adrenaline mechanic is available.
|
||||
if (AdrenalineEnabled && nanomachinesLockoutTimer == 0)
|
||||
if (AdrenalineEnabled && adrenalinePauseTimer == 0)
|
||||
{
|
||||
adrenaline += adrenalineDiff;
|
||||
if (adrenaline < 0f)
|
||||
@@ -629,8 +625,8 @@ namespace CalamityMod.CalPlayer
|
||||
playFullAdrenalineSound = true;
|
||||
}
|
||||
|
||||
if (nanomachinesLockoutTimer > 0)
|
||||
nanomachinesLockoutTimer--;
|
||||
if (adrenalinePauseTimer > 0)
|
||||
adrenalinePauseTimer--;
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
@@ -891,14 +887,37 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
// Life Steal nerf
|
||||
// Reduces Normal Mode life steal recovery rate from 0.6/s to 0.5/s
|
||||
// Reduces Expert Mode life steal recovery rate from 0.5/s to 0.35/s
|
||||
// Revengeance Mode recovery rate is 0.3/s
|
||||
// Death Mode recovery rate is 0.25/s
|
||||
// Boss Rush recovery rate is 0.2/s
|
||||
float lifeStealCooldown = BossRushEvent.BossRushActive ? 0.3f : CalamityWorld.death ? 0.25f : CalamityWorld.revenge ? 0.2f : Main.expertMode ? 0.15f : 0.1f;
|
||||
Player.lifeSteal -= lifeStealCooldown;
|
||||
// Life Steal nerf in difficulties above Expert
|
||||
// Reduces the max possible life steal before the cooldown occurs (this mostly just nerfs how much life steal the player can get in bursts)
|
||||
// Master Mode nerfs this by an additional 10
|
||||
float lifeStealCap =
|
||||
CalamityWorld.death ? BalancingConstants.LifeStealCap_Death :
|
||||
CalamityWorld.revenge ? BalancingConstants.LifeStealCap_Revengeance :
|
||||
Main.expertMode ? BalancingConstants.LifeStealCap_Expert :
|
||||
BalancingConstants.LifeStealCap_Classic;
|
||||
|
||||
if (Main.masterMode)
|
||||
lifeStealCap -= BalancingConstants.LifeStealCapReduction_Master;
|
||||
|
||||
if (Player.lifeSteal > lifeStealCap)
|
||||
Player.lifeSteal = lifeStealCap;
|
||||
|
||||
// Normal Mode life steal recovery rate is 0.2/s
|
||||
// Expert Mode life steal recovery rate is 0.15/s
|
||||
// Revengeance Mode life steal recovery rate is 0.125/s
|
||||
// Death Mode life steal recovery rate is 0.1/s
|
||||
// Master Mode life steal recovery rate is nerfed by an additional 0.05/s
|
||||
float lifeStealRecoveryRateReduction =
|
||||
CalamityWorld.death ? BalancingConstants.LifeStealRecoveryRateReduction_Death :
|
||||
CalamityWorld.revenge ? BalancingConstants.LifeStealRecoveryRateReduction_Revengeance :
|
||||
Main.expertMode ? BalancingConstants.LifeStealRecoveryRateReduction_Expert :
|
||||
BalancingConstants.LifeStealRecoveryRateReduction_Classic;
|
||||
|
||||
if (Main.masterMode)
|
||||
lifeStealRecoveryRateReduction += BalancingConstants.LifeStealRecoveryRateReduction_Master;
|
||||
|
||||
if (Player.lifeSteal < lifeStealCap)
|
||||
Player.lifeSteal -= lifeStealRecoveryRateReduction;
|
||||
|
||||
// Bool for drawing boss health bar small text or not
|
||||
if (Main.myPlayer == Player.whoAmI)
|
||||
@@ -973,14 +992,12 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.IsUnderwater())
|
||||
{
|
||||
if (Main.myPlayer == Player.whoAmI)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<FrozenLungs>(), 2, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (iCantBreathe)
|
||||
{
|
||||
if (Player.breath > 0)
|
||||
if (Player.breath > 0 && Player.miscCounter % 2 == 0)
|
||||
Player.breath--;
|
||||
}
|
||||
}
|
||||
@@ -1177,6 +1194,8 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Player.statLife += 15;
|
||||
Player.HealEffect(15);
|
||||
if (Player.statLife > Player.statLifeMax2)
|
||||
Player.statLife = Player.statLifeMax2;
|
||||
|
||||
if (profanedCrystal)
|
||||
{
|
||||
@@ -1366,8 +1385,6 @@ namespace CalamityMod.CalPlayer
|
||||
bloodflareMageCooldown--;
|
||||
if (silvaMageCooldown > 0)
|
||||
silvaMageCooldown--;
|
||||
if (tarraMageHealCooldown > 0)
|
||||
tarraMageHealCooldown--;
|
||||
if (scuttlerCooldown > 0)
|
||||
scuttlerCooldown--;
|
||||
if (rogueCrownCooldown > 0)
|
||||
@@ -1709,9 +1726,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Raider Talisman bonus
|
||||
if (raiderTalisman && !StealthStrikeAvailable())
|
||||
{
|
||||
Player.GetCritChance<ThrowingDamageClass>() += raiderCritBonus;
|
||||
}
|
||||
|
||||
if (kamiBoost)
|
||||
Player.GetDamage<GenericDamageClass>() += 0.15f;
|
||||
@@ -1719,6 +1734,10 @@ namespace CalamityMod.CalPlayer
|
||||
if (avertorBonus)
|
||||
Player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
|
||||
// Reduce Ichor debuff defense reduction from -15 to -10
|
||||
if (Player.ichor)
|
||||
Player.statDefense += 5;
|
||||
|
||||
// Fairy Boots bonus
|
||||
if (fairyBoots)
|
||||
{
|
||||
@@ -2497,7 +2516,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (rRage)
|
||||
{
|
||||
Player.GetDamage<GenericDamageClass>() += 0.3f;
|
||||
Player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
Player.statDefense += 5;
|
||||
}
|
||||
|
||||
@@ -2554,10 +2573,8 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (aeroStone && !Player.slowFall && Player.wingTime < Player.wingTimeMax)
|
||||
{
|
||||
if (!Player.controlJump && Player.miscCounter % 5 == 0)
|
||||
{
|
||||
if (!Player.controlJump && Player.miscCounter % 4 == 0)
|
||||
Player.wingTime += 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (gShell)
|
||||
@@ -2619,6 +2636,8 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Player.statLife += 1;
|
||||
Player.HealEffect(1, false);
|
||||
if (Player.statLife > Player.statLifeMax2)
|
||||
Player.statLife = Player.statLifeMax2;
|
||||
|
||||
// Produce an implosion of blood themed dust so it's obvious an effect is occurring
|
||||
for (int i = 0; i < 3; ++i)
|
||||
@@ -2640,6 +2659,11 @@ namespace CalamityMod.CalPlayer
|
||||
if (CalamityMod.Instance.overhaul is null && CalamityConfig.Instance.FasterBaseSpeed)
|
||||
Player.moveSpeed += BalancingConstants.DefaultMoveSpeedBoost;
|
||||
|
||||
// Reduce how slow Chilled makes the player, because it's cancerous right now
|
||||
// The moveSpeed multiplier for Chilled in vanilla is 0.75, so we just multiply by 1.166667 here to make it 0.875, effectively cutting the reduction in half
|
||||
if (Player.chilled)
|
||||
Player.moveSpeed *= 1f + (1f / 6f);
|
||||
|
||||
if (cirrusDress)
|
||||
Player.moveSpeed -= 0.2f;
|
||||
|
||||
@@ -2814,7 +2838,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Reaver Tank set nuke flight time
|
||||
if (reaverDefense)
|
||||
flightTimeMult -= 0.2f;
|
||||
flightTimeMult -= 0.3f;
|
||||
|
||||
// Increase wing time
|
||||
if (Player.wingTimeMax > 0)
|
||||
@@ -2822,7 +2846,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (vHex)
|
||||
{
|
||||
Player.blind = true;
|
||||
Player.statDefense -= 20;
|
||||
|
||||
if (Player.wingTimeMax < 0)
|
||||
@@ -3058,13 +3081,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (deepDiver && Player.IsUnderwater())
|
||||
{
|
||||
Player.GetDamage<GenericDamageClass>() += 0.15f;
|
||||
Player.statDefense += 15;
|
||||
Player.moveSpeed += 0.15f;
|
||||
}
|
||||
|
||||
if (abyssalDivingSuit && !Player.IsUnderwater())
|
||||
{
|
||||
float moveSpeedLoss = (3 - abyssalDivingSuitPlateHits) * 0.2f;
|
||||
@@ -4177,7 +4193,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC npc = Main.npc[i];
|
||||
if (npc is null || !npc.active)
|
||||
if (npc is null || !npc.active || npc.type != ModContent.NPCType<AndroombaFriendly>())
|
||||
return;
|
||||
|
||||
bool holdingsol = ((Player.HeldItem.type >= ItemID.GreenSolution && Player.HeldItem.type <= ItemID.RedSolution) || (Player.HeldItem.type >= ItemID.SandSolution && Player.HeldItem.type <= ItemID.DirtSolution) || Player.HeldItem.type == ModContent.ItemType<AstralSolution>());
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Balancing;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
@@ -88,7 +89,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ItemID.PalladiumSword:
|
||||
if (!target.canGhostHeal || Player.moonLeech)
|
||||
if (Player.moonLeech)
|
||||
return;
|
||||
Player.lifeRegenTime += 2;
|
||||
break;
|
||||
@@ -110,10 +111,17 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ItemID.CandyCaneSword:
|
||||
if (!target.canGhostHeal || Player.moonLeech)
|
||||
|
||||
if (Player.moonLeech || Player.lifeSteal <= 0f || target.lifeMax <= 5)
|
||||
return;
|
||||
Player.statLife += 2;
|
||||
Player.HealEffect(2);
|
||||
|
||||
int heal = 2;
|
||||
Player.lifeSteal -= heal;
|
||||
Player.statLife += heal;
|
||||
Player.HealEffect(heal);
|
||||
if (Player.statLife > Player.statLifeMax2)
|
||||
Player.statLife = Player.statLifeMax2;
|
||||
|
||||
break;
|
||||
|
||||
case ItemID.DeathSickle:
|
||||
@@ -210,7 +218,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.PalladiumPike:
|
||||
if (!target.canGhostHeal || Player.moonLeech)
|
||||
if (Player.moonLeech)
|
||||
return;
|
||||
Player.lifeRegenTime += 2;
|
||||
break;
|
||||
@@ -232,10 +240,17 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.FruitcakeChakram:
|
||||
if (!target.canGhostHeal || Player.moonLeech)
|
||||
|
||||
if (Player.moonLeech || Main.player[Main.myPlayer].lifeSteal <= 0f || target.lifeMax <= 5)
|
||||
return;
|
||||
Player.statLife += 2;
|
||||
Player.HealEffect(2);
|
||||
|
||||
int heal = 2;
|
||||
Main.player[Main.myPlayer].lifeSteal -= heal;
|
||||
Player.statLife += heal;
|
||||
Player.HealEffect(heal);
|
||||
if (Player.statLife > Player.statLifeMax2)
|
||||
Player.statLife = Player.statLifeMax2;
|
||||
|
||||
break;
|
||||
|
||||
case ProjectileID.ObsidianSwordfish:
|
||||
@@ -1126,35 +1141,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
CalamityGlobalProjectile modProj = proj.Calamity();
|
||||
|
||||
// Spectre Damage set and Nebula set work on enemies which are "immune to lifesteal"
|
||||
if (!target.canGhostHeal)
|
||||
{
|
||||
if (Player.ghostHurt)
|
||||
{
|
||||
proj.ghostHurt(damage, target.Center, target);
|
||||
}
|
||||
|
||||
if (Player.setNebula && Player.nebulaCD == 0 && Main.rand.NextBool(3))
|
||||
{
|
||||
Player.nebulaCD = 30;
|
||||
int boosterType = Utils.SelectRandom(Main.rand, new int[]
|
||||
{
|
||||
ItemID.NebulaPickup1,
|
||||
ItemID.NebulaPickup2,
|
||||
ItemID.NebulaPickup3
|
||||
});
|
||||
var source = Player.GetSource_Misc("1");
|
||||
int nebulaBooster = Item.NewItem(source, target.Center, target.Size, boosterType, 1, false, 0, false, false);
|
||||
Main.item[nebulaBooster].velocity.Y = Main.rand.Next(-20, 1) * 0.2f;
|
||||
Main.item[nebulaBooster].velocity.X = Main.rand.Next(10, 31) * 0.2f * proj.direction;
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient)
|
||||
{
|
||||
NetMessage.SendData(MessageID.SyncItem, -1, -1, null, nebulaBooster, 0f, 0f, 0f, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bloodflareSet && !target.IsAnEnemy(false) && !Player.moonLeech)
|
||||
if (bloodflareSet && !target.IsAnEnemy(false) && !Player.moonLeech && target.lifeMax > 5)
|
||||
{
|
||||
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
|
||||
{
|
||||
@@ -1163,17 +1150,18 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill)
|
||||
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
|
||||
{
|
||||
target.Calamity().gladiatorOnKill = false;
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center.X, target.Center.Y, target.velocity.X / 2, target.velocity.Y / 2, ModContent.ProjectileType<GladiatorHealOrb>(), 0, 0f);
|
||||
}
|
||||
|
||||
if (Main.player[Main.myPlayer].lifeSteal > 0f && target.canGhostHeal && !Player.moonLeech)
|
||||
if (Main.player[Main.myPlayer].lifeSteal > 0f && !Player.moonLeech && target.lifeMax > 5)
|
||||
{
|
||||
// Increases the degree to which Spectre Healing set contributes to the lifesteal cap
|
||||
if (Player.ghostHeal && proj.CountsAsClass<MagicDamageClass>())
|
||||
{
|
||||
// This doesn't use Math.Round because it doesn't in vanilla
|
||||
float cooldownMult = 0.2f;
|
||||
cooldownMult -= proj.numHits * 0.05f;
|
||||
if (cooldownMult < 0f)
|
||||
@@ -1183,202 +1171,83 @@ namespace CalamityMod.CalPlayer
|
||||
Main.player[Main.myPlayer].lifeSteal -= cooldown;
|
||||
}
|
||||
|
||||
// Increases the degree to which Vampire Knives contribute to the lifesteal cap
|
||||
if (proj.type == ProjectileID.VampireKnife)
|
||||
{
|
||||
float cooldown = damage * 0.075f;
|
||||
if (cooldown < 0f)
|
||||
cooldown = 0f;
|
||||
|
||||
Main.player[Main.myPlayer].lifeSteal -= cooldown;
|
||||
}
|
||||
|
||||
// Increases the degree to which Bloodfire Arrows contribute to the lifesteal cap
|
||||
if (proj.type == ModContent.ProjectileType<BloodfireArrowProj>())
|
||||
{
|
||||
float cooldown = 6;
|
||||
if (cooldown < 0f)
|
||||
cooldown = 0f;
|
||||
|
||||
Main.player[Main.myPlayer].lifeSteal -= cooldown;
|
||||
}
|
||||
|
||||
if (vampiricTalisman && proj.CountsAsClass<RogueDamageClass>() && crit)
|
||||
{
|
||||
float heal = MathHelper.Clamp(damage * 0.011f, 0f, 5f);
|
||||
if ((int)heal > 0)
|
||||
{
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileID.VampireHeal, 1200f, 3f);
|
||||
float cooldown = heal * 2f;
|
||||
Main.player[Main.myPlayer].lifeSteal -= cooldown;
|
||||
}
|
||||
int heal = (int)Math.Round(damage * 0.015);
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(1f, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealAccessoryCooldownMultiplier);
|
||||
}
|
||||
|
||||
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && modProj.stealthStrike)
|
||||
{
|
||||
float cooldown = 20;
|
||||
Player.statLife += 2;
|
||||
Player.HealEffect(2);
|
||||
Main.player[Main.myPlayer].lifeSteal -= cooldown;
|
||||
}
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealAccessoryCooldownMultiplier);
|
||||
|
||||
if (target.IsAnEnemy(false))
|
||||
{
|
||||
if (bloodflareThrowing && proj.CountsAsClass<ThrowingDamageClass>() && crit && Main.rand.NextBool())
|
||||
{
|
||||
float projHitMult = 0.03f;
|
||||
projHitMult -= proj.numHits * 0.015f;
|
||||
if (projHitMult < 0f)
|
||||
projHitMult = 0f;
|
||||
|
||||
float cooldownMult = damage * projHitMult;
|
||||
if (cooldownMult < 0f)
|
||||
cooldownMult = 0f;
|
||||
|
||||
if (Player.lifeSteal > 0f)
|
||||
{
|
||||
Player.statLife += 1;
|
||||
Player.HealEffect(1);
|
||||
Player.lifeSteal -= cooldownMult * 2f;
|
||||
}
|
||||
}
|
||||
if (bloodflareThrowing && proj.CountsAsClass<ThrowingDamageClass>() && crit)
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
|
||||
if (bloodflareMelee && proj.IsTrueMelee())
|
||||
{
|
||||
int healAmount = Main.rand.Next(2) + 1;
|
||||
Player.statLife += healAmount;
|
||||
Player.HealEffect(healAmount);
|
||||
}
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
}
|
||||
|
||||
bool otherHealTypes = auricSet || silvaSet || tarraMage || ataxiaMage;
|
||||
|
||||
if (proj.CountsAsClass<MagicDamageClass>() && Player.ActiveItem().CountsAsClass<MagicDamageClass>())
|
||||
{
|
||||
if (manaOverloader && otherHealTypes)
|
||||
if (manaOverloader)
|
||||
{
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
float healMult = 0.2f;
|
||||
healMult -= proj.numHits * 0.05f;
|
||||
float heal = damage * healMult * (Player.statMana / (float)Player.statManaMax2);
|
||||
|
||||
if (heal > CalamityMod.lifeStealCap)
|
||||
heal = CalamityMod.lifeStealCap;
|
||||
|
||||
if (!CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
return;
|
||||
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ManaPolarizerHealOrb>(), 1200f, 3f);
|
||||
}
|
||||
double healMult = 0.2;
|
||||
healMult -= proj.numHits * healMult * 0.25;
|
||||
int heal = (int)Math.Round(damage * healMult * (Player.statMana / (double)Player.statManaMax2));
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ManaPolarizerHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealAccessoryCooldownMultiplier);
|
||||
}
|
||||
}
|
||||
|
||||
if (silvaSet)
|
||||
{
|
||||
float healMult = 0.03f;
|
||||
healMult -= proj.numHits * 0.015f;
|
||||
float heal = damage * healMult;
|
||||
|
||||
if (heal > CalamityMod.lifeStealCap)
|
||||
heal = CalamityMod.lifeStealCap;
|
||||
|
||||
if (!CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
return;
|
||||
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<SilvaOrb>(), 1200f, 3f);
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<SilvaOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
}
|
||||
else if (proj.CountsAsClass<MagicDamageClass>() && Player.ActiveItem().CountsAsClass<MagicDamageClass>())
|
||||
{
|
||||
if (manaOverloader)
|
||||
{
|
||||
float healMult = 0.2f;
|
||||
healMult -= proj.numHits * 0.05f;
|
||||
float heal = damage * healMult * (Player.statMana / (float)Player.statManaMax2);
|
||||
|
||||
if (heal > CalamityMod.lifeStealCap)
|
||||
heal = CalamityMod.lifeStealCap;
|
||||
|
||||
if (!CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
return;
|
||||
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ManaPolarizerHealOrb>(), 1200f, 3f);
|
||||
}
|
||||
|
||||
if (tarraMage)
|
||||
{
|
||||
if (tarraMageHealCooldown <= 0)
|
||||
{
|
||||
tarraMageHealCooldown = 90;
|
||||
|
||||
float healMult = 0.1f;
|
||||
healMult -= proj.numHits * 0.05f;
|
||||
float heal = damage * healMult;
|
||||
|
||||
if (heal > CalamityMod.lifeStealCap)
|
||||
heal = CalamityMod.lifeStealCap;
|
||||
|
||||
if (!CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
return;
|
||||
|
||||
Main.player[Main.myPlayer].lifeSteal -= heal * 6f;
|
||||
|
||||
int healAmount = (int)heal;
|
||||
Player.statLife += healAmount;
|
||||
Player.HealEffect(healAmount);
|
||||
|
||||
if (Player.statLife > Player.statLifeMax2)
|
||||
Player.statLife = Player.statLifeMax2;
|
||||
}
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ReaverHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
}
|
||||
else if (ataxiaMage)
|
||||
{
|
||||
float healMult = 0.1f;
|
||||
healMult -= proj.numHits * 0.05f;
|
||||
float heal = damage * healMult;
|
||||
|
||||
if (heal > CalamityMod.lifeStealCap)
|
||||
heal = CalamityMod.lifeStealCap;
|
||||
|
||||
if (!CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
return;
|
||||
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<HydrothermicHealOrb>(), 1200f, 3f);
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<HydrothermicHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
}
|
||||
}
|
||||
|
||||
if (reaverDefense)
|
||||
{
|
||||
float healMult = 0.2f;
|
||||
healMult -= proj.numHits * 0.05f;
|
||||
float heal = damage * healMult;
|
||||
|
||||
if (heal > CalamityMod.lifeStealCap)
|
||||
heal = CalamityMod.lifeStealCap;
|
||||
if (Main.rand.Next(10) > 0)
|
||||
heal = 0;
|
||||
|
||||
if (!CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
return;
|
||||
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ReaverHealOrb>(), 1200f, 3f);
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ReaverHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealReaverTankCooldownMultiplier);
|
||||
}
|
||||
|
||||
if (proj.CountsAsClass<ThrowingDamageClass>())
|
||||
{
|
||||
if (xerocSet && xerocDmg <= 0 && Player.ownedProjectileCounts[ProjectileType<EmpyreanEmber>()] < 3 && Player.ownedProjectileCounts[ProjectileType<EmpyreanBlast>()] < 3)
|
||||
{
|
||||
float healMult = 0.06f;
|
||||
healMult -= proj.numHits * 0.015f;
|
||||
float heal = damage * healMult;
|
||||
|
||||
if (heal > CalamityMod.lifeStealCap)
|
||||
heal = CalamityMod.lifeStealCap;
|
||||
|
||||
if (!CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
return;
|
||||
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<EmpyreanHealOrb>(), 1200f, 3f);
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<EmpyreanHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1386,7 +1255,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
public void ItemLifesteal(NPC target, Item item, int damage)
|
||||
{
|
||||
if (bloodflareSet && target.IsAnEnemy(false))
|
||||
if (bloodflareSet && target.IsAnEnemy(false) && target.lifeMax > 5)
|
||||
{
|
||||
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
|
||||
{
|
||||
@@ -1395,37 +1264,14 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (target.IsAnEnemy(false) && target.canGhostHeal && !Player.moonLeech)
|
||||
if (bloodflareMelee && item.CountsAsClass<MeleeDamageClass>() && target.lifeMax > 5)
|
||||
{
|
||||
if (bloodflareMelee && item.CountsAsClass<MeleeDamageClass>())
|
||||
if (target.IsAnEnemy(false) && Main.player[Main.myPlayer].lifeSteal > 0f && !Player.moonLeech)
|
||||
{
|
||||
int healAmount = Main.rand.Next(2) + 1;
|
||||
Player.statLife += healAmount;
|
||||
Player.HealEffect(healAmount);
|
||||
}
|
||||
}
|
||||
|
||||
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill)
|
||||
{
|
||||
target.Calamity().gladiatorOnKill = false;
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center.X, target.Center.Y, target.velocity.X / 2, target.velocity.Y / 2, ModContent.ProjectileType<GladiatorHealOrb>(), 0, 0f);
|
||||
}
|
||||
|
||||
if (reaverDefense)
|
||||
{
|
||||
if (Main.player[Main.myPlayer].lifeSteal > 0f && target.canGhostHeal && !Player.moonLeech)
|
||||
{
|
||||
float healMult = 0.2f;
|
||||
float heal = damage * healMult;
|
||||
|
||||
if (heal > CalamityMod.lifeStealCap)
|
||||
heal = CalamityMod.lifeStealCap;
|
||||
if (Main.rand.Next(10) > 0)
|
||||
heal = 0;
|
||||
|
||||
if ((int)heal > 0 && !Main.player[Main.myPlayer].moonLeech)
|
||||
int heal = 4;
|
||||
if (!Main.player[Main.myPlayer].moonLeech)
|
||||
{
|
||||
Main.player[Main.myPlayer].lifeSteal -= heal * 3f;
|
||||
Main.player[Main.myPlayer].lifeSteal -= heal * BalancingConstants.LifeStealSetBonusCooldownMultiplier;
|
||||
|
||||
float lowestHealthCheck = 0f;
|
||||
int healTarget = Player.whoAmI;
|
||||
@@ -1435,7 +1281,46 @@ namespace CalamityMod.CalPlayer
|
||||
if (otherPlayer.active && !otherPlayer.dead && ((!Player.hostile && !otherPlayer.hostile) || Player.team == otherPlayer.team))
|
||||
{
|
||||
float playerDist = Vector2.Distance(target.Center, otherPlayer.Center);
|
||||
if (playerDist < 1200f && (otherPlayer.statLifeMax2 - otherPlayer.statLife) > lowestHealthCheck)
|
||||
if (playerDist < BalancingConstants.LifeStealRange && (otherPlayer.statLifeMax2 - otherPlayer.statLife) > lowestHealthCheck)
|
||||
{
|
||||
lowestHealthCheck = otherPlayer.statLifeMax2 - otherPlayer.statLife;
|
||||
healTarget = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list
|
||||
var source = Player.GetSource_FromThis(ReaverHeadTank.HealOrbEntitySourceContext);
|
||||
Projectile.NewProjectile(source, target.Center, Vector2.Zero, ProjectileID.VampireHeal, 0, 0f, Player.whoAmI, healTarget, heal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
|
||||
{
|
||||
target.Calamity().gladiatorOnKill = false;
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ModContent.ProjectileType<GladiatorHealOrb>(), 0, 0f);
|
||||
}
|
||||
|
||||
if (reaverDefense)
|
||||
{
|
||||
if (Main.player[Main.myPlayer].lifeSteal > 0f && !Player.moonLeech && target.lifeMax > 5)
|
||||
{
|
||||
double healMult = 0.1;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (heal > 0 && !Main.player[Main.myPlayer].moonLeech)
|
||||
{
|
||||
Main.player[Main.myPlayer].lifeSteal -= heal * BalancingConstants.LifeStealReaverTankCooldownMultiplier;
|
||||
|
||||
float lowestHealthCheck = 0f;
|
||||
int healTarget = Player.whoAmI;
|
||||
for (int i = 0; i < Main.maxPlayers; i++)
|
||||
{
|
||||
Player otherPlayer = Main.player[i];
|
||||
if (otherPlayer.active && !otherPlayer.dead && ((!Player.hostile && !otherPlayer.hostile) || Player.team == otherPlayer.team))
|
||||
{
|
||||
float playerDist = Vector2.Distance(target.Center, otherPlayer.Center);
|
||||
if (playerDist < BalancingConstants.LifeStealRange && (otherPlayer.statLifeMax2 - otherPlayer.statLife) > lowestHealthCheck)
|
||||
{
|
||||
lowestHealthCheck = otherPlayer.statLifeMax2 - otherPlayer.statLife;
|
||||
healTarget = i;
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
dust.noGravity = false;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
}
|
||||
SoundEngine.PlaySound(SoundID.Item62 with { Volume = 0.6f, PitchVariance = 0.3f }, npc.position);
|
||||
SoundEngine.PlaySound(SoundID.Item62 with { Volume = 0.6f, PitchVariance = 0.3f }, npc.Center);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,14 @@
|
||||
using CalamityMod.Enums;
|
||||
using System;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Particles;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.CalPlayer.Dashes
|
||||
{
|
||||
@@ -10,42 +16,94 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
{
|
||||
public static new string ID => "Deep Diver";
|
||||
|
||||
public override DashCollisionType CollisionType => DashCollisionType.NoCollision;
|
||||
public override DashCollisionType CollisionType => DashCollisionType.ShieldSlam;
|
||||
|
||||
public override bool IsOmnidirectional => false;
|
||||
|
||||
public override float CalculateDashSpeed(Player player) => 25.9f;
|
||||
public override float CalculateDashSpeed(Player player) => 20f;
|
||||
public int Time = 0;
|
||||
|
||||
public override void OnDashEffects(Player player)
|
||||
{
|
||||
for (int d = 0; d < 60; d++)
|
||||
Time = 0;
|
||||
for (int m = 0; m < 3; m++)
|
||||
{
|
||||
Dust iceDashDust = Dust.NewDustDirect(player.position, player.width, player.height, DustID.Water, 0f, 0f, 100, default, 1.25f);
|
||||
iceDashDust.position += Main.rand.NextVector2Square(-5f, 5f);
|
||||
iceDashDust.velocity *= 0.2f;
|
||||
iceDashDust.scale *= Main.rand.NextFloat(1f, 1.2f);
|
||||
iceDashDust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
iceDashDust.noGravity = true;
|
||||
iceDashDust.fadeIn = 0.5f;
|
||||
PointParticle spark = new PointParticle(player.Center - player.velocity, -player.velocity * (0.08f * m), false, 25, 4f - (0.5f * m), (Main.rand.NextBool() ? Color.Aqua : Color.DodgerBlue) * 0.4f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
}
|
||||
|
||||
public override void MidDashEffects(Player player, ref float dashSpeed, ref float dashSpeedDecelerationFactor, ref float runSpeedDecelerationFactor)
|
||||
{
|
||||
for (int m = 0; m < 24; m++)
|
||||
Time++;
|
||||
for (int m = 0; m < 5; m++)
|
||||
{
|
||||
Dust iceDashDust = Dust.NewDustDirect(player.position + Vector2.UnitY * 4f, player.width, player.height - 8, DustID.Water, 0f, 0f, 100, default, 1.25f);
|
||||
iceDashDust.position += Main.rand.NextVector2Square(-5f, 5f);
|
||||
iceDashDust.velocity *= 0.2f;
|
||||
iceDashDust.scale *= Main.rand.NextFloat(1f, 1.2f);
|
||||
iceDashDust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
iceDashDust.noGravity = true;
|
||||
if (Main.rand.NextBool())
|
||||
iceDashDust.fadeIn = 0.5f;
|
||||
Vector2 dustVel3 = -player.velocity.RotatedBy(Main.rand.NextFloat(-0.3f, 0.3f)) * Main.rand.NextFloat(0.03f, 0.2f);
|
||||
Dust dust = Dust.NewDustPerfect(player.Center + new Vector2(Main.rand.NextFloat(-6f, 6f), Main.rand.NextFloat(-15f, 15f)) - (player.velocity * 1.7f), Main.rand.NextBool(7) ? 278 : 80, dustVel3);
|
||||
if (dust.type == 278)
|
||||
{
|
||||
dust.scale = 1.2f;
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.noGravity = false;
|
||||
dust.color = Main.rand.NextBool() ? Color.Aqua : Color.DodgerBlue;
|
||||
}
|
||||
else
|
||||
{
|
||||
dust.scale = Main.rand.NextFloat(0.6f, 1.8f);
|
||||
dust.alpha = 125;
|
||||
dust.noGravity = true;
|
||||
}
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
}
|
||||
if (Time % 2 == 0)
|
||||
{
|
||||
Vector2 dustVel = -player.velocity.RotatedBy(0.05f + MathHelper.Clamp(Time * 0.03f, 0, 0.55f)) * 0.75f;
|
||||
Vector2 dustVel2 = -player.velocity.RotatedBy(-0.05f - MathHelper.Clamp(Time * 0.03f, 0, 0.55f)) * 0.75f;
|
||||
|
||||
PointParticle spark = new PointParticle(player.Center + new Vector2(0, -15 * player.direction) + dustVel, dustVel, false, 8, 1.4f, (Main.rand.NextBool() ? Color.Aqua : Color.DodgerBlue) * 0.5f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
PointParticle spark2 = new PointParticle(player.Center + new Vector2(0, 15 * player.direction) + dustVel2, dustVel2, false, 8, 1.4f, (Main.rand.NextBool() ? Color.Aqua : Color.DodgerBlue) * 0.5f);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
}
|
||||
|
||||
player.velocity.X *= 0.967f;
|
||||
|
||||
// Dash at a faster speed than the default value.
|
||||
dashSpeed = 18f;
|
||||
dashSpeed = 25f;
|
||||
}
|
||||
|
||||
public override void OnHitEffects(Player player, NPC npc, IEntitySource source, ref DashHitContext hitContext)
|
||||
{
|
||||
SoundStyle hit = new("CalamityMod/Sounds/NPCHit/PerfSmallHit3");
|
||||
SoundEngine.PlaySound(hit with { Pitch = 0.7f, Volume = 0.4f }, player.Center);
|
||||
for (int i = 0; i <= 6; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(player.Center, Main.rand.NextBool() ? 278 : 132, player.velocity.RotatedByRandom(0.7f) * Main.rand.NextFloat(0.5f, 1f) + new Vector2(0, -3f));
|
||||
if (dust.type == 278)
|
||||
{
|
||||
dust.scale = 1.2f;
|
||||
dust.color = Main.rand.NextBool() ? Color.Aqua : Color.DodgerBlue;
|
||||
}
|
||||
else
|
||||
{
|
||||
dust.scale = 0.9f;
|
||||
}
|
||||
dust.noGravity = false;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
|
||||
}
|
||||
|
||||
// Define hit context variables.
|
||||
int hitDirection = player.direction;
|
||||
if (player.velocity.X != 0f)
|
||||
hitDirection = Math.Sign(player.velocity.X);
|
||||
hitContext.HitDirection = hitDirection;
|
||||
hitContext.PlayerImmunityFrames = DeepDiver.ShieldSlamIFrames;
|
||||
|
||||
// Define damage parameters.
|
||||
int dashDamage = DeepDiver.ShieldSlamDamage;
|
||||
hitContext.damageClass = DamageClass.Melee;
|
||||
hitContext.BaseDamage = player.ApplyArmorAccDamageBonusesTo(dashDamage);
|
||||
hitContext.BaseKnockback = DeepDiver.ShieldSlamKnockback;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Items.SummonItems;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.UI;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class HeldItemGlowMaskLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.HeldItem);
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
List<DrawData> existingDrawData = drawInfo.DrawDataCache;
|
||||
|
||||
if (drawPlayer.JustDroppedAnItem)
|
||||
return;
|
||||
|
||||
Item heldItem = drawInfo.heldItem;
|
||||
int itemType = heldItem.type;
|
||||
|
||||
if (itemType < ItemID.Count)
|
||||
return;
|
||||
|
||||
// This is ugly and I don't give a fuck.
|
||||
// If you want it to look better, do it yourself.
|
||||
Texture2D glowMask = default;
|
||||
if (itemType == ModContent.ItemType<IridescentExcalibur>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/IridescentExcaliburGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<AbyssShocker>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/AbyssShocker_mask").Value;
|
||||
else if (itemType == ModContent.ItemType<Apotheosis>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/ApotheosisGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<DeathhailStaff>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/DeathhailStaffGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<FatesReveal>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/FatesRevealGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<SoulPiercer>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<SubsumingVortex>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<EssenceFlayer>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/EssenceFlayerGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<Excelsus>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/ExcelsusGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<PrismaticBreaker>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/PrismaticBreakerGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<TerrorBlade>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<TheEnforcer>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<Auralis>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/AuralisGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<AuroraBlazer>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/AuroraBlazerGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<CleansingBlaze>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/CleansingBlazeGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<CosmicBolter>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/CosmicBolterGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<Deathwind>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/DeathwindGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<EtherealSubjugator>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Summon/EtherealSubjugatorGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<GreatswordofJudgement>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/GreatswordofJudgementGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<Orderbringer>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/OrderbringerGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<MajesticGuard>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/MajesticGuardGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<GrandGuardian>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/GrandGuardianGlow").Value;
|
||||
else if (itemType == ModContent.ItemType<NecroplasmicBeacon>())
|
||||
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/NecroplasmicBeaconGlow").Value;
|
||||
|
||||
if (glowMask == default)
|
||||
return;
|
||||
|
||||
if (drawPlayer.heldProj >= 0 && drawInfo.shadow == 0f && !drawInfo.heldProjOverHand)
|
||||
drawInfo.projectileDrawPosition = existingDrawData.Count;
|
||||
|
||||
float adjustedItemScale = drawPlayer.GetAdjustedItemScale(heldItem);
|
||||
//Main.instance.LoadItem(num);
|
||||
Vector2 position = new Vector2((int)(drawInfo.ItemLocation.X - Main.screenPosition.X), (int)(drawInfo.ItemLocation.Y - Main.screenPosition.Y));
|
||||
Rectangle itemDrawFrame = drawPlayer.GetItemDrawFrame(itemType);
|
||||
drawInfo.itemColor = Lighting.GetColor((int)((double)drawInfo.Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)drawInfo.Position.Y + (double)drawPlayer.height * 0.5) / 16D));
|
||||
|
||||
if (drawPlayer.shroomiteStealth && heldItem.CountsAsClass<RangedDamageClass>())
|
||||
{
|
||||
float stealth = drawPlayer.stealth;
|
||||
if ((double)stealth < 0.03)
|
||||
stealth = 0.03f;
|
||||
|
||||
float stealthColorScale = (1f + stealth * 10f) / 11f;
|
||||
drawInfo.itemColor = new Color((byte)((float)(int)drawInfo.itemColor.R * stealth), (byte)((float)(int)drawInfo.itemColor.G * stealth), (byte)((float)(int)drawInfo.itemColor.B * stealthColorScale), (byte)((float)(int)drawInfo.itemColor.A * stealth));
|
||||
}
|
||||
|
||||
if (drawPlayer.setVortex && heldItem.CountsAsClass<RangedDamageClass>())
|
||||
{
|
||||
float stealth = drawPlayer.stealth;
|
||||
if ((double)stealth < 0.03)
|
||||
stealth = 0.03f;
|
||||
|
||||
drawInfo.itemColor = drawInfo.itemColor.MultiplyRGBA(new Color(Vector4.Lerp(Vector4.One, new Vector4(0f, 0.12f, 0.16f, 0f), 1f - stealth)));
|
||||
}
|
||||
|
||||
bool inUse = drawPlayer.itemAnimation > 0 && heldItem.useStyle != 0;
|
||||
bool visuallyHeld = heldItem.holdStyle != 0 && !drawPlayer.pulley;
|
||||
if (!drawPlayer.CanVisuallyHoldItem(heldItem))
|
||||
visuallyHeld = false;
|
||||
|
||||
if (drawInfo.shadow != 0f || drawPlayer.frozen || !(inUse || visuallyHeld) || itemType <= 0 || drawPlayer.dead || heldItem.noUseGraphic || (drawPlayer.wet && heldItem.noWet) || (drawPlayer.happyFunTorchTime && drawPlayer.inventory[drawPlayer.selectedItem].createTile == TileID.Torches && drawPlayer.itemAnimation == 0))
|
||||
return;
|
||||
|
||||
Color color = new Color(250, 250, 250, heldItem.alpha);
|
||||
Vector2 originOffset = Vector2.Zero;
|
||||
|
||||
// Use to adjust glow mask draw offset and color.
|
||||
switch (itemType)
|
||||
{
|
||||
default:
|
||||
break;
|
||||
|
||||
// Keeping these commented here as examples.
|
||||
/*case ItemID.TheBreaker:
|
||||
case ItemID.TentacleSpike:
|
||||
case ItemID.LucyTheAxe:
|
||||
originOffset = new Vector2(4f, -4f) * drawPlayer.Directions;
|
||||
break;
|
||||
|
||||
case ItemID.BreakerBlade:
|
||||
case ItemID.FleshGrinder:
|
||||
case ItemID.SpectrePickaxe:
|
||||
case ItemID.HamBat:
|
||||
case ItemID.BatBat:
|
||||
originOffset = new Vector2(6f, -6f) * drawPlayer.Directions;
|
||||
break;
|
||||
|
||||
case ItemID.LightsBane:
|
||||
{
|
||||
float amount = Utils.Remap(drawInfo.itemColor.ToVector3().Length() / 1.731f, 0.3f, 0.5f, 1f, 0f);
|
||||
color = Color.Lerp(Color.Transparent, new Color(255, 255, 255, 127) * 0.7f, amount);
|
||||
break;
|
||||
}
|
||||
|
||||
case ItemID.MeteorHamaxe:
|
||||
originOffset = new Vector2(4f, -6f) * drawPlayer.Directions;
|
||||
break;
|
||||
|
||||
case ItemID.DyeTradersScimitar:
|
||||
originOffset = new Vector2(2f, -2f) * drawPlayer.Directions;
|
||||
break;*/
|
||||
}
|
||||
|
||||
if (itemType == ModContent.ItemType<GrandGuardian>())
|
||||
{
|
||||
color = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, heldItem.alpha);
|
||||
}
|
||||
|
||||
Vector2 origin = new Vector2((float)itemDrawFrame.Width * 0.5f - (float)itemDrawFrame.Width * 0.5f * (float)drawPlayer.direction, itemDrawFrame.Height);
|
||||
if (heldItem.useStyle == ItemUseStyleID.DrinkLiquid && drawPlayer.itemAnimation > 0)
|
||||
{
|
||||
Vector2 vector2 = new Vector2(0.5f, 0.4f);
|
||||
origin = itemDrawFrame.Size() * vector2;
|
||||
}
|
||||
|
||||
if (drawPlayer.gravDir == -1f)
|
||||
origin.Y = (float)itemDrawFrame.Height - origin.Y;
|
||||
|
||||
origin += originOffset;
|
||||
float itemRotation = drawPlayer.itemRotation;
|
||||
|
||||
if (heldItem.useStyle == ItemUseStyleID.GolfPlay)
|
||||
{
|
||||
ref float xPos = ref position.X;
|
||||
float xOffset = xPos;
|
||||
xPos = xOffset - 0f;
|
||||
itemRotation -= MathHelper.PiOver2 * (float)drawPlayer.direction;
|
||||
origin.Y = 2f;
|
||||
origin.X += 2 * drawPlayer.direction;
|
||||
}
|
||||
|
||||
ItemSlot.GetItemLight(ref drawInfo.itemColor, heldItem);
|
||||
DrawData item;
|
||||
|
||||
if (heldItem.useStyle == ItemUseStyleID.Shoot)
|
||||
{
|
||||
if (Item.staff[itemType])
|
||||
{
|
||||
float staffRotation = drawPlayer.itemRotation + MathHelper.PiOver4 * (float)drawPlayer.direction;
|
||||
float staffXOffset = 0f;
|
||||
float staffYOffset = 0f;
|
||||
Vector2 staffOrigin = new Vector2(0f, itemDrawFrame.Height);
|
||||
|
||||
if (drawPlayer.gravDir == -1f)
|
||||
{
|
||||
if (drawPlayer.direction == -1)
|
||||
{
|
||||
staffRotation += MathHelper.PiOver2;
|
||||
staffOrigin = new Vector2(itemDrawFrame.Width, 0f);
|
||||
staffXOffset -= (float)itemDrawFrame.Width;
|
||||
}
|
||||
else
|
||||
{
|
||||
staffRotation -= MathHelper.PiOver2;
|
||||
staffOrigin = Vector2.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
// Extra patch context.
|
||||
else if (drawPlayer.direction == -1)
|
||||
{
|
||||
staffOrigin = new Vector2(itemDrawFrame.Width, itemDrawFrame.Height);
|
||||
staffXOffset -= (float)itemDrawFrame.Width;
|
||||
}
|
||||
|
||||
ItemLoader.HoldoutOrigin(drawPlayer, ref staffOrigin);
|
||||
|
||||
item = new DrawData(glowMask, new Vector2((int)(drawInfo.ItemLocation.X - Main.screenPosition.X + staffOrigin.X + staffXOffset), (int)(drawInfo.ItemLocation.Y - Main.screenPosition.Y + staffYOffset)), itemDrawFrame, color, staffRotation, staffOrigin, adjustedItemScale, drawInfo.itemEffect);
|
||||
existingDrawData.Add(item);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int xOffset = 10;
|
||||
Vector2 offset = new Vector2(itemDrawFrame.Width / 2, itemDrawFrame.Height / 2);
|
||||
Vector2 directionalOffset = Main.DrawPlayerItemPos(drawPlayer.gravDir, itemType);
|
||||
xOffset = (int)directionalOffset.X;
|
||||
offset.Y = directionalOffset.Y;
|
||||
Vector2 drawOrigin = new Vector2(-xOffset, itemDrawFrame.Height / 2);
|
||||
if (drawPlayer.direction == -1)
|
||||
drawOrigin = new Vector2(itemDrawFrame.Width + xOffset, itemDrawFrame.Height / 2);
|
||||
|
||||
item = new DrawData(glowMask, new Vector2((int)(drawInfo.ItemLocation.X - Main.screenPosition.X + offset.X), (int)(drawInfo.ItemLocation.Y - Main.screenPosition.Y + offset.Y)), itemDrawFrame, new Color(250, 250, 250, heldItem.alpha), drawPlayer.itemRotation, drawOrigin, adjustedItemScale, drawInfo.itemEffect);
|
||||
existingDrawData.Add(item);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (drawPlayer.gravDir == -1f)
|
||||
{
|
||||
item = new DrawData(glowMask, position, itemDrawFrame, new Color(250, 250, 250, heldItem.alpha), itemRotation, origin, adjustedItemScale, drawInfo.itemEffect);
|
||||
existingDrawData.Add(item);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
item = new DrawData(glowMask, position, itemDrawFrame, color, itemRotation, origin, adjustedItemScale, drawInfo.itemEffect);
|
||||
existingDrawData.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,13 +35,13 @@ namespace CalamityMod
|
||||
[DefaultValue(true)]
|
||||
public bool Afterimages { get; set; }
|
||||
|
||||
private const int MinParticleLimit = 100;
|
||||
private const int MaxParticleLimit = 2000;
|
||||
private const int MinParticleLimit = 500;
|
||||
private const int MaxParticleLimit = 10000;
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[SliderColor(224, 165, 56, 128)]
|
||||
[Range(MinParticleLimit, MaxParticleLimit)]
|
||||
[DefaultValue(500)]
|
||||
[DefaultValue(5000)]
|
||||
public int ParticleLimit { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
|
||||
@@ -101,7 +101,6 @@ namespace CalamityMod
|
||||
public static List<int> revengeanceProjectileBuffList25Percent;
|
||||
public static List<int> revengeanceProjectileBuffList20Percent;
|
||||
public static List<int> revengeanceProjectileBuffList15Percent;
|
||||
public static List<int> revengeanceLifeStealExceptionList;
|
||||
public static List<int> noRageWormSegmentList;
|
||||
public static List<int> needsDebuffIconDisplayList;
|
||||
public static List<int> scopedWeaponList;
|
||||
@@ -1510,36 +1509,6 @@ namespace CalamityMod
|
||||
ProjectileType<PearlRain>()
|
||||
};
|
||||
|
||||
revengeanceLifeStealExceptionList = new List<int>()
|
||||
{
|
||||
NPCID.Probe,
|
||||
NPCID.CultistDragonHead,
|
||||
NPCID.CultistDragonBody1,
|
||||
NPCID.CultistDragonBody2,
|
||||
NPCID.CultistDragonBody3,
|
||||
NPCID.CultistDragonBody4,
|
||||
NPCID.CultistDragonTail,
|
||||
NPCID.AncientCultistSquidhead,
|
||||
NPCID.AncientLight,
|
||||
NPCID.Sharkron,
|
||||
NPCID.Sharkron2,
|
||||
NPCID.PlanterasTentacle,
|
||||
NPCType<PlanterasFreeTentacle>(),
|
||||
NPCID.Spore,
|
||||
NPCID.TheHungryII,
|
||||
NPCID.LeechHead,
|
||||
NPCID.LeechBody,
|
||||
NPCID.LeechTail,
|
||||
NPCID.QueenSlimeMinionBlue,
|
||||
NPCID.QueenSlimeMinionPink,
|
||||
NPCID.QueenSlimeMinionPurple,
|
||||
NPCID.TheDestroyerBody,
|
||||
NPCID.TheDestroyerTail,
|
||||
NPCID.EaterofWorldsBody,
|
||||
NPCID.EaterofWorldsTail,
|
||||
NPCID.MoonLordCore
|
||||
};
|
||||
|
||||
noRageWormSegmentList = new List<int>()
|
||||
{
|
||||
NPCType<DesertScourgeBody>(),
|
||||
@@ -2297,6 +2266,22 @@ namespace CalamityMod
|
||||
|
||||
ZeroContactDamageNPCList = new List<int>
|
||||
{
|
||||
NPCID.Harpy,
|
||||
NPCID.Salamander,
|
||||
NPCID.Salamander2,
|
||||
NPCID.Salamander3,
|
||||
NPCID.Salamander4,
|
||||
NPCID.Salamander5,
|
||||
NPCID.Salamander6,
|
||||
NPCID.Salamander7,
|
||||
NPCID.Salamander8,
|
||||
NPCID.Salamander9,
|
||||
NPCID.GiantCursedSkull,
|
||||
NPCID.FungiBulb,
|
||||
NPCID.GiantFungiBulb,
|
||||
NPCID.IcyMerman,
|
||||
NPCID.AngryNimbus,
|
||||
NPCID.SandElemental,
|
||||
NPCID.DarkCaster,
|
||||
NPCID.FireImp,
|
||||
NPCID.Tim,
|
||||
@@ -2338,6 +2323,7 @@ namespace CalamityMod
|
||||
NPCID.ElfArcher,
|
||||
NPCID.NebulaBrain,
|
||||
NPCID.NebulaSoldier,
|
||||
NPCID.StardustCellSmall,
|
||||
NPCID.StardustJellyfishBig,
|
||||
NPCID.StardustSoldier,
|
||||
NPCID.StardustSpiderBig,
|
||||
@@ -2361,6 +2347,21 @@ namespace CalamityMod
|
||||
NPCID.DD2DarkMageT3,
|
||||
NPCID.DD2OgreT2,
|
||||
NPCID.DD2OgreT3,
|
||||
NPCID.DD2GoblinBomberT1,
|
||||
NPCID.DD2GoblinBomberT2,
|
||||
NPCID.DD2GoblinBomberT3,
|
||||
NPCID.DD2JavelinstT1,
|
||||
NPCID.DD2JavelinstT2,
|
||||
NPCID.DD2JavelinstT3,
|
||||
NPCID.DD2KoboldWalkerT2,
|
||||
NPCID.DD2KoboldWalkerT3,
|
||||
NPCID.DD2DrakinT2,
|
||||
NPCID.DD2DrakinT3,
|
||||
NPCID.DD2KoboldFlyerT2,
|
||||
NPCID.DD2KoboldFlyerT3,
|
||||
NPCID.DD2WitherBeastT2,
|
||||
NPCID.DD2WitherBeastT3,
|
||||
NPCID.DD2LightningBugT3,
|
||||
NPCID.MourningWood,
|
||||
NPCID.Pumpking,
|
||||
NPCID.Everscream,
|
||||
@@ -2431,27 +2432,20 @@ namespace CalamityMod
|
||||
NPCID.Derpling,
|
||||
NPCID.Herpling,
|
||||
NPCID.DiggerHead,
|
||||
NPCID.DiggerBody,
|
||||
NPCID.DiggerTail,
|
||||
NPCID.DesertGhoul,
|
||||
NPCID.DesertGhoulCorruption,
|
||||
NPCID.DesertGhoulCrimson,
|
||||
NPCID.DesertGhoulHallow,
|
||||
NPCID.DuneSplicerHead,
|
||||
NPCID.DuneSplicerBody,
|
||||
NPCID.DuneSplicerTail,
|
||||
NPCID.EnchantedSword,
|
||||
NPCID.FloatyGross,
|
||||
NPCID.GiantBat,
|
||||
NPCID.GiantFlyingFox,
|
||||
NPCID.GiantFungiBulb,
|
||||
NPCID.FungiSpore,
|
||||
NPCID.GiantTortoise,
|
||||
NPCID.IceTortoise,
|
||||
NPCID.HoppinJack,
|
||||
NPCID.Mimic,
|
||||
NPCID.IchorSticker,
|
||||
NPCID.IcyMerman,
|
||||
NPCID.IlluminantBat,
|
||||
NPCID.IlluminantSlime,
|
||||
NPCID.JungleCreeper,
|
||||
@@ -2480,12 +2474,8 @@ namespace CalamityMod
|
||||
NPCID.Werewolf,
|
||||
NPCID.Wolf,
|
||||
NPCID.SeekerHead,
|
||||
NPCID.SeekerBody,
|
||||
NPCID.SeekerTail,
|
||||
NPCID.Wraith,
|
||||
NPCID.ChatteringTeethBomb,
|
||||
NPCID.Clown,
|
||||
NPCID.AngryNimbus,
|
||||
NPCID.IceGolem,
|
||||
NPCID.RainbowSlime,
|
||||
NPCID.SandShark,
|
||||
@@ -2506,8 +2496,6 @@ namespace CalamityMod
|
||||
NPCID.HellArmoredBonesSpikeShield,
|
||||
NPCID.HellArmoredBonesSword,
|
||||
NPCID.MisterStabby,
|
||||
NPCID.SnowBalla,
|
||||
NPCID.SnowmanGangsta,
|
||||
NPCID.Butcher,
|
||||
NPCID.CreatureFromTheDeep,
|
||||
NPCID.DeadlySphere,
|
||||
@@ -2544,8 +2532,6 @@ namespace CalamityMod
|
||||
NPCID.ZombieElfBeard,
|
||||
NPCID.ZombieElfGirl,
|
||||
NPCID.BloodEelHead,
|
||||
NPCID.BloodEelBody,
|
||||
NPCID.BloodEelTail,
|
||||
NPCID.GoblinShark,
|
||||
NPCID.EyeballFlyingFish,
|
||||
NPCID.ZombieMerman
|
||||
@@ -2795,7 +2781,6 @@ namespace CalamityMod
|
||||
revengeanceProjectileBuffList25Percent = null;
|
||||
revengeanceProjectileBuffList20Percent = null;
|
||||
revengeanceProjectileBuffList15Percent = null;
|
||||
revengeanceLifeStealExceptionList = null;
|
||||
noRageWormSegmentList = null;
|
||||
needsDebuffIconDisplayList = null;
|
||||
scopedWeaponList = null;
|
||||
|
||||
@@ -108,18 +108,22 @@ namespace CalamityMod
|
||||
public static Texture2D SulphurSeaSkyFront;
|
||||
public static Texture2D SulphurSeaSurface;
|
||||
|
||||
//Destroyer glowmasks
|
||||
public static Asset<Texture2D>[] DestroyerGlowmasks = new Asset<Texture2D>[3];
|
||||
|
||||
// DR data structure
|
||||
public static SortedDictionary<int, float> DRValues;
|
||||
|
||||
// Boss Kill Time data structure
|
||||
public static SortedDictionary<int, int> bossKillTimes;
|
||||
|
||||
// Life steal cap
|
||||
public const int lifeStealCap = 10;
|
||||
|
||||
// Speedrun timer
|
||||
internal static Stopwatch SpeedrunTimer = new Stopwatch();
|
||||
|
||||
// External flag to disable non-Revengeance boss AI edits
|
||||
// This can be edited by other mods using reflection to prevent compatibility issues
|
||||
public static bool ExternalFlag_DisableNonRevBossAI = false;
|
||||
|
||||
internal static CalamityMod Instance;
|
||||
|
||||
// TODO -- Mod references should be contained in a ModSystem (example name "ModLoadedChecker")
|
||||
@@ -285,6 +289,11 @@ namespace CalamityMod
|
||||
SulphurSeaSkyFront = ModContent.Request<Texture2D>("CalamityMod/Skies/SulphurSeaSkyFront", AssetRequestMode.ImmediateLoad).Value;
|
||||
SulphurSeaSurface = ModContent.Request<Texture2D>("CalamityMod/Skies/SulphurSeaSurface", AssetRequestMode.ImmediateLoad).Value;
|
||||
|
||||
//Destroyer glowmasks
|
||||
DestroyerGlowmasks[0] = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow", AssetRequestMode.AsyncLoad);
|
||||
DestroyerGlowmasks[1] = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow", AssetRequestMode.AsyncLoad);
|
||||
DestroyerGlowmasks[2] = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow", AssetRequestMode.AsyncLoad);
|
||||
|
||||
// TODO -- Sky shaders should probably be loaded in a ModSystem
|
||||
Filters.Scene["CalamityMod:DevourerofGodsHead"] = new Filter(new DoGScreenShaderData("FilterMiniTower").UseColor(0.4f, 0.1f, 1.0f).UseOpacity(0.5f), EffectPriority.VeryHigh);
|
||||
SkyManager.Instance["CalamityMod:DevourerofGodsHead"] = new DoGSky();
|
||||
@@ -301,7 +310,7 @@ namespace CalamityMod
|
||||
Filters.Scene["CalamityMod:Leviathan"] = new Filter(new LevScreenShaderData("FilterMiniTower").UseColor(0f, 0f, 0.5f).UseOpacity(0.5f), EffectPriority.VeryHigh);
|
||||
SkyManager.Instance["CalamityMod:Leviathan"] = new LevSky();
|
||||
|
||||
Filters.Scene["CalamityMod:SupremeCalamitas"] = new Filter(new SCalScreenShaderData("FilterMiniTower").UseColor(1.1f, 0.3f, 0.3f).UseOpacity(0.65f), EffectPriority.VeryHigh);
|
||||
Filters.Scene["CalamityMod:SupremeCalamitas"] = new Filter(new SCalScreenShaderData("FilterMiniTower").UseColor(Color.Transparent).UseOpacity(0f), EffectPriority.VeryHigh);
|
||||
SkyManager.Instance["CalamityMod:SupremeCalamitas"] = new SCalSky();
|
||||
|
||||
Filters.Scene["CalamityMod:Signus"] = new Filter(new SignusScreenShaderData("FilterMiniTower").UseColor(0.35f, 0.1f, 0.55f).UseOpacity(0.35f), EffectPriority.VeryHigh);
|
||||
|
||||
@@ -52,6 +52,19 @@ namespace CalamityMod
|
||||
// Syncs for specific bosses or entities
|
||||
//
|
||||
|
||||
case CalamityModMessageType.SyncDestroyerLaserColor:
|
||||
byte npcIdx3 = reader.ReadByte();
|
||||
int laserColor = reader.ReadInt32();
|
||||
|
||||
// If the NPC in question isn't valid, don't do anything.
|
||||
NPC npc3 = Main.npc[npcIdx3];
|
||||
if (!npc3.active)
|
||||
break;
|
||||
|
||||
CalamityGlobalNPC cgn3 = npc3.Calamity();
|
||||
cgn3.destroyerLaserColor = laserColor;
|
||||
break;
|
||||
|
||||
// This code has been edited to fail gracefully when trying to provide data for an invalid NPC.
|
||||
case CalamityModMessageType.SyncCalamityNPCAIArray:
|
||||
// Read the entire packet regardless of anything
|
||||
@@ -72,6 +85,7 @@ namespace CalamityMod
|
||||
cgn.newAI[2] = ai2;
|
||||
cgn.newAI[3] = ai3;
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.SyncVanillaNPCLocalAIArray:
|
||||
// Read the entire packet regardless of anything
|
||||
byte npcIdx2 = reader.ReadByte();
|
||||
@@ -90,6 +104,7 @@ namespace CalamityMod
|
||||
npc2.localAI[2] = localAI2;
|
||||
npc2.localAI[3] = localAI3;
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.SpawnSuperDummy:
|
||||
int x = reader.ReadInt32();
|
||||
int y = reader.ReadInt32();
|
||||
@@ -97,16 +112,19 @@ namespace CalamityMod
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.NewNPC(new EntitySource_WorldEvent(), x, y, ModContent.NPCType<SuperDummyNPC>());
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.DeleteAllSuperDummies:
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
SuperDummy.DeleteDummies();
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.SyncAndroombaSolution:
|
||||
int index = reader.ReadInt32();
|
||||
int solType = reader.ReadInt32();
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
AndroombaFriendly.SwapSolution(index, solType);
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.SyncAndroombaAI:
|
||||
{
|
||||
int idx = reader.ReadInt32();
|
||||
@@ -115,6 +133,7 @@ namespace CalamityMod
|
||||
AndroombaFriendly.ChangeAI(idx, phase);
|
||||
}
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.SyncSlabCrabAI:
|
||||
{
|
||||
int idx = reader.ReadInt32();
|
||||
@@ -123,18 +142,22 @@ namespace CalamityMod
|
||||
AndroombaFriendly.ChangeAI(idx, phase);
|
||||
}
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.ServersideSpawnOldDuke:
|
||||
byte playerIndex2 = reader.ReadByte();
|
||||
CalamityUtils.SpawnOldDuke(playerIndex2);
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.ArmoredDiggerCountdownSync:
|
||||
int countdown5 = reader.ReadInt32();
|
||||
CalamityWorld.ArmoredDiggerSpawnCooldown = countdown5;
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.ProvidenceDyeConditionSync:
|
||||
byte npcIndex3 = reader.ReadByte();
|
||||
(Main.npc[npcIndex3].ModNPC as Providence).hasTakenDaytimeDamage = reader.ReadBoolean();
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.PSCChallengeSync:
|
||||
byte npcIndex4 = reader.ReadByte();
|
||||
(Main.npc[npcIndex4].ModNPC as Providence).challenge = reader.ReadBoolean();
|
||||
@@ -156,6 +179,7 @@ namespace CalamityMod
|
||||
NetMessage.SendData(MessageID.SyncNPC, -1, player, null, spawnedNPC);
|
||||
}
|
||||
break;
|
||||
|
||||
case CalamityModMessageType.SyncNPCMotionDataToServer:
|
||||
int npcIndex = reader.ReadInt32();
|
||||
Vector2 center = reader.ReadVector2();
|
||||
@@ -348,6 +372,7 @@ namespace CalamityMod
|
||||
SyncCooldownDictionary,
|
||||
|
||||
// Syncs for specific bosses or entities
|
||||
SyncDestroyerLaserColor,
|
||||
SyncCalamityNPCAIArray,
|
||||
SyncVanillaNPCLocalAIArray,
|
||||
SpawnSuperDummy,
|
||||
|
||||
@@ -182,8 +182,6 @@ namespace CalamityMod
|
||||
|
||||
{ NPCID.BrainofCthulhu, 0.9 },
|
||||
|
||||
{ NPCID.Deerclops, 1 },
|
||||
|
||||
{ ModContent.NPCType<HiveMind>(), 0.9 },
|
||||
|
||||
{ ModContent.NPCType<PerforatorHive>(), 0.9 },
|
||||
@@ -198,8 +196,6 @@ namespace CalamityMod
|
||||
{ NPCID.WallofFlesh, 1.5 },
|
||||
{ NPCID.WallofFleshEye, 1.5 },
|
||||
|
||||
{ NPCID.QueenSlimeBoss, 1 },
|
||||
|
||||
{ ModContent.NPCType<Cryogen>(), 1.15 },
|
||||
|
||||
{ NPCID.Spazmatism, 0.85 },
|
||||
@@ -298,51 +294,51 @@ namespace CalamityMod
|
||||
|
||||
EnemyStats.ContactDamageValues = new SortedDictionary<int, int[]>
|
||||
{
|
||||
{ NPCID.KingSlime, new int[] { 40, 64, 80, 88, 96 } },
|
||||
{ NPCID.KingSlime, new int[] { 40, 64, 80, 96, 120 } },
|
||||
|
||||
{ ModContent.NPCType<DesertScourgeHead>(), new int[] { 45, 66, 88, 99, 132 } },
|
||||
{ ModContent.NPCType<DesertScourgeBody>(), new int[] { 24, 32, 40, 44, 60 } },
|
||||
{ ModContent.NPCType<DesertScourgeTail>(), new int[] { 18, 24, 30, 32, 42 } },
|
||||
{ ModContent.NPCType<DesertNuisanceHead>(), new int[] { 30, 44, 60, 70, 90 } },
|
||||
{ ModContent.NPCType<DesertNuisanceBody>(), new int[] { 21, 28, 32, 36, 45 } },
|
||||
{ ModContent.NPCType<DesertNuisanceTail>(), new int[] { 12, 16, 20, 24, 30 } },
|
||||
{ ModContent.NPCType<DesertScourgeHead>(), new int[] { 45, 66, 88, 110, 132 } },
|
||||
{ ModContent.NPCType<DesertScourgeBody>(), new int[] { 24, 32, 40, 48, 72 } },
|
||||
{ ModContent.NPCType<DesertScourgeTail>(), new int[] { 18, 24, 30, 36, 54 } },
|
||||
{ ModContent.NPCType<DesertNuisanceHead>(), new int[] { 30, 44, 60, 76, 90 } },
|
||||
{ ModContent.NPCType<DesertNuisanceBody>(), new int[] { 21, 28, 32, 36, 63 } },
|
||||
{ ModContent.NPCType<DesertNuisanceTail>(), new int[] { 12, 16, 20, 24, 36 } },
|
||||
|
||||
{ NPCID.EyeofCthulhu, new int[] {
|
||||
24, // 36 in phase 2
|
||||
30, // 45 in phase 2
|
||||
40, // 48 in phase 2, 56 in phase 3
|
||||
44, // 53 in phase 2, 62 in phase 3
|
||||
50 } }, // Vanilla: 75 in phase 2; Rev+: 60 in phase 2, 70 in phase 3
|
||||
{ NPCID.ServantofCthulhu, new int[] { 18, 24, 30, 34, 42 } },
|
||||
50, // 60 in phase 2, 70 in phase 3
|
||||
72 } }, // Vanilla: 108 in phase 2; Rev+: 86 in phase 2, 101 in phase 3
|
||||
{ NPCID.ServantofCthulhu, new int[] { 18, 24, 30, 36, 54 } },
|
||||
|
||||
{ ModContent.NPCType<Crabulon>(), new int[] { 40, 64, 80, 88, 120 } },
|
||||
{ ModContent.NPCType<CrabShroom>(), new int[] { 25, 50, 62, 70, 75 } },
|
||||
{ ModContent.NPCType<Crabulon>(), new int[] { 40, 64, 80, 96, 120 } },
|
||||
{ ModContent.NPCType<CrabShroom>(), new int[] { 25, 50, 62, 74, 75 } },
|
||||
|
||||
{ NPCID.EaterofWorldsHead, new int[] { 38, 55, 77, 88, 132 } },
|
||||
{ NPCID.EaterofWorldsHead, new int[] { 38, 55, 77, 99, 132 } },
|
||||
{ NPCID.EaterofWorldsBody, new int[] { 18, 24, 32, 40, 60 } },
|
||||
{ NPCID.EaterofWorldsTail, new int[] { 12, 16, 24, 32, 42 } },
|
||||
{ NPCID.EaterofWorldsTail, new int[] { 12, 16, 24, 32, 36 } },
|
||||
{ NPCID.VileSpitEaterOfWorlds, new int[] { -1, 64, 64, 64, 96 } },
|
||||
|
||||
{ NPCID.BrainofCthulhu, new int[] { 36, 54, 81, 99, 135 } },
|
||||
{ NPCID.Creeper, new int[] { 24, 36, 66, 80, 108 } },
|
||||
{ NPCID.BrainofCthulhu, new int[] { 36, 54, 81, 108, 135 } },
|
||||
{ NPCID.Creeper, new int[] { 24, 36, 66, 96, 120 } },
|
||||
|
||||
{ ModContent.NPCType<HiveMind>(), new int[] { 42, 63, 81, 90, 135 } },
|
||||
{ ModContent.NPCType<DankCreeper>(), new int[] { 30, 50, 62, 68, 90 } },
|
||||
{ ModContent.NPCType<HiveMind>(), new int[] { 42, 63, 81, 99, 135 } },
|
||||
{ ModContent.NPCType<DankCreeper>(), new int[] { 30, 50, 62, 74, 90 } },
|
||||
|
||||
{ ModContent.NPCType<PerforatorHive>(), new int[] { 36, 54, 63, 72, 108 } },
|
||||
{ ModContent.NPCType<PerforatorHeadLarge>(), new int[] { 54, 90, 108, 118, 150 } },
|
||||
{ ModContent.NPCType<PerforatorBodyLarge>(), new int[] { 28, 48, 56, 60, 75 } },
|
||||
{ ModContent.NPCType<PerforatorTailLarge>(), new int[] { 22, 36, 42, 46, 60 } },
|
||||
{ ModContent.NPCType<PerforatorHeadMedium>(), new int[] { 42, 70, 84, 92, 126 } },
|
||||
{ ModContent.NPCType<PerforatorBodyMedium>(), new int[] { 24, 42, 50, 54, 69 } },
|
||||
{ ModContent.NPCType<PerforatorTailMedium>(), new int[] { 18, 28, 34, 38, 54 } },
|
||||
{ ModContent.NPCType<PerforatorHeadSmall>(), new int[] { 36, 60, 72, 80, 102 } },
|
||||
{ ModContent.NPCType<PerforatorBodySmall>(), new int[] { 20, 36, 42, 46, 60 } },
|
||||
{ ModContent.NPCType<PerforatorTailSmall>(), new int[] { 14, 20, 26, 30, 45 } },
|
||||
{ ModContent.NPCType<PerforatorHeadLarge>(), new int[] { 54, 90, 108, 126, 162 } },
|
||||
{ ModContent.NPCType<PerforatorBodyLarge>(), new int[] { 28, 48, 56, 64, 84 } },
|
||||
{ ModContent.NPCType<PerforatorTailLarge>(), new int[] { 22, 36, 42, 48, 66 } },
|
||||
{ ModContent.NPCType<PerforatorHeadMedium>(), new int[] { 42, 70, 84, 98, 126 } },
|
||||
{ ModContent.NPCType<PerforatorBodyMedium>(), new int[] { 24, 42, 50, 58, 72 } },
|
||||
{ ModContent.NPCType<PerforatorTailMedium>(), new int[] { 18, 28, 34, 40, 54 } },
|
||||
{ ModContent.NPCType<PerforatorHeadSmall>(), new int[] { 36, 60, 72, 84, 108 } },
|
||||
{ ModContent.NPCType<PerforatorBodySmall>(), new int[] { 20, 36, 42, 48, 60 } },
|
||||
{ ModContent.NPCType<PerforatorTailSmall>(), new int[] { 14, 20, 26, 32, 42 } },
|
||||
|
||||
{ NPCID.QueenBee, new int[] { 36, 54, 81, 99, 135 } },
|
||||
{ NPCID.Bee, new int[] { 20, 24, 48, 60, 72 } },
|
||||
{ NPCID.BeeSmall, new int[] { 15, 18, 30, 44, 54 } },
|
||||
{ NPCID.QueenBee, new int[] { 36, 54, 81, 108, 135 } },
|
||||
{ NPCID.Bee, new int[] { 20, 24, 48, 72, 90 } },
|
||||
{ NPCID.BeeSmall, new int[] { 15, 18, 36, 54, 72 } },
|
||||
|
||||
{ NPCID.SkeletronHead, new int[] {
|
||||
42, // 55 while spinning
|
||||
@@ -350,38 +346,40 @@ namespace CalamityMod
|
||||
88, // 114 while spinning
|
||||
99, // 128 while spinning
|
||||
132 } }, // 171 while spinning
|
||||
{ NPCID.SkeletronHand, new int[] { 32, 44, 77, 88, 110 } },
|
||||
{ NPCID.ChaosBall, new int[] { -1, -1, -1, 40, 60 } },
|
||||
{ NPCID.SkeletronHand, new int[] { 32, 44, 77, 110, 132 } },
|
||||
|
||||
{ NPCID.Deerclops, new int[] { 20, 40, 50, 60, 80 } },
|
||||
{ NPCID.Deerclops, new int[] { 20, 40, 50, 60, 81 } },
|
||||
|
||||
{ ModContent.NPCType<SlimeGodCore>(), new int[] { 48, 80, 96, 104, 135 } },
|
||||
{ ModContent.NPCType<EbonianPaladin>(), new int[] { 54, 90, 108, 118, 150 } },
|
||||
{ ModContent.NPCType<SplitEbonianPaladin>(), new int[] { 48, 80, 96, 104, 135 } },
|
||||
{ ModContent.NPCType<CrimulanPaladin>(), new int[] { 60, 100, 120, 130, 171 } },
|
||||
{ ModContent.NPCType<SplitCrimulanPaladin>(), new int[] { 54, 90, 108, 118, 150 } },
|
||||
{ ModContent.NPCType<CorruptSlimeSpawn>(), new int[] { 36, 60, 72, 78, 99 } },
|
||||
{ ModContent.NPCType<CorruptSlimeSpawn2>(), new int[] { 24, 40, 48, 52, 66 } },
|
||||
{ ModContent.NPCType<CrimsonSlimeSpawn>(), new int[] { 42, 70, 84, 92, 120 } },
|
||||
{ ModContent.NPCType<CrimsonSlimeSpawn2>(), new int[] { 30, 50, 60, 66, 84 } },
|
||||
{ ModContent.NPCType<SlimeGodCore>(), new int[] { 48, 80, 96, 112, 144 } },
|
||||
{ ModContent.NPCType<EbonianPaladin>(), new int[] { 54, 90, 108, 126, 162 } },
|
||||
{ ModContent.NPCType<SplitEbonianPaladin>(), new int[] { 48, 80, 96, 112, 144 } },
|
||||
{ ModContent.NPCType<CrimulanPaladin>(), new int[] { 60, 100, 120, 140, 180 } },
|
||||
{ ModContent.NPCType<SplitCrimulanPaladin>(), new int[] { 54, 90, 108, 126, 162 } },
|
||||
{ ModContent.NPCType<CorruptSlimeSpawn>(), new int[] { 36, 60, 72, 84, 108 } },
|
||||
{ ModContent.NPCType<CorruptSlimeSpawn2>(), new int[] { 24, 40, 48, 56, 72 } },
|
||||
{ ModContent.NPCType<CrimsonSlimeSpawn>(), new int[] { 42, 70, 84, 98, 126 } },
|
||||
{ ModContent.NPCType<CrimsonSlimeSpawn2>(), new int[] { 30, 50, 60, 70, 90 } },
|
||||
|
||||
{ NPCID.WallofFlesh, new int[] { 100, 150, 180, 195, 225 } },
|
||||
{ NPCID.WallofFleshEye, new int[] { 100, 150, 180, 195, 225 } },
|
||||
{ NPCID.WallofFlesh, new int[] { 100, 150, 180, 210, 270 } },
|
||||
{ NPCID.WallofFleshEye, new int[] { 100, 150, 180, 210, 270 } },
|
||||
{ NPCID.TheHungry, new int[] {
|
||||
30, // Ranges from 30 to 75 depending on WoF life
|
||||
60, // Ranges from 60 to 150 depending on WoF life
|
||||
60, // Ranges from 60 to 150 depending on WoF life
|
||||
60, // Ranges from 60 to 150 depending on WoF life
|
||||
90 } }, // Ranges from 90 to 225 depending on WoF life
|
||||
{ NPCID.TheHungryII, new int[] { 30, 60, 74, 80, 90 } },
|
||||
{ NPCID.LeechHead, new int[] { 26, 52, 62, 68, 78 } },
|
||||
{ NPCID.LeechBody, new int[] { 22, 44, 52, 56, 66 } },
|
||||
{ NPCID.LeechTail, new int[] { 18, 36, 42, 44, 54 } },
|
||||
{ NPCID.TheHungryII, new int[] { 30, 60, 74, 88, 108 } },
|
||||
{ NPCID.LeechHead, new int[] { 26, 52, 62, 72, 90 } },
|
||||
{ NPCID.LeechBody, new int[] { 22, 44, 52, 60, 78 } },
|
||||
{ NPCID.LeechTail, new int[] { 18, 36, 42, 48, 66 } },
|
||||
|
||||
{ NPCID.QueenSlimeBoss, new int[] { 80, 120, 150, 170, 240 } },
|
||||
{ NPCID.QueenSlimeBoss, new int[] { 80, 120, 150, 180, 240 } },
|
||||
{ NPCID.QueenSlimeMinionBlue, new int[] { 60, 80, 100, 120, 180 } },
|
||||
{ NPCID.QueenSlimeMinionPink, new int[] { 60, 80, 100, 120, 180 } },
|
||||
{ NPCID.QueenSlimeMinionPurple, new int[] { 70, 100, 120, 140, 210 } },
|
||||
|
||||
{ ModContent.NPCType<Cryogen>(), new int[] { 90, 138, 161, 184, 276 } },
|
||||
{ ModContent.NPCType<CryogenShield>(), new int[] { 80, 120, 138, 158, 216 } },
|
||||
{ ModContent.NPCType<CryogenShield>(), new int[] { 80, 120, 138, 156, 240 } },
|
||||
|
||||
{ NPCID.Spazmatism, new int[] {
|
||||
70, // 105 in phase 2
|
||||
@@ -396,16 +394,16 @@ namespace CalamityMod
|
||||
119, // 178 in phase 2
|
||||
153 } }, // 229 in phase 2
|
||||
|
||||
{ ModContent.NPCType<AquaticScourgeHead>(), new int[] { 110, 176, 187, 198, 264 } },
|
||||
{ ModContent.NPCType<AquaticScourgeBody>(), new int[] { 75, 112, 136, 144, 180 } },
|
||||
{ ModContent.NPCType<AquaticScourgeBodyAlt>(), new int[] { 70, 104, 112, 136, 168 } },
|
||||
{ ModContent.NPCType<AquaticScourgeTail>(), new int[] { 65, 96, 104, 112, 156 } },
|
||||
{ ModContent.NPCType<AquaticScourgeHead>(), new int[] { 110, 176, 187, 198, 330 } },
|
||||
{ ModContent.NPCType<AquaticScourgeBody>(), new int[] { 75, 112, 136, 160, 216 } },
|
||||
{ ModContent.NPCType<AquaticScourgeBodyAlt>(), new int[] { 70, 104, 112, 120, 192 } },
|
||||
{ ModContent.NPCType<AquaticScourgeTail>(), new int[] { 65, 96, 104, 112, 168 } },
|
||||
|
||||
{ NPCID.TheDestroyer, new int[] { 140, 280, 300, 320, 420 } },
|
||||
{ NPCID.TheDestroyerBody, new int[] { 70, 102, 136, 153, 204 } },
|
||||
{ NPCID.TheDestroyerTail, new int[] { 45, 68, 102, 136, 153 } },
|
||||
{ NPCID.TheDestroyerBody, new int[] { 70, 102, 136, 170, 255 } },
|
||||
{ NPCID.TheDestroyerTail, new int[] { 45, 68, 102, 136, 204 } },
|
||||
|
||||
{ ModContent.NPCType<BrimstoneElemental>(), new int[] { 75, 112, 136, 144, 180 } },
|
||||
{ ModContent.NPCType<BrimstoneElemental>(), new int[] { 75, 112, 136, 160, 216 } },
|
||||
|
||||
{ NPCID.SkeletronPrime, new int[] {
|
||||
50, // 100 while spinning
|
||||
@@ -419,431 +417,435 @@ namespace CalamityMod
|
||||
102, // 204 while spinning
|
||||
119, // 238 while spinning
|
||||
153 } }, // 306 while spinning
|
||||
{ NPCID.PrimeVice, new int[] { 70, 102, 136, 153, 204 } },
|
||||
{ NPCID.PrimeSaw, new int[] { 70, 102, 136, 153, 204 } },
|
||||
{ NPCID.PrimeVice, new int[] { 70, 102, 136, 170, 255 } },
|
||||
{ NPCID.PrimeSaw, new int[] { 70, 102, 136, 170, 255 } },
|
||||
{ NPCID.PrimeCannon, new int[] { 30, 51, 68, 85, 102 } },
|
||||
{ NPCID.PrimeLaser, new int[] { 30, 51, 68, 85, 102 } },
|
||||
|
||||
{ ModContent.NPCType<CalamitasClone>(), new int[] { 95, 144, 168, 176, 240 } },
|
||||
{ ModContent.NPCType<Cataclysm>(), new int[] { 80, 120, 138, 148, 198 } },
|
||||
{ ModContent.NPCType<Catastrophe>(), new int[] { 85, 130, 150, 162, 216 } },
|
||||
{ ModContent.NPCType<CalamitasClone>(), new int[] { 95, 144, 168, 192, 276 } },
|
||||
{ ModContent.NPCType<Cataclysm>(), new int[] { 80, 120, 138, 156, 240 } },
|
||||
{ ModContent.NPCType<Catastrophe>(), new int[] { 85, 130, 150, 170, 255 } },
|
||||
|
||||
{ NPCID.Plantera, new int[] {
|
||||
70, // 98 in phase 2
|
||||
100, // 140 in phase 2
|
||||
138, // 193 in phase 2
|
||||
161, // 225 in phase 2
|
||||
207 } }, // 150 in phase 1 and 210 in phase 2; Rev and Death: 289 in phase 2
|
||||
{ NPCID.PlanterasTentacle, new int[] { 90, 138, 161, 207, 276 } },
|
||||
{ ModContent.NPCType<PlanterasFreeTentacle>(), new int[] { 90, 138, 161, 207, 276 } },
|
||||
{ NPCID.Spore, new int[] { 90, 140, 160, 170, 210 } },
|
||||
176, // 246 in phase 2
|
||||
207 } }, // 290 in phase 2
|
||||
{ NPCID.PlanterasTentacle, new int[] { 90, 138, 161, 184, 276 } },
|
||||
{ ModContent.NPCType<PlanterasFreeTentacle>(), new int[] { 90, 138, 161, 184, 276 } },
|
||||
{ NPCID.Spore, new int[] { 90, 140, 160, 180, 270 } },
|
||||
|
||||
{ NPCID.HallowBoss, new int[] { 80, // 120 during charge
|
||||
110, // 165 during charge
|
||||
143, // 214 during charge
|
||||
154, // 231 during charge
|
||||
198 } }, // 297 during charge
|
||||
143, // 215 during charge
|
||||
176, // 264 during charge
|
||||
231 } }, // 347 during charge
|
||||
|
||||
{ ModContent.NPCType<Leviathan>(), new int[] { 140, 216, 240, 252, 324 } },
|
||||
{ ModContent.NPCType<Leviathan>(), new int[] { 140, 216, 240, 264, 414 } },
|
||||
{ ModContent.NPCType<Anahita>(), new int[] {
|
||||
75, // 113 during charge
|
||||
112, // 168 during charge
|
||||
136, // 204 during charge
|
||||
144, // 216 during charge
|
||||
192 } }, // 288 during charge
|
||||
{ ModContent.NPCType<AnahitasIceShield>(), new int[] { 70, 110, 126, 136, 165 } },
|
||||
{ NPCID.DetonatingBubble, new int[] { 100, 150, 180, 195, 225 } },
|
||||
{ ModContent.NPCType<AquaticAberration>(), new int[] { 90, 140, 160, 170, 210 } },
|
||||
160, // 240 during charge
|
||||
216 } }, // 324 during charge
|
||||
{ ModContent.NPCType<AnahitasIceShield>(), new int[] { 70, 110, 126, 142, 210 } },
|
||||
{ NPCID.DetonatingBubble, new int[] { 100, 150, 180, 210, 270 } },
|
||||
{ ModContent.NPCType<AquaticAberration>(), new int[] { 90, 140, 160, 180, 270 } },
|
||||
|
||||
{ ModContent.NPCType<AstrumAureus>(), new int[] { 145, 220, 242, 253, 330 } },
|
||||
{ ModContent.NPCType<AureusSpawn>(), new int[] { 75, 112, 128, 138, 180 } },
|
||||
{ ModContent.NPCType<AstrumAureus>(), new int[] { 145, 220, 242, 264, 429 } },
|
||||
{ ModContent.NPCType<AureusSpawn>(), new int[] { 75, 112, 128, 144, 225 } },
|
||||
|
||||
{ NPCID.Golem, new int[] { 95, 144, 176, 192, 240 } },
|
||||
{ NPCID.GolemHead, new int[] { 85, 128, 144, 160, 192 } },
|
||||
{ NPCID.GolemFistLeft, new int[] { 75, 112, 144, 160, 180 } },
|
||||
{ NPCID.GolemFistRight, new int[] { 75, 112, 144, 160, 180 } },
|
||||
{ NPCID.Golem, new int[] { 95, 144, 176, 208, 264 } },
|
||||
{ NPCID.GolemHead, new int[] { 85, 128, 144, 160, 228 } },
|
||||
{ NPCID.GolemFistLeft, new int[] { 75, 112, 144, 176, 240 } },
|
||||
{ NPCID.GolemFistRight, new int[] { 75, 112, 144, 176, 240 } },
|
||||
|
||||
{ ModContent.NPCType<PlaguebringerGoliath>(), new int[] { 120, 180, 216, 234, 297 } },
|
||||
{ ModContent.NPCType<PlagueHomingMissile>(), new int[] { 120, 180, 210, 224, 270 } },
|
||||
{ ModContent.NPCType<PlagueMine>(), new int[] { 130, 200, 240, 260, 330 } },
|
||||
{ ModContent.NPCType<PlaguebringerGoliath>(), new int[] { 120, 180, 216, 252, 351 } },
|
||||
{ ModContent.NPCType<PlagueHomingMissile>(), new int[] { 120, 180, 210, 240, 360 } },
|
||||
{ ModContent.NPCType<PlagueMine>(), new int[] { 130, 200, 240, 280, 390 } },
|
||||
|
||||
{ NPCID.DukeFishron, new int[] {
|
||||
100, // 120 in phase 2
|
||||
140, // 201 in phase 2, 184 in phase 3
|
||||
168, // 241 in phase 2, 221 in phase 3
|
||||
182, // 262 in phase 2, 240 in phase 3
|
||||
210 } }, // 302 in phase 2, 277 in phase 3
|
||||
{ NPCID.Sharkron, new int[] { 100, 150, 180, 195, 225 } },
|
||||
{ NPCID.Sharkron2, new int[] { 120, 180, 210, 225, 270 } },
|
||||
140, // 202 in phase 2, 185 in phase 3
|
||||
168, // 242 in phase 2, 222 in phase 3
|
||||
196, // 282 in phase 2, 259 in phase 3
|
||||
252 } }, // 363 in phase 2, 333 in phase 3
|
||||
{ NPCID.Sharkron, new int[] { 100, 150, 180, 210, 270 } },
|
||||
{ NPCID.Sharkron2, new int[] { 120, 180, 210, 240, 315 } },
|
||||
|
||||
{ ModContent.NPCType<RavagerBody>(), new int[] { 130, 192, 224, 232, 288 } },
|
||||
{ ModContent.NPCType<RavagerClawLeft>(), new int[] { 105, 160, 180, 200, 240 } },
|
||||
{ ModContent.NPCType<RavagerClawRight>(), new int[] { 105, 160, 180, 200, 240 } },
|
||||
{ ModContent.NPCType<RockPillar>(), new int[] { 130, 192, 224, 232, 288 } },
|
||||
{ ModContent.NPCType<FlamePillar>(), new int[] { 105, 160, 192, 200, 216 } },
|
||||
{ ModContent.NPCType<RavagerBody>(), new int[] { 130, 192, 224, 256, 384 } },
|
||||
{ ModContent.NPCType<RavagerClawLeft>(), new int[] { 105, 160, 180, 200, 315 } },
|
||||
{ ModContent.NPCType<RavagerClawRight>(), new int[] { 105, 160, 180, 200, 315 } },
|
||||
{ ModContent.NPCType<RockPillar>(), new int[] { 130, 192, 224, 256, 390 } },
|
||||
{ ModContent.NPCType<FlamePillar>(), new int[] { 105, 160, 192, 224, 315 } },
|
||||
|
||||
{ NPCID.CultistDragonHead, new int[] { 120, 180, 210, 225, 270 } },
|
||||
{ NPCID.CultistDragonBody1, new int[] { 60, 90, 105, 120, 135 } },
|
||||
{ NPCID.CultistDragonBody2, new int[] { 60, 90, 105, 120, 135 } },
|
||||
{ NPCID.CultistDragonBody3, new int[] { 60, 90, 105, 120, 135 } },
|
||||
{ NPCID.CultistDragonBody4, new int[] { 60, 90, 105, 120, 135 } },
|
||||
{ NPCID.CultistDragonTail, new int[] { 60, 90, 105, 120, 135 } },
|
||||
{ NPCID.AncientCultistSquidhead, new int[] { 120, 180, 210, 225, 270 } },
|
||||
{ NPCID.AncientLight, new int[] { 120, 180, 210, 225, 270 } },
|
||||
{ NPCID.CultistDragonHead, new int[] { 120, 180, 210, 240, 360 } },
|
||||
{ NPCID.CultistDragonBody1, new int[] { 60, 90, 105, 120, 180 } },
|
||||
{ NPCID.CultistDragonBody2, new int[] { 60, 90, 105, 120, 180 } },
|
||||
{ NPCID.CultistDragonBody3, new int[] { 60, 90, 105, 120, 180 } },
|
||||
{ NPCID.CultistDragonBody4, new int[] { 60, 90, 105, 120, 180 } },
|
||||
{ NPCID.CultistDragonTail, new int[] { 60, 90, 105, 120, 180 } },
|
||||
{ NPCID.AncientCultistSquidhead, new int[] { 120, 180, 210, 240, 360 } },
|
||||
{ NPCID.AncientLight, new int[] { 120, 180, 210, 240, 360 } },
|
||||
|
||||
{ ModContent.NPCType<AstrumDeusHead>(), new int[] { 160, 240, 268, 280, 360 } },
|
||||
{ ModContent.NPCType<AstrumDeusBody>(), new int[] { 105, 160, 192, 200, 240 } },
|
||||
{ ModContent.NPCType<AstrumDeusTail>(), new int[] { 85, 128, 160, 168, 192 } },
|
||||
{ ModContent.NPCType<AstrumDeusHead>(), new int[] { 160, 240, 268, 296, 480 } },
|
||||
{ ModContent.NPCType<AstrumDeusBody>(), new int[] { 105, 160, 192, 224, 312 } },
|
||||
{ ModContent.NPCType<AstrumDeusTail>(), new int[] { 85, 128, 160, 192, 252 } },
|
||||
|
||||
{ ModContent.NPCType<ProfanedGuardianCommander>(), new int[] { 150, 224, 256, 280, 336 } },
|
||||
{ ModContent.NPCType<ProfanedGuardianDefender>(), new int[] { 160, 240, 264, 278, 336 } },
|
||||
{ ModContent.NPCType<ProfanedGuardianHealer>(), new int[] { 100, 200, 220, 232, 270 } },
|
||||
{ ModContent.NPCType<ProfanedGuardianCommander>(), new int[] { 150, 224, 256, 288, 444 } },
|
||||
{ ModContent.NPCType<ProfanedGuardianDefender>(), new int[] { 160, 240, 264, 288, 405 } },
|
||||
{ ModContent.NPCType<ProfanedGuardianHealer>(), new int[] { 100, 200, 220, 240, 300 } },
|
||||
|
||||
{ ModContent.NPCType<Bumblefuck>(), new int[] { 170, 256, 288, 304, 384 } },
|
||||
{ ModContent.NPCType<Bumblefuck2>(), new int[] { 145, 220, 242, 256, 330 } },
|
||||
{ ModContent.NPCType<Bumblefuck>(), new int[] { 170, 256, 288, 320, 504 } },
|
||||
{ ModContent.NPCType<Bumblefuck2>(), new int[] { 145, 220, 242, 264, 435 } },
|
||||
|
||||
{ ModContent.NPCType<ProvSpawnOffense>(), new int[] { 120, 240, 264, 278, 336 } },
|
||||
{ ModContent.NPCType<ProvSpawnDefense>(), new int[] { 100, 200, 220, 232, 270 } },
|
||||
{ ModContent.NPCType<ProfanedRocks>(), new int[] { 100, 200, 220, 232, 270 } },
|
||||
{ ModContent.NPCType<ProvSpawnOffense>(), new int[] { 120, 240, 264, 278, 360 } },
|
||||
{ ModContent.NPCType<ProvSpawnDefense>(), new int[] { 100, 200, 220, 232, 300 } },
|
||||
{ ModContent.NPCType<ProfanedRocks>(), new int[] { 100, 200, 220, 232, 300 } },
|
||||
|
||||
{ ModContent.NPCType<CeaselessVoid>(), new int[] { 240, 360, 396, 418, 540 } },
|
||||
{ ModContent.NPCType<DarkEnergy>(), new int[] { 175, 260, 288, 304, 390 } },
|
||||
{ ModContent.NPCType<CeaselessVoid>(), new int[] { 240, 360, 396, 432, 720 } },
|
||||
{ ModContent.NPCType<DarkEnergy>(), new int[] { 175, 260, 288, 316, 525 } },
|
||||
|
||||
{ ModContent.NPCType<StormWeaverHead>(), new int[] { 240, 360, 396, 418, 540 } },
|
||||
{ ModContent.NPCType<StormWeaverBody>(), new int[] { 125, 192, 224, 250, 330 } },
|
||||
{ ModContent.NPCType<StormWeaverTail>(), new int[] { 105, 160, 192, 210, 270 } },
|
||||
{ ModContent.NPCType<StormWeaverHead>(), new int[] { 240, 360, 396, 432, 720 } },
|
||||
{ ModContent.NPCType<StormWeaverBody>(), new int[] { 125, 192, 224, 256, 372 } },
|
||||
{ ModContent.NPCType<StormWeaverTail>(), new int[] { 105, 160, 192, 224, 312 } },
|
||||
|
||||
{ ModContent.NPCType<Signus>(), new int[] { 210, 315, 351, 369, 459 } },
|
||||
{ ModContent.NPCType<CosmicLantern>(), new int[] { 175, 260, 288, 304, 390 } },
|
||||
{ ModContent.NPCType<CosmicMine>(), new int[] { 190, 280, 300, 320, 390 } },
|
||||
{ ModContent.NPCType<Signus>(), new int[] { 210, 315, 351, 387, 621 } },
|
||||
{ ModContent.NPCType<CosmicLantern>(), new int[] { 175, 260, 288, 316, 525 } },
|
||||
{ ModContent.NPCType<CosmicMine>(), new int[] { 190, 280, 300, 320, 570 } },
|
||||
|
||||
{ ModContent.NPCType<Polterghast>(), new int[] {
|
||||
160, // 192 in phase 2, 224 in phase 3
|
||||
240, // 288 in phase 2, 336 in phase 3
|
||||
264, // 316 in phase 2, 369 in phase 3
|
||||
280, // 336 in phase 2, 392 in phase 3
|
||||
384 } }, // 460 in phase 2, 537 in phase 3
|
||||
{ ModContent.NPCType<PolterPhantom>(), new int[] { 224, 336, 360, 392, 528 } },
|
||||
264, // 317 in phase 2, 370 in phase 3
|
||||
288, // 346 in phase 2, 403 in phase 3
|
||||
480 } }, // 576 in phase 2, 672 in phase 3
|
||||
{ ModContent.NPCType<PolterPhantom>(), new int[] { 224, 336, 370, 403, 672 } },
|
||||
|
||||
{ ModContent.NPCType<OldDuke>(), new int[] {
|
||||
192, // 211 in phase 2, 230 in phase 3
|
||||
288, // 316 in phase 2, 345 in phase 3
|
||||
324, // 356 in phase 2, 388 in phase 3
|
||||
342, // 376 in phase 2, 410 in phase 3
|
||||
432 } }, // 475 in phase 2, 518 in phase 3
|
||||
{ ModContent.NPCType<OldDukeToothBall>(), new int[] { 192, 288, 328, 344, 432 } },
|
||||
{ ModContent.NPCType<SulphurousSharkron>(), new int[] { 192, 288, 328, 344, 432 } },
|
||||
288, // 317 in phase 2, 346 in phase 3
|
||||
324, // 356 in phase 2, 389 in phase 3
|
||||
360, // 396 in phase 2, 432 in phase 3
|
||||
567 } }, // 624 in phase 2, 680 in phase 3
|
||||
{ ModContent.NPCType<OldDukeToothBall>(), new int[] { 192, 288, 328, 368, 576 } },
|
||||
{ ModContent.NPCType<SulphurousSharkron>(), new int[] { 192, 288, 328, 368, 576 } },
|
||||
|
||||
{ ModContent.NPCType<DevourerofGodsHead>(), new int[] { 470, 700, 750, 780, 880 } },
|
||||
{ ModContent.NPCType<DevourerofGodsBody>(), new int[] { 250, 374, 425, 442, 561 } },
|
||||
{ ModContent.NPCType<DevourerofGodsTail>(), new int[] { 204, 306, 340, 357, 459 } },
|
||||
{ ModContent.NPCType<CosmicGuardianHead>(), new int[] { 240, 360, 396, 420, 510 } },
|
||||
{ ModContent.NPCType<CosmicGuardianBody>(), new int[] { 175, 260, 290, 320, 420 } },
|
||||
{ ModContent.NPCType<CosmicGuardianTail>(), new int[] { 135, 200, 230, 260, 330 } },
|
||||
{ ModContent.NPCType<DevourerofGodsHead>(), new int[] { 470, 700, 750, 800, 1410 } },
|
||||
{ ModContent.NPCType<DevourerofGodsBody>(), new int[] { 250, 374, 425, 476, 714 } },
|
||||
{ ModContent.NPCType<DevourerofGodsTail>(), new int[] { 204, 306, 340, 374, 612 } },
|
||||
{ ModContent.NPCType<CosmicGuardianHead>(), new int[] { 240, 360, 396, 432, 720 } },
|
||||
{ ModContent.NPCType<CosmicGuardianBody>(), new int[] { 175, 260, 290, 320, 525 } },
|
||||
{ ModContent.NPCType<CosmicGuardianTail>(), new int[] { 135, 200, 230, 260, 405 } },
|
||||
|
||||
{ ModContent.NPCType<Yharon>(), new int[] { 300, 448, 480, 512, 624 } },
|
||||
{ ModContent.NPCType<Yharon>(), new int[] { 300, 448, 480, 512, 900 } },
|
||||
|
||||
{ ModContent.NPCType<SupremeCalamitas>(), new int[] { 340, 512, 544, 560, 696 } },
|
||||
{ ModContent.NPCType<SupremeCalamitas>(), new int[] { 340, 512, 544, 576, 1020 } },
|
||||
|
||||
{ ModContent.NPCType<Apollo>(), new int[] { 340, 512, 544, 560, 696 } },
|
||||
{ ModContent.NPCType<Artemis>(), new int[] { 320, 480, 512, 528, 660 } },
|
||||
{ ModContent.NPCType<Apollo>(), new int[] { 340, 512, 544, 576, 1020 } },
|
||||
{ ModContent.NPCType<Artemis>(), new int[] { 320, 480, 512, 544, 960 } },
|
||||
|
||||
{ ModContent.NPCType<ThanatosHead>(), new int[] { 375, 560, 592, 608, 756 } },
|
||||
{ ModContent.NPCType<ThanatosBody1>(), new int[] { 320, 480, 512, 528, 660 } },
|
||||
{ ModContent.NPCType<ThanatosBody2>(), new int[] { 320, 480, 512, 528, 660 } },
|
||||
{ ModContent.NPCType<ThanatosTail>(), new int[] { 270, 400, 424, 440, 552 } },
|
||||
{ ModContent.NPCType<ThanatosHead>(), new int[] { 375, 560, 592, 624, 1116 } },
|
||||
{ ModContent.NPCType<ThanatosBody1>(), new int[] { 320, 480, 512, 544, 960 } },
|
||||
{ ModContent.NPCType<ThanatosBody2>(), new int[] { 320, 480, 512, 544, 960 } },
|
||||
{ ModContent.NPCType<ThanatosTail>(), new int[] { 270, 400, 424, 448, 804 } },
|
||||
|
||||
{ ModContent.NPCType<PrimordialWyrmHead>(), new int[] { 535, 800, 850, 880, 1000 } }
|
||||
{ ModContent.NPCType<PrimordialWyrmHead>(), new int[] { 535, 800, 850, 900, 1596 } }
|
||||
};
|
||||
|
||||
EnemyStats.ProjectileDamageValues = new SortedDictionary<Tuple<int, int>, int[]>
|
||||
{
|
||||
{ new Tuple<int, int>(ModContent.NPCType<KingSlimeJewel>(), ModContent.ProjectileType<JewelProjectile>()), new int[] { 0, 0, 44, 48, 66 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<KingSlimeJewel>(), ModContent.ProjectileType<JewelProjectile>()), new int[] { 26, 36, 44, 52, 84 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DesertScourgeHead>(), ModContent.ProjectileType<SandBlast>()), new int[] { 26, 44, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DesertScourgeHead>(), ModContent.ProjectileType<GreatSandBlast>()), new int[] { 26, 44, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DesertScourgeHead>(), ModContent.ProjectileType<SandBlast>()), new int[] { 26, 44, 60, 76, 108 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DesertScourgeHead>(), ModContent.ProjectileType<GreatSandBlast>()), new int[] { 26, 44, 60, 76, 108 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.EyeofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 0, 0, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(NPCID.EyeofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 26, 44, 60, 76, 108 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBomb>()), new int[] { 32, 48, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBombFall>()), new int[] { 32, 48, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBomb>()), new int[] { 32, 48, 60, 72, 96 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBombFall>()), new int[] { 32, 48, 60, 72, 96 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.EaterofWorldsHead, ProjectileID.CursedFlameHostile), new int[] { 0, 0, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(NPCID.EaterofWorldsHead, ModContent.ProjectileType<ShadowflameFireball>()), new int[] { 0, 0, 0, 48, 66 } },
|
||||
{ new Tuple<int, int>(NPCID.EaterofWorldsHead, ProjectileID.CursedFlameHostile), new int[] { 26, 44, 60, 76, 108 } },
|
||||
{ new Tuple<int, int>(NPCID.EaterofWorldsHead, ModContent.ProjectileType<ShadowflameFireball>()), new int[] { 26, 36, 44, 52, 84 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.BrainofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 0, 0, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(NPCID.BrainofCthulhu, ProjectileID.BloodShot), new int[] { 0, 0, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(NPCID.Creeper, ProjectileID.BloodShot), new int[] { 0, 0, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(NPCID.BrainofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(NPCID.BrainofCthulhu, ProjectileID.BloodShot), new int[] { 26, 44, 60, 76, 108 } },
|
||||
{ new Tuple<int, int>(NPCID.Creeper, ProjectileID.BloodShot), new int[] { 26, 44, 60, 76, 108 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<HiveMind>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DankCreeper>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DarkHeart>(), ModContent.ProjectileType<ShaderainHostile>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<HiveBlob>(), ModContent.ProjectileType<VileClot>()), new int[] { 30, 48, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<HiveBlob2>(), ModContent.ProjectileType<VileClot>()), new int[] { 30, 48, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<HiveMind>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DankCreeper>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DarkHeart>(), ModContent.ProjectileType<ShaderainHostile>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<HiveBlob>(), ModContent.ProjectileType<VileClot>()), new int[] { 30, 48, 60, 72, 96 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<HiveBlob2>(), ModContent.ProjectileType<VileClot>()), new int[] { 30, 48, 60, 72, 96 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<BloodGeyser>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<IchorShot>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorBodyMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorTailMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 22, 36, 44, 48, 66 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<BloodGeyser>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<IchorShot>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorBodyMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorTailMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 22, 36, 44, 52, 84 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.QueenBee, ProjectileID.QueenBeeStinger), new int[] { 22, 44, 64, 72, 96 } },
|
||||
{ new Tuple<int, int>(NPCID.QueenBee, ProjectileID.QueenBeeStinger), new int[] { 22, 44, 64, 84, 120 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.SkeletronHead, ProjectileID.Skull), new int[] { 46, 68, 84, 92, 126 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronHead, ProjectileID.Shadowflames), new int[] { 0, 0, 88, 96, 132 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronHand, ProjectileID.Skull), new int[] { 0, 0, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronHead, ProjectileID.Skull), new int[] { 46, 72, 84, 96, 138 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronHead, ProjectileID.Shadowflames), new int[] { 36, 72, 88, 104, 150 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronHand, ProjectileID.Skull), new int[] { 36, 56, 68, 80, 114 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.DeerclopsIceSpike), new int[] { 26, 52, 76, 84, 114 } },
|
||||
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.DeerclopsRangedProjectile), new int[] { 36, 72, 88, 96, 132 } },
|
||||
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.InsanityShadowHostile), new int[] { 20, 40, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.DeerclopsIceSpike), new int[] { 26, 52, 76, 100, 138 } },
|
||||
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.DeerclopsRangedProjectile), new int[] { 36, 72, 88, 104, 150 } },
|
||||
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.InsanityShadowHostile), new int[] { 20, 40, 60, 80, 114 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 92, 126 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 84, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 92, 126 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 84, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SplitEbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 38, 60, 76, 84, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SplitCrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 34, 52, 68, 74, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CorruptSlimeSpawn>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CrimsonSlimeSpawn2>(), ModContent.ProjectileType<CrimsonSpike>()), new int[] { 24, 48, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 100, 138 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 92, 126 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 100, 138 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 92, 126 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SplitEbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 38, 60, 76, 92, 126 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SplitCrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 34, 52, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CorruptSlimeSpawn>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CrimsonSlimeSpawn2>(), ModContent.ProjectileType<CrimsonSpike>()), new int[] { 24, 48, 60, 72, 96 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.WallofFleshEye, ProjectileID.EyeLaser), new int[] { 26, 52, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(NPCID.WallofFleshEye, ProjectileID.DeathLaser), new int[] { 0, 0, 88, 96, 132 } },
|
||||
{ new Tuple<int, int>(NPCID.WallofFlesh, ProjectileID.DemonSickle), new int[] { 0, 0, 112, 124, 168 } },
|
||||
{ new Tuple<int, int>(NPCID.WallofFleshEye, ProjectileID.EyeLaser), new int[] { 26, 52, 68, 80, 114 } },
|
||||
{ new Tuple<int, int>(NPCID.WallofFleshEye, ProjectileID.DeathLaser), new int[] { 36, 72, 88, 104, 150 } },
|
||||
{ new Tuple<int, int>(NPCID.WallofFlesh, ProjectileID.DemonSickle), new int[] { 52, 92, 112, 132, 168 } },
|
||||
{ new Tuple<int, int>(NPCID.WallofFlesh, ProjectileID.Fireball), new int[] { 36, 72, 88, 104, 150 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeGelAttack), new int[] { 60, 120, 136, 152, 210 } },
|
||||
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeSmash), new int[] { 80, 160, 188, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 0, 0, 112, 124, 168 } },
|
||||
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeSmash), new int[] { 80, 160, 188, 216, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 132, 168 } },
|
||||
{ new Tuple<int, int>(NPCID.QueenSlimeMinionBlue, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 132, 168 } },
|
||||
{ new Tuple<int, int>(NPCID.QueenSlimeMinionPink, ProjectileID.QueenSlimeMinionPinkBall), new int[] { 52, 92, 112, 132, 168 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 124, 168 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 132, 168 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceBomb>()), new int[] { 70, 120, 136, 152, 210 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceRain>()), new int[] { 60, 100, 120, 132, 180 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CryogenShield>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 124, 168 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceRain>()), new int[] { 60, 100, 120, 140, 180 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CryogenShield>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 132, 168 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.Retinazer, ProjectileID.EyeLaser), new int[] { 40, 76, 116, 128, 174 } },
|
||||
{ new Tuple<int, int>(NPCID.Retinazer, ProjectileID.EyeLaser), new int[] { 40, 92, 116, 140, 174 } },
|
||||
{ new Tuple<int, int>(NPCID.Retinazer, ProjectileID.DeathLaser), new int[] {
|
||||
50, // 38 in rapid fire
|
||||
92, // 69 in rapid fire
|
||||
124, // 93 in rapid fire
|
||||
136, // 102 in rapid fire
|
||||
186 } }, // 139 in rapid fire; 138 in non-rev master mode, 102 in rapid fire in non-rev master mode
|
||||
108, // 81 in rapid fire
|
||||
132, // 99 in rapid fire
|
||||
156, // 117 in rapid fire
|
||||
186 } }, // 139 in rapid fire
|
||||
{ new Tuple<int, int>(NPCID.Retinazer, ModContent.ProjectileType<ScavengerLaser>()), new int[] { 70, 120, 136, 152, 210 } },
|
||||
{ new Tuple<int, int>(NPCID.Spazmatism, ProjectileID.CursedFlameHostile), new int[] { 50, 88, 120, 132, 180 } },
|
||||
{ new Tuple<int, int>(NPCID.Spazmatism, ProjectileID.EyeFire), new int[] { 60, 108, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<Shadowflamethrower>()), new int[] { 70, 120, 148, 160, 222 } },
|
||||
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<ShadowflameFireball>()), new int[] { 60, 100, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(NPCID.Spazmatism, ProjectileID.CursedFlameHostile), new int[] { 50, 100, 120, 140, 180 } },
|
||||
{ new Tuple<int, int>(NPCID.Spazmatism, ProjectileID.EyeFire), new int[] { 60, 120, 148, 176, 222 } },
|
||||
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<Shadowflamethrower>()), new int[] { 70, 120, 148, 176, 222 } },
|
||||
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<ShadowflameFireball>()), new int[] { 60, 100, 128, 156, 192 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<SulphuricAcidMist>()), new int[] { 60, 100, 120, 132, 180 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<SulphuricAcidMist>()), new int[] { 60, 100, 120, 140, 180 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<SandPoisonCloud>()), new int[] { 70, 120, 136, 152, 210 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<ToxicCloud>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeBody>(), ModContent.ProjectileType<SandTooth>()), new int[] { 66, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<ToxicCloud>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeBody>(), ModContent.ProjectileType<SandTooth>()), new int[] { 66, 112, 128, 144, 198 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyer, ProjectileID.DeathLaser), new int[] { 0, 0, 0, 152, 210 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ProjectileID.DeathLaser), new int[] { 44, 72, 116, 128, 174 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ModContent.ProjectileType<DestroyerCursedLaser>()), new int[] { 46, 76, 128, 140, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 48, 80, 136, 152, 210 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ProjectileID.EyeLaser), new int[] { 40, 68, 100, 112, 144 } },
|
||||
{ new Tuple<int, int>(NPCID.Probe, ProjectileID.PinkLaser), new int[] { 50, 88, 100, 112, 144 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyer, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 136, 174 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyer, ModContent.ProjectileType<DestroyerCursedLaser>()), new int[] { 46, 108, 128, 148, 192 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyer, ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 48, 116, 136, 156, 210 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 136, 174 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ModContent.ProjectileType<DestroyerCursedLaser>()), new int[] { 46, 108, 128, 148, 192 } },
|
||||
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 48, 116, 136, 156, 210 } },
|
||||
{ new Tuple<int, int>(NPCID.Probe, ProjectileID.PinkLaser), new int[] { 50, 88, 100, 112, 162 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneRay>()), new int[] { 120, 200, 240, 252, 342 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Brimling>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Brimling>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 144, 210 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneRay>()), new int[] { 120, 200, 240, 280, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Brimling>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Brimling>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 144, 210 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.Skull), new int[] { 50, 100, 124, 136, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.DeathLaser), new int[] { 50, 100, 124, 136, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 160, 222 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SkeletronPrime2>(), ProjectileID.Skull), new int[] { 50, 100, 124, 136, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.Skull), new int[] { 50, 108, 124, 140, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 140, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 176, 222 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SkeletronPrime2>(), ProjectileID.Skull), new int[] { 50, 108, 124, 140, 186 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SkeletronPrime2>(), ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 180, 200, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SkeletronPrime2>(), ProjectileID.FrostBeam), new int[] { 50, 100, 124, 136, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 160, 222 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SkeletronPrime2>(), ProjectileID.FrostBeam), new int[] { 50, 108, 124, 140, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 176, 222 } },
|
||||
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 0, 0, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.PrimeLaser, ProjectileID.DeathLaser), new int[] { 50, 100, 124, 136, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.PrimeLaser, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 140, 186 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<SCalBrimstoneFireblast>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cataclysm>(), ModContent.ProjectileType<BrimstoneFire>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Catastrophe>(), ModContent.ProjectileType<BrimstoneBall>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SoulSeeker>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<SCalBrimstoneFireblast>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 144, 210 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cataclysm>(), ModContent.ProjectileType<BrimstoneFire>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Catastrophe>(), ModContent.ProjectileType<BrimstoneBall>()), new int[] { 70, 112, 128, 144, 210 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SoulSeeker>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 144, 210 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.SeedPlantera), new int[] { 44, 76, 128, 140, 186 } },
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.PoisonSeedPlantera), new int[] { 54, 96, 136, 152, 210 } },
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.ThornBall), new int[] { 62, 108, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ModContent.ProjectileType<SporeGasPlantera>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ModContent.ProjectileType<HomingGasBulb>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.SeedPlantera), new int[] { 52, 96, 128, 160, 210 } },
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.PoisonSeedPlantera), new int[] { 62, 116, 144, 172, 222 } },
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.ThornBall), new int[] { 72, 132, 160, 188, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ModContent.ProjectileType<SporeGasPlantera>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ModContent.ProjectileType<HomingGasBulb>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.HallowBossRainbowStreak), new int[] { 100, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.FairyQueenSunDance), new int[] { 120, 160, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.HallowBossLastingRainbow), new int[] { 100, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.FairyQueenLance), new int[] { 130, 120, 140, 176, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.HallowBossRainbowStreak), new int[] { 100, 152, 172, 192, 300 } },
|
||||
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.FairyQueenSunDance), new int[] { 120, 180, 204, 228, 360 } },
|
||||
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.HallowBossLastingRainbow), new int[] { 100, 152, 172, 192, 300 } },
|
||||
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.FairyQueenLance), new int[] { 130, 196, 216, 236, 390 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Leviathan>(), ModContent.ProjectileType<LeviathanBomb>()), new int[] { 100, 172, 208, 228, 300 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<WaterSpear>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<FrostMist>()), new int[] { 84, 148, 172, 188, 252 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<SirenSong>()), new int[] { 88, 156, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Leviathan>(), ModContent.ProjectileType<LeviathanBomb>()), new int[] { 100, 172, 208, 244, 300 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<WaterSpear>()), new int[] { 80, 140, 160, 180, 240 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<FrostMist>()), new int[] { 84, 148, 172, 196, 252 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<SirenSong>()), new int[] { 88, 156, 184, 212, 264 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumAureus>(), ModContent.ProjectileType<AstralLaser>()), new int[] { 88, 156, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumAureus>(), ModContent.ProjectileType<AstralFlame>()), new int[] { 100, 172, 208, 228, 300 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AureusSpawn>(), ModContent.ProjectileType<AstralLaser>()), new int[] { 88, 156, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumAureus>(), ModContent.ProjectileType<AstralLaser>()), new int[] { 88, 156, 184, 212, 264 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumAureus>(), ModContent.ProjectileType<AstralFlame>()), new int[] { 100, 172, 208, 244, 300 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AureusSpawn>(), ModContent.ProjectileType<AstralLaser>()), new int[] { 88, 156, 184, 212, 264 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.Fireball), new int[] { 58, 116, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.EyeBeam), new int[] { 56, 112, 172, 188, 252 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.Fireball), new int[] { 48, 94, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.EyeBeam), new int[] { 56, 112, 172, 188, 252 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.Fireball), new int[] { 48, 94, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.EyeBeam), new int[] { 56, 112, 172, 188, 252 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.InfernoHostileBolt), new int[] { 64, 128, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.Fireball), new int[] { 72, 132, 160, 188, 234 } },
|
||||
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 246 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.Fireball), new int[] { 60, 120, 160, 200, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 246 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.Fireball), new int[] { 60, 120, 160, 200, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 246 } },
|
||||
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 212, 264 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<PlagueStingerGoliath>()), new int[] { 88, 156, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<PlagueStingerGoliathV2>()), new int[] { 88, 156, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<HiveBombGoliath>()), new int[] { 120, 192, 220, 240, 330 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<PlagueStingerGoliath>()), new int[] { 88, 156, 184, 212, 264 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<PlagueStingerGoliathV2>()), new int[] { 88, 156, 184, 212, 264 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<HiveBombGoliath>()), new int[] { 120, 192, 220, 248, 360 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Sharknado), new int[] { 80, 100, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Cthulunado), new int[] { 160, 200, 232, 248, 348 } },
|
||||
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Sharknado), new int[] { 80, 100, 150, 200, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Cthulunado), new int[] { 160, 200, 232, 264, 480 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerBody>(), ModContent.ProjectileType<RavagerBlaster>()), new int[] { 120, 180, 208, 224, 312 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead>(), ModContent.ProjectileType<ScavengerNuke>()), new int[] { 120, 180, 208, 224, 312 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<ScavengerLaser>()), new int[] { 90, 144, 172, 188, 258 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<ScavengerNuke>()), new int[] { 120, 180, 208, 224, 312 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<FlamePillar>(), ModContent.ProjectileType<RavagerFlame>()), new int[] { 90, 144, 172, 188, 258 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerBody>(), ModContent.ProjectileType<RavagerBlaster>()), new int[] { 120, 180, 208, 236, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead>(), ModContent.ProjectileType<ScavengerNuke>()), new int[] { 120, 180, 208, 236, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<ScavengerLaser>()), new int[] { 90, 144, 172, 200, 270 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<ScavengerNuke>()), new int[] { 120, 180, 208, 236, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<FlamePillar>(), ModContent.ProjectileType<RavagerFlame>()), new int[] { 90, 144, 172, 200, 270 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossFireBall), new int[] { 60, 80, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossIceMist), new int[] { 70, 100, 208, 224, 312 } },
|
||||
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossLightningOrb), new int[] { 90, 120, 220, 240, 330 } },
|
||||
{ new Tuple<int, int>(NPCID.CultistBossClone, ProjectileID.CultistBossFireBallClone), new int[] { 36, 72, 172, 188, 258 } },
|
||||
{ new Tuple<int, int>(NPCID.AncientDoom, ProjectileID.AncientDoomProjectile), new int[] { 60, 180, 184, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossFireBall), new int[] { 88, 156, 184, 212, 264 } },
|
||||
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossIceMist), new int[] { 120, 180, 208, 236, 360 } },
|
||||
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossLightningOrb), new int[] { 120, 192, 220, 248, 360 } },
|
||||
{ new Tuple<int, int>(NPCID.CultistBossClone, ProjectileID.CultistBossFireBallClone), new int[] { 90, 144, 172, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.AncientDoom, ProjectileID.AncientDoomProjectile), new int[] { 88, 156, 184, 212, 264 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralShot2>()), new int[] { 90, 152, 176, 188, 264 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<DeusMine>()), new int[] { 120, 180, 208, 224, 312 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralGodRay>()), new int[] { 100, 172, 192, 204, 288 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralShot2>()), new int[] { 90, 152, 176, 200, 270 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<DeusMine>()), new int[] { 120, 180, 208, 236, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralGodRay>()), new int[] { 100, 172, 192, 212, 300 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalDeathray), new int[] { 150, 300, 380, 420, 570 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalBolt), new int[] { 60, 120, 160, 176, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalEye), new int[] { 60, 120, 160, 176, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalSphere), new int[] { 80, 160, 260, 284, 390 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalBolt), new int[] { 60, 120, 160, 176, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalBolt), new int[] { 70, 140, 180, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalEye), new int[] { 70, 140, 180, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalSphere), new int[] { 88, 176, 260, 284, 390 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalDeathray), new int[] { 100, 200, 260, 284, 390 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalDeathray), new int[] { 200, 300, 380, 460, 600 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalEye), new int[] { 90, 120, 160, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalSphere), new int[] { 120, 160, 220, 280, 360 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 200, 270 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalBolt), new int[] { 100, 140, 180, 220, 300 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalEye), new int[] { 100, 140, 180, 220, 300 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalSphere), new int[] { 132, 176, 220, 264, 396 } },
|
||||
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalDeathray), new int[] { 150, 200, 260, 320, 450 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<ProfanedSpear>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolySpear>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyBlast>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyFire>()), new int[] { 120, 192, 220, 236, 330 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyFire2>()), new int[] { 120, 192, 220, 236, 330 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<ProvidenceHolyRay>()), new int[] { 160, 320, 352, 370, 528 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<HolyBomb>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<HolyFlare>()), new int[] { 105, 171, 189, 198, 284 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<MoltenBlast>()), new int[] { 140, 228, 252, 264, 378 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<MoltenBlob>()), new int[] { 105, 171, 189, 198, 284 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<ProvidenceCrystalShard>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<HolyBurnOrb>()), new int[] { 120, 192, 220, 236, 330 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<ProfanedSpear>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolySpear>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyBlast>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyFire>()), new int[] { 120, 192, 220, 236, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyFire2>()), new int[] { 120, 192, 220, 236, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<ProvidenceHolyRay>()), new int[] { 160, 320, 352, 370, 480 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<HolyBomb>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<HolyFlare>()), new int[] { 105, 171, 189, 198, 315 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<MoltenBlast>()), new int[] { 140, 228, 252, 264, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<MoltenBlob>()), new int[] { 105, 171, 189, 198, 315 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<ProvidenceCrystalShard>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<HolyBurnOrb>()), new int[] { 120, 192, 220, 236, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<HolyLight>()), new int[] { 35, 50, 50, 0, 0 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Bumblefuck>(), ModContent.ProjectileType<RedLightningFeather>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Bumblefuck>(), ModContent.ProjectileType<BirbAuraFlare>()), new int[] { 200, 300, 332, 356, 498 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Bumblefuck>(), ModContent.ProjectileType<RedLightningFeather>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Bumblefuck>(), ModContent.ProjectileType<BirbAuraFlare>()), new int[] { 200, 300, 332, 356, 600 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBlast>()), new int[] { 150, 264, 288, 300, 432 } }, // Split holy fire does: 113, 198, 216, 225, 324
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFire>()), new int[] { 120, 192, 220, 236, 330 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFire2>()), new int[] { 120, 192, 220, 236, 330 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBurnOrb>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBlast>()), new int[] { 150, 264, 288, 300, 450 } }, // Split holy fire does: 113, 198, 216, 225, 338
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFire>()), new int[] { 120, 192, 220, 236, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFire2>()), new int[] { 120, 192, 220, 236, 360 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBurnOrb>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyLight>()), new int[] { 35, 50, 50, 0, 0 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<MoltenBlast>()), new int[] { 140, 228, 252, 264, 378 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<MoltenBlob>()), new int[] { 105, 171, 189, 198, 284 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBomb>()), new int[] { 140, 228, 252, 264, 378 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFlare>()), new int[] { 105, 171, 189, 198, 284 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolySpear>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceCrystal>()), new int[] { 140, 228, 252, 264, 378 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceCrystalShard>()), new int[] { 140, 228, 252, 264, 378 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceHolyRay>()), new int[] { 200, 400, 440, 464, 660 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<MoltenBlast>()), new int[] { 140, 228, 252, 264, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<MoltenBlob>()), new int[] { 105, 171, 189, 198, 315 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBomb>()), new int[] { 140, 228, 252, 264, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFlare>()), new int[] { 105, 171, 189, 198, 315 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolySpear>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceCrystal>()), new int[] { 140, 228, 252, 264, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceCrystalShard>()), new int[] { 140, 228, 252, 264, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceHolyRay>()), new int[] { 200, 400, 440, 464, 600 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DoGBeamPortal>()), new int[] { 140, 240, 264, 280, 396 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DarkEnergyBall>()), new int[] { 140, 240, 264, 280, 396 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DarkEnergyBall2>()), new int[] { 140, 240, 264, 280, 396 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DoGBeamPortal>()), new int[] { 140, 240, 264, 280, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DarkEnergyBall>()), new int[] { 140, 240, 264, 280, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DarkEnergyBall2>()), new int[] { 140, 240, 264, 280, 420 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 150, 264, 288, 300, 432 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ProjectileID.FrostWave), new int[] { 150, 264, 288, 300, 432 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ModContent.ProjectileType<StormMarkHostile>()), new int[] { 160, 276, 304, 320, 456 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverBody>(), ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 140, 240, 264, 280, 396 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverTail>(), ProjectileID.CultistBossLightningOrb), new int[] { 150, 264, 288, 300, 432 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 150, 264, 288, 300, 450 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ProjectileID.FrostWave), new int[] { 150, 264, 288, 300, 450 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ModContent.ProjectileType<StormMarkHostile>()), new int[] { 160, 276, 304, 320, 480 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverBody>(), ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 140, 240, 264, 280, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverTail>(), ProjectileID.CultistBossLightningOrb), new int[] { 150, 264, 288, 300, 450 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Signus>(), ModContent.ProjectileType<SignusScythe>()), new int[] { 140, 240, 264, 280, 396 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Signus>(), ModContent.ProjectileType<EssenceDust>()), new int[] { 140, 240, 264, 280, 396 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Signus>(), ModContent.ProjectileType<SignusScythe>()), new int[] { 140, 240, 264, 280, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Signus>(), ModContent.ProjectileType<EssenceDust>()), new int[] { 140, 240, 264, 280, 420 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomShot>()), new int[] { 140, 240, 264, 280, 396 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomShot2>()), new int[] { 150, 264, 288, 300, 432 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomBlast>()), new int[] { 150, 264, 288, 300, 432 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomBlast2>()), new int[] { 160, 276, 304, 320, 456 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PolterghastHook>(), ModContent.ProjectileType<PhantomHookShot>()), new int[] { 140, 240, 264, 280, 396 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PhantomFuckYou>(), ModContent.ProjectileType<PhantomMine>()), new int[] { 170, 296, 324, 340, 462 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PhantomSpiritL>(), ModContent.ProjectileType<PhantomGhostShot>()), new int[] { 150, 264, 288, 300, 432 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomShot>()), new int[] { 140, 240, 264, 280, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomShot2>()), new int[] { 150, 264, 288, 300, 450 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomBlast>()), new int[] { 150, 264, 288, 300, 450 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomBlast2>()), new int[] { 160, 276, 304, 320, 480 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PolterghastHook>(), ModContent.ProjectileType<PhantomHookShot>()), new int[] { 140, 240, 264, 280, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PhantomFuckYou>(), ModContent.ProjectileType<PhantomMine>()), new int[] { 170, 296, 324, 340, 510 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PhantomSpiritL>(), ModContent.ProjectileType<PhantomGhostShot>()), new int[] { 150, 264, 288, 300, 450 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Mauler>(), ModContent.ProjectileType<MaulerAcidBubble>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Mauler>(), ModContent.ProjectileType<MaulerAcidDrop>()), new int[] { 140, 220, 244, 256, 366 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Mauler>(), ModContent.ProjectileType<MaulerAcidBubble>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Mauler>(), ModContent.ProjectileType<MaulerAcidDrop>()), new int[] { 140, 220, 244, 256, 420 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<OldDuke>(), ModContent.ProjectileType<OldDukeGore>()), new int[] { 170, 296, 324, 340, 462 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<OldDuke>(), ModContent.ProjectileType<OldDukeVortex>()), new int[] { 280, 400, 440, 464, 660 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<OldDukeToothBall>(), ModContent.ProjectileType<OldDukeToothBallSpike>()), new int[] { 170, 296, 324, 340, 462 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<OldDukeToothBall>(), ModContent.ProjectileType<SandPoisonCloudOldDuke>()), new int[] { 180, 316, 348, 364, 492 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SulphurousSharkron>(), ModContent.ProjectileType<OldDukeGore>()), new int[] { 170, 296, 324, 340, 462 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<OldDuke>(), ModContent.ProjectileType<OldDukeGore>()), new int[] { 170, 296, 324, 340, 510 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<OldDuke>(), ModContent.ProjectileType<OldDukeVortex>()), new int[] { 280, 420, 460, 484, 840 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<OldDukeToothBall>(), ModContent.ProjectileType<OldDukeToothBallSpike>()), new int[] { 170, 296, 324, 340, 510 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<OldDukeToothBall>(), ModContent.ProjectileType<SandPoisonCloudOldDuke>()), new int[] { 180, 316, 348, 364, 540 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SulphurousSharkron>(), ModContent.ProjectileType<OldDukeGore>()), new int[] { 170, 296, 324, 340, 510 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsHead>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 180, 316, 348, 364, 492 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsHead>(), ModContent.ProjectileType<DoGFire>()), new int[] { 200, 340, 376, 396, 564 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsBody>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 180, 316, 348, 364, 492 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsHead>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 180, 316, 348, 364, 540 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsHead>(), ModContent.ProjectileType<DoGFire>()), new int[] { 200, 340, 376, 396, 600 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsBody>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 180, 316, 348, 364, 540 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<SkyFlareRevenge>()), new int[] { 300, 520, 548, 564, 822 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareBomb>()), new int[] { 220, 384, 424, 444, 600 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Flarenado>()), new int[] { 250, 440, 464, 476, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Infernado>()), new int[] { 250, 440, 464, 476, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Infernado2>()), new int[] { 250, 440, 464, 476, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareDust>()), new int[] { 220, 384, 424, 444, 600 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareDust2>()), new int[] { 220, 384, 424, 444, 600 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<YharonFireball>()), new int[] { 220, 384, 424, 444, 600 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<YharonBulletHellVortex>()), new int[] { 250, 440, 464, 476, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<SkyFlareRevenge>()), new int[] { 300, 520, 548, 564, 900 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareBomb>()), new int[] { 220, 384, 424, 444, 660 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Flarenado>()), new int[] { 250, 440, 464, 476, 750 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Infernado>()), new int[] { 250, 440, 464, 476, 750 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Infernado2>()), new int[] { 250, 440, 464, 476, 750 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareDust>()), new int[] { 220, 384, 424, 444, 660 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareDust2>()), new int[] { 220, 384, 424, 444, 660 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<YharonFireball>()), new int[] { 220, 384, 424, 444, 660 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<YharonBulletHellVortex>()), new int[] { 250, 440, 464, 476, 750 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 280, 476, 484, 500, 726 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<SCalBrimstoneFireblast>()), new int[] { 280, 476, 484, 500, 726 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<SCalBrimstoneGigablast>()), new int[] { 300, 508, 528, 544, 780 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneMonster>()), new int[] { 350, 592, 624, 656, 918 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneWave>()), new int[] { 280, 476, 484, 500, 726 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 280, 476, 484, 500, 726 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SepulcherBodyEnergyBall>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SoulSeekerSupreme>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCataclysm>(), ModContent.ProjectileType<SupremeCataclysmFist>()), new int[] { 280, 476, 484, 500, 726 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCataclysm>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCatastrophe>(), ModContent.ProjectileType<SupremeCatastropheSlash>()), new int[] { 280, 476, 484, 500, 726 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCatastrophe>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 280, 476, 484, 500, 840 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<SCalBrimstoneFireblast>()), new int[] { 280, 476, 484, 500, 840 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<SCalBrimstoneGigablast>()), new int[] { 300, 508, 528, 544, 900 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneMonster>()), new int[] { 350, 592, 624, 656, 1050 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneWave>()), new int[] { 280, 476, 484, 500, 840 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 750 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 280, 476, 484, 500, 840 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SepulcherBodyEnergyBall>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 750 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SoulSeekerSupreme>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 750 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCataclysm>(), ModContent.ProjectileType<SupremeCataclysmFist>()), new int[] { 280, 476, 484, 500, 840 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCataclysm>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 750 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCatastrophe>(), ModContent.ProjectileType<SupremeCatastropheSlash>()), new int[] { 280, 476, 484, 500, 840 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SupremeCatastrophe>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 476, 750 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Artemis>(), ModContent.ProjectileType<ArtemisSpinLaserbeam>()), new int[] { 300, 508, 528, 544, 780 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Artemis>(), ModContent.ProjectileType<ArtemisLaser>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Apollo>(), ModContent.ProjectileType<ApolloFireball>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Apollo>(), ModContent.ProjectileType<ApolloRocket>()), new int[] { 280, 476, 484, 500, 726 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Artemis>(), ModContent.ProjectileType<ArtemisSpinLaserbeam>()), new int[] { 300, 508, 528, 544, 900 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Artemis>(), ModContent.ProjectileType<ArtemisLaser>()), new int[] { 240, 408, 432, 456, 720 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Apollo>(), ModContent.ProjectileType<ApolloFireball>()), new int[] { 240, 408, 432, 456, 720 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Apollo>(), ModContent.ProjectileType<ApolloRocket>()), new int[] { 280, 476, 484, 500, 840 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosHead>(), ModContent.ProjectileType<ThanatosBeamStart>()), new int[] { 350, 592, 624, 656, 918 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosHead>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosBody1>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosBody2>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosTail>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosHead>(), ModContent.ProjectileType<ThanatosBeamStart>()), new int[] { 350, 592, 624, 656, 1050 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosHead>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosBody1>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosBody2>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<ThanatosTail>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresBody>(), ModContent.ProjectileType<AresDeathBeamStart>()), new int[] { 300, 508, 528, 544, 780 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresLaserCannon>(), ModContent.ProjectileType<AresLaserBeamStart>()), new int[] { 300, 508, 528, 544, 780 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresLaserCannon>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresPlasmaFlamethrower>(), ModContent.ProjectileType<AresPlasmaFireball>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresTeslaCannon>(), ModContent.ProjectileType<AresTeslaOrb>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresGaussNuke>(), ModContent.ProjectileType<AresGaussNukeProjectile>()), new int[] { 400, 608, 640, 658, 960 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresBody>(), ModContent.ProjectileType<AresDeathBeamStart>()), new int[] { 300, 508, 528, 544, 900 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresLaserCannon>(), ModContent.ProjectileType<AresLaserBeamStart>()), new int[] { 300, 508, 528, 544, 900 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresLaserCannon>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresPlasmaFlamethrower>(), ModContent.ProjectileType<AresPlasmaFireball>()), new int[] { 240, 408, 432, 456, 720 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresTeslaCannon>(), ModContent.ProjectileType<AresTeslaOrb>()), new int[] { 240, 408, 432, 456, 720 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresGaussNuke>(), ModContent.ProjectileType<AresGaussNukeProjectile>()), new int[] { 400, 608, 640, 658, 1200 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1182 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmBodyAlt>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 948 } }
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 1200 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1500 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 1200 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmBodyAlt>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 1200 } }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
SulfurousSeaAcid = 75,
|
||||
Brimstone = 235,
|
||||
Ectoplasm = 180,
|
||||
Polterplasm = 60,
|
||||
Necroplasm = 60,
|
||||
Plague = 46,
|
||||
ProfanedFire = 244,
|
||||
Nightwither = 185,
|
||||
|
||||
@@ -179,6 +179,7 @@ namespace CalamityMod.Effects
|
||||
#region Aqua's Shaders
|
||||
internal static Effect CircularGradientWithEdge;
|
||||
internal static Effect WavyOpacity;
|
||||
internal static Effect HellBall;
|
||||
#endregion
|
||||
|
||||
//
|
||||
@@ -397,6 +398,8 @@ namespace CalamityMod.Effects
|
||||
RegisterMiscShader(CircularGradientWithEdge, "CircularGradientWithEdgePass", "CircularGradientWithEdge");
|
||||
WavyOpacity = LoadShader("WavyOpacity");
|
||||
RegisterMiscShader(WavyOpacity, "WavyOpacityPass", "WavyOpacity");
|
||||
HellBall = LoadShader("HellBall");
|
||||
RegisterScreenShader(HellBall, "HellBallPass", "HellBall");
|
||||
#endregion
|
||||
|
||||
#region Loading Amber's Shaders
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
float time;
|
||||
float blowUpPower; //The power the blow up effect is set as. Ideally betwen 0 and 1
|
||||
float blowUpSize; //The strenght of the expansion caused by the blow up effect
|
||||
float3 shieldColor;
|
||||
float shieldOpacity;
|
||||
float3 shieldEdgeColor;
|
||||
float shieldEdgeBlendStrenght;
|
||||
float noiseScale;
|
||||
float resolution;
|
||||
|
||||
texture sampleTexture;
|
||||
sampler2D Texture1Sampler = sampler_state { texture = <sampleTexture>; magfilter = LINEAR; minfilter = LINEAR; mipfilter = LINEAR; AddressU = wrap; AddressV = wrap; };
|
||||
|
||||
float4 main(float2 uv : TEXCOORD) : COLOR
|
||||
{
|
||||
//Pixelate?
|
||||
//uv.x -= uv.x % (1 / resolution);
|
||||
//uv.y -= uv.y % (1 / resolution);
|
||||
|
||||
//Crop in a circle
|
||||
float distanceFromCenter = length(uv - float2(0.5, 0.5)) * 2;
|
||||
if (distanceFromCenter > 1)
|
||||
return float4(0, 0, 0, 0);
|
||||
|
||||
//"Blow up" the noise map so it looks circular.
|
||||
float blownUpUVX = pow((abs(uv.x - 0.5)) * 2, blowUpPower);
|
||||
float blownUpUVY = pow((abs(uv.y - 0.5)) * 2, blowUpPower);
|
||||
float2 blownUpUV = float2(-blownUpUVY * blowUpSize * 0.5 + uv.x * (1 + blownUpUVY * blowUpSize), -blownUpUVX * blowUpSize * 0.5 + uv.y * (1 + blownUpUVX * blowUpSize));
|
||||
|
||||
//Rescale
|
||||
blownUpUV *= noiseScale;
|
||||
//Scroll effect
|
||||
blownUpUV.y = (blownUpUV.y + time) % 1;
|
||||
|
||||
//Get the noise color
|
||||
float4 noiseColor = tex2D(Texture1Sampler, blownUpUV);
|
||||
|
||||
//Apply a layers of fake fresnel
|
||||
noiseColor += pow(distanceFromCenter, 6); // + pow(distanceFromCenter, 3) * 0.6; <- Brings us over into ps 3.0 territory if we have pixelation on.
|
||||
//Fade the edges
|
||||
if (distanceFromCenter > 0.95)
|
||||
noiseColor *= (1 - ((distanceFromCenter - 0.95) / 0.05));
|
||||
|
||||
return noiseColor * float4(lerp(shieldColor, shieldEdgeColor, pow(distanceFromCenter, shieldEdgeBlendStrenght)), shieldOpacity);
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass HellBallPass
|
||||
{
|
||||
PixelShader = compile ps_2_0 main();
|
||||
}
|
||||
}
|
||||
@@ -490,9 +490,9 @@ namespace CalamityMod.Events
|
||||
int tier = CurrentTier;
|
||||
if (CalamityMod.Instance.musicMod != null)
|
||||
{
|
||||
// Boss Rush music for tiers 4 and 5 don't exist
|
||||
if (tier > 3)
|
||||
tier = 3;
|
||||
// Boss Rush music for tier 5 doesn't exist
|
||||
if (tier > 4)
|
||||
tier = 4;
|
||||
return CalamityMod.Instance.GetMusicFromMusicMod($"BossRushTier{tier}") ?? 0;
|
||||
}
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 442 B |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 789 B |
|
After Width: | Height: | Size: 722 B |
|
After Width: | Height: | Size: 643 B |
|
After Width: | Height: | Size: 556 B |
|
After Width: | Height: | Size: 789 B |
|
After Width: | Height: | Size: 872 B |
|
After Width: | Height: | Size: 523 B |
|
After Width: | Height: | Size: 335 B |
|
After Width: | Height: | Size: 328 B |
@@ -45,7 +45,7 @@ namespace CalamityMod.ILEditing
|
||||
|
||||
private static void NerfSoaringInsigniaRunAcceleration(ILContext il)
|
||||
{
|
||||
// Nerf the run acceleration boost from 2x to 1.1x.
|
||||
// Nerf the run acceleration boost from 1.75x to 1.1x.
|
||||
var cursor = new ILCursor(il);
|
||||
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchLdfld<Player>("empressBrooch")))
|
||||
{
|
||||
@@ -109,6 +109,7 @@ namespace CalamityMod.ILEditing
|
||||
cursor.Emit(OpCodes.Ldc_R4, 0.5f); // Decrease to 0.5f.
|
||||
|
||||
// Find the Frog Leg jump speed bonus and reduce it to 1.2f.
|
||||
// I don't know if this fucking does anything anymore, but I'm leaving it in just in case.
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(2.4f)))
|
||||
{
|
||||
LogFailure("Jump Height Boost Fixes", "Could not locate Frog Leg jump speed boost value.");
|
||||
@@ -348,34 +349,6 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Chlorophyte Bullet Speed Nerfs
|
||||
private static void AdjustChlorophyteBullets(ILContext il)
|
||||
{
|
||||
// Reduce dust from 10 to 5 and homing range.
|
||||
var cursor = new ILCursor(il);
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(ProjectileID.ChlorophyteBullet)))
|
||||
{
|
||||
LogFailure("Chlorophyte Bullet AI", "Could not locate the bullet ID.");
|
||||
return;
|
||||
}
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(10))) // The number of dust spawned by the bullet.
|
||||
{
|
||||
LogFailure("Chlorophyte Bullet AI", "Could not locate the dust quantity.");
|
||||
return;
|
||||
}
|
||||
cursor.Remove();
|
||||
cursor.Emit(OpCodes.Ldc_I4_5); // Decrease dust to 5.
|
||||
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(300f))) // The 300 unit distance required to home in.
|
||||
{
|
||||
LogFailure("Chlorophyte Bullet AI", "Could not locate the homing range.");
|
||||
return;
|
||||
}
|
||||
cursor.Remove();
|
||||
cursor.Emit(OpCodes.Ldc_R4, 150f); // Reduce homing range by 50%.
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Terrarian Projectile Limitation for Extra Updates
|
||||
private static void LimitTerrarianProjectiles(ILContext il)
|
||||
{
|
||||
|
||||
@@ -93,7 +93,6 @@ namespace CalamityMod.ILEditing
|
||||
// Damage and health balance
|
||||
On_Main.DamageVar_float_int_float += AdjustDamageVariance;
|
||||
IL_NPC.ScaleStats_ApplyExpertTweaks += RemoveExpertHardmodeScaling;
|
||||
IL_Projectile.AI_001 += AdjustChlorophyteBullets;
|
||||
IL_Projectile.AI_099_2 += LimitTerrarianProjectiles;
|
||||
IL_Player.UpdateBuffs += NerfSharpeningStation;
|
||||
IL_Player.UpdateBuffs += NerfBeetleScaleMail;
|
||||
@@ -154,6 +153,9 @@ namespace CalamityMod.ILEditing
|
||||
// Fix vanilla not accounting for spritebatch modification in held projectile drawing
|
||||
On_PlayerDrawLayers.DrawHeldProj += FixHeldProjectileBlendState;
|
||||
|
||||
// Fix vanilla not accounting for multiple bobbers when fishing with truffle worm
|
||||
IL_Player.ItemCheck_CheckFishingBobbers += FixTruffleWormFishing;
|
||||
|
||||
//Additional detours that are in their own item files given they are only relevant to these specific items:
|
||||
//Rover drive detours on Player.DrawInfernoRings to draw its shield
|
||||
//Wulfrum armor hooks on Player.KeyDoubleTap and DrawPendingMouseText to activate its set bonus and spoof the mouse text to display the stats of the activated weapon if shift is held
|
||||
|
||||
@@ -6,6 +6,7 @@ using MonoMod.Cil;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Renderers;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.ILEditing
|
||||
{
|
||||
@@ -69,5 +70,52 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Fix Vanilla Not Accounting For Multiple Bobbers When Fishing With Truffle Worm
|
||||
private void FixTruffleWormFishing(ILContext il)
|
||||
{
|
||||
var cursor = new ILCursor(il);
|
||||
|
||||
// Initialize a flag variable whether truffle worm was used.
|
||||
il.Method.Body.Variables.Add(new VariableDefinition(il.Module.TypeSystem.Boolean));
|
||||
byte truffleWormUsed = (byte) (il.Method.Body.Variables.Count - 1);
|
||||
cursor.Emit(OpCodes.Ldc_I4_0);
|
||||
cursor.Emit(OpCodes.Stloc_S, truffleWormUsed);
|
||||
|
||||
// Move after beq.s, which is before Player.ItemCheck_CheckFishingBobber_PickAndConsumeBait gets called
|
||||
if (!cursor.TryGotoNext(MoveType.After, i => i.Match(OpCodes.Beq_S)))
|
||||
{
|
||||
LogFailure("FixTruffleWormFishing", "Could not locate beq.s before Player.ItemCheck_CheckFishingBobber_PickAndConsumeBait.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Skip if truffle worm was already used.
|
||||
var loopEnd = il.DefineLabel();
|
||||
cursor.Emit(OpCodes.Ldloc_S, truffleWormUsed);
|
||||
cursor.Emit(OpCodes.Brtrue_S, loopEnd);
|
||||
|
||||
// Find the call to Player.ItemCheck_CheckFishingBobber_PickAndConsumeBait.
|
||||
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchCall<Player>("ItemCheck_CheckFishingBobber_PickAndConsumeBait")))
|
||||
{
|
||||
LogFailure("FixTruffleWormFishing", "Could not locate the call to Player.ItemCheck_CheckFishingBobber_PickAndConsumeBait.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Retrive baitTypeUsed, compare with truffle worm, and save it.
|
||||
cursor.Emit(OpCodes.Ldloc_S, (byte)4);
|
||||
cursor.Emit(OpCodes.Ldc_I4, ItemID.TruffleWorm);
|
||||
cursor.Emit(OpCodes.Ceq);
|
||||
cursor.Emit(OpCodes.Stloc_S, truffleWormUsed);
|
||||
|
||||
// Move before next ldloc.0, which is the end of the loop
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdloc0()))
|
||||
{
|
||||
LogFailure("FixTruffleWormFishing", "Could not find the end of the loop.");
|
||||
return;
|
||||
}
|
||||
|
||||
cursor.MarkLabel(loopEnd);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public class AeroStone : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(4, 8));
|
||||
@@ -21,16 +22,15 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
Item.width = 40;
|
||||
Item.height = 50;
|
||||
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.Calamity().aeroStone = true;
|
||||
player.wingTimeMax += 25;
|
||||
|
||||
player.wingTimeMax += 50;
|
||||
}
|
||||
|
||||
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
|
||||
|
||||
@@ -3,31 +3,44 @@ using CalamityMod.CalPlayer.Dashes;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class DeepDiver : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public const int ShieldSlamDamage = 35;
|
||||
public const float ShieldSlamKnockback = 0.2f;
|
||||
public const int ShieldSlamIFrames = 16;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 24;
|
||||
Item.height = 28;
|
||||
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.defense = 8;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
if (player.IsUnderwater())
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.deepDiver = true;
|
||||
modPlayer.DashID = DeepDiverDash.ID;
|
||||
player.dashType = 0;
|
||||
}
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.deepDiver = true;
|
||||
modPlayer.DashID = DeepDiverDash.ID;
|
||||
player.dashType = 0;
|
||||
player.ignoreWater = true; // Mobility in water
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<SeaPrism>(25).
|
||||
AddIngredient<MolluskHusk>(5).
|
||||
AddRecipeGroup("AnyCobaltBar", 10).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CreateRecipe().
|
||||
AddIngredient<ExodiumCluster>(25).
|
||||
AddIngredient<Navyplate>(25).
|
||||
AddIngredient<Polterplasm>(5).
|
||||
AddIngredient<Necroplasm>(5).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 28;
|
||||
Item.defense = 10;
|
||||
Item.defense = 6;
|
||||
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.accessory = true;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.autoJump = true;
|
||||
player.jumpSpeedBoost += 0.3f;
|
||||
player.jumpSpeedBoost += 1.6f;
|
||||
player.extraFall += 35;
|
||||
player.blackBelt = true;
|
||||
player.dashType = 1;
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient(ItemID.MasterNinjaGear).
|
||||
AddIngredient(ItemID.FrogFlipper).
|
||||
AddIngredient<PurifiedGel>(50).
|
||||
AddIngredient<Polterplasm>(5).
|
||||
AddIngredient<Necroplasm>(5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient(ItemID.BlackBelt).
|
||||
AddIngredient(ItemID.FrogGear).
|
||||
AddIngredient<PurifiedGel>(50).
|
||||
AddIngredient<Polterplasm>(5).
|
||||
AddIngredient<Necroplasm>(5).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
player.autoJump = true;
|
||||
player.jumpSpeedBoost += 0.6f;
|
||||
player.jumpSpeedBoost += 1.6f;
|
||||
player.noFallDmg = true;
|
||||
player.blackBelt = true;
|
||||
modPlayer.DashID = StatisVoidSashDash.ID;
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<AmalgamatedBrain>().
|
||||
AddIngredient<UnholyCore>(5).
|
||||
AddIngredient<MolluskHusk>(10).
|
||||
AddIngredient<SulphuricScale>(15).
|
||||
AddIngredient<CorrodedFossil>(15).
|
||||
AddIngredient<PlagueCellCanister>(15).
|
||||
AddIngredient<CosmiliteBar>(5).
|
||||
AddIngredient<AscendantSpiritEssence>(4).
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.jumpBoost = true;
|
||||
player.autoJump = true;
|
||||
player.noFallDmg = true;
|
||||
player.jumpSpeedBoost += 0.5f;
|
||||
player.jumpSpeedBoost += 1.6f;
|
||||
player.luck += 0.05f;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
Item.width = 8;
|
||||
Item.height = 8;
|
||||
Item.damage = 18;
|
||||
Item.damage = 16;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.maxStack = 9999;
|
||||
Item.consumable = true;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 36;
|
||||
Item.damage = 11;
|
||||
Item.damage = 12;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.maxStack = 9999;
|
||||
Item.consumable = true;
|
||||
|
||||
@@ -17,12 +17,12 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
Item.width = 14;
|
||||
Item.height = 20;
|
||||
Item.damage = 13;
|
||||
Item.damage = 12;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.consumable = true;
|
||||
Item.knockBack = 2f;
|
||||
Item.value = Item.buyPrice(0, 0, 0, 80);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.shoot = ModContent.ProjectileType<HailstormBulletProj>();
|
||||
Item.shootSpeed = 0.3f;
|
||||
Item.ammo = AmmoID.Bullet;
|
||||
|
||||
@@ -7,8 +7,11 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
public class HallowPointRound : ModItem, ILocalizedModType
|
||||
{
|
||||
public static int BaseDamage = 18;
|
||||
public new string LocalizationCategory => "Items.Ammo";
|
||||
|
||||
public static int BaseDamage = 12;
|
||||
public static int BonusDamageOnHit = 6; // 12 + 6 = 18
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 99;
|
||||
|
||||
@@ -9,6 +9,9 @@ namespace CalamityMod.Items.Ammo
|
||||
public class HyperiusBullet : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Ammo";
|
||||
|
||||
public static int SplitBulletBonusDamage = 10;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 99;
|
||||
@@ -18,13 +21,13 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
Item.width = 24;
|
||||
Item.height = 30;
|
||||
Item.damage = 19;
|
||||
Item.damage = 13;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.maxStack = 9999;
|
||||
Item.consumable = true;
|
||||
Item.knockBack = 1.5f;
|
||||
Item.value = Item.sellPrice(copper: 16);
|
||||
Item.rare = ItemRarityID.Cyan;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.shoot = ModContent.ProjectileType<HyperiusBulletProj>();
|
||||
Item.shootSpeed = 5f;
|
||||
Item.ammo = AmmoID.Bullet;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Ammo
|
||||
Item.consumable = true;
|
||||
Item.knockBack = 2.5f;
|
||||
Item.value = Item.buyPrice(0, 0, 0, 80);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.shoot = ModContent.ProjectileType<IcicleArrowProj>();
|
||||
Item.shootSpeed = 0.2f;
|
||||
Item.ammo = AmmoID.Arrow;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 46;
|
||||
Item.damage = 32;
|
||||
Item.damage = 30;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.maxStack = 9999;
|
||||
Item.consumable = true;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
Item.width = 8;
|
||||
Item.height = 8;
|
||||
Item.damage = 7;
|
||||
Item.damage = 6;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.maxStack = 9999;
|
||||
Item.consumable = true;
|
||||
|
||||
@@ -38,14 +38,14 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
player.thorns += 0.33f;
|
||||
player.moveSpeed -= 0.2f;
|
||||
player.moveSpeed -= 0.3f;
|
||||
player.statDefense += 10;
|
||||
player.lifeRegen += 3;
|
||||
player.aggro += 600;
|
||||
modPlayer.reaverDefense = true;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
//Reaver Rage provides 30% damage to offset the helm "bonus", 5 def, and 5% melee speed.
|
||||
// Reaver Rage provides 10% damage, 5 def, and 5% melee speed.
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MeleeDamageClass>() += 0.1f;
|
||||
player.GetDamage<MeleeDamageClass>() += 0.12f;
|
||||
player.GetCritChance<MeleeDamageClass>() += 10;
|
||||
player.endurance += 0.1f;
|
||||
}
|
||||
|
||||
@@ -200,6 +200,10 @@ namespace CalamityMod.Items
|
||||
break;
|
||||
}
|
||||
|
||||
// Allow Beam Sword to change direction when it fires, because vanilla disables it for some reason.
|
||||
if (item.type == ItemID.BeamSword)
|
||||
item.ChangePlayerDirectionOnShoot = true;
|
||||
|
||||
// Apply Calamity Global Item Tweaks.
|
||||
SetDefaults_ApplyTweaks(item);
|
||||
|
||||
@@ -1027,7 +1031,7 @@ namespace CalamityMod.Items
|
||||
}
|
||||
else if (set == "SpectreHealing")
|
||||
{
|
||||
player.GetDamage<MagicDamageClass>() += 0.2f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.4f;
|
||||
player.setBonus = CalamityUtils.GetTextValue("Vanilla.Armor.SetBonus.SpectreHealing");
|
||||
}
|
||||
else if (set == "SolarFlare")
|
||||
@@ -1569,11 +1573,11 @@ namespace CalamityMod.Items
|
||||
/* Prehardmode = 2
|
||||
* Hardmode = 3
|
||||
* Post-Moon Lord = 4
|
||||
* Post-DoG = 6
|
||||
* Post-DoG = 5
|
||||
*/
|
||||
|
||||
if (DownedBossSystem.downedDoG)
|
||||
player.statDefense += 4;
|
||||
player.statDefense += 3;
|
||||
else if (NPC.downedMoonlord)
|
||||
player.statDefense += 2;
|
||||
else if (Main.hardMode)
|
||||
@@ -1584,34 +1588,34 @@ namespace CalamityMod.Items
|
||||
if (item.prefix == PrefixID.Armored)
|
||||
{
|
||||
/* Prehardmode = 3
|
||||
* Hardmode = 5
|
||||
* Post-Moon Lord = 6
|
||||
* Post-DoG = 8
|
||||
* Hardmode = 4
|
||||
* Post-Moon Lord = 5
|
||||
* Post-DoG = 6
|
||||
*/
|
||||
|
||||
if (DownedBossSystem.downedDoG)
|
||||
player.statDefense += 5;
|
||||
else if (NPC.downedMoonlord)
|
||||
player.statDefense += 3;
|
||||
else if (Main.hardMode)
|
||||
else if (NPC.downedMoonlord)
|
||||
player.statDefense += 2;
|
||||
else if (Main.hardMode)
|
||||
player.statDefense += 1;
|
||||
|
||||
player.endurance += 0.0075f;
|
||||
}
|
||||
if (item.prefix == PrefixID.Warding)
|
||||
{
|
||||
/* Prehardmode = 4
|
||||
* Hardmode = 6
|
||||
* Post-Moon Lord = 8
|
||||
* Post-DoG = 10
|
||||
* Hardmode = 5
|
||||
* Post-Moon Lord = 6
|
||||
* Post-DoG = 7
|
||||
*/
|
||||
|
||||
if (DownedBossSystem.downedDoG)
|
||||
player.statDefense += 6;
|
||||
player.statDefense += 3;
|
||||
else if (NPC.downedMoonlord)
|
||||
player.statDefense += 4;
|
||||
else if (Main.hardMode)
|
||||
player.statDefense += 2;
|
||||
else if (Main.hardMode)
|
||||
player.statDefense += 1;
|
||||
|
||||
player.endurance += 0.01f;
|
||||
}
|
||||
|
||||
@@ -132,6 +132,7 @@ namespace CalamityMod.Items
|
||||
|
||||
case ItemID.QueenSlimeBossBag:
|
||||
loot.Add(ItemID.SoulofLight, 1, 15, 20); // 100% 15-20 Soul of Light
|
||||
loot.Add(ItemID.PinkGel, 1, 15, 20); // 100% 15-20 Pink Gel
|
||||
loot.AddRevBagAccessories();
|
||||
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
|
||||
break;
|
||||
@@ -309,7 +310,7 @@ namespace CalamityMod.Items
|
||||
case ItemID.DungeonFishingCrate:
|
||||
case ItemID.DungeonFishingCrateHard:
|
||||
loot.AddIf(() => NPC.downedPlantBoss, ItemID.Ectoplasm, 10, 1, 5); // 10% 1-5 Ectoplasm
|
||||
loot.AddIf(() => DownedBossSystem.downedPolterghast, ModContent.ItemType<Polterplasm>(), 10, 1, 5); // 10% 1-5 Polterplasm
|
||||
loot.AddIf(() => DownedBossSystem.downedPolterghast, ModContent.ItemType<Necroplasm>(), 10, 1, 5); // 10% 1-5 Necroplasm
|
||||
break;
|
||||
|
||||
case ItemID.JungleFishingCrate:
|
||||
|
||||
@@ -405,14 +405,18 @@ namespace CalamityMod.Items
|
||||
// Brain of Confusion, Black Belt and Master Ninja Gear have guaranteed dodges with a fixed cooldown.
|
||||
#region Guaranteed Dodge Tooltips
|
||||
string beltDodgeLine = "Grants the ability to dodge attacks\n" +
|
||||
$"The dodge has a {BalancingConstants.BeltDodgeCooldown / 60} second cooldown which is shared with all other dodges and reflects";
|
||||
"Attacks that deal less than 5% of your max life in damage will not be dodged\n" +
|
||||
$"The dodge has a cooldown that ranges between {BalancingConstants.BeltDodgeCooldownMin / 60 } and {BalancingConstants.BeltDodgeCooldownMax / 60} seconds depending on the dodged attack's damage\n" +
|
||||
"The cooldown is shared with all other dodges and reflects";
|
||||
if (item.type == ItemID.BlackBelt)
|
||||
EditTooltipByNum(0, (line) => line.Text = beltDodgeLine);
|
||||
if (item.type == ItemID.MasterNinjaGear)
|
||||
EditTooltipByNum(1, (line) => line.Text = beltDodgeLine);
|
||||
|
||||
string brainDodgeLine = "Grants the ability to dodge attacks\n" +
|
||||
$"The dodge has a {BalancingConstants.BrainDodgeCooldown / 60} second cooldown which is shared with all other dodges and reflects";
|
||||
"Attacks that deal less than 5% of your max life in damage will not be dodged\n" +
|
||||
$"The dodge has a cooldown that ranges between {BalancingConstants.BrainDodgeCooldownMin / 60} and {BalancingConstants.BrainDodgeCooldownMax / 60} seconds depending on the dodged attack's damage\n" +
|
||||
"The cooldown is shared with all other dodges and reflects";
|
||||
if (item.type == ItemID.BrainOfConfusion)
|
||||
EditTooltipByNum(0, (line) => line.Text = brainDodgeLine);
|
||||
#endregion
|
||||
@@ -568,9 +572,13 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.FrozenShield)
|
||||
EditTooltipByNum(1, (line) => line.Text = "Puts a shell around the owner when below 50% life that reduces damage by 15%");
|
||||
|
||||
// Ale and Sake rebalance.
|
||||
// Ale and Sake rebalance and Alcohol Poisoning.
|
||||
if (item.type == ItemID.Ale || item.type == ItemID.Sake)
|
||||
EditTooltipByNum(0, (line) => line.Text = "Increases melee damage by 10% and reduces defense by 5%");
|
||||
{
|
||||
EditTooltipByNum(0, (line) => line.Text = "Increases melee damage by 10% and reduces defense by 5%\n" +
|
||||
"Counts as an alcohol for Alcohol Poisoning\n" +
|
||||
"Drinking more than 3 different alcohols might not end well with your liver");
|
||||
}
|
||||
|
||||
// Hellfire Treads buff.
|
||||
if (item.type == ItemID.HellfireTreads)
|
||||
|
||||
@@ -37,33 +37,31 @@ namespace CalamityMod.Items
|
||||
#region CATEGORY 1: Weapon Balancing
|
||||
{ ItemID.AdamantiteGlaive, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(65), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.AdamantiteRepeater, Do(PointBlank, UseExact(14)) },
|
||||
{ ItemID.AdamantiteSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(77)) },
|
||||
{ ItemID.AdamantiteSword, Do(UseTurn, DamageExact(77)) },
|
||||
{ ItemID.AmberStaff, Do(UseTimeExact(15), UseAnimationExact(45), ReuseDelayExact(15)) },
|
||||
{ ItemID.AmethystStaff, Do(ManaExact(2)) },
|
||||
{ ItemID.Anchor, Do(DamageExact(107), UseExact(30)) },
|
||||
{ ItemID.AntlionClaw, Do(UseExact(14)) }, // Mandible Blade
|
||||
{ ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) },
|
||||
{ ItemID.BatScepter, Do(DamageExact(56)) },
|
||||
{ ItemID.BeamSword, Do(UseMeleeSpeed, UseTurn, DamageExact(180), UseAnimationExact(60), ShootSpeedExact(23f)) },
|
||||
{ ItemID.BeamSword, Do(UseMeleeSpeed, DamageExact(142), UseAnimationExact(45), ShootSpeedExact(23f), KnockbackExact(8)) },
|
||||
{ ItemID.BeeGun, Do(DamageExact(10), ManaExact(4)) },
|
||||
{ ItemID.BeesKnees, Do(PointBlank, DamageExact(18), UseExact(38)) },
|
||||
{ ItemID.Bladetongue, Do(UseTurn, UseRatio(0.8f), DamageExact(120), ScaleRatio(1.75f)) },
|
||||
{ ItemID.Bladetongue, Do(UseTurn, UseRatio(0.8f), DamageExact(120)) },
|
||||
{ ItemID.BlizzardStaff, Do(DamageExact(41), ManaExact(7)) },
|
||||
{ ItemID.BloodyMachete, Do(AutoReuse, DamageExact(24)) },
|
||||
{ ItemID.Blowgun, Do(PointBlank, DamageExact(40)) },
|
||||
{ ItemID.BluePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
{ ItemID.BluePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
{ ItemID.BluePhasesaber, Do(DamageExact(60)) },
|
||||
{ ItemID.BookofSkulls, Do(ManaExact(12), ShootSpeedExact(5.5f)) },
|
||||
{ ItemID.BookStaff, Do(ManaExact(14)) }, // Tome of Infinite Wisdom
|
||||
{ ItemID.Boomstick, Do(PointBlank, DamageExact(11)) },
|
||||
{ ItemID.BreakerBlade, Do(AutoReuse, UseTurn, ScaleRatio(1.4f), DamageExact(97)) },
|
||||
{ ItemID.BreakerBlade, Do(AutoReuse, UseTurn, DamageExact(97)) },
|
||||
{ ItemID.CandyCornRifle, Do(PointBlank, DamageExact(66)) },
|
||||
{ ItemID.Cascade, Do(AutoReuse, DamageExact(30)) },
|
||||
{ ItemID.ChainGuillotines, Do(DamageExact(100)) },
|
||||
{ ItemID.ChainGun, Do(PointBlank, DamageExact(35)) },
|
||||
{ ItemID.ChainKnife, Do(AutoReuse, DamageRatio(1.34f)) }, // Uses ratios due to remix seed
|
||||
// Charged Blaster Cannon is now an earlier Last Prism-like, so it will probably need careful balance attention.
|
||||
// { ItemID.ChargedBlasterCannon, Do(DamageRatio(1.33f)) },
|
||||
{ ItemID.ChlorophyteClaymore, Do(UseMeleeSpeed) },
|
||||
{ ItemID.ChlorophytePartisan, Do(AutoReuse, UseMeleeSpeed, UseRatio(0.8f), DamageExact(70)) },
|
||||
{ ItemID.ChlorophyteSaber, Do(UseMeleeSpeed, DamageExact(80), UseExact(10)) },
|
||||
@@ -72,7 +70,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ClockworkAssaultRifle, Do(PointBlank, DamageExact(21)) },
|
||||
{ ItemID.CobaltNaginata, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(90)) },
|
||||
{ ItemID.CobaltRepeater, Do(PointBlank, UseExact(18)) },
|
||||
{ ItemID.CobaltSword, Do(UseTurn, ScaleRatio(1.4f), DamageExact(80)) },
|
||||
{ ItemID.CobaltSword, Do(UseTurn, DamageExact(80)) },
|
||||
{ ItemID.Code2, Do(AutoReuse, DamageExact(43)) },
|
||||
{ ItemID.CorruptYoyo, Do(AutoReuse, DamageExact(20)) }, // Malaise
|
||||
{ ItemID.CrimsonYoyo, Do(AutoReuse, DamageExact(20)) }, // Artery
|
||||
@@ -80,7 +78,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.CrystalDart, Do(DamageExact(20)) },
|
||||
{ ItemID.CrystalSerpent, Do(DamageExact(45)) },
|
||||
{ ItemID.CrystalStorm, Do(DamageExact(40)) },
|
||||
{ ItemID.CursedArrow, Do(DamageExact(15)) },
|
||||
{ ItemID.CursedArrow, Do(DamageExact(14)) },
|
||||
{ ItemID.CursedDart, Do(DamageExact(25)) },
|
||||
{ ItemID.Cutlass, Do(UseRatio(0.9f), DamageExact(90)) },
|
||||
{ ItemID.DaedalusStormbow, Do(DamageExact(30)) },
|
||||
@@ -101,12 +99,12 @@ namespace CalamityMod.Items
|
||||
{ ItemID.EmpressBlade, Do(AutoReuse, DamageExact(60), UseExact(20)) }, // Terraprisma
|
||||
{ ItemID.EnchantedBoomerang, Do(DamageExact(24)) },
|
||||
{ ItemID.EnchantedSword, Do(UseMeleeSpeed, DamageExact(30), ShootSpeedExact(15f)) },
|
||||
{ ItemID.Excalibur, Do(TrueMelee, ScaleRatio(1.2f), UseRatio(0.8f), DamageExact(125), UseAnimationExact(45)) },
|
||||
{ ItemID.Excalibur, Do(TrueMelee, UseRatio(0.8f), DamageExact(125), UseAnimationExact(45)) },
|
||||
{ ItemID.FairyQueenMagicItem, Do(DamageExact(54)) }, // Nightglow
|
||||
{ ItemID.FairyQueenRangedItem, Do(PointBlank, DamageExact(42))}, //Eventide
|
||||
{ ItemID.FalconBlade, Do(UseTurn, UseExact(15)) },
|
||||
// Unsure what to do with Celebration. Should it be treated as a serious weapon or not? Currently not changing it from vanilla.
|
||||
// { ItemID.FireworksLauncher, Do(DamageRatio(2f)) }, // Celebration
|
||||
// For now, I think I will balance Celebration like a serious weapon. -CIT
|
||||
{ ItemID.FireworksLauncher, Do(DamageExact(50), UseExact(25)) }, // Celebration
|
||||
{ ItemID.Flairon, Do(DamageExact(73)) },
|
||||
{ ItemID.Flamarang, Do(DamageExact(40)) },
|
||||
{ ItemID.Flamelash, Do(DamageExact(40)) },
|
||||
@@ -122,8 +120,8 @@ namespace CalamityMod.Items
|
||||
{ ItemID.GolemFist, Do(DamageExact(150)) },
|
||||
{ ItemID.Gradient, Do(AutoReuse, DamageExact(39)) },
|
||||
{ ItemID.GreenPhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
{ ItemID.GreenPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
{ ItemID.GrenadeLauncher, Do(DamageExact(90)) },
|
||||
{ ItemID.GreenPhasesaber, Do(DamageExact(60)) },
|
||||
{ ItemID.GrenadeLauncher, Do(DamageExact(112)) },
|
||||
{ ItemID.Gungnir, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(92), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.HallowedRepeater, Do(PointBlank, UseExact(12)) },
|
||||
{ ItemID.Handgun, Do(PointBlank, UseExact(22), DamageExact(36)) },
|
||||
@@ -141,8 +139,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.InfernoFork, Do(DamageExact(84)) },
|
||||
{ ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(80), UseExact(25)) },
|
||||
{ ItemID.IronShortsword, Do(AutoReuse, TrueMelee, DamageExact(10)) },
|
||||
{ ItemID.JestersArrow, Do(DamageExact(6)) },
|
||||
{ ItemID.Keybrand, Do(UseTurn, ScaleRatio(1.5f)) }, // Uses ratios due to remix seed
|
||||
{ ItemID.Keybrand, Do(UseTurn) },
|
||||
{ ItemID.Kraken, Do(AutoReuse, DamageExact(85)) },
|
||||
{ ItemID.KOCannon, Do(DamageRatio(2.65f)) }, // Uses ratios due to remix seed
|
||||
{ ItemID.LaserRifle, Do(DamageExact(46), UseExact(10), ManaExact(4)) },
|
||||
@@ -170,20 +167,20 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Musket, Do(PointBlank, DamageExact(22)) },
|
||||
{ ItemID.MythrilHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(95), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.MythrilRepeater, Do(PointBlank, UseExact(16)) },
|
||||
{ ItemID.MythrilSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(100)) },
|
||||
{ ItemID.MythrilSword, Do(UseTurn, DamageExact(100)) },
|
||||
{ ItemID.NettleBurst, Do(ManaExact(10), DamageExact(70)) },
|
||||
{ ItemID.NightsEdge, Do(TrueMelee, DamageExact(45)) },
|
||||
{ ItemID.NorthPole, Do(AutoReuse, UseMeleeSpeed) },
|
||||
{ ItemID.OrangePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
{ ItemID.OrangePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
{ ItemID.OrangePhasesaber, Do(DamageExact(60)) },
|
||||
{ ItemID.OrichalcumHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(98), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.OrichalcumRepeater, Do(PointBlank, DamageExact(48)) },
|
||||
{ ItemID.OrichalcumSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(82)) },
|
||||
{ ItemID.OrichalcumSword, Do(UseTurn, DamageExact(82)) },
|
||||
{ ItemID.PainterPaintballGun, Do(PointBlank, DamageExact(8)) },
|
||||
{ ItemID.PaladinsHammer, Do(DamageExact(100), ShootSpeedExact(23)) },
|
||||
{ ItemID.PalladiumPike, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(96)) },
|
||||
{ ItemID.PalladiumRepeater, Do(PointBlank, DamageExact(45)) },
|
||||
{ ItemID.PalladiumSword, Do(UseTurn, ScaleRatio(1.4f), DamageExact(100)) },
|
||||
{ ItemID.PalladiumSword, Do(UseTurn, DamageExact(100)) },
|
||||
{ ItemID.PearlwoodBow, Do(AutoReuse, PointBlank, DamageExact(20), UseDelta(+8), ShootSpeedDelta(+3.4f), KnockbackDelta(+1f)) },
|
||||
{ ItemID.PearlwoodSword, Do(UseTurn, DamageExact(45)) },
|
||||
{ ItemID.PewMaticHorn, Do(DamageExact(24)) },
|
||||
@@ -195,9 +192,9 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PoisonStaff, Do(DamageExact(57)) },
|
||||
{ ItemID.PossessedHatchet, Do(DamageExact(135)) },
|
||||
{ ItemID.PsychoKnife, Do(UseTurn, UseExact(11), DamageExact(255)) },
|
||||
{ ItemID.PurpleClubberfish, Do(UseTurn, ScaleRatio(1.2f), KnockbackExact(10f)) },
|
||||
{ ItemID.PurpleClubberfish, Do(UseTurn, KnockbackExact(10f)) },
|
||||
{ ItemID.PurplePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
{ ItemID.PurplePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
{ ItemID.PurplePhasesaber, Do(DamageExact(60)) },
|
||||
{ ItemID.PygmyStaff, Do(AutoReuse, UseExact(20), DamageExact(70)) },
|
||||
{ ItemID.QuadBarrelShotgun, Do(PointBlank, DamageExact(11)) },
|
||||
{ ItemID.RainbowRod, Do(DamageExact(35), ManaExact(15)) },
|
||||
@@ -207,9 +204,10 @@ namespace CalamityMod.Items
|
||||
{ ItemID.RazorbladeTyphoon, Do(DamageExact(103)) },
|
||||
{ ItemID.Razorpine, Do(DamageExact(40)) },
|
||||
{ ItemID.RedPhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
{ ItemID.RedPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
{ ItemID.RedPhasesaber, Do(DamageExact(60)) },
|
||||
{ ItemID.RedRyder, Do(PointBlank, DamageExact(24)) },
|
||||
{ ItemID.RedsYoyo, Do(AutoReuse, DamageExact(48)) }, // Red's throw and valkyrie's yoyo are the same weapon
|
||||
{ ItemID.RedsYoyo, Do(AutoReuse, DamageExact(48)) }, // Red's Throw and Valkyrie Yoyo have the same stats
|
||||
{ ItemID.RocketLauncher, Do(DamageExact(70)) },
|
||||
{ ItemID.Sandgun, Do(PointBlank, DamageExact(22), UseExact(20)) },
|
||||
{ ItemID.SapphireStaff, Do(DamageExact(25)) },
|
||||
{ ItemID.SDMG, Do(PointBlank, DamageExact(80)) },
|
||||
@@ -224,7 +222,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.SilverBullet, Do(DamageExact(8)) },
|
||||
{ ItemID.SilverShortsword, Do(AutoReuse, TrueMelee, DamageExact(14)) },
|
||||
{ ItemID.SkyFracture, Do(DamageExact(54), ShootSpeedExact(30f)) },
|
||||
{ ItemID.SlapHand, Do(UseTurn, ScaleRatio(1.5f), DamageExact(120)) },
|
||||
{ ItemID.SlapHand, Do(UseTurn, DamageExact(120)) },
|
||||
{ ItemID.Smolstar, Do(DamageExact(9), AutoReuse, UseExact(25)) }, // Blade Staff
|
||||
{ ItemID.SolarEruption, Do(DamageExact(157)) },
|
||||
{ ItemID.SoulDrain, Do(DamageExact(38)) }, // Life Drain
|
||||
@@ -240,7 +238,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Stynger, Do(DamageExact(75)) },
|
||||
{ ItemID.Swordfish, Do(AutoReuse, TrueMelee, DamageExact(24)) },
|
||||
{ ItemID.TacticalShotgun, Do(PointBlank, DamageExact(34)) },
|
||||
{ ItemID.TaxCollectorsStickOfDoom, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(70)) }, // Classy Cane
|
||||
{ ItemID.TaxCollectorsStickOfDoom, Do(AutoReuse, UseTurn, UseRatio(0.8f), DamageExact(70)) }, // Classy Cane
|
||||
{ ItemID.TendonBow, Do(PointBlank, DamageExact(17), AutoReuse) },
|
||||
{ ItemID.TerraBlade, Do(DamageExact(122)) },
|
||||
// Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously,
|
||||
@@ -252,32 +250,32 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear
|
||||
{ ItemID.ThunderStaff, Do(DamageExact(18)) }, //Thunder Zapper
|
||||
{ ItemID.TitaniumRepeater, Do(PointBlank, DamageExact(52)) },
|
||||
{ ItemID.TitaniumSword, Do(UseTurn, ScaleRatio(1.45f), DamageExact(77)) },
|
||||
{ ItemID.TitaniumSword, Do(UseTurn, DamageExact(77)) },
|
||||
{ ItemID.TitaniumTrident, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(72), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.TopazStaff, Do(ManaExact(2)) },
|
||||
{ ItemID.Toxikarp, Do(UseTimeExact(7), UseAnimationExact(14)) },
|
||||
{ ItemID.Trident, Do(AutoReuse, TrueMelee, DamageExact(20)) },
|
||||
{ ItemID.Trimarang, Do(DamageExact(24)) },
|
||||
{ ItemID.TrueExcalibur, Do(TrueMelee, DamageExact(107)) },
|
||||
{ ItemID.TrueNightsEdge, Do(DamageExact(105), ScaleRatio(1.2f)) },
|
||||
{ ItemID.TrueNightsEdge, Do(DamageExact(105)) },
|
||||
{ ItemID.Tsunami, Do(PointBlank, DamageExact(49)) },
|
||||
{ ItemID.TungstenBullet, Do(DamageExact(8)) },
|
||||
{ ItemID.TungstenShortsword, Do(AutoReuse, TrueMelee, DamageExact(15)) },
|
||||
{ ItemID.UnholyArrow, Do(DamageExact(11)) },
|
||||
{ ItemID.UnholyTrident, Do(ManaRatio(0.78f), DamageRatio(0.91f)) }, // Uses ratios due to remix seed
|
||||
{ ItemID.VampireKnives, Do(DamageExact(38)) },
|
||||
{ ItemID.ValkyrieYoyo, Do(AutoReuse, DamageExact(48)) }, // Red's Throw and Valkyrie Yoyo are the same weapon basically
|
||||
{ ItemID.ValkyrieYoyo, Do(AutoReuse, DamageExact(48)) }, // Red's Throw and Valkyrie Yoyo have the same stats
|
||||
{ ItemID.VenomStaff, Do(DamageExact(55)) },
|
||||
{ ItemID.WaspGun, Do(UseExact(11), DamageExact(58)) },
|
||||
{ ItemID.WaterBolt, Do(DamageExact(23)) },
|
||||
{ ItemID.WhitePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
{ ItemID.WhitePhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
{ ItemID.WhitePhasesaber, Do(DamageExact(60)) },
|
||||
{ ItemID.WoodenBoomerang, Do(DamageExact(16), Value(Item.sellPrice(copper: 20))) },
|
||||
{ ItemID.Yelets, Do(AutoReuse, DamageExact(53)) },
|
||||
{ ItemID.YellowPhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) },
|
||||
{ ItemID.YellowPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
|
||||
{ ItemID.YellowPhasesaber, Do(DamageExact(60)) },
|
||||
{ ItemID.Zenith, Do(DamageExact(210)) },
|
||||
{ ItemID.ZombieArm, Do(AutoReuse, UseTurn, ScaleRatio(1.25f), KnockbackExact(12f)) },
|
||||
{ ItemID.ZombieArm, Do(AutoReuse, UseTurn, KnockbackExact(12f)) },
|
||||
#endregion
|
||||
|
||||
#region CATEGORY 2: Defense Balancing
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Items.DraedonMisc
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<AuricBar>(2).
|
||||
AddIngredient<AuricBar>(5).
|
||||
AddIngredient<MysteriousCircuitry>(8).
|
||||
AddIngredient<DubiousPlating>(8).
|
||||
AddIngredient<EndothermicEnergy>(40).
|
||||
|
||||
@@ -10,9 +10,9 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
[LegacyName("PhantoplasmDye")]
|
||||
public class PolterplasmDye : BaseDye
|
||||
public class NecroplasmicDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/PolterplasmDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/NecroplasmicDyeShader", AssetRequestMode.ImmediateLoad).Value), "DyePass").
|
||||
UseColor(new Color(245, 143, 182)).UseSecondaryColor(new Color(119, 238, 255)).UseImage("Images/Misc/Perlin");
|
||||
|
||||
public override void SafeSetStaticDefaults()
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<Polterplasm>(3).
|
||||
AddIngredient<Necroplasm>(3).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
|
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 301 B |
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
|
||||
{
|
||||
// The contents of this crate depend massively on progression, so it uses a large number of LeadingConditionRules.
|
||||
var tier1AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedSlimeGod || Main.hardMode);
|
||||
var tier2AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCalamitasClone);
|
||||
var tier2AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedLeviathan);
|
||||
var scoriaAvailable = itemLoot.DefineConditionalDropSet(() => NPC.downedGolemBoss);
|
||||
var tier1AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedEoCAcidRain);
|
||||
var tier2AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAquaticScourgeAcidRain);
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Materials
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<Polterplasm>(2).
|
||||
AddIngredient<Necroplasm>(2).
|
||||
AddIngredient<NightmareFuel>(5).
|
||||
AddIngredient<EndothermicEnergy>(5).
|
||||
AddIngredient<DarksunFragment>(2).
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Materials
|
||||
CreateRecipe(2).
|
||||
AddIngredient<Bloodstone>(5).
|
||||
AddIngredient<BloodOrb>().
|
||||
AddIngredient<Polterplasm>().
|
||||
AddIngredient<Necroplasm>().
|
||||
AddTile(TileID.AdamantiteForge).
|
||||
Register();
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 955 B After Width: | Height: | Size: 2.0 KiB |
@@ -7,7 +7,7 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
[LegacyName("Phantoplasm")]
|
||||
public class Polterplasm : ModItem, ILocalizedModType
|
||||
public class Necroplasm : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Materials";
|
||||
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -71,7 +71,7 @@ namespace CalamityMod.Items.PermanentBoosters
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RuinousSoul>(5).
|
||||
AddIngredient<Polterplasm>(25).
|
||||
AddIngredient<Necroplasm>(25).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 418 B |
|
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 345 B |
@@ -0,0 +1,25 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Furniture
|
||||
{
|
||||
public class CirrusCouch : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 20;
|
||||
Item.maxStack = 9999;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.value = 0;
|
||||
Item.createTile = ModContent.TileType<Tiles.Furniture.CirrusCouch>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 738 B |
@@ -9,6 +9,20 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
public class DraedonsForge : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Terraria.On_Recipe.ConsumeForCraft += DraeforgeUnlockDetour;
|
||||
}
|
||||
|
||||
private static bool DraeforgeUnlockDetour(On_Recipe.orig_ConsumeForCraft orig, Recipe self, Item item, Item requiredItem, ref int stackRequired)
|
||||
{
|
||||
if (self.HasTile(ModContent.TileType<Tiles.Furniture.CraftingStations.DraedonsForge>()))
|
||||
{
|
||||
Main.LocalPlayer.Calamity().HasCraftedDraedonsForge = true;
|
||||
}
|
||||
return orig(self, item, requiredItem, ref stackRequired);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 58;
|
||||
|
||||
@@ -8,6 +8,10 @@ namespace CalamityMod.Items.Placeables.FurnitureAuric
|
||||
public class ActivatedAuricPanel : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
|
||||
@@ -9,6 +9,10 @@ namespace CalamityMod.Items.Placeables.FurnitureAuric
|
||||
public class AuricAbsorber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
|
||||
@@ -8,6 +8,10 @@ namespace CalamityMod.Items.Placeables.FurnitureAuric
|
||||
public class AuricPanel : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
|
||||
@@ -8,6 +8,10 @@ namespace CalamityMod.Items.Placeables.FurnitureAuric
|
||||
public class AuricRepulserPanel : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
|
||||
@@ -8,6 +8,10 @@ namespace CalamityMod.Items.Placeables.FurnitureAuric
|
||||
public class ExoAuricPanel : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
|
||||
@@ -11,6 +11,10 @@ namespace CalamityMod.Items.Placeables.FurnitureExo
|
||||
public class ExoPlating : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
|
||||