Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into damage-hell
This commit is contained in:
commit
992e4a227d
491 files changed
+1000
-2705
No files matched your search
@@ -27,7 +27,6 @@ namespace CalamityMod.Balancing
|
||||
{
|
||||
public sealed class BalancingChangesManager : ModSystem
|
||||
{
|
||||
internal static List<IBalancingRule[]> UniversalBalancingChanges = null;
|
||||
internal static List<NPCBalancingChange> NPCSpecificBalancingChanges = null;
|
||||
|
||||
// Balancing changes in this method are sorted based on place in progression, NPC name (from A-Z), and strength of resistance in ascending order, in that level of priority.
|
||||
@@ -46,50 +45,12 @@ namespace CalamityMod.Balancing
|
||||
bool DragonRageFilter(Projectile p) =>
|
||||
p.type == ProjectileType<DragonRageStaff>() || p.type == ProjectileType<DragonRageFireball>() || (p.type == ProjectileType<FuckYou>() && p.CountsAsClass<MeleeDamageClass>());
|
||||
|
||||
// bool MonkStaffT3Filter(Projectile p) =>
|
||||
// p.type == ProjectileID.MonkStaffT3_AltShot || (p.type == ProjectileID.Electrosphere && Main.player[p.owner].ActiveItem().type == ItemID.MonkStaffT3);
|
||||
|
||||
bool MushroomSpearFilter(Projectile p) =>
|
||||
p.type == ProjectileID.Mushroom && Main.player[p.owner].ActiveItem().type == ItemID.MushroomSpear;
|
||||
|
||||
bool OrichalcumPetalFilter(Projectile p) =>
|
||||
p.type == ProjectileID.FlowerPetal && Main.player[p.owner].onHitPetal;
|
||||
|
||||
bool SpectreMaskSetBonusFilter(Projectile p) =>
|
||||
p.type == ProjectileID.SpectreWrath && Main.player[p.owner].ghostHurt;
|
||||
|
||||
bool AotCThrowCombo(Projectile p) =>
|
||||
p.type == ProjectileType<ArkoftheCosmosSwungBlade>() && (p.ai[0] == 2 || p.ai[0] == 3);
|
||||
|
||||
bool HiveBeeFilter(Projectile p) =>
|
||||
p.type == ProjectileType<BasicPlagueBee>() && Main.player[p.owner].ActiveItem().type == ItemType<TheHive>();
|
||||
|
||||
UniversalBalancingChanges = new List<IBalancingRule[]>()
|
||||
{
|
||||
// Nerf Crystal bullet shards by 45%
|
||||
// Currently crystal bullet projectiles deal 50% of the bullet's damage which is absurd in vanilla, this nerfs them to 27.5%
|
||||
Do(new ProjectileResistBalancingRule(0.55f, ProjectileID.CrystalShard)),
|
||||
|
||||
// Nerf Luminite Arrow trails by 50%.
|
||||
Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.MoonlordArrowTrail)),
|
||||
|
||||
// Nerf Seedler seeds by 25%.
|
||||
Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.SeedlerNut, ProjectileID.SeedlerThorn)),
|
||||
|
||||
// Nerf Cursed Dart flames by 50%.
|
||||
Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CursedDartFlame)),
|
||||
|
||||
// Nerf Mushroom Spear projectiles by 50%.
|
||||
Do(new ProjectileSpecificRequirementBalancingRule(0.5f, MushroomSpearFilter)),
|
||||
|
||||
// Nerf Orichalcum armor set bonus petals by 25%.
|
||||
Do(new ProjectileSpecificRequirementBalancingRule(0.75f, OrichalcumPetalFilter)),
|
||||
|
||||
// Nerf Spectre Mask set bonus projectiles by 50%.
|
||||
Do(new ProjectileSpecificRequirementBalancingRule(0.5f, SpectreMaskSetBonusFilter)),
|
||||
|
||||
};
|
||||
|
||||
NPCSpecificBalancingChanges = new List<NPCBalancingChange>();
|
||||
|
||||
#region Crabulon
|
||||
@@ -511,23 +472,12 @@ namespace CalamityMod.Balancing
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
UniversalBalancingChanges = null;
|
||||
NPCSpecificBalancingChanges = null;
|
||||
}
|
||||
|
||||
public static void ApplyFromProjectile(NPC npc, ref NPC.HitModifiers modifiers, Projectile proj)
|
||||
{
|
||||
// Apply universal balancing rules.
|
||||
foreach (IBalancingRule[] balancingRules in UniversalBalancingChanges)
|
||||
{
|
||||
foreach (IBalancingRule balancingRule in balancingRules)
|
||||
{
|
||||
if (balancingRule.AppliesTo(npc, modifiers, proj))
|
||||
balancingRule.ApplyBalancingChange(npc, ref modifiers);
|
||||
}
|
||||
}
|
||||
|
||||
// As well as rules specific to NPCs.
|
||||
// Apply NPC-specific balancing rules.
|
||||
foreach (NPCBalancingChange balanceChange in NPCSpecificBalancingChanges)
|
||||
{
|
||||
if (npc.type != balanceChange.NPCType)
|
||||
|
||||
@@ -117,54 +117,22 @@
|
||||
#endregion
|
||||
|
||||
#region Life Steal
|
||||
// Life steal cap
|
||||
// Life steal cap (Maximum HP healed per instance of lifesteal)
|
||||
internal static readonly int LifeStealCap = 100;
|
||||
|
||||
// Life steal accessories require a more strict cooldown due to their ease of use and global application
|
||||
internal static readonly float LifeStealAccessoryCooldownMultiplier = 3f;
|
||||
|
||||
// Life steal cooldown multipliers used for armor set bonuses
|
||||
internal static readonly float LifeStealSetBonusCooldownMultiplier = 2f;
|
||||
internal static readonly float LifeStealReaverTankCooldownMultiplier = 4f;
|
||||
|
||||
// The range was buffed in vanilla from 1200 to 3000 in 1.4.4, and I agree with that decision
|
||||
internal static readonly float LifeStealRange = 3000f;
|
||||
|
||||
// Life steal caps (aka, how much life steal the player is allowed before it goes on cooldown)
|
||||
internal static readonly float LifeStealCap_Classic = 60f;
|
||||
internal static readonly float LifeStealCap_Expert = 50f;
|
||||
internal static readonly float LifeStealCap_Revengeance = 40f;
|
||||
internal static readonly float LifeStealCap_Death = 30f;
|
||||
|
||||
// Master nerfs the life steal cap by 10, resulting in 40 in non-Rev Master, 30 in Rev Master, and 20 in Death Master
|
||||
internal static readonly float LifeStealCapReduction_Master = 10f;
|
||||
// Base life steal caps from vanilla (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;
|
||||
|
||||
// The base life steal cooldowns from vanilla
|
||||
internal static readonly float LifeStealRecoveryRate_Classic = 0.6f;
|
||||
internal static readonly float LifeStealRecoveryRate_Expert = 0.5f;
|
||||
|
||||
// The calculations below show the time (in frames) for 10 life steal cooldown to recover in each difficulty
|
||||
// Classic: 10 / 0.2 = 50
|
||||
// Expert: 10 / 0.15 = 66.667
|
||||
// Revengeance: 10 / 0.125 = 80
|
||||
// Death: 10 / 0.1 = 100
|
||||
// Master: 10 / 0.1 = 100
|
||||
// Revengeance Master: 10 / 0.075 = 133.333
|
||||
// Death Master: 10 / 0.05 = 200
|
||||
// Nerfs the life steal recovery rate in Classic from 0.6/s to 0.2/s
|
||||
// Nerfs the life steal recovery rate in Classic from 0.6 to 0.2 (36 HP/s to 12 HP/s)
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Classic = 0.4f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Expert from 0.5/s to 0.15/s
|
||||
// Nerfs the life steal recovery rate in Expert from 0.5 to 0.15 (30 HP/s to 9 HP/s)
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Expert = 0.35f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Revengeance from 0.5/s to 0.125/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Revengeance = 0.375f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Death from 0.5/s to 0.1/s
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Death = 0.4f;
|
||||
|
||||
// Nerfs the life steal recovery rate in Master by 0.05/s, resulting in 0.1/s in non-Rev Master, 0.075/s in Rev Master, and 0.05/s in Death Master
|
||||
internal static readonly float LifeStealRecoveryRateReduction_Master = 0.05f;
|
||||
#endregion
|
||||
|
||||
#region Rogue Base Stats
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
player.breath = player.breathMax + 3;
|
||||
}
|
||||
if (Main.myPlayer == player.whoAmI && player.wet && NPC.downedBoss3)
|
||||
if (Main.myPlayer == player.whoAmI && player.Calamity().countsAsAnyWet && NPC.downedBoss3)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<AquaticHeartWaterSpeed>(), 360);
|
||||
}
|
||||
|
||||
@@ -175,6 +175,8 @@ namespace CalamityMod.CalPlayer
|
||||
public int momentumCapacitorTime = 0;
|
||||
/// <summary> A multiplier on the player's movement speed applied while using Momentum Capacitor. </summary>
|
||||
public float momentumCapacitorBoost = 0f;
|
||||
|
||||
public bool countsAsAnyWet => (Player.armor[0].type == ItemID.FishBowl || Player.wetCount > 0 || Player.wet || Player.honeyWet || Player.lavaWet);
|
||||
#endregion
|
||||
|
||||
#region Speedrun Timer
|
||||
@@ -456,7 +458,7 @@ namespace CalamityMod.CalPlayer
|
||||
/// This is obtained from a formula derived from the player's current stealth, the weapon's use time, and the player's stealth generation boosts.
|
||||
/// </summary>
|
||||
public float stealthDamage = 0f;
|
||||
/// <summary> An additional damage multiplier applied to rogue stealth strikes. Used by Filthy Glove and its upgrades, and Rotten Dogtooth. </summary>
|
||||
/// <summary> An additional damage multiplier applied to rogue stealth strikes. Used by Filthy Glove, Rotten Dogtooth and their upgrades. </summary>
|
||||
public double bonusStealthDamage = 0;
|
||||
public float rogueVelocity = 1f;
|
||||
#endregion
|
||||
@@ -717,8 +719,8 @@ namespace CalamityMod.CalPlayer
|
||||
public bool gladiatorSword = false;
|
||||
public int gladiatorTimer = 0;
|
||||
public bool unstableGraniteCore = false;
|
||||
public bool regenator = false;
|
||||
public float regenatorDamage = 0;
|
||||
public bool regenerator = false;
|
||||
public float regeneratorDamage = 0;
|
||||
public bool theBee = false;
|
||||
public bool arcFlashRing = false;
|
||||
public bool arcFlashRingVisual = false;
|
||||
@@ -1144,8 +1146,6 @@ namespace CalamityMod.CalPlayer
|
||||
public int titanCooldown = 0;
|
||||
public bool umbraphileSet = false;
|
||||
public bool reaverSpeed = false;
|
||||
public bool reaverRegen = false;
|
||||
public int reaverRegenCooldown = 0;
|
||||
public bool reaverDefense = false;
|
||||
public bool reaverExplore = false;
|
||||
public bool fathomSwarmer = false;
|
||||
@@ -2001,7 +2001,6 @@ namespace CalamityMod.CalPlayer
|
||||
Player.statLifeMax2 += 25;
|
||||
|
||||
int percentMaxLifeIncrease = 0;
|
||||
|
||||
// Blood Pact and Chalice of the Blood God stack their HP bonuses if you want to equip both
|
||||
if (bloodPact)
|
||||
percentMaxLifeIncrease += 25;
|
||||
@@ -2171,7 +2170,7 @@ namespace CalamityMod.CalPlayer
|
||||
trinketOfChi = false;
|
||||
gladiatorSword = false;
|
||||
unstableGraniteCore = false;
|
||||
regenator = false;
|
||||
regenerator = false;
|
||||
deepDiver = false;
|
||||
theBee = false;
|
||||
arcFlashRing = false;
|
||||
@@ -2346,7 +2345,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
avertorBonus = false;
|
||||
|
||||
reaverRegen = false;
|
||||
reaverSpeed = false;
|
||||
reaverDefense = false;
|
||||
reaverExplore = false;
|
||||
@@ -3137,8 +3135,6 @@ namespace CalamityMod.CalPlayer
|
||||
lunicCorpsSet = false;
|
||||
lunicCorpsLegs = false;
|
||||
reaverSpeed = false;
|
||||
reaverRegen = false;
|
||||
reaverRegenCooldown = 0;
|
||||
reaverDefense = false;
|
||||
reaverExplore = false;
|
||||
shadeRegen = false;
|
||||
@@ -4358,15 +4354,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
float baseRecoveryRate = Main.expertMode ? BalancingConstants.LifeStealRecoveryRate_Expert : BalancingConstants.LifeStealRecoveryRate_Classic;
|
||||
|
||||
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 lifeStealRecoveryRateReduction = Main.expertMode ? BalancingConstants.LifeStealRecoveryRateReduction_Expert : BalancingConstants.LifeStealRecoveryRateReduction_Classic;
|
||||
|
||||
float lifeStealRecoveryRate = baseRecoveryRate - lifeStealRecoveryRateReduction;
|
||||
if (Player.lifeSteal < -lifeStealRecoveryRate)
|
||||
|
||||
@@ -370,7 +370,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (ZoneAbyss || ZoneSulphur)
|
||||
canSulphurFish = true;
|
||||
|
||||
Item item = Player.ActiveItem();
|
||||
Item item = Player.HeldItem;
|
||||
if (!canSulphurFish || item.fishingPole <= 0 || item.holdStyle != 1)
|
||||
fishingLevel = -1;
|
||||
|
||||
|
||||
@@ -2304,8 +2304,8 @@ namespace CalamityMod.CalPlayer
|
||||
if (RageEnabled)
|
||||
rageCombatFrames = BalancingConstants.RageCombatDelayTime;
|
||||
|
||||
// Regenator has been CANCLED on TWITTER.COM!!!! (Just keeping this here since it's a neat effect and I'll probably yoink it for something else later)
|
||||
if (regenator && false)
|
||||
// Regenerator has been CANCLED on TWITTER.COM!!!! (Just keeping this here since it's a neat effect and I'll probably yoink it for something else later)
|
||||
if (regenerator && false)
|
||||
{
|
||||
// Projectile damage and count is based on source damage of the hit
|
||||
float hitPower = (hurtInfo.SourceDamage / (Player.statLifeMax2 * 0.5f));
|
||||
@@ -2747,7 +2747,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
for (int i = 0; i < 16; i++)
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
Vector2 circleVel = (MathHelper.TwoPi * i / 16f).ToRotationVector2() * Main.rand.NextFloat(5f, 8f);
|
||||
int shard = Projectile.NewProjectile(source, Player.Center, circleVel, ProjectileID.CrystalShard, sDamage, 1f, Player.whoAmI);
|
||||
|
||||
@@ -625,6 +625,9 @@ namespace CalamityMod.CalPlayer
|
||||
Player.lifeRegen += Main.eclipse ? 2 : 4;
|
||||
}
|
||||
|
||||
if (silvaSet)
|
||||
Player.lifeRegen += 6;
|
||||
|
||||
if (phantomicHeartRegen <= 720 && phantomicHeartRegen >= 600)
|
||||
{
|
||||
Player.lifeRegen += PhantomicArtifact.RegenBoost;
|
||||
@@ -693,14 +696,6 @@ namespace CalamityMod.CalPlayer
|
||||
else
|
||||
pinkCandleHealFraction = 0D;
|
||||
|
||||
if (reaverRegen && reaverRegenCooldown >= 60)
|
||||
{
|
||||
reaverRegenCooldown = 0;
|
||||
|
||||
if (Player.statLife != Player.statLifeMax2 && !noLifeRegen)
|
||||
Player.HealPlayer(1, HealTextType.None);
|
||||
}
|
||||
|
||||
if (BloomStoneRegen)
|
||||
{
|
||||
float dayTimeCompletion = !Main.dayTime ? 1f : (float)(Main.time / Main.dayLength);
|
||||
@@ -766,7 +761,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
#endregion
|
||||
|
||||
if (regenator) // Gives special regen of it's own, but disables all regular life regen
|
||||
if (regenerator) // Gives special regen of it's own, but disables all regular life regen
|
||||
{
|
||||
if (Player.miscCounter % 7 == 0 && Player.statLife < (int)(Player.statLifeMax2 * 0.5f))
|
||||
Player.HealPlayer(1, HealTextType.None);
|
||||
@@ -777,7 +772,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.lifeRegenTime += 10;
|
||||
}
|
||||
else
|
||||
regenatorDamage = 0;
|
||||
regeneratorDamage = 0;
|
||||
|
||||
if (toxicHeart) // Since it needs to know your life regen, it must be placed here
|
||||
{
|
||||
@@ -832,8 +827,8 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
// Regenator trades all positive regen for damage, and caps your health gain at 50%
|
||||
if (regenator)
|
||||
// Regenerator trades all positive regen for damage, and caps your health gain at 50%
|
||||
if (regenerator)
|
||||
{
|
||||
int finalRegen = Player.lifeRegen + (int)Math.Round(regen * (Player.statLifeMax2 / 400f * 0.85f + 0.15f));
|
||||
finalRegen = (int)Math.Max(finalRegen, 0);
|
||||
@@ -843,8 +838,8 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.palladiumRegen)
|
||||
finalRegen += 4;
|
||||
|
||||
regenatorDamage = (finalRegen * 1.75f) * 0.01f;
|
||||
Player.GetDamage<GenericDamageClass>() += regenatorDamage;
|
||||
regeneratorDamage = (finalRegen * 1.75f) * 0.01f;
|
||||
Player.GetDamage<GenericDamageClass>() += regeneratorDamage;
|
||||
|
||||
if (Player.lifeRegen > 0)
|
||||
Player.lifeRegen = 0;
|
||||
|
||||
@@ -1121,34 +1121,11 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
// Life Steal nerf in difficulties above Expert
|
||||
// Reduces the max possible life steal before the cooldown occurs (this mostly just nerfs how much life steal the player can get in bursts)
|
||||
// Master Mode nerfs this by an additional 10
|
||||
float lifeStealCap =
|
||||
CalamityWorld.death ? BalancingConstants.LifeStealCap_Death :
|
||||
CalamityWorld.revenge ? BalancingConstants.LifeStealCap_Revengeance :
|
||||
Main.expertMode ? BalancingConstants.LifeStealCap_Expert :
|
||||
BalancingConstants.LifeStealCap_Classic;
|
||||
|
||||
if (Main.masterMode)
|
||||
lifeStealCap -= BalancingConstants.LifeStealCapReduction_Master;
|
||||
|
||||
if (Player.lifeSteal > lifeStealCap)
|
||||
Player.lifeSteal = lifeStealCap;
|
||||
|
||||
// Normal Mode life steal recovery rate is 0.2/s
|
||||
// Expert Mode life steal recovery rate is 0.15/s
|
||||
// Revengeance Mode life steal recovery rate is 0.125/s
|
||||
// Death Mode life steal recovery rate is 0.1/s
|
||||
// Master Mode life steal recovery rate is nerfed by an additional 0.05/s
|
||||
float lifeStealRecoveryRateReduction =
|
||||
CalamityWorld.death ? BalancingConstants.LifeStealRecoveryRateReduction_Death :
|
||||
CalamityWorld.revenge ? BalancingConstants.LifeStealRecoveryRateReduction_Revengeance :
|
||||
Main.expertMode ? BalancingConstants.LifeStealRecoveryRateReduction_Expert :
|
||||
BalancingConstants.LifeStealRecoveryRateReduction_Classic;
|
||||
|
||||
if (Main.masterMode)
|
||||
lifeStealRecoveryRateReduction += BalancingConstants.LifeStealRecoveryRateReduction_Master;
|
||||
// Reduce the rate of recovery of the Lifesteal variable
|
||||
// Classic Mode: 36 HP/s to 12 HP/s
|
||||
// Expert Mode: 30 HP/s to 9 HP/s
|
||||
float lifeStealRecoveryRateReduction = Main.expertMode ? BalancingConstants.LifeStealRecoveryRateReduction_Expert : BalancingConstants.LifeStealRecoveryRateReduction_Classic;
|
||||
float lifeStealCap = Main.expertMode ? BalancingConstants.LifeStealCap_Expert : BalancingConstants.LifeStealCap_Classic;
|
||||
|
||||
if (Player.lifeSteal < lifeStealCap)
|
||||
Player.lifeSteal -= lifeStealRecoveryRateReduction;
|
||||
@@ -2232,10 +2209,6 @@ namespace CalamityMod.CalPlayer
|
||||
canFireGodSlayerRangedProjectile = true;
|
||||
canFireBloodflareRangedProjectile = true;
|
||||
}
|
||||
if (reaverRegenCooldown < 60 && reaverRegen)
|
||||
reaverRegenCooldown++;
|
||||
else
|
||||
reaverRegenCooldown = 0;
|
||||
if (auralisAurora > 0)
|
||||
auralisAurora--;
|
||||
if (auralisAuroraCooldown > 0)
|
||||
@@ -3159,7 +3132,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Aquatic Emblem bonus
|
||||
if (aquaticEmblem)
|
||||
{
|
||||
if (Player.IsUnderwater() && Player.wet && !Player.lavaWet && !Player.honeyWet &&
|
||||
if (countsAsAnyWet && !Player.lavaWet && !Player.honeyWet &&
|
||||
!Player.mount.Active)
|
||||
{
|
||||
if (aquaticBoost > 0f)
|
||||
@@ -3759,11 +3732,17 @@ namespace CalamityMod.CalPlayer
|
||||
Player.GetDamage<MeleeDamageClass>() += 0.1f;
|
||||
}
|
||||
|
||||
// While making the rogue update verify if we should allow these to stack again - Shade
|
||||
if (filthyGlove)
|
||||
{
|
||||
bonusStealthDamage += nanotech ? 0.05f : 0.08f;
|
||||
}
|
||||
|
||||
if (rottenDogTooth && !nanotech)
|
||||
{
|
||||
bonusStealthDamage += 0.08f;
|
||||
}
|
||||
|
||||
if (sandsWindBuff)
|
||||
{
|
||||
Player.GetDamage<GenericDamageClass>() += PrimordialEarth.BuffDamageBoost;
|
||||
|
||||
@@ -193,13 +193,14 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Arc Flash Ring lightning strike (Remember to change the one for projectile hits if applicable when you change this one!)
|
||||
// This one has a lot less limits than the projectile one, but that's because vanilla broadsword code is limiting (wow so surprising)
|
||||
if (arcFlashRing && (Main.rand.Next(0, 100) < 6))
|
||||
bool spawnChance = (Main.rand.Next(0, 100) < 6);
|
||||
if (arcFlashRing && spawnChance)
|
||||
{
|
||||
var source = item.GetSource_FromThis();
|
||||
int damage = (int)((hit.Damage * 4f) * (hit.Crit ? 0.5f : 1)); // 400% damage (uneffected by crits)
|
||||
Vector2 position = target.Center + new Vector2(0, -750);
|
||||
int damage = (int)(((hit.Damage * 4f) * (hit.Crit ? 0.5f : 1)) / (Player.Calamity().adrenalineModeActive ? Player.Calamity().GetAdrenalineDamage() + 1 : 1)); // 400% damage (uneffected by crits and adrenaline)
|
||||
|
||||
Projectile.NewProjectile(source, position, new Vector2(0, 10), ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI);
|
||||
Projectile bolt = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI);
|
||||
bolt.DamageType = hit.DamageType;
|
||||
}
|
||||
|
||||
// Shattered Community tracks all damage dealt with Rage Mode (ignoring dummies).
|
||||
@@ -396,22 +397,20 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
CalamityGlobalProjectile globalProj = proj.Calamity();
|
||||
// Arc Flash Ring lightning strike (Remember to change the one for item hits if applicable when you change this one!)
|
||||
// Minions ignore the chance penalty on penetration
|
||||
bool spawnChance = (Main.rand.Next(0, 100) < MathHelper.Clamp(6 - proj.numHits, (proj.minion ? 6 : 1), 6));
|
||||
if (arcFlashRing && spawnChance && proj.type != ProjectileType<FlashBolt>() && globalProj.spawnArcFlash)
|
||||
bool spawnChance = (Main.rand.Next(0, 100) < 6);
|
||||
if (arcFlashRing && spawnChance && proj.type != ProjectileType<FlashBolt>())
|
||||
{
|
||||
proj.active = true; // Okay so if a projectile manually kills itself on hit, it totally breaks the bolts. to prevent this we set them to active
|
||||
|
||||
var source = proj.GetSource_FromThis();
|
||||
int damage = (int)((hit.Damage * 4f) * (hit.Crit ? 0.5f : 1)); // 400% damage (uneffected by crits)
|
||||
Vector2 position = target.Center + new Vector2(0, -750);
|
||||
int damage = (int)(((hit.Damage * 4f) * (hit.Crit ? 0.5f : 1)) / (Player.Calamity().adrenalineModeActive ? Player.Calamity().GetAdrenalineDamage() + 1 : 1)); // 400% damage (uneffected by crits and adrenaline)
|
||||
|
||||
Projectile bolt = Projectile.NewProjectileDirect(source, position, new Vector2(0, 10), ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI);
|
||||
Projectile bolt = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI, (globalProj.showArcFlash ? 0 : 1));
|
||||
bolt.DamageType = hit.DamageType;
|
||||
|
||||
globalProj.spawnArcFlash = false;
|
||||
// This is really only used for long lasting projectiles and contact damage minions
|
||||
globalProj.arcFlashCooldown = 90;
|
||||
globalProj.showArcFlash = false;
|
||||
// This is really only used for piercing and long lasting projectiles so they dont flood the screen with bolts
|
||||
globalProj.arcFlashCooldown = 30;
|
||||
}
|
||||
|
||||
if (!proj.npcProj && !proj.trap && proj.friendly)
|
||||
@@ -574,11 +573,7 @@ namespace CalamityMod.CalPlayer
|
||||
GeneralParticleHandler.SpawnParticle(orb);
|
||||
}
|
||||
|
||||
int heal = (int)Math.Round(hit.Damage * 0.035);
|
||||
if (Main.LocalPlayer.lifeSteal <= 0f || heal <= 0 || target.lifeMax <= 5)
|
||||
return;
|
||||
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Main.player[proj.owner], heal, ProjectileType<AltTransfusionTrail>(), BalancingConstants.LifeStealRange);
|
||||
Main.player[proj.owner].SpawnLifeStealProjectile(target, proj, ProjectileType<AltTransfusionTrail>(), (int)Math.Round(hit.Damage * 0.035));
|
||||
}
|
||||
|
||||
if ((cgp.betterLifeBullet1 || cgp.betterLifeBullet2) && proj.numHits == 0)
|
||||
@@ -594,13 +589,9 @@ namespace CalamityMod.CalPlayer
|
||||
GeneralParticleHandler.SpawnParticle(orb);
|
||||
}
|
||||
|
||||
int heal = (int)Math.Round(hit.Damage * 0.01);
|
||||
if (Main.LocalPlayer.lifeSteal <= 0f || heal <= 0 || target.lifeMax <= 5)
|
||||
return;
|
||||
|
||||
for (int i = 0; i <= 2; i++)
|
||||
{
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Main.player[proj.owner], heal, ProjectileType<AltTransfusionTrail>(), BalancingConstants.LifeStealRange);
|
||||
Main.player[proj.owner].SpawnLifeStealProjectile(target, proj, ProjectileType<AltTransfusionTrail>(), (int)Math.Round(hit.Damage * 0.01), 0.75f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -627,9 +618,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (!item.CountsAsClass<MeleeDamageClass>() && Player.meleeEnchant == 7)
|
||||
Projectile.NewProjectile(source, position, Player.velocity, ProjectileID.ConfettiMelee, 0, 0f, Player.whoAmI);
|
||||
|
||||
if (reaverDefense)
|
||||
Player.lifeRegenTime += 1;
|
||||
|
||||
if (npcCheck)
|
||||
{
|
||||
if (item.CountsAsClass<MeleeDamageClass>() && hideOfDeus && hideOfDeusTimer == 0)
|
||||
@@ -708,9 +696,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (theBee && lifeAndShieldCondition)
|
||||
SoundEngine.PlaySound(SoundID.Item110, proj.Center);
|
||||
|
||||
if (reaverDefense)
|
||||
Player.lifeRegenTime += 1;
|
||||
|
||||
if (npcCheck)
|
||||
{
|
||||
if (astralStarRain && crit && astralStarRainCooldown <= 0)
|
||||
@@ -1161,6 +1146,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (raiderTalisman && modProj.stealthStrike)
|
||||
{
|
||||
raiderCritLifespan = CalamityUtils.SecondsToFrames(RaidersTalisman.RaiderCooldown);
|
||||
// TO DO: Add nanotech here
|
||||
Player.AddCooldown(RaiderBoost.ID, raiderCritLifespan, true, vampiricTalisman ? "Bloodfeast" : "default");
|
||||
if (raiderSoundCooldown <= 0)
|
||||
{
|
||||
@@ -1308,7 +1294,7 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<HadopelagicPressure>(), 180);
|
||||
if (sulphurSet)
|
||||
target.AddBuff(BuffID.Poisoned, 60);
|
||||
if (ilSpark && Player.IsUnderwater())
|
||||
if (ilSpark && Player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
int duration = 60;
|
||||
target.AddBuff(BuffType<StaticDischarge>(), duration);
|
||||
@@ -1336,148 +1322,56 @@ namespace CalamityMod.CalPlayer
|
||||
public void ProjLifesteal(NPC target, Projectile proj, int damage, bool crit)
|
||||
{
|
||||
CalamityGlobalProjectile modProj = proj.Calamity();
|
||||
|
||||
if (bloodflareSet && !target.IsAnEnemy(false) && !Player.moonLeech && target.lifeMax > 5)
|
||||
if (target.IsAnEnemy(false))
|
||||
{
|
||||
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
|
||||
if (bloodflareSet && !Player.moonLeech)
|
||||
{
|
||||
bloodflareHeartTimer = 300;
|
||||
Item.NewItem(target.GetSource_Loot(), target.Hitbox, ItemID.Heart);
|
||||
}
|
||||
}
|
||||
|
||||
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
|
||||
{
|
||||
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
|
||||
target.Calamity().gladiatorOnKill = false;
|
||||
if (healPower >= 1)
|
||||
{
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
|
||||
gladiatorTimer = 300;
|
||||
}
|
||||
}
|
||||
|
||||
if (Main.LocalPlayer.lifeSteal > 0f && !Player.moonLeech && target.lifeMax > 5)
|
||||
{
|
||||
// Increases the degree to which Spectre Healing set contributes to the lifesteal cap
|
||||
if (Player.ghostHeal && proj.CountsAsClass<MagicDamageClass>())
|
||||
{
|
||||
// This doesn't use Math.Round because it doesn't in vanilla
|
||||
float cooldownMult = 0.2f;
|
||||
cooldownMult -= proj.numHits * 0.05f;
|
||||
if (cooldownMult < 0f)
|
||||
cooldownMult = 0f;
|
||||
|
||||
float cooldown = damage * cooldownMult;
|
||||
Main.LocalPlayer.lifeSteal -= cooldown;
|
||||
}
|
||||
|
||||
if (vampiricTalisman && proj.CountsAsClass<RogueDamageClass>() && crit)
|
||||
{
|
||||
int heal = (int)Math.Round(damage * (Main.zenithWorld ? 0.01 : 0.008));
|
||||
if (proj.Calamity().stealthStrike)
|
||||
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
|
||||
{
|
||||
heal /= 2; //stealth strikes heal half due to generally dealing far more dmg
|
||||
|
||||
if (Main.zenithWorld)
|
||||
heal *= -2; // IT YEARNS FOR MORE BLOOD
|
||||
bloodflareHeartTimer = 300;
|
||||
Item.NewItem(target.GetSource_Loot(), target.Hitbox, ItemID.Heart);
|
||||
}
|
||||
if (heal > BalancingConstants.LifeStealCap)
|
||||
heal = BalancingConstants.LifeStealCap;
|
||||
|
||||
// Heals more if the ability is active
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile((raiderCritLifespan > 0) ? 1.5f : 1f, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealAccessoryCooldownMultiplier);
|
||||
}
|
||||
|
||||
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && modProj.stealthStrike)
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealAccessoryCooldownMultiplier);
|
||||
|
||||
if (target.IsAnEnemy(false))
|
||||
if (gladiatorSword && target.life <= 0 && target.Calamity().gladiatorOnKill)
|
||||
{
|
||||
if (bloodflareThrowing && proj.CountsAsClass<ThrowingDamageClass>() && crit)
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
|
||||
if (bloodflareMelee && proj.IsTrueMelee())
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
|
||||
target.Calamity().gladiatorOnKill = false;
|
||||
if (healPower >= 1)
|
||||
{
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
|
||||
gladiatorTimer = 300;
|
||||
}
|
||||
}
|
||||
|
||||
if (vampiricTalisman && proj.CountsAsClass<RogueDamageClass>() && crit && proj.numHits <1)
|
||||
{
|
||||
int heal = (int)Math.Round(damage * 0.008);
|
||||
if (heal > 2)
|
||||
heal = 2;
|
||||
|
||||
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, heal, (raiderCritLifespan > 0 && !proj.Calamity().stealthStrike) ? 1.3f : 1.6f);
|
||||
}
|
||||
|
||||
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && modProj.stealthStrike && proj.numHits < 1)
|
||||
//Nanotech has the same heal as Electrician's glove
|
||||
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, electricianGlove ? 10 : 5, 2f);
|
||||
|
||||
if (bloodflareThrowing && proj.CountsAsClass<ThrowingDamageClass>() && crit)
|
||||
Projectile.NewProjectile(proj.GetSource_OnHit(target), proj.Center, proj.velocity.SafeNormalize(Vector2.Zero) * Math.Min(((proj.velocity.Length() * proj.MaxUpdates) / 4f), 4f) * Main.rand.NextFloat(0.75f, 1.25f), ModContent.ProjectileType<BloodstoneHealOrb>(), 4, 0f, proj.owner);
|
||||
|
||||
if (proj.CountsAsClass<MagicDamageClass>() && Player.ActiveItem().CountsAsClass<MagicDamageClass>())
|
||||
{
|
||||
if (manaOverloader)
|
||||
{
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.25;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (heal > BalancingConstants.LifeStealCap)
|
||||
heal = BalancingConstants.LifeStealCap;
|
||||
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ManaPolarizerHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealAccessoryCooldownMultiplier);
|
||||
double healMult = 0.1D - proj.numHits * 0.025D;
|
||||
Player.SpawnLifeStealProjectile(target, proj, ProjectileType<ManaPolarizerHealOrb>(), (int)Math.Round(damage * healMult), 1.5f);
|
||||
}
|
||||
}
|
||||
|
||||
if (silvaSet)
|
||||
{
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (heal > BalancingConstants.LifeStealCap)
|
||||
heal = BalancingConstants.LifeStealCap;
|
||||
|
||||
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 (tarraMage)
|
||||
if (ataxiaMage)
|
||||
{
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (heal > BalancingConstants.LifeStealCap)
|
||||
heal = BalancingConstants.LifeStealCap;
|
||||
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ReaverHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
}
|
||||
else if (ataxiaMage)
|
||||
{
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (heal > BalancingConstants.LifeStealCap)
|
||||
heal = BalancingConstants.LifeStealCap;
|
||||
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<HydrothermicHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
}
|
||||
}
|
||||
|
||||
if (reaverDefense)
|
||||
{
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (heal > BalancingConstants.LifeStealCap)
|
||||
heal = BalancingConstants.LifeStealCap;
|
||||
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ReaverHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealReaverTankCooldownMultiplier);
|
||||
}
|
||||
|
||||
if (proj.CountsAsClass<ThrowingDamageClass>())
|
||||
{
|
||||
if (xerocSet && xerocDmg <= 0 && Player.ownedProjectileCounts[ProjectileType<EmpyreanEmber>()] < 3 && Player.ownedProjectileCounts[ProjectileType<EmpyreanBlast>()] < 3)
|
||||
{
|
||||
double healMult = 0.1;
|
||||
healMult -= proj.numHits * healMult * 0.5;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (heal > BalancingConstants.LifeStealCap)
|
||||
heal = BalancingConstants.LifeStealCap;
|
||||
|
||||
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
|
||||
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<EmpyreanHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
|
||||
double healMult = 0.1D - proj.numHits * 0.05D;
|
||||
Player.SpawnLifeStealProjectile(target, proj, ProjectileType<HydrothermicHealOrb>(), (int)Math.Round(damage * healMult), 1.25f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1485,89 +1379,25 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
public void ItemLifesteal(NPC target, Item item, int damage)
|
||||
{
|
||||
if (bloodflareSet && target.IsAnEnemy(false) && target.lifeMax > 5)
|
||||
if (target.IsAnEnemy(false))
|
||||
{
|
||||
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
|
||||
if (bloodflareSet)
|
||||
{
|
||||
bloodflareHeartTimer = 300;
|
||||
Item.NewItem(target.GetSource_Loot(), target.Hitbox, ItemID.Heart);
|
||||
}
|
||||
}
|
||||
|
||||
if (bloodflareMelee && item.CountsAsClass<MeleeDamageClass>() && target.lifeMax > 5)
|
||||
{
|
||||
if (target.IsAnEnemy(false) && Main.LocalPlayer.lifeSteal > 0f && !Player.moonLeech)
|
||||
{
|
||||
int heal = 4;
|
||||
if (!Main.LocalPlayer.moonLeech)
|
||||
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
|
||||
{
|
||||
Main.LocalPlayer.lifeSteal -= heal * BalancingConstants.LifeStealSetBonusCooldownMultiplier;
|
||||
|
||||
float lowestHealthCheck = 0f;
|
||||
int healTarget = Player.whoAmI;
|
||||
foreach (Player otherPlayer in Main.ActivePlayers)
|
||||
{
|
||||
if (!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 = otherPlayer.whoAmI;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 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);
|
||||
bloodflareHeartTimer = 300;
|
||||
Item.NewItem(target.GetSource_Loot(), target.Hitbox, ItemID.Heart);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
|
||||
{
|
||||
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
|
||||
target.Calamity().gladiatorOnKill = false;
|
||||
if (healPower >= 1)
|
||||
if (gladiatorSword && target.life <= 0 && target.Calamity().gladiatorOnKill)
|
||||
{
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
|
||||
gladiatorTimer = 300;
|
||||
}
|
||||
}
|
||||
|
||||
if (reaverDefense)
|
||||
{
|
||||
if (Main.LocalPlayer.lifeSteal > 0f && !Player.moonLeech && target.lifeMax > 5)
|
||||
{
|
||||
double healMult = 0.1;
|
||||
int heal = (int)Math.Round(damage * healMult);
|
||||
if (heal > BalancingConstants.LifeStealCap)
|
||||
heal = BalancingConstants.LifeStealCap;
|
||||
|
||||
if (heal > 0 && !Main.LocalPlayer.moonLeech)
|
||||
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
|
||||
target.Calamity().gladiatorOnKill = false;
|
||||
if (healPower >= 1)
|
||||
{
|
||||
Main.LocalPlayer.lifeSteal -= heal * BalancingConstants.LifeStealReaverTankCooldownMultiplier;
|
||||
|
||||
float lowestHealthCheck = 0f;
|
||||
int healTarget = Player.whoAmI;
|
||||
for (int i = 0; i < Main.maxPlayers; i++)
|
||||
{
|
||||
Player otherPlayer = Main.player[i];
|
||||
if (otherPlayer.active && !otherPlayer.dead && ((!Player.hostile && !otherPlayer.hostile) || Player.team == otherPlayer.team))
|
||||
{
|
||||
float playerDist = Vector2.Distance(target.Center, otherPlayer.Center);
|
||||
if (playerDist < BalancingConstants.LifeStealRange && (otherPlayer.statLifeMax2 - otherPlayer.statLife) > lowestHealthCheck)
|
||||
{
|
||||
lowestHealthCheck = otherPlayer.statLifeMax2 - otherPlayer.statLife;
|
||||
healTarget = otherPlayer.whoAmI;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list
|
||||
var source = Player.GetSource_FromThis(ReaverHeadTank.HealOrbEntitySourceContext);
|
||||
Projectile.NewProjectile(source, target.Center, Vector2.Zero, ProjectileType<ReaverHealOrb>(), 0, 0f, Player.whoAmI, healTarget, heal);
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
|
||||
gladiatorTimer = 300;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -508,11 +508,7 @@ namespace CalamityMod.DataStructures
|
||||
{
|
||||
if (Procced)
|
||||
{
|
||||
if (!player.moonLeech)
|
||||
{
|
||||
player.HealPlayer(OmegaBiomeBlade.SuperPogoAttunement_PassiveLifeSteal);
|
||||
}
|
||||
|
||||
player.DoLifestealDirect(null, OmegaBiomeBlade.SuperPogoAttunement_PassiveLifeSteal);
|
||||
Procced = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class Nanotech : ModItem, ILocalizedModType
|
||||
{
|
||||
//The stealth damage boost is handled in CalamityPlayer for some reason, maybe someone didn't want em to stack?
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,8 @@ using System;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class Regenator : ModItem, ILocalizedModType
|
||||
[LegacyName("Regenator")]
|
||||
public class Regenerator : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetDefaults()
|
||||
@@ -24,14 +25,14 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.regenator = true;
|
||||
modPlayer.regenerator = true;
|
||||
player.longInvince = true; // Gives better iframes because god help you if you end up getting hit twice
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
if (Main.LocalPlayer != null)
|
||||
list.FindAndReplace("[DAMAGE]", (Main.LocalPlayer.Calamity().regenatorDamage).ToPercent());
|
||||
list.FindAndReplace("[DAMAGE]", (Main.LocalPlayer.Calamity().regeneratorDamage).ToPercent());
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -8,7 +8,6 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
internal const int ArmorCrunchDebuffTime = 150;
|
||||
internal const float StealthStrikeDamageMultiplier = 0.08f;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 14;
|
||||
@@ -21,7 +20,6 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.Calamity().rottenDogTooth = true;
|
||||
player.Calamity().bonusStealthDamage += StealthStrikeDamageMultiplier;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal const int ArmorCrunchDebuffTime = 150;
|
||||
internal const int HeavyBleedingDebuffTime = 300;
|
||||
internal const float StealthStrikeDamageMultiplier = 0.08f;
|
||||
public const float RaiderBonus = 15f;
|
||||
|
||||
public bool ShowExtensionIndicator => false;
|
||||
@@ -36,7 +35,6 @@ namespace CalamityMod.Items.Accessories
|
||||
modPlayer.vampiricTalisman = true;
|
||||
modPlayer.raiderTalisman = true;
|
||||
modPlayer.rottenDogTooth = true;
|
||||
player.Calamity().bonusStealthDamage += StealthStrikeDamageMultiplier;
|
||||
|
||||
//get fixed boi funny
|
||||
if (Main.zenithWorld)
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using CalamityMod.Balancing;
|
||||
using Microsoft.Xna.Framework.Input;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
@@ -80,7 +79,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
sb.Append('\n');
|
||||
sb.Append(CalamityUtils.GetText($"Common.WingStats").Format(time.FramesToSeconds(), run.ToMph(), (MaxAscentSpeed * baseJumpSpeed).ToMph()));
|
||||
sb.Append('\n');
|
||||
if (Main.keyState.IsKeyDown(Keys.LeftShift))
|
||||
if (Main.keyState.PressingShift())
|
||||
{
|
||||
sb.Append(CalamityUtils.GetText($"Common.WingStatsAcceleration").Format(rAcc.ToMphps(), BaseAscent.ToMphps(),
|
||||
(BaseAscent + BonusAscentWhileRising).ToMphps(), (RisingSpeedThreshold * baseJumpSpeed).ToMph(),
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor.FathomSwarmer
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<SummonDamageClass>() += 0.08f;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
player.moveSpeed += 0.4f;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Armor.FathomSwarmer
|
||||
player.spikedBoots = 2;
|
||||
player.maxMinions += 2;
|
||||
player.GetDamage<SummonDamageClass>() += 0.1f;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (modPlayer.countsAsAnyWet)
|
||||
{
|
||||
player.GetDamage<SummonDamageClass>() += 0.2f;
|
||||
player.statDefense += 10;
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.Items.Armor.FathomSwarmer
|
||||
player.breath = player.breathMax + 3;
|
||||
}
|
||||
modPlayer.fathomSwarmerVisage = true;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.3f, 0.9f, 1.35f);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Microsoft.Xna.Framework.Input.Keys;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Armor.GemTech
|
||||
@@ -94,7 +93,7 @@ namespace CalamityMod.Items.Armor.GemTech
|
||||
tooltips[setBonusIndex].Text = CalamityUtils.GetTextValueFromModItem<GemTechHeadgear>("AbilityBrief");
|
||||
tooltips[setBonusIndex].OverrideColor = Color.Lerp(Color.White, Main.DiscoColor, 0.3f);
|
||||
|
||||
if (!Main.keyState.IsKeyDown(LeftShift))
|
||||
if (!Main.keyState.PressingShift())
|
||||
{
|
||||
TooltipLine briefDescription = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextValueFromModItem<GemTechHeadgear>("AbilityDescription"));
|
||||
briefDescription.OverrideColor = Color.Lerp(Color.White, Main.DiscoColor, 0.5f);
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.findTreasure = true;
|
||||
player.aggro -= 200;
|
||||
if (player.IsUnderwater())
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
player.gills = true;
|
||||
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
player.thorns += 0.33f;
|
||||
player.moveSpeed -= 0.3f;
|
||||
player.statDefense += 10;
|
||||
player.lifeRegen += 3;
|
||||
player.lifeRegen += 10;
|
||||
player.aggro += 600;
|
||||
modPlayer.reaverDefense = true;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
@@ -54,7 +54,6 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
{
|
||||
player.GetDamage<GenericDamageClass>() -= 0.3f;
|
||||
player.endurance += 0.15f;
|
||||
player.Calamity().reaverRegen = true;
|
||||
player.statLifeMax2 += 50;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.04f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 2;
|
||||
if (player.IsUnderwater())
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
player.gills = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) ? 0.35f : 0.1f;
|
||||
player.moveSpeed += player.Calamity().countsAsAnyWet ? 0.35f : 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
{
|
||||
player.endurance += 0.05f;
|
||||
player.GetCritChance<GenericDamageClass>() += 5;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
player.statDefense += 5;
|
||||
player.endurance += 0.1f;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) ? 0.3f : 0.08f;
|
||||
player.moveSpeed += player.Calamity().countsAsAnyWet ? 0.3f : 0.08f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.victideSet = true;
|
||||
player.ignoreWater = true;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
player.GetDamage<MagicDamageClass>() += 0.1f;
|
||||
player.lifeRegen += 3;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.victideSet = true;
|
||||
player.ignoreWater = true;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
player.GetDamage<MeleeDamageClass>() += 0.1f;
|
||||
player.lifeRegen += 3;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.victideSet = true;
|
||||
player.ignoreWater = true;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
player.GetDamage<RangedDamageClass>() += 0.1f;
|
||||
player.lifeRegen += 3;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
modPlayer.rogueStealthMax += 0.6f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.ignoreWater = true;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.1f;
|
||||
player.lifeRegen += 3;
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Victide
|
||||
}
|
||||
}
|
||||
player.ignoreWater = true;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
player.GetDamage<SummonDamageClass>() += 0.1f;
|
||||
player.lifeRegen += 3;
|
||||
|
||||
@@ -11,7 +11,6 @@ using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using static Microsoft.Xna.Framework.Input.Keys;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Wulfrum
|
||||
@@ -103,7 +102,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
if (DummyCannon.IsAir && !Main.gameMenu)
|
||||
DummyCannon.SetDefaults(ItemType<WulfrumFusionCannon>());
|
||||
|
||||
if (IsPartOfSet(Main.HoverItem) && HasArmorSet(player) && Main.keyState.IsKeyDown(LeftShift))
|
||||
if (IsPartOfSet(Main.HoverItem) && HasArmorSet(player) && Main.keyState.PressingShift())
|
||||
{
|
||||
Main.HoverItem = DummyCannon.Clone();
|
||||
Main.hoverItemName = DummyCannon.Name;
|
||||
@@ -240,7 +239,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
setBonus2.OverrideColor = new Color(110, 192, 93);
|
||||
tooltips.Insert(setBonusIndex + 2, setBonus2);
|
||||
|
||||
if (!Main.keyState.IsKeyDown(LeftShift))
|
||||
if (!Main.keyState.PressingShift())
|
||||
{
|
||||
TooltipLine itemDisplay = new TooltipLine(item.Mod, "CalamityMod:ArmorItemDisplay", CalamityUtils.GetTextValueFromModItem<WulfrumHat>("ShiftToExpand"));
|
||||
itemDisplay.OverrideColor = new Color(190, 190, 190);
|
||||
|
||||
@@ -21,7 +21,6 @@ using CalamityMod.Systems.Collections;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Microsoft.Xna.Framework.Input;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
@@ -189,7 +188,7 @@ namespace CalamityMod.Items
|
||||
// Original code lifted from Iban's extended armor tooltips.
|
||||
if (item.ModItem is IHoldShiftTooltipItem holdShiftItem)
|
||||
{
|
||||
bool holdingShift = Main.keyState.IsKeyDown(Keys.LeftShift);
|
||||
bool holdingShift = Main.keyState.PressingShift();
|
||||
|
||||
// If holding SHIFT, actually display the extended tooltip.
|
||||
if (holdingShift && firstTooltipIndex != -1)
|
||||
@@ -1298,7 +1297,7 @@ namespace CalamityMod.Items
|
||||
sb.Append('\n');
|
||||
sb.Append(CalamityUtils.GetText($"Common.WingStats").Format(time.FramesToSeconds(), run.ToMph(), (tMax * baseJumpSpeed).ToMph()));
|
||||
sb.Append('\n');
|
||||
if (Main.keyState.IsKeyDown(Keys.LeftShift))
|
||||
if (Main.keyState.PressingShift())
|
||||
{
|
||||
sb.Append(CalamityUtils.GetText($"Common.WingStatsAcceleration").Format(rAcc.ToMphps(), asc.ToMphps(), (asc + rise).ToMphps(), (rMax * baseJumpSpeed).ToMph(), (asc + fall).ToMphps()));
|
||||
if (hover)
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.DraedonMisc
|
||||
meleeDisplay.OverrideColor = new Color(31, 242, 245);
|
||||
list.Insert(insertIndex + 1, meleeDisplay);
|
||||
|
||||
int rangedItem = ModContent.ItemType<HolofiberImmolator>();
|
||||
int rangedItem = ModContent.ItemType<HolofibreImmolator>();
|
||||
TooltipLine rangedDisplay = new TooltipLine(this.Mod, "CalamityMod:RangedDisplay", $"[i:{rangedItem}] {CalamityUtils.GetItemName(rangedItem)}");
|
||||
rangedDisplay.OverrideColor = new Color(149, 243, 43);
|
||||
list.Insert(insertIndex + 2, rangedDisplay);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace CalamityMod.Items
|
||||
{
|
||||
// This interface is used on items where you can hold Left SHIFT for an expanded tooltip.
|
||||
// This interface is used on items where you can hold SHIFT for an expanded tooltip.
|
||||
// All actual implementation of this behavior is done in CalamityGlobalItemTooltip.
|
||||
public interface IHoldShiftTooltipItem
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Whether holding Left SHIFT for the tooltip extension hides the normal tooltip. Typically this is false.
|
||||
/// Whether holding SHIFT for the tooltip extension hides the normal tooltip. Typically this is false.
|
||||
/// </summary>
|
||||
public virtual bool HidesNormalTooltip => false;
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ using CalamityMod.Tiles.Furniture.DevPaintings;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Microsoft.Xna.Framework.Input.Keys;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
{
|
||||
@@ -24,7 +23,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
if (!Main.keyState.IsKeyDown(LeftShift))
|
||||
if (!Main.keyState.PressingShift())
|
||||
return;
|
||||
|
||||
string tooltip = "";
|
||||
@@ -56,6 +55,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
"AquaSG",
|
||||
"Atalya",
|
||||
"Ben-TK",
|
||||
"Big E",
|
||||
"CDMusic",
|
||||
"Cei",
|
||||
"CongratsIsTrash",
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
// Equipment
|
||||
itemLoot.Add(ModContent.ItemType<ChaosStone>(), DropHelper.BagWeaponDropRateFraction);
|
||||
itemLoot.Add(ModContent.ItemType<VoidofCalamity>());
|
||||
itemLoot.Add(ModContent.ItemType<Regenator>(), 10);
|
||||
itemLoot.Add(ModContent.ItemType<Regenerator>(), 10);
|
||||
itemLoot.AddRevBagAccessories();
|
||||
|
||||
// Vanity
|
||||
|
||||
+4
-4
@@ -14,7 +14,7 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
[LegacyName("MatterModulator")]
|
||||
public class HolofiberImmolator : ModItem, ILocalizedModType
|
||||
public class HolofibreImmolator : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
|
||||
public static readonly SoundStyle PlasmaSound = new("CalamityMod/Sounds/Item/PlasmaSmall");
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<HolofiberImmolatorHoldout>();
|
||||
Item.shoot = ModContent.ProjectileType<HolofibreImmolatorHoldout>();
|
||||
Item.shootSpeed = 12f;
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
public override void HoldItem(Player player) => player.Calamity().mouseWorldListener = true;
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/HolofiberImmolatorGlow").Value);
|
||||
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/HolofibreImmolatorGlow").Value);
|
||||
}
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<HolofiberImmolatorHoldout>(), damage, knockback, player.whoAmI, 0, 1);
|
||||
Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<HolofibreImmolatorHoldout>(), damage, knockback, player.whoAmI, 0, 1);
|
||||
holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero);
|
||||
return false;
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
File renamed without changes.
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 36;
|
||||
Item.height = 40;
|
||||
Item.damage = 70;
|
||||
Item.damage = 65;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 7;
|
||||
Item.useTime = 12;
|
||||
@@ -32,16 +32,14 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.UseSound = SoundID.Item9;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Icicle>();
|
||||
Item.shootSpeed = 15f;
|
||||
Item.shootSpeed = 16f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (!Main.rand.NextBool(4))
|
||||
{
|
||||
Vector2 speed = velocity.RotatedBy(MathHelper.ToRadians(Main.rand.Next(-15, 16)));
|
||||
speed.Normalize();
|
||||
speed *= 15f;
|
||||
Vector2 speed = velocity.RotatedByRandom(MathHelper.Pi / 12f);
|
||||
speed.Y -= Math.Abs(speed.X) * 0.2f;
|
||||
int p = Projectile.NewProjectile(source, position, speed, ModContent.ProjectileType<FrostShardFriendly>(), damage, knockback, player.whoAmI);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
@@ -52,8 +50,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
SoundEngine.PlaySound(SoundID.Item1, position);
|
||||
Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 1.2f, velocity.Y * 1.2f, ModContent.ProjectileType<Snowball>(), damage, knockback * 2f, player.whoAmI);
|
||||
}
|
||||
velocity.X += Main.rand.Next(-40, 41) * 0.05f;
|
||||
velocity.Y += Main.rand.Next(-40, 41) * 0.05f;
|
||||
velocity.X += Main.rand.NextFloat(-2f, 2f);
|
||||
velocity.Y += Main.rand.NextFloat(-2f, 2f);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,25 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustID.CursedTorch);
|
||||
}
|
||||
|
||||
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (player.moonLeech || player.lifeSteal <= 0f || target.lifeMax <= 5)
|
||||
return;
|
||||
|
||||
int heal = 5;
|
||||
player.lifeSteal -= heal;
|
||||
player.HealPlayer(heal);
|
||||
}
|
||||
|
||||
public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (player.moonLeech || player.lifeSteal <= 0f)
|
||||
return;
|
||||
|
||||
int heal = 5;
|
||||
player.lifeSteal -= heal;
|
||||
player.HealPlayer(heal);
|
||||
}
|
||||
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) => player.DoLifestealDirect(target, 5, 0.5f);
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && !player.Calamity().mouseRight;
|
||||
public override bool CanConsumeAmmo(Item ammo, Player player) => player.ownedProjectileCounts[Item.shoot] > 0; // Spawning the holdout cannot consume ammo
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
BuiltUpHeat = 0;
|
||||
}
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && !player.Calamity().mouseRight;
|
||||
public override bool CanConsumeAmmo(Item ammo, Player player) => player.ownedProjectileCounts[Item.shoot] > 0; // Spawning the holdout cannot consume ammo
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 4;
|
||||
|
||||
public override float StealthDamageMultiplier => 3f;
|
||||
public override float StealthDamageMultiplier => 1.7f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
|
||||
@@ -55,7 +55,7 @@ CalamityClientConfig: {
|
||||
Label: "[i:CalamityMod/DesertProwlerHat] Calamity Armor Set Bonuses Can Use Vanilla Hotkey"
|
||||
Tooltip:
|
||||
'''
|
||||
Allows Calamity armor set bonuses to be triggered by the vanilla double-tap DOWN hotkey (or UP depending on your settings).
|
||||
Allows Calamity armor set bonuses to be triggered by the vanilla double-tap {$Key.DOWN} hotkey (or {$Key.UP} depending on your settings).
|
||||
Also allows vanilla armor set bonuses to be triggered by Calamity's armor set bonus hotkey.
|
||||
'''
|
||||
}
|
||||
@@ -137,7 +137,7 @@ CalamityClientConfig: {
|
||||
Label: "[i:CalamityMod/BallAndChain] Enable Fast Falling"
|
||||
Tooltip:
|
||||
'''
|
||||
When enabled, you can hold the DOWN key while in the air to accelerate downwards faster.
|
||||
When enabled, you can hold the {$Key.DOWN} key while in the air to accelerate downwards faster.
|
||||
This config does not increase your maximum falling speed, just how quickly you accelerate to it.
|
||||
Calamity is balanced around this setting being enabled.
|
||||
'''
|
||||
|
||||
@@ -342,7 +342,7 @@ BloodPact: {
|
||||
|
||||
BloodstainedGlove: {
|
||||
DisplayName: Bloodstained Glove
|
||||
Tooltip: Stealth strikes have +8 armor penetration and heal for 2 HP
|
||||
Tooltip: Stealth strikes have +8 armor penetration and heal for 5 HP
|
||||
}
|
||||
|
||||
BloodyWormScarf: {
|
||||
@@ -686,7 +686,7 @@ ElectriciansGlove: {
|
||||
DisplayName: Electrician's Glove
|
||||
Tooltip:
|
||||
'''
|
||||
Stealth strikes summon sparks on enemy hits and heal you for 2 HP
|
||||
Stealth strikes summon sparks on enemy hits and heal you for 10 HP
|
||||
Stealth strikes also have +8 armor penetration and deal 8% more damage
|
||||
'''
|
||||
}
|
||||
@@ -1012,7 +1012,7 @@ InterstellarStompers: {
|
||||
Tooltip:
|
||||
'''
|
||||
6% increased movement speed, 20% increased jump speed, and negates fall damage
|
||||
Hold DOWN to increase your maximum fall speed
|
||||
Hold {$Key.DOWN} to increase your maximum fall speed
|
||||
Pressing [KEY] while midair charges up a superspeed slam over 0.33 seconds
|
||||
While falling, you ram through enemies and don't take contact damage
|
||||
Once you hit the ground, you create an explosion at your feet
|
||||
@@ -1025,7 +1025,7 @@ IronBoots: {
|
||||
DisplayName: Iron Boots
|
||||
Tooltip:
|
||||
'''
|
||||
Hold DOWN to increase your maximum fall speed, even in water
|
||||
Hold {$Key.DOWN} to increase your maximum fall speed, even in water
|
||||
Upon hitting the ground, a shockwave is created at your feet
|
||||
The shockwave scales in both damage and size the longer you fall for
|
||||
Negates fall damage
|
||||
@@ -1466,8 +1466,8 @@ ReaperToothNecklace: {
|
||||
'''
|
||||
}
|
||||
|
||||
Regenator: {
|
||||
DisplayName: Regenator
|
||||
Regenerator: {
|
||||
DisplayName: Regenerator
|
||||
Tooltip:
|
||||
'''
|
||||
Your health cannot exceed 50% of its maximum
|
||||
@@ -2103,9 +2103,9 @@ WulfrumAcrobaticsPack: {
|
||||
This slingshot's stats scale with your equipped hook
|
||||
If the hook has special effects, the slingshot also benefits from them
|
||||
The slingshot allows for advanced rope-swinging physics
|
||||
Hold UP or DOWN to retract or extend the slingshot's rope
|
||||
Hold {$Key.UP} or {$Key.DOWN} to retract or extend the slingshot's rope
|
||||
Automatically grapples nearby walls if a lethal fall is detected
|
||||
This safety feature won't activate if DOWN is held
|
||||
This safety feature won't activate if {$Key.DOWN} is held
|
||||
8% increased movement speed
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -472,14 +472,12 @@ ReaverHeadTank: {
|
||||
'''
|
||||
15% increased damage reduction but 30% decreased damage
|
||||
+50 max life
|
||||
Restores 1 HP every second, this applies separately from life regen
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
+10 defense and +1.5 HP/s life regen
|
||||
+10 defense and +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 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 activates when you are damaged
|
||||
|
||||
@@ -23,7 +23,7 @@ AuricTeslaHeadRanged: {
|
||||
SetBonus:
|
||||
'''
|
||||
Ranged Tarragon, Bloodflare and God Slayer armor effects
|
||||
Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them
|
||||
Hold Shift to view these set bonus details and press Shift repeatedly to cycle through them
|
||||
'''
|
||||
SetBonus1:
|
||||
'''
|
||||
@@ -56,7 +56,7 @@ AuricTeslaHeadRogue: {
|
||||
'''
|
||||
+130 maximum stealth
|
||||
Rogue Tarragon, Bloodflare and God Slayer armor effects
|
||||
Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them
|
||||
Hold Shift to view these set bonus details and press Shift repeatedly to cycle through them
|
||||
'''
|
||||
SetBonus1:
|
||||
'''
|
||||
@@ -90,7 +90,7 @@ AuricTeslaHeadMelee: {
|
||||
Enemies are more likely to target you
|
||||
28% increased melee speed
|
||||
Melee Tarragon, Bloodflare and God Slayer effects
|
||||
Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them
|
||||
Hold Shift to view these set bonus details and press Shift repeatedly to cycle through them
|
||||
'''
|
||||
SetBonus1:
|
||||
'''
|
||||
@@ -120,7 +120,7 @@ AuricTeslaHeadSummon: {
|
||||
Max run speed and acceleration boosted by 5%
|
||||
+6 max minions and 75% increased summon damage
|
||||
Summoner Tarragon, Bloodflare and Silva armor effects
|
||||
Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them
|
||||
Hold Shift to view these set bonus details and press Shift repeatedly to cycle through them
|
||||
'''
|
||||
SetBonus1:
|
||||
'''
|
||||
@@ -149,7 +149,7 @@ AuricTeslaHeadMagic: {
|
||||
'''
|
||||
Max run speed and acceleration boosted by 5%
|
||||
Magic Tarragon, Bloodflare and Silva armor effects
|
||||
Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them
|
||||
Hold Shift to view these set bonus details and press Shift repeatedly to cycle through them
|
||||
'''
|
||||
SetBonus1:
|
||||
'''
|
||||
@@ -213,7 +213,6 @@ BloodflareHeadMelee: {
|
||||
'''
|
||||
SetBonusEffect:
|
||||
'''
|
||||
True melee strikes will heal you
|
||||
After striking an enemy 15 times with true melee you will enter a blood frenzy for 5 seconds
|
||||
During this you will gain 25% increased melee damage, critical strike chance, and contact damage is halved
|
||||
This effect has a 30 second cooldown
|
||||
@@ -248,7 +247,8 @@ BloodflareHeadRogue: {
|
||||
'''
|
||||
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 heal you
|
||||
Rogue critical strikes burst into blood orbs
|
||||
Picking up these blood orbs reduces the duration of [Potion Sickness]
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -422,9 +422,9 @@ GodSlayerChestplate: {
|
||||
'''
|
||||
CommonSetBonus:
|
||||
'''
|
||||
Pressing {0} allows you to dash towards your cursor for 2.5 seconds
|
||||
Pressing {0} allows you to dash towards your cursor for 2 seconds
|
||||
Enemies you dash through take massive damage
|
||||
During the dash you are immune to most debuffs
|
||||
During the dash you are immune to damage and most debuffs
|
||||
The dash has a {1} second cooldown
|
||||
'''
|
||||
}
|
||||
@@ -569,7 +569,7 @@ SilvaArmor: {
|
||||
'''
|
||||
CommonSetBonus:
|
||||
'''
|
||||
All projectiles spawn healing leaf orbs on enemy hits
|
||||
+3 HP/s life regen
|
||||
Max run speed and acceleration boosted by 5%
|
||||
Taking fatal damage will revive you and make you invulnerable to all damage for 5 seconds
|
||||
This effect has a 5 minute cooldown, which does not decrement if any bosses or events are active
|
||||
@@ -629,12 +629,7 @@ TarragonHeadMagic: {
|
||||
10% increased damage reduction, +100 max mana, and 15% reduced mana usage
|
||||
'''
|
||||
SetBonus: "{$TarragonHeadMagic.SetBonusEffect}"
|
||||
SetBonusEffect:
|
||||
'''
|
||||
On every 5th critical strike you will fire a leaf storm
|
||||
Magic projectiles heal you on enemy hits
|
||||
Amount healed is based on projectile damage
|
||||
'''
|
||||
SetBonusEffect: On every 5th critical strike you will fire a leaf storm
|
||||
}
|
||||
|
||||
TarragonHeadMelee: {
|
||||
|
||||
@@ -94,7 +94,7 @@ MarniteArchitectHeadgear: {
|
||||
AbilityDescription:
|
||||
'''
|
||||
The lift gets summoned when the mount hotkey gets pressed [c/D4C870:without any mounts equipped]
|
||||
Using the Up and Down keys can change the lift's height
|
||||
Using the {$Key.UP} and {$Key.DOWN} keys can change the lift's height
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ WulfrumHat: {
|
||||
While the armor is active, you can only use the integrated fusion cannon, but your defensive stats are increased
|
||||
Calling down the armor consumes one piece of {0}, and the armor will lose durability faster when hit
|
||||
'''
|
||||
ShiftToExpand: Hold SHIFT to see the stats of the fusion cannon
|
||||
ShiftToExpand: Hold Shift to see the stats of the fusion cannon
|
||||
}
|
||||
|
||||
WulfrumJacket: {
|
||||
|
||||
@@ -102,7 +102,7 @@ DragoonDrizzlefish: {
|
||||
'''
|
||||
Fires an assortment of hellfire and brimstone fireballs
|
||||
Sometimes fires a larger splitting fireball
|
||||
Right click to feed the little boy some tasty gel
|
||||
<right> to feed the little boy some tasty gel
|
||||
'He is a hungry boy'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ShortTooltip:
|
||||
'''
|
||||
[c/E3AF40:Whispers from on high dance in your ears...]
|
||||
[c/BEBEBE:Press "Left Shift" to listen closer]
|
||||
[c/BEBEBE:Hold Shift to listen closer]
|
||||
'''
|
||||
|
||||
LoreAbyss: {
|
||||
|
||||
@@ -383,12 +383,12 @@ VoodooDemonVoodooDoll: {
|
||||
ExhumeShortTooltip:
|
||||
'''
|
||||
[c/C61B40:'Ah, are you curious what I saw within this item?']
|
||||
[c/BABABA:Press "Left Shift" to listen]
|
||||
[c/BABABA:Hold Shift to listen]
|
||||
'''
|
||||
LegendaryShortTooltip:
|
||||
'''
|
||||
[c/FF6F00:Tales of legends past radiate around you...]
|
||||
[c/BABABA:Press "Left Shift" to listen closer]
|
||||
[c/BABABA:Hold Shift to listen closer]
|
||||
'''
|
||||
|
||||
BallAndChain: {
|
||||
@@ -514,6 +514,6 @@ SuperDummy: {
|
||||
Creates a super dummy
|
||||
Regenerates 1 million life per second
|
||||
Will not die when taking damage over time from debuffs
|
||||
Right click to kill all super dummies
|
||||
<right> to kill all super dummies
|
||||
'''
|
||||
}
|
||||
@@ -32,7 +32,7 @@ GazeOfCrysthamyr: {
|
||||
Tooltip:
|
||||
'''
|
||||
Summons a rideable shadow dragon mount
|
||||
Hold Up to ascend faster
|
||||
Hold {$Key.UP} to ascend faster
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -499,7 +499,7 @@ CalamityCanvas2023: {
|
||||
<left> to make the focus follow the cursor, <left> again to set it
|
||||
Arrow keys can also be used to manually adjust the focus point
|
||||
The scroll wheel zooms the focus in and out
|
||||
Hold SHIFT to hide the UI without closing it
|
||||
Hold Shift to hide the UI without closing it
|
||||
'Embrace chaos'
|
||||
'''
|
||||
}
|
||||
@@ -512,7 +512,7 @@ CalamityCanvas2024: {
|
||||
<left> to make the focus follow the cursor, <left> again to set it
|
||||
Arrow keys can also be used to manually adjust the focus point
|
||||
The scroll wheel zooms the focus in and out
|
||||
Hold SHIFT to hide the UI without closing it
|
||||
Hold Shift to hide the UI without closing it
|
||||
'Embrace havoc'
|
||||
'''
|
||||
}
|
||||
@@ -793,7 +793,7 @@ ThankYouPainting: {
|
||||
'''
|
||||
Thanks to the entire team, everyone who supported, and those who all play the mod and keep it alive!
|
||||
The confines of this painting is not enough to fit the entire team
|
||||
Hold SHIFT to see a list of past and current developers
|
||||
Hold Shift to see a list of past and current developers
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ DriftwoodPickaxe: {
|
||||
|
||||
FellerofEvergreens: {
|
||||
DisplayName: Feller of Evergreens
|
||||
Tooltip: ""
|
||||
Tooltip: Occasionally drops extra fruits from shaking trees
|
||||
}
|
||||
|
||||
Gelpick: {
|
||||
|
||||
@@ -42,8 +42,8 @@ GaussDagger: {
|
||||
'''
|
||||
}
|
||||
|
||||
HolofiberImmolator: {
|
||||
DisplayName: R-PMA: Holofiber Immolator
|
||||
HolofibreImmolator: {
|
||||
DisplayName: R-PMA: Holofibre Immolator
|
||||
Tooltip:
|
||||
'''
|
||||
Fires three gravity-affected plasma drops which dissolve through foes
|
||||
|
||||
@@ -784,7 +784,7 @@ SHPC: {
|
||||
Orbs emit seeking souls and lingering pickup souls after collapse
|
||||
Orbs have varying effects depending on Soul type used
|
||||
{0}
|
||||
Press Right Click to use the machine as a vacuum, pulling in lingering souls
|
||||
Press <right> to use the machine as a vacuum, pulling in lingering souls
|
||||
Once released, a torrent of soul lasers is discharged scaling with the number of souls pulled in
|
||||
'''
|
||||
// These are the soul effect descriptions, the number is the item ID of the soul
|
||||
|
||||
@@ -282,7 +282,7 @@ ClockworkBow: {
|
||||
DisplayName: Clockwork Bow
|
||||
Tooltip:
|
||||
'''
|
||||
Hold left click to load up to six precision bolts
|
||||
Hold <left> to load up to six precision bolts
|
||||
The more precision bolts are loaded, the harder they hit
|
||||
'''
|
||||
}
|
||||
@@ -938,7 +938,7 @@ PolarisParrotfish: {
|
||||
'''
|
||||
Rapidly fires an array of colorful star shots
|
||||
Firing speed increases the closer you are to an enemy
|
||||
Right click to give the little girl some attention
|
||||
<right> to give the little girl some attention
|
||||
'She is a happy girl'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ AtlasMunitionsBeacon: {
|
||||
[c/F27049:If an enemy is in close proximity, it will enter Overdrive]
|
||||
[c/F27049:When in Overdrive the cannon uses its full power to bring down any foe]
|
||||
[c/F27049:While in Overdrive, the cannon will build up heat, eventually overheating]
|
||||
[c/69F0DC:Press right click while holding this item to pick up the cannon and use it yourself]
|
||||
[c/69F0DC:Press <right> while holding this item to pick up the cannon and use it yourself]
|
||||
[c/69F0DC:When held, the cannon will always be in Overdrive]
|
||||
[c/69F0DC:If the cannon overheats while you hold it, you will be forced to drop it]
|
||||
[c/9AA4AE:Pressing <right> allows you to drop it manually]
|
||||
@@ -91,7 +91,7 @@ BrittleStarStaff: {
|
||||
'''
|
||||
Summons a small brittle starfish that will dash through enemies until it shatters
|
||||
Starfish will quickly regenerate after shattering
|
||||
Holding right click will swap starfish between dashing and circling you
|
||||
Holding <right> will swap starfish between dashing and circling you
|
||||
When the starfish are circling, each one provides you with 4 defense
|
||||
'''
|
||||
}
|
||||
@@ -364,7 +364,7 @@ FlamsteedRing: {
|
||||
Tooltip:
|
||||
'''
|
||||
Summons a colossal controllable mech
|
||||
Right click to display the mech's control panel
|
||||
<right> to display the mech's control panel
|
||||
The panel has 3 configurations, selected using the brackets on the edges of the UI
|
||||
Each bracket powers 2 out of 3 possible functions, represented by the circular icons
|
||||
The bottom left icon miniaturizes the mech to the size of a player, but weakens its weapons
|
||||
@@ -435,7 +435,7 @@ GlacialEmbrace: {
|
||||
For each minion slot used, you will gain an additional orbiting shield spike
|
||||
These spikes accelerate rapidly towards a nearby enemy to inflict heavy damage
|
||||
They take some time to regenerate after launching themselves at the target, however
|
||||
On right click, summons a duplicate ring around the targeted enemy, which slowly converges before exploding
|
||||
On <right>, summons a duplicate ring around the targeted enemy, which slowly converges before exploding
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -485,7 +485,7 @@ IgneousExaltation: {
|
||||
Tooltip:
|
||||
'''
|
||||
Summons an Igneous blade that orbits around you
|
||||
Right click to launch all blades towards the cursor
|
||||
<right> to launch all blades towards the cursor
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -591,7 +591,7 @@ Perdition: {
|
||||
'''
|
||||
{$CommonItemTooltip.Sentry}
|
||||
Summons a beacon at the position of the mouse
|
||||
When a target is manually selected via right click it releases torrents of souls from below onto the target
|
||||
When a target is manually selected via <right> it releases torrents of souls from below onto the target
|
||||
Requires one sentry slot to summon, and only one beacon may exist at a time
|
||||
'''
|
||||
}
|
||||
@@ -866,7 +866,7 @@ VoidConcentrationStaff: {
|
||||
Minion damage is increased by 5% while the aura is active
|
||||
Requires three minion slots to use
|
||||
There can only be one aura at a time
|
||||
Right click to launch a black hole that grows in size
|
||||
<right> to launch a black hole that grows in size
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -893,7 +893,7 @@ WulfrumController: {
|
||||
Tooltip:
|
||||
'''
|
||||
Summons a wulfrum droid to fight for you
|
||||
Hold right click while holding the remote to switch all of your drones into supercharge mode
|
||||
Hold <right> while holding the remote to switch all of your drones into supercharge mode
|
||||
Supercharged droids will stop attacking and focus wulfrum energy onto you
|
||||
Supercharged droids provide +0.5 HP/s life regen and 3 defense per droid
|
||||
Can also be used to heal other players by keeping your mouse cursor close enough to them
|
||||
|
||||
@@ -40,7 +40,7 @@ Tier3KnowledgeTooltip: The Jungle schematic must be deciphered first
|
||||
Tier4KnowledgeTooltip: The Underworld schematic must be deciphered first
|
||||
Tier5KnowledgeTooltip: The Ice biome schematic must be deciphered first
|
||||
// Other CombatText uses and Item Messages
|
||||
ShiftToExpand: Hold SHIFT to see an expanded description
|
||||
ShiftToExpand: Hold Shift to see an expanded description
|
||||
LearnedSchematic: You learned how to create new things!
|
||||
CragmawVibeCheck: Vibe check.
|
||||
AutocannonHot: OUCH! HOT!
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
AbsorberAura.DisplayName: Absorber Aura
|
||||
AltTransfusionTrail.DisplayName: Alt Transfusion Trail
|
||||
BloodstoneHealOrb.DisplayName: Bloodstone Heal Orb
|
||||
BlueJellyAura.DisplayName: Blue Jelly Aura
|
||||
BurntSiennaProj.DisplayName: Sienna
|
||||
CactusHealOrb.DisplayName: Heal
|
||||
@@ -13,9 +14,6 @@ HydrothermicHealOrb.DisplayName: Hydrothermic Rejuvenation
|
||||
ManaPolarizerHealOrb.DisplayName: Mana Polarizer Heal Orb
|
||||
PhantomicHeart.DisplayName: Phantomic Heart
|
||||
PinkJellyAura.DisplayName: Pink Jelly Aura
|
||||
ReaverHealOrb.DisplayName: Reaver Heal Orb
|
||||
RoyalHeal.DisplayName: Heal
|
||||
ShinobiHealOrb.DisplayName: Blue Healing Orb
|
||||
SilvaOrb.DisplayName: Silva Orb
|
||||
TransfusionTrail.DisplayName: Heal
|
||||
BloodstoneHealOrb.DisplayName: Bloodstone Heal Orb
|
||||
@@ -3,9 +3,6 @@ SlimeGodRun: The Slime God flees to fight another day...
|
||||
// Cryogen
|
||||
CryogenBossText: Cryogen is derping out!
|
||||
PyrogenBossText: Pyrogen is derping out!
|
||||
// Triplets
|
||||
TripletsBossText: The Triplets have awoken!
|
||||
TripletsDefeatName: The Triplets
|
||||
// Calamitas Clone
|
||||
CalamitasBossText: You underestimate my power...
|
||||
CalamitasBossText2: Rise again, my siblings.
|
||||
|
||||
@@ -12,13 +12,13 @@ Charge: Current Charge
|
||||
DefenseDamage: Defense Damage
|
||||
SulphurousWater: Sulphuric Poisoning
|
||||
Stealth: Stealth
|
||||
StealthShiftText: Hold SHIFT for more information on Rogue stealth
|
||||
StealthShiftText: Hold Shift for more information on Rogue stealth
|
||||
StealthInfoText:
|
||||
'''
|
||||
Rogue stealth builds while not attacking and slower while moving
|
||||
Once you have built max stealth, you will be able to perform a Stealth Strike
|
||||
Rogue stealth only reduces when you attack, it does not reduce while moving
|
||||
The higher your rogue stealth the higher your rogue damage and crit
|
||||
The higher your rogue stealth the higher your rogue damage
|
||||
Having more stealth regeneration slightly decreases the damage bonus from stealth
|
||||
This is offset by you being able to use stealth strikes far more often
|
||||
'''
|
||||
@@ -27,7 +27,7 @@ DifficultyStatusText: "{0} is {1}."
|
||||
ModeAppend: "{0} Mode"
|
||||
Active: Active
|
||||
NotActive: Not active
|
||||
DifficultyShiftText: "[c/737373:Hold the 'Shift' key for more information]"
|
||||
DifficultyShiftText: "[c/737373:Hold Shift for more information]"
|
||||
CurrentlySelected: Currently Selected : {0}
|
||||
DifficultyClickText: "[c/919191:Click to select a difficulty mode]"
|
||||
ExpertDifficultyLock: "[c/919191:Higher difficulty modes can only be toggled in Expert Mode or above]"
|
||||
@@ -46,8 +46,8 @@ ExpertExpandedInfo:
|
||||
[c/a87a07:Enemies drop more loot, as well as having higher chances]
|
||||
[c/a87a07:Players drop more of their coins on death]
|
||||
'''
|
||||
ExpertActivate: Expert is active
|
||||
ExpertDeactivate: Expert is not active
|
||||
ExpertActivate: Expert is active.
|
||||
ExpertDeactivate: Expert is not active.
|
||||
Master: Master
|
||||
MasterEnabled: Master Mode is enabled
|
||||
MasterShortInfo: "[c/00ad79:Game over man, game over! A tougher step up in stats from Expert Mode]"
|
||||
@@ -58,8 +58,8 @@ MasterExpandedInfo:
|
||||
[c/029c6d:Players drop ALL their coins on death]
|
||||
[c/029c6d:Players gain an additional accessory slot at the start of the game]
|
||||
'''
|
||||
MasterActivate: Master is active
|
||||
MasterDeactivate: Master is not active
|
||||
MasterActivate: Master is active.
|
||||
MasterDeactivate: Master is not active.
|
||||
Revengeance: Revengeance
|
||||
RevengeanceEnabled: Revengeance Mode is enabled
|
||||
RevengeanceShortInfo: "[c/F54254:The intended Calamity experience! Can only be enabled in Expert Mode!]"
|
||||
@@ -666,8 +666,8 @@ SulphurSea2: Irradiating one of the oceans
|
||||
Roxcalibur: I wanna rock
|
||||
AuricLandMines: Setting god killing traps
|
||||
// Hold Shift tooltip default
|
||||
HoldShiftTooltipExtensionIndicator: Hold "Left Shift" for more
|
||||
HoldShiftTooltipReplacementIndicator: Hold "Left Shift" for details
|
||||
HoldShiftTooltipExtensionIndicator: Hold Shift for more
|
||||
HoldShiftTooltipReplacementIndicator: Hold Shift for details
|
||||
// Dev and Donor Items
|
||||
DevItemTooltip: - Dev Item -
|
||||
DonorItemTooltip: - Donor Item -
|
||||
@@ -198,7 +198,7 @@ EditedTooltip: {
|
||||
// Soaring Insignia
|
||||
EmpressFlightBooster1: Increases wing flight time by 33%
|
||||
EmpressFlightBooster2: Increases movement and jump speed by 10% and acceleration by 1.25x
|
||||
RifleScope1: Increase view range for guns (Right click to zoom out)
|
||||
RifleScope1: Increase view range for guns (<right> to zoom out)
|
||||
RifleScope2: The scope effect can be toggled with visibility
|
||||
SniperScope: 12% increased ranged critical strike chance
|
||||
MagicQuiver: Increases arrow damage by 5% and greatly increases arrow speed
|
||||
@@ -284,8 +284,8 @@ EditedTooltip: {
|
||||
Provides 32% increased jump speed and increased fall speed
|
||||
Provides a gravitational boost jump, which recharges whenever gravity is flipped
|
||||
Slightly improves wingless air movement speed
|
||||
Press UP to change gravity
|
||||
Press DOWN to fall faster
|
||||
Press {$Key.UP} to change gravity
|
||||
Press {$Key.DOWN} to fall faster
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -53,10 +53,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer1Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -42,10 +42,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer4Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -52,10 +52,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer4Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -44,10 +44,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer1Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -55,10 +55,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer1Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -56,10 +56,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
SpawnModBiomes = new int[2] { ModContent.GetInstance<AbyssLayer3Biome>().Type, ModContent.GetInstance<AbyssLayer4Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -51,10 +51,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer2Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -65,10 +65,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer3Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -55,10 +55,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer3Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
|
||||
@@ -43,10 +43,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.dontCountMe = true;
|
||||
NPC.dontTakeDamage = true;
|
||||
NPC.chaseable = false;
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
|
||||
@@ -43,10 +43,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.dontCountMe = true;
|
||||
NPC.dontTakeDamage = true;
|
||||
NPC.chaseable = false;
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
|
||||
@@ -79,10 +79,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer4Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -43,10 +43,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.dontCountMe = true;
|
||||
NPC.dontTakeDamage = true;
|
||||
NPC.chaseable = false;
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
|
||||
@@ -54,10 +54,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer3Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -50,10 +50,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
|
||||
@@ -50,10 +50,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
|
||||
@@ -70,10 +70,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[2] { ModContent.GetInstance<AbyssLayer3Biome>().Type, ModContent.GetInstance<AbyssLayer4Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -50,10 +50,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
|
||||
@@ -50,10 +50,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[2] { ModContent.GetInstance<AbyssLayer2Biome>().Type, ModContent.GetInstance<AbyssLayer3Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -59,10 +59,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer2Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -61,10 +61,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = false;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer3Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -49,10 +49,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer1Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -41,10 +41,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
|
||||
@@ -61,10 +61,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[2] { ModContent.GetInstance<AbyssLayer2Biome>().Type, ModContent.GetInstance<AbyssLayer3Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -41,10 +41,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
|
||||
|
||||
@@ -70,10 +70,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
if (Main.zenithWorld) // legg
|
||||
NPC.height = (int)(NPC.height * 1.5f);
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
@@ -650,7 +646,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
Vector2 direction = shorkCenter - player.Center;
|
||||
direction.Normalize();
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, direction * 10f, ProjectileID.DemonSickle, NPC.damage / 2, 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, direction * 10f, ProjectileID.DemonSickle, 80, 0f, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,10 +77,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
NPC.GravityIgnoresLiquid = true;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer1Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -58,10 +58,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[2] { ModContent.GetInstance<AbyssLayer1Biome>().Type, ModContent.GetInstance<AbyssLayer2Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -58,10 +58,6 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[2] { ModContent.GetInstance<AbyssLayer2Biome>().Type, ModContent.GetInstance<AbyssLayer3Biome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -85,10 +85,6 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AcidRainBiome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -60,10 +60,6 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AcidRainBiome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -64,10 +64,6 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AcidRainBiome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -52,10 +52,6 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AcidRainBiome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -90,10 +90,6 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AcidRainBiome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -71,10 +71,6 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AcidRainBiome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
@@ -58,10 +58,6 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AcidRainBiome>().Type };
|
||||
|
||||
// Scale stats in Expert and Master
|
||||
CalamityGlobalNPC.AdjustExpertModeStatScaling(NPC);
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
Loaded 100 of 491 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user