Merge branch '1.4.4' into SCalChanges
This commit is contained in:
commit
7cd5feb6be
173 files changed
+1425
-983
No files matched your search
@@ -85,6 +85,45 @@
|
||||
// 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 multiplier used for armor set bonuses
|
||||
internal static readonly float LifeStealSetBonusCooldownMultiplier = 2f;
|
||||
|
||||
// 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 = 80f;
|
||||
internal static readonly float LifeStealCap_Expert = 70f;
|
||||
internal static readonly float LifeStealCap_Revengeance = 60f;
|
||||
internal static readonly float LifeStealCap_Death = 50f;
|
||||
|
||||
// Master nerfs the life steal cap by 10, resulting in 60 in non-Rev Master, 50 in Rev Master, and 40 in Death Master
|
||||
internal static readonly float LifeStealCapReduction_Master = 10f;
|
||||
|
||||
// The base life steal cooldowns from vanilla
|
||||
internal static readonly float LifeStealRecoveryRate_Classic = 0.8f;
|
||||
internal static readonly float LifeStealRecoveryRate_Expert = 0.7f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Classic from 0.8/s to 0.4/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Classic = 0.4f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Expert from 0.7/s to 0.35/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Expert = 0.35f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Revengeance from 0.7/s to 0.3/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Revengeance = 0.4f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Death from 0.7/s to 0.25/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Death = 0.45f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Master by 0.05/s, resulting in 0.3/s in non-Rev Master, 0.25/s in Rev Master, and 0.2/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.
|
||||
@@ -149,8 +188,8 @@
|
||||
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
|
||||
|
||||
|
||||
+30
-16
@@ -723,7 +723,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 +962,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;
|
||||
@@ -2279,7 +2279,6 @@ namespace CalamityMod.CalPlayer
|
||||
silvaMageCooldown = 0;
|
||||
bloodflareMageCooldown = 0;
|
||||
tarraRangedCooldown = 0;
|
||||
tarraMageHealCooldown = 0;
|
||||
hideOfDeusMeleeBoostTimer = 0;
|
||||
externalAbyssLight = 0;
|
||||
externalColdImmunity = externalHeatImmunity = false;
|
||||
@@ -2450,6 +2449,7 @@ namespace CalamityMod.CalPlayer
|
||||
pinkCandleHealFraction = 0D;
|
||||
yellowCandle = false;
|
||||
trippy = false;
|
||||
trippyLevel = 1;
|
||||
amidiasBlessing = false;
|
||||
bloodfinBoost = false;
|
||||
bloodfinTimer = 0;
|
||||
@@ -3579,17 +3579,33 @@ 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;
|
||||
|
||||
// This value is here to somewhat prevent the rapid cooldown flashing that happens sometimes.
|
||||
float cooldownDisplayGateValue = 12f;
|
||||
float displayLifeStealCooldownGateValue = lifeStealRecoveryRate * cooldownDisplayGateValue;
|
||||
if (Player.lifeSteal < -displayLifeStealCooldownGateValue)
|
||||
{
|
||||
float duration = Math.Abs(Player.lifeSteal);
|
||||
duration /= lifeStealRecoveryRate;
|
||||
|
||||
if (!Player.HasCooldown(LifeSteal.ID) || (cooldowns[LifeSteal.ID].duration < (int)duration))
|
||||
Player.AddCooldown(LifeSteal.ID, (int)duration);
|
||||
}
|
||||
}
|
||||
|
||||
ForceVariousEffects();
|
||||
@@ -3601,7 +3617,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 +3627,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
|
||||
@@ -4669,7 +4683,7 @@ namespace CalamityMod.CalPlayer
|
||||
return rogueStealth >= rogueStealthMax * consumptionMult;
|
||||
}
|
||||
|
||||
internal void ConsumeStealthByAttacking()
|
||||
public void ConsumeStealthByAttacking()
|
||||
{
|
||||
stealthStrikeThisFrame = true;
|
||||
stealthAcceleration = 1f; // Reset acceleration when you attack
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -2254,8 +2254,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)
|
||||
{
|
||||
@@ -2264,8 +2263,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)
|
||||
|
||||
@@ -364,11 +364,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
|
||||
@@ -891,14 +886,36 @@ 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.4/s
|
||||
// Expert Mode life steal recovery rate is 0.35/s
|
||||
// Revengeance Mode life steal recovery rate is 0.3/s
|
||||
// Death Mode life steal recovery rate is 0.25/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;
|
||||
|
||||
Player.lifeSteal -= lifeStealRecoveryRateReduction;
|
||||
|
||||
// Bool for drawing boss health bar small text or not
|
||||
if (Main.myPlayer == Player.whoAmI)
|
||||
@@ -1364,8 +1381,6 @@ namespace CalamityMod.CalPlayer
|
||||
bloodflareMageCooldown--;
|
||||
if (silvaMageCooldown > 0)
|
||||
silvaMageCooldown--;
|
||||
if (tarraMageHealCooldown > 0)
|
||||
tarraMageHealCooldown--;
|
||||
if (scuttlerCooldown > 0)
|
||||
scuttlerCooldown--;
|
||||
if (rogueCrownCooldown > 0)
|
||||
@@ -2497,7 +2512,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (rRage)
|
||||
{
|
||||
Player.GetDamage<GenericDamageClass>() += 0.3f;
|
||||
Player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
Player.statDefense += 5;
|
||||
}
|
||||
|
||||
@@ -2817,7 +2832,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)
|
||||
@@ -4180,7 +4195,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,7 +111,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ItemID.CandyCaneSword:
|
||||
if (!target.canGhostHeal || Player.moonLeech)
|
||||
if (Player.moonLeech)
|
||||
return;
|
||||
Player.statLife += 2;
|
||||
Player.HealEffect(2);
|
||||
@@ -210,7 +211,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.PalladiumPike:
|
||||
if (!target.canGhostHeal || Player.moonLeech)
|
||||
if (Player.moonLeech)
|
||||
return;
|
||||
Player.lifeRegenTime += 2;
|
||||
break;
|
||||
@@ -232,7 +233,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
|
||||
case ProjectileID.FruitcakeChakram:
|
||||
if (!target.canGhostHeal || Player.moonLeech)
|
||||
if (Player.moonLeech)
|
||||
return;
|
||||
Player.statLife += 2;
|
||||
Player.HealEffect(2);
|
||||
@@ -1126,34 +1127,6 @@ 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 ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
|
||||
@@ -1169,11 +1142,12 @@ namespace CalamityMod.CalPlayer
|
||||
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)
|
||||
{
|
||||
// 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,20 +1157,10 @@ 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;
|
||||
float cooldown = 6f;
|
||||
if (cooldown < 0f)
|
||||
cooldown = 0f;
|
||||
|
||||
@@ -1205,180 +1169,81 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
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.LifeStealSetBonusCooldownMultiplier);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1395,37 +1260,14 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (target.IsAnEnemy(false) && target.canGhostHeal && !Player.moonLeech)
|
||||
if (bloodflareMelee && item.CountsAsClass<MeleeDamageClass>())
|
||||
{
|
||||
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 +1277,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.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)
|
||||
{
|
||||
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.LifeStealSetBonusCooldownMultiplier;
|
||||
|
||||
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;
|
||||
|
||||
+3
-3
@@ -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>(),
|
||||
@@ -2812,7 +2781,6 @@ namespace CalamityMod
|
||||
revengeanceProjectileBuffList25Percent = null;
|
||||
revengeanceProjectileBuffList20Percent = null;
|
||||
revengeanceProjectileBuffList15Percent = null;
|
||||
revengeanceLifeStealExceptionList = null;
|
||||
noRageWormSegmentList = null;
|
||||
needsDebuffIconDisplayList = null;
|
||||
scopedWeaponList = null;
|
||||
|
||||
@@ -114,9 +114,6 @@ namespace CalamityMod
|
||||
// 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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items
|
||||
{ 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)) },
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 345 B |
@@ -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;
|
||||
|
||||
@@ -7,6 +7,10 @@ namespace CalamityMod.Items.Placeables.FurnitureProfaned
|
||||
public class ProfanedRock : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 12;
|
||||
|
||||
@@ -29,5 +29,11 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
Item.buffTime = CalamityUtils.SecondsToFrames(3600f);
|
||||
Item.value = Item.buyPrice(0, 50, 0, 0);
|
||||
}
|
||||
|
||||
public override void OnConsumeItem(Player player)
|
||||
{
|
||||
if (player.Calamity().trippyLevel < 3)
|
||||
player.Calamity().trippyLevel++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,11 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -16,26 +19,43 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public const int BoomLifetime = 40;
|
||||
public int Counter = 0;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 50;
|
||||
Item.height = 52;
|
||||
Item.damage = 100;
|
||||
Item.damage = 200;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 15;
|
||||
Item.useTime = 14;
|
||||
Item.useAnimation = 14;
|
||||
Item.mana = 18;
|
||||
Item.useTime = 7;
|
||||
Item.useAnimation = 22;
|
||||
Item.reuseDelay = 45;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 6f;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.UseSound = SoundID.Item20;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<VisceraBeam>();
|
||||
Item.shootSpeed = 6f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
Counter++;
|
||||
SoundStyle fire = new("CalamityMod/Sounds/Item/MagnaCannonShot");
|
||||
SoundEngine.PlaySound(fire with { Volume = 0.2f, Pitch = 0.95f }, position);
|
||||
position = position + velocity.RotatedBy(-0.75f * player.direction) * 1.8f;
|
||||
|
||||
Projectile.NewProjectile(source, position, velocity.RotatedByRandom(0.025f), type, damage, knockback, player.whoAmI, 0f, Counter == 4 ? 1 : 0);
|
||||
if (Counter >= 4)
|
||||
Counter = 0;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -84,10 +84,10 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
if (target.Calamity().miscDefenseLoss < target.defense)
|
||||
target.Calamity().miscDefenseLoss += 1;
|
||||
|
||||
if (!target.canGhostHeal || player.moonLeech)
|
||||
if (player.moonLeech)
|
||||
return;
|
||||
|
||||
int heal = Main.rand.Next(1, 69);
|
||||
int heal = Main.rand.Next(1, 70);
|
||||
player.statLife += heal;
|
||||
player.HealEffect(heal);
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 80;
|
||||
Item.height = 92;
|
||||
Item.damage = 75;
|
||||
Item.damage = 91;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useTime = 21;
|
||||
Item.useAnimation = 21;
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
if (target.Calamity().miscDefenseLoss < target.defense)
|
||||
target.Calamity().miscDefenseLoss += 1;
|
||||
|
||||
if (target.Calamity().miscDefenseLoss >= target.defense && target.canGhostHeal && !player.moonLeech)
|
||||
if (target.Calamity().miscDefenseLoss >= target.defense && !player.moonLeech)
|
||||
{
|
||||
player.statLife += 4;
|
||||
player.HealEffect(4);
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<MiracleBlight>(), 600);
|
||||
|
||||
if (!target.canGhostHeal || player.moonLeech)
|
||||
if (player.moonLeech)
|
||||
return;
|
||||
|
||||
int healAmount = Main.rand.Next(3) + 10;
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (!target.canGhostHeal || player.moonLeech)
|
||||
if (player.moonLeech)
|
||||
return;
|
||||
|
||||
player.statLife += 5;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
if (player.moonLeech)
|
||||
return;
|
||||
|
||||
if (target.Calamity().miscDefenseLoss >= target.defense && target.canGhostHeal)
|
||||
if (target.Calamity().miscDefenseLoss >= target.defense)
|
||||
{
|
||||
player.statLife += 3;
|
||||
player.HealEffect(3);
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
yDist = Main.screenPosition.Y + Main.screenHeight - Main.mouseY - playerPos.Y;
|
||||
}
|
||||
|
||||
Vector2 vector = new Vector2(xDist, yDist);
|
||||
float speedMult = vector.Length();
|
||||
if ((float.IsNaN(xDist) && float.IsNaN(yDist)) || (xDist == 0f && yDist == 0f))
|
||||
@@ -55,25 +56,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
speedMult = speed / speedMult;
|
||||
}
|
||||
|
||||
xDist *= speedMult;
|
||||
yDist *= speedMult;
|
||||
int knifeAmt = 3;
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
knifeAmt++;
|
||||
}
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
knifeAmt++;
|
||||
}
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
knifeAmt++;
|
||||
}
|
||||
if (Main.rand.NextBool(16))
|
||||
{
|
||||
knifeAmt++;
|
||||
}
|
||||
|
||||
int knifeAmt = Main.rand.Next(4, 7);
|
||||
for (int i = 0; i < knifeAmt; i++)
|
||||
{
|
||||
float xVec = xDist;
|
||||
@@ -87,8 +74,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
xVec *= speedMult;
|
||||
yVec *= speedMult;
|
||||
directionToShoot = new Vector2(xVec, yVec);
|
||||
Projectile.NewProjectile(source, playerPos, directionToShoot, type, damage, knockback, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(source, playerPos, directionToShoot, type, damage, knockback, player.whoAmI);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (target.life <= (target.lifeMax * 0.2f) && target.canGhostHeal)
|
||||
if (target.life <= (target.lifeMax * 0.2f))
|
||||
{
|
||||
if (!CalamityPlayer.areThereAnyDamnBosses || Main.rand.NextBool())
|
||||
{
|
||||
|
||||
@@ -16,10 +16,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class Animosity : ModItem, ILocalizedModType
|
||||
{
|
||||
public static readonly SoundStyle ShootAndReloadSound = new("CalamityMod/Sounds/Item/WulfrumBlunderbussFireAndReload") { PitchVariance = 0.25f };
|
||||
// Very cool sound and it would be a shame for it to not be used elsewhere, would be even better if a new sound is made in the future
|
||||
// Very cool sound and it would be a shame for it to not be used elsewhere, would be even better if a new sound is made in the future, but for now this is good enough
|
||||
|
||||
public float SniperDmgMult = 8f;
|
||||
public float SniperCritMult = Main.zenithWorld ? 7f : 1.2f;
|
||||
public float SniperCritMult = Main.zenithWorld ? 7f : 1.35f;
|
||||
public float SniperVelocityMult = 2f;
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 70;
|
||||
Item.height = 18;
|
||||
Item.damage = 47;
|
||||
Item.damage = 45;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 70;
|
||||
Item.height = 18;
|
||||
@@ -114,12 +114,6 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
//The dmg mult has to be applied here otherwise the left click gets it instead (for one shot), and the crit needs to be applied down here too cuz otherwise it never affects the weapon
|
||||
int p = Projectile.NewProjectile(source, nuzzlePos, velocity * SniperVelocityMult, ModContent.ProjectileType<AnimosityBullet>(), (int)(damage * SniperDmgMult), knockback, player.whoAmI);
|
||||
Main.projectile[p].CritChance = (int)(Main.projectile[p].CritChance * SniperCritMult); //To support crit mults with decimals
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2";
|
||||
Gore.NewGore(source, position, velocity.RotatedBy(2f * -player.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find<ModGore>(goreType).Type);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -182,6 +176,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
}
|
||||
}
|
||||
//shell
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2";
|
||||
Gore.NewGore(source, position, velocity.RotatedBy(2f * -player.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find<ModGore>(goreType).Type);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 50;
|
||||
Item.height = 30;
|
||||
Item.damage = 175;
|
||||
Item.damage = 182;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 40;
|
||||
Item.useAnimation = 40;
|
||||
@@ -30,9 +30,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.UseSound = SoundID.Item92;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<AstralCannonProjectile>();
|
||||
Item.shootSpeed = 2f;
|
||||
Item.shootSpeed = 3f;
|
||||
}
|
||||
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 16;
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
|
||||
@@ -260,7 +260,7 @@ CalamityConfig: {
|
||||
Sets the maximum of particle effects that can exist at once.
|
||||
Particles are separate from dust and gores.
|
||||
Turn down to improve performance.
|
||||
[c/F05A5A:Turning this below 300 may cause some things to not display correctly.]
|
||||
[c/F05A5A:Turning this below 1000 may cause some things to not display correctly.]
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ MOAB: {
|
||||
Acceleration multiplier: 1.0
|
||||
Good vertical speed
|
||||
Flight time: 75
|
||||
10% increased jump speed and allows constant jumping
|
||||
32% increased jump speed and allows constant jumping
|
||||
Grants the player cloud, blizzard, and sandstorm mid-air jumps
|
||||
'The Mother Of All Balloons'
|
||||
'''
|
||||
|
||||
@@ -1636,7 +1636,7 @@ StatisNinjaBelt: {
|
||||
DisplayName: Statis' Ninja Belt
|
||||
Tooltip:
|
||||
'''
|
||||
6% increased jump speed and allows constant jumping
|
||||
32% increased jump speed and allows constant jumping
|
||||
Grants the ability to swim
|
||||
Increased fall damage resistance by 35 blocks
|
||||
Can climb walls, dash, and dodge attacks
|
||||
@@ -1650,7 +1650,7 @@ StatisVoidSash: {
|
||||
DisplayName: Statis' Void Sash
|
||||
Tooltip:
|
||||
'''
|
||||
12% increased jump speed and allows constant jumping
|
||||
32% increased jump speed and allows constant jumping
|
||||
Grants immunity to fall damage
|
||||
Can climb walls, dash, and dodge attacks
|
||||
Attacks that deal less than 5% of your max life in damage will not be dodged
|
||||
|
||||
@@ -497,10 +497,10 @@ ReaverHeadTank: {
|
||||
+10 defense and +1.5 HP/s life regen
|
||||
Enemies are more likely to target you
|
||||
Reduces the life regen lost from damage over time debuffs by 20%
|
||||
All attacks have a small chance to steal life and speed up the rate of life regen
|
||||
20% decreased movement speed and flight time
|
||||
All attacks steal life and speed up the rate of life regen
|
||||
30% decreased movement speed and flight time
|
||||
Enemy damage is reflected and summons a thorn spike
|
||||
Reaver Rage has a 25% chance to activate when you are damaged
|
||||
Reaver Rage activates when you are damaged
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ BloodflareHeadRogue: {
|
||||
+120 maximum stealth
|
||||
Being over 80% life boosts your defense by 30 and rogue crit by 5%
|
||||
Being below 80% life boosts your rogue damage by 10%
|
||||
Rogue critical strikes have a 50% chance to heal you
|
||||
Rogue critical strikes heal you
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -527,7 +527,7 @@ TarragonHeadMelee: {
|
||||
'''
|
||||
15% increased melee speed
|
||||
Enemies are more likely to target you
|
||||
You have a 25% chance to gain a life regen buff when you take damage
|
||||
You gain a life regen buff when you take damage
|
||||
Press {0} to cloak yourself in life energy that heavily reduces enemy contact damage for 10 seconds
|
||||
This has a 30 second cooldown
|
||||
'''
|
||||
|
||||
@@ -536,7 +536,7 @@ LoreQueenSlime: {
|
||||
DisplayName: Queen Slime
|
||||
Lore:
|
||||
'''
|
||||
Having fled after your battle, it seems the Slime God fashion a new guardian from the unleashed essences.
|
||||
Having fled after your battle, it seems the Slime God fashioned a new guardian from the unleashed essences.
|
||||
Ensnared in the absorption process of its newfound power… it could not flee again.
|
||||
Or perhaps it was overcome by desperation for survival.
|
||||
A glorious hunt, a fine foe. Now you know that you must chase them to the ends of Terraria.
|
||||
|
||||
@@ -107,7 +107,7 @@ Ectoheart: {
|
||||
DisplayName: Ectoheart
|
||||
Tooltip:
|
||||
'''
|
||||
Permanently increases Adrenaline Mode damage by 15% and damage reduction by 5%
|
||||
Permanently increases Adrenaline Mode damage by 20% and damage reduction by 5%
|
||||
Revengeance drop
|
||||
'''
|
||||
}
|
||||
@@ -126,7 +126,7 @@ ElectrolyteGelPack: {
|
||||
DisplayName: Electrolyte Gel Pack
|
||||
Tooltip:
|
||||
'''
|
||||
Permanently increases Adrenaline Mode damage by 15% and damage reduction by 5%
|
||||
Permanently increases Adrenaline Mode damage by 20% and damage reduction by 5%
|
||||
Revengeance drop
|
||||
'''
|
||||
}
|
||||
@@ -190,7 +190,7 @@ StarlightFuelCell: {
|
||||
DisplayName: Starlight Fuel Cell
|
||||
Tooltip:
|
||||
'''
|
||||
Permanently increases Adrenaline Mode damage by 15% and damage reduction by 5%
|
||||
Permanently increases Adrenaline Mode damage by 20% and damage reduction by 5%
|
||||
Revengeance drop
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -302,7 +302,8 @@ OddMushroom: {
|
||||
Tooltip:
|
||||
'''
|
||||
Causes you to see many fake, vibrant copies of all nearby entities
|
||||
[c/C4232C:These visual effects may be nauseating or otherwise bad for some]
|
||||
These effects become more potent as you consume more shrooms
|
||||
[c/FF232C:These visual effects may be nauseating or otherwise bad for some]
|
||||
'Trippy'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -900,8 +900,9 @@ Viscera: {
|
||||
DisplayName: Viscera
|
||||
Tooltip:
|
||||
'''
|
||||
Fires a blood beam that heals you on enemy hits
|
||||
The more tiles and enemies the beam bounces off of or travels through the more healing the beam does
|
||||
Fires a rapid barrage piercing of blood beams
|
||||
The last beam of the barrage explodes upon hitting an enemy
|
||||
Blood beams heal you on enemy hit
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -235,6 +235,7 @@ VenusianBolt.DisplayName: Venusian Bolt
|
||||
VenusianExplosion.DisplayName: Venusian Explosion
|
||||
VenusianFlame.DisplayName: Venusian Cinder
|
||||
VisceraBeam.DisplayName: Viscera
|
||||
VisceraBoom.DisplayName: Viscera Boom
|
||||
VitriolicViperFang.DisplayName: Vitriolic Fang
|
||||
VitriolicViperSpit.DisplayName: Vitriolic Spit
|
||||
VividBeam.DisplayName: Vivid Beam
|
||||
|
||||
@@ -586,6 +586,8 @@ namespace CalamityMod
|
||||
}
|
||||
|
||||
public static bool GetStealthProjectile(Projectile projectile) => projectile?.Calamity()?.stealthStrike ?? false;
|
||||
|
||||
public static void ConsumeStealth(Player player) => player?.Calamity()?.ConsumeStealthByAttacking();
|
||||
#endregion
|
||||
|
||||
#region Rippers
|
||||
@@ -1354,6 +1356,18 @@ namespace CalamityMod
|
||||
return GetStealthProjectile(castProjectile(args[1]));
|
||||
}
|
||||
|
||||
case "ConsumeStealth":
|
||||
case "ConsumeStealthByAttacking":
|
||||
case "UseStealth":
|
||||
{
|
||||
if (args.Length < 2)
|
||||
return new ArgumentNullException("ERROR: Must specify a Player object (or int index of a Player).");
|
||||
if (!isValidPlayerArg(args[1]))
|
||||
return new ArgumentException("ERROR: The first argument to \"ConsumeStealth\" must be a Player or an int.");
|
||||
ConsumeStealth(castPlayer(args[1]));
|
||||
return null;
|
||||
}
|
||||
|
||||
case "GetRage":
|
||||
case "GetRageCurrent":
|
||||
case "GetCurrentRage":
|
||||
|
||||
@@ -47,7 +47,6 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
NPC.chaseable = false;
|
||||
NPC.canGhostHeal = false;
|
||||
|
||||
if (BossRushEvent.BossRushActive)
|
||||
NPC.scale *= 1.25f;
|
||||
|
||||
@@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
NPC.chaseable = false;
|
||||
NPC.canGhostHeal = false;
|
||||
|
||||
if (BossRushEvent.BossRushActive)
|
||||
NPC.scale *= 1.25f;
|
||||
|
||||
@@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPC.netAlways = true;
|
||||
NPC.dontCountMe = true;
|
||||
NPC.chaseable = false;
|
||||
NPC.canGhostHeal = false;
|
||||
|
||||
if (BossRushEvent.BossRushActive)
|
||||
NPC.scale *= 1.25f;
|
||||
|
||||
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
NPC.dontTakeDamage = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.Calamity().VulnerableToHeat = true;
|
||||
|
||||
@@ -52,7 +52,6 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = AstrumDeusHead.HitSound;
|
||||
NPC.DeathSound = AstrumDeusHead.DeathSound;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -52,7 +52,6 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = AstrumDeusHead.HitSound;
|
||||
NPC.DeathSound = AstrumDeusHead.DeathSound;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
NPC.knockBackResist = 0.5f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit23;
|
||||
NPC.DeathSound = SoundID.NPCDeath39;
|
||||
if (BossRushEvent.BossRushActive)
|
||||
|
||||
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
NPC.lavaImmune = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit51;
|
||||
NPC.DeathSound = SoundID.NPCDeath46;
|
||||
NPC.Calamity().VulnerableToHeat = true;
|
||||
|
||||
@@ -33,7 +33,6 @@ namespace CalamityMod.NPCs.CalClone
|
||||
NPC.height = 40;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.damage = 40;
|
||||
NPC.defense = 10;
|
||||
NPC.DR_NERD(0.1f);
|
||||
|
||||
+189
-31
@@ -1119,6 +1119,13 @@ namespace CalamityMod.NPCs
|
||||
#endregion
|
||||
|
||||
#region Set Defaults
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// Set Plantera to be able to update oldPos[x]
|
||||
// This is only used for her Rev+ AI charge attacks
|
||||
NPCID.Sets.TrailingMode[NPCID.Plantera] = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults(NPC npc)
|
||||
{
|
||||
ShouldFallThroughPlatforms = false;
|
||||
@@ -1482,11 +1489,6 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
npc.knockBackResist = 0f;
|
||||
}
|
||||
|
||||
if (CalamityLists.revengeanceLifeStealExceptionList.Contains(npc.type))
|
||||
{
|
||||
npc.canGhostHeal = false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -6306,21 +6308,21 @@ namespace CalamityMod.NPCs
|
||||
return null;
|
||||
|
||||
if (Main.LocalPlayer.Calamity().trippy || (npc.type == NPCID.KingSlime && CalamityWorld.LegendaryMode && CalamityWorld.revenge))
|
||||
return new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, npc.alpha);
|
||||
return new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, Main.DiscoR);
|
||||
|
||||
if (npc.type == NPCID.QueenBee && Main.zenithWorld)
|
||||
{
|
||||
if (npc.life / (float)npc.lifeMax < 0.5f)
|
||||
return new Color(0, 255, 0, npc.alpha);
|
||||
return new Color(0, 255, 0, 255 - npc.alpha);
|
||||
else
|
||||
return new Color(255, 0, 0, npc.alpha);
|
||||
return new Color(255, 0, 0, 255 - npc.alpha);
|
||||
}
|
||||
|
||||
if (npc.HasBuff<Enraged>())
|
||||
return new Color(200, 50, 50, npc.alpha);
|
||||
return new Color(200, 50, 50, 255 - npc.alpha);
|
||||
|
||||
if (npc.Calamity().kamiFlu > 0 && !CalamityLists.kamiDebuffColorImmuneList.Contains(npc.type))
|
||||
return new Color(51, 197, 108, npc.alpha);
|
||||
return new Color(51, 197, 108, 255 - npc.alpha);
|
||||
|
||||
if (npc.type == NPCID.VileSpit || npc.type == NPCID.VileSpitEaterOfWorlds)
|
||||
return new Color(150, 200, 0, npc.alpha);
|
||||
@@ -6533,41 +6535,119 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (npc.spriteDirection == 1)
|
||||
{
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
}
|
||||
|
||||
Vector2 halfSizeTexture = new Vector2(TextureAssets.Npc[npc.type].Value.Width / 2, TextureAssets.Npc[npc.type].Value.Height / Main.npcFrameCount[npc.type] / 2);
|
||||
Color rainbow = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, 0);
|
||||
Color rainbow = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, Main.DiscoR);
|
||||
Color alphaColor = npc.GetAlpha(rainbow);
|
||||
float RGBMult = 0.99f;
|
||||
alphaColor.R = (byte)(alphaColor.R * RGBMult);
|
||||
alphaColor.G = (byte)(alphaColor.G * RGBMult);
|
||||
alphaColor.B = (byte)(alphaColor.B * RGBMult);
|
||||
alphaColor.A = (byte)(alphaColor.A * RGBMult);
|
||||
float xOffset = screenPos.X + npc.width / 2 - TextureAssets.Npc[npc.type].Value.Width * npc.scale / 2f + halfSizeTexture.X * npc.scale;
|
||||
float yOffset = screenPos.Y + npc.height - TextureAssets.Npc[npc.type].Value.Height * npc.scale / Main.npcFrameCount[npc.type] + 4f + halfSizeTexture.Y * npc.scale + npc.gfxOffY;
|
||||
for (int i = 0; i < 4; i++)
|
||||
int totalAfterimages = Main.player[Main.myPlayer].Calamity().trippyLevel == 3 ? 16 : (Main.player[Main.myPlayer].Calamity().trippyLevel == 2 ? 12 : 4);
|
||||
for (int i = 0; i < totalAfterimages; i++)
|
||||
{
|
||||
Vector2 position9 = npc.position;
|
||||
float num214 = Math.Abs(npc.Center.X - Main.LocalPlayer.Center.X);
|
||||
float num215 = Math.Abs(npc.Center.Y - Main.LocalPlayer.Center.Y);
|
||||
Vector2 position = npc.position;
|
||||
float distanceFromTargetX = Math.Abs(npc.Center.X - Main.player[Main.myPlayer].Center.X);
|
||||
float distanceFromTargetY = Math.Abs(npc.Center.Y - Main.player[Main.myPlayer].Center.Y);
|
||||
|
||||
if (i == 0 || i == 2)
|
||||
position9.X = Main.LocalPlayer.Center.X + num214;
|
||||
else
|
||||
position9.X = Main.LocalPlayer.Center.X - num214;
|
||||
float smallDistanceMult = 0.48f;
|
||||
float largeDistanceMult = 1.33f;
|
||||
bool whatTheFuck = Main.player[Main.myPlayer].Calamity().trippyLevel == 3;
|
||||
|
||||
position9.X -= npc.width / 2;
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
break;
|
||||
|
||||
if (i == 0 || i == 1)
|
||||
position9.Y = Main.LocalPlayer.Center.Y + num215;
|
||||
else
|
||||
position9.Y = Main.LocalPlayer.Center.Y - num215;
|
||||
case 1:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY;
|
||||
break;
|
||||
|
||||
position9.Y -= npc.height / 2;
|
||||
case 2:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
break;
|
||||
|
||||
Main.spriteBatch.Draw(TextureAssets.Npc[npc.type].Value, new Vector2(position9.X - xOffset, position9.Y - yOffset), new Microsoft.Xna.Framework.Rectangle?(npc.frame), alphaColor, npc.rotation, halfSizeTexture, npc.scale, spriteEffects, 0f);
|
||||
case 3:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY;
|
||||
break;
|
||||
|
||||
case 4: // 1 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 5: // 4 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 6: // 7 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 7: // 10 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 0f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 1f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 8: // 11 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 9: // 2 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - (distanceFromTargetY * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 10: // 5 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X + (distanceFromTargetX * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
break;
|
||||
|
||||
case 11: // 8 o'clock position
|
||||
position.X = Main.player[Main.myPlayer].Center.X - (distanceFromTargetX * (whatTheFuck ? 0.5f : largeDistanceMult));
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + (distanceFromTargetY * (whatTheFuck ? 0f : smallDistanceMult));
|
||||
break;
|
||||
|
||||
case 12:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
case 13:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y - distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
case 14:
|
||||
position.X = Main.player[Main.myPlayer].Center.X + distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
case 15:
|
||||
position.X = Main.player[Main.myPlayer].Center.X - distanceFromTargetX * 0.5f;
|
||||
position.Y = Main.player[Main.myPlayer].Center.Y + distanceFromTargetY * 0.5f;
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
position.X -= npc.width / 2;
|
||||
position.Y -= npc.height / 2;
|
||||
|
||||
Vector2 halfSize = npc.frame.Size() / 2;
|
||||
|
||||
spriteBatch.Draw(TextureAssets.Npc[npc.type].Value, new Vector2(position.X - screenPos.X + (float)(npc.width / 2) - (float)TextureAssets.Npc[npc.type].Width() * npc.scale / 2f + halfSize.X * npc.scale, position.Y - screenPos.Y + (float)npc.height - (float)TextureAssets.Npc[npc.type].Height() * npc.scale / (float)Main.npcFrameCount[npc.type] + 4f + halfSize.Y * npc.scale + npc.gfxOffY), npc.frame, alphaColor, npc.rotation, halfSize, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -7086,6 +7166,84 @@ namespace CalamityMod.NPCs
|
||||
else
|
||||
spriteBatch.Draw(TextureAssets.BoneEyes.Value, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, eyesColor, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
else if (npc.type == NPCID.Plantera)
|
||||
{
|
||||
// Percent life remaining
|
||||
float lifeRatio = npc.life / (float)npc.lifeMax;
|
||||
|
||||
Texture2D npcTexture = TextureAssets.Npc[npc.type].Value;
|
||||
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (npc.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
Color originalColor = npc.GetAlpha(drawColor);
|
||||
Color newColor = new Color(100, 255, 100, 255);
|
||||
Vector2 glowOffset = Vector2.UnitY * -4f;
|
||||
Vector2 drawPosition = npc.Center - screenPos + new Vector2(0, npc.gfxOffY) + glowOffset;
|
||||
Vector2 origin = npc.frame.Size() / 2;
|
||||
|
||||
bool phase2 = lifeRatio <= 0.5f;
|
||||
if (!phase2)
|
||||
{
|
||||
float telegraphTimer = Math.Abs(npc.ai[1]);
|
||||
bool startSeedGatlingSporeGasTelegraph = npc.ai[1] > PlanteraAI.SeedGatlingColorChangeGateValue;
|
||||
bool endSeedGatlingSporeGasTelegraph = npc.ai[1] < -PlanteraAI.SeedGatlingDuration + PlanteraAI.SeedGatlingColorChangeDuration;
|
||||
if (startSeedGatlingSporeGasTelegraph)
|
||||
{
|
||||
float telegraphScalar = MathHelper.Clamp((telegraphTimer - PlanteraAI.SeedGatlingColorChangeGateValue) / PlanteraAI.SeedGatlingColorChangeDuration, 0f, 1f);
|
||||
Color telegraphColor = Color.Lerp(originalColor, newColor, telegraphScalar);
|
||||
spriteBatch.Draw(npcTexture, drawPosition, npc.frame, telegraphColor, npc.rotation, origin, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
// -300 to -120
|
||||
else if (endSeedGatlingSporeGasTelegraph)
|
||||
{
|
||||
float telegraphScalar = MathHelper.Clamp((telegraphTimer - (PlanteraAI.SeedGatlingDuration - PlanteraAI.SeedGatlingColorChangeDuration)) / PlanteraAI.SeedGatlingColorChangeDuration, 0f, 1f);
|
||||
Color telegraphColor = Color.Lerp(originalColor, newColor, telegraphScalar);
|
||||
spriteBatch.Draw(npcTexture, drawPosition, npc.frame, telegraphColor, npc.rotation, origin, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
float telegraphTimer = Math.Abs(npc.ai[3]);
|
||||
bool startChargeTelegraph = npc.ai[3] > PlanteraAI.ChargeTelegraphColorChangeGateValue;
|
||||
bool endChargeTelegraph = npc.ai[3] <= -2f;
|
||||
if (startChargeTelegraph)
|
||||
{
|
||||
float telegraphScalar = MathHelper.Clamp((telegraphTimer - PlanteraAI.ChargeTelegraphColorChangeGateValue) / PlanteraAI.SeedGatlingColorChangeDuration, 0f, 1f);
|
||||
Color telegraphColor = Color.Lerp(originalColor, newColor, telegraphScalar);
|
||||
spriteBatch.Draw(npcTexture, drawPosition, npc.frame, telegraphColor, npc.rotation, origin, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
// -195 to -2
|
||||
else if (endChargeTelegraph)
|
||||
{
|
||||
float telegraphScalar = MathHelper.Clamp((Math.Abs(PlanteraAI.StopChargeGateValue) - telegraphTimer) / Math.Abs(PlanteraAI.StopChargeGateValue), 0f, 1f);
|
||||
Color telegraphColor = Color.Lerp(originalColor, newColor, telegraphScalar);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
{
|
||||
int afterimageAmount = 10;
|
||||
int afterImageIncrement = 2;
|
||||
for (int j = 0; j < afterimageAmount; j += afterImageIncrement)
|
||||
{
|
||||
Color afterimageColor = telegraphColor;
|
||||
afterimageColor = Color.Lerp(afterimageColor, originalColor, 0.5f);
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (afterimageAmount - j) / 15f;
|
||||
Vector2 afterimagePos = npc.oldPos[j] + new Vector2(npc.width, npc.height) / 2f - screenPos;
|
||||
afterimagePos -= new Vector2(npcTexture.Width, npcTexture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimagePos += origin * npc.scale + new Vector2(0f, npc.gfxOffY) + glowOffset;
|
||||
spriteBatch.Draw(npcTexture, afterimagePos, npc.frame, afterimageColor, npc.rotation, origin, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
spriteBatch.Draw(npcTexture, drawPosition, npc.frame, telegraphColor, npc.rotation, origin, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1175,6 +1175,7 @@ namespace CalamityMod.NPCs
|
||||
// Expert+ drops are also available on Normal
|
||||
npcLoot.AddNormalOnly(DropHelper.PerPlayer(ItemID.VolatileGelatin));
|
||||
npcLoot.AddNormalOnly(ItemID.SoulofLight, 1, 15, 20);
|
||||
npcLoot.AddNormalOnly(ItemID.PinkGel, 1, 15, 20);
|
||||
|
||||
// Would be in the bag otherwise
|
||||
npcLoot.AddNormalOnly(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
|
||||
|
||||
@@ -50,7 +50,6 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
NPC.Opacity = 0f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit53;
|
||||
NPC.DeathSound = SoundID.NPCDeath44;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
|
||||
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
NPC.knockBackResist = 0.5f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.Calamity().VulnerableToHeat = true;
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.aiStyle = -1;
|
||||
AIType = -1;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.coldDamage = true;
|
||||
NPC.GetNPCDamage();
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -38,7 +38,6 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -55,7 +55,6 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
global.DR = 0.925f;
|
||||
global.unbreakableDR = true;
|
||||
NPC.chaseable = false;
|
||||
NPC.canGhostHeal = false;
|
||||
}
|
||||
NPC.LifeMaxNERB(887500, 1065000, 1500000); // Phase 1 is 355000, Phase 2 is 532500
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
|
||||
@@ -67,7 +67,6 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.netAlways = true;
|
||||
NPC.boss = true;
|
||||
|
||||
@@ -92,7 +92,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
AIType = -1;
|
||||
NPC.Opacity = 0f;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.DeathSound = CommonCalamitySounds.ExoDeathSound;
|
||||
|
||||
@@ -95,7 +95,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
AIType = -1;
|
||||
NPC.Opacity = 0f;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.DeathSound = CommonCalamitySounds.ExoDeathSound;
|
||||
|
||||
@@ -89,7 +89,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
AIType = -1;
|
||||
NPC.Opacity = 0f;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.DeathSound = CommonCalamitySounds.ExoDeathSound;
|
||||
|
||||
@@ -90,7 +90,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
AIType = -1;
|
||||
NPC.Opacity = 0f;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.DeathSound = CommonCalamitySounds.ExoDeathSound;
|
||||
|
||||
@@ -73,7 +73,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.Opacity = 0f;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
|
||||
@@ -71,7 +71,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.Opacity = 0f;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
|
||||
@@ -71,7 +71,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
NPC.Opacity = 0f;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
|
||||
@@ -42,7 +42,6 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
NPC.knockBackResist = BossRushEvent.BossRushActive ? 0f : 0.3f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
NPC.Calamity().VulnerableToHeat = true;
|
||||
|
||||
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = BossRushEvent.BossRushActive ? 0f : 0.4f;
|
||||
NPC.noGravity = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.chaseable = false;
|
||||
NPC.HitSound = SoundID.NPCHit13;
|
||||
NPC.DeathSound = SoundID.NPCDeath21;
|
||||
|
||||
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
AIType = -1;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.chaseable = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
|
||||
@@ -42,7 +42,6 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
AIType = -1;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.chaseable = false;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
|
||||
@@ -31,7 +31,6 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
{
|
||||
NPC.aiStyle = -1;
|
||||
AIType = -1;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.coldDamage = true;
|
||||
NPC.GetNPCDamage();
|
||||
|
||||
@@ -48,7 +48,6 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.knockBackResist = 0.2f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
AIType = -1;
|
||||
NPC.HitSound = SoundID.NPCHit1;
|
||||
NPC.DeathSound = SoundID.NPCDeath1;
|
||||
|
||||
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NPC.knockBackResist = 0.8f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit5;
|
||||
NPC.DeathSound = SoundID.NPCDeath15;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
|
||||
@@ -656,8 +656,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
damage = (int)(damage * secondMechMultiplier);
|
||||
}
|
||||
|
||||
headCenter += value * 5f;
|
||||
int enragedBombs = Projectile.NewProjectile(NPC.GetSource_FromAI(), headCenter.X, headCenter.Y, enragedHeadBombTargetX, enragedHeadBombTargetY, type, damage, 0f, Main.myPlayer, -1f);
|
||||
int enragedBombs = Projectile.NewProjectile(NPC.GetSource_FromAI(), headCenter.X, headCenter.Y + 30f, enragedHeadBombTargetX, enragedHeadBombTargetY, type, damage, 0f, Main.myPlayer, -1f);
|
||||
Main.projectile[enragedBombs].timeLeft = 600;
|
||||
Main.projectile[enragedBombs].tileCollide = false;
|
||||
}
|
||||
@@ -691,8 +690,8 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
NPC.rotation = NPC.velocity.X / 15f;
|
||||
|
||||
float flightVelocity = bossRush ? 30f : death ? 25f : 20f;
|
||||
float flightAcceleration = bossRush ? 0.3f : death ? 0.25f : 0.2f;
|
||||
float flightVelocity = bossRush ? 32f : death ? 28f : 24f;
|
||||
float flightAcceleration = bossRush ? 1.28f : death ? 1.12f : 0.96f;
|
||||
|
||||
Vector2 destination = new Vector2(Main.player[NPC.target].Center.X, Main.player[NPC.target].Center.Y - 500f);
|
||||
NPC.SimpleFlyMovement((destination - NPC.Center).SafeNormalize(Vector2.UnitY) * flightVelocity, flightAcceleration);
|
||||
@@ -735,7 +734,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
for (int k = 0; k < totalProjectiles; k++)
|
||||
{
|
||||
Vector2 bombVelocity = spinningPoint.RotatedBy(radians * k);
|
||||
int proj = Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + bombVelocity.SafeNormalize(Vector2.UnitY) * 30f, bombVelocity - upwardVelocity, type, damage, 0f, Main.myPlayer, -2f);
|
||||
int proj = Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + Vector2.UnitY * 30f + bombVelocity.SafeNormalize(Vector2.UnitY) * 15f, bombVelocity - upwardVelocity, type, damage, 0f, Main.myPlayer, -2f);
|
||||
Main.projectile[proj].timeLeft = 900;
|
||||
Main.projectile[proj].tileCollide = false;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NPC.lavaImmune = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit51;
|
||||
NPC.DeathSound = SoundID.NPCDeath46;
|
||||
NPC.Calamity().VulnerableToHeat = true;
|
||||
|
||||
+5
-18
@@ -127,9 +127,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
typeName = CalamityUtils.GetTextValue("NPCs.BoomerDuke");
|
||||
}
|
||||
}
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
@@ -139,9 +137,8 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
{
|
||||
int frameChangeFrequency = tired ? 14 : 7;
|
||||
if (NPC.ai[0] == 5f || NPC.ai[0] == 12f)
|
||||
{
|
||||
frameChangeFrequency = tired ? 12 : 6;
|
||||
}
|
||||
|
||||
NPC.frameCounter += 1D;
|
||||
if (NPC.frameCounter > frameChangeFrequency)
|
||||
{
|
||||
@@ -149,18 +146,15 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
NPC.frame.Y += frameHeight;
|
||||
}
|
||||
if (NPC.frame.Y >= frameHeight * 6)
|
||||
{
|
||||
NPC.frame.Y = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (NPC.ai[0] == 1f || NPC.ai[0] == 6f || NPC.ai[0] == 11f)
|
||||
{
|
||||
NPC.frame.Y = frameHeight * 2;
|
||||
}
|
||||
|
||||
if (NPC.ai[0] == 2f || NPC.ai[0] == 7f || NPC.ai[0] == 14f)
|
||||
{
|
||||
NPC.frame.Y = frameHeight * 6;
|
||||
}
|
||||
|
||||
if (NPC.ai[0] == 3f || NPC.ai[0] == 8f || NPC.ai[0] == 13f || NPC.ai[0] == -1f)
|
||||
{
|
||||
int frameChangeGateValue = 120;
|
||||
@@ -173,19 +167,16 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
NPC.frame.Y += frameHeight;
|
||||
}
|
||||
if (NPC.frame.Y >= frameHeight * 6)
|
||||
{
|
||||
NPC.frame.Y = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
NPC.frame.Y = frameHeight * 5;
|
||||
if (NPC.ai[2] > (frameChangeGateValue - 40) && NPC.ai[2] < (frameChangeGateValue - 15))
|
||||
{
|
||||
NPC.frame.Y = frameHeight * 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (NPC.ai[0] == 4f || NPC.ai[0] == 9f)
|
||||
{
|
||||
int secondFrameChangeGateValue = 180;
|
||||
@@ -198,17 +189,13 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
NPC.frame.Y += frameHeight;
|
||||
}
|
||||
if (NPC.frame.Y >= frameHeight * 6)
|
||||
{
|
||||
NPC.frame.Y = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
NPC.frame.Y = frameHeight * 5;
|
||||
if (NPC.ai[2] > (secondFrameChangeGateValue - 50) && NPC.ai[2] < (secondFrameChangeGateValue - 25))
|
||||
{
|
||||
NPC.frame.Y = frameHeight * 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = HitSound;
|
||||
NPC.DeathSound = DeathSound;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = HitSound;
|
||||
NPC.DeathSound = DeathSound;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = HitSound;
|
||||
NPC.DeathSound = DeathSound;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = HitSound;
|
||||
NPC.DeathSound = DeathSound;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = HitSound;
|
||||
NPC.DeathSound = DeathSound;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.behindTiles = true;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = HitSound;
|
||||
NPC.DeathSound = DeathSound;
|
||||
NPC.netAlways = true;
|
||||
|
||||
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.noGravity = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
|
||||
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
NPC.knockBackResist = 0.2f;
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = SoundID.NPCDeath14;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
|
||||
@@ -32,7 +32,6 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
NPC.DR_NERD(0.1f);
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.damage = 50;
|
||||
NPC.lifeMax = 20000;
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
|
||||
@@ -49,7 +49,6 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
NPC.noGravity = true;
|
||||
NPC.noTileCollide = true;
|
||||
NPC.netAlways = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit36;
|
||||
NPC.DeathSound = SoundID.NPCDeath39;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
|
||||
Loaded 100 of 173 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user