Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into VictideSet
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
|
||||
@@ -97,23 +58,23 @@ namespace CalamityMod.Balancing
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<Crabulon>(), ResistTrueMelee(0.8f)));
|
||||
#endregion
|
||||
|
||||
#region Brain of Cthulhu: Creepers
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.Creeper, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
// 50% resist to Demon Scythe.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.Creeper, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.DemonScythe))));
|
||||
#endregion
|
||||
|
||||
#region Eater of Worlds
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
// 50% resist to Demon Scythe.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.DemonScythe))));
|
||||
|
||||
// 40% resist to Sky Glaze.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<StickyFeather>()))));
|
||||
|
||||
// 25% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(ResistTrueMelee(0.75f))));
|
||||
#endregion
|
||||
|
||||
#region Brain of Cthulhu: Creepers
|
||||
// 50% resist to Demon Scythe.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.Creeper, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.DemonScythe))));
|
||||
|
||||
// 25% resist to true melee.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.Creeper, Do(ResistTrueMelee(0.75f))));
|
||||
#endregion
|
||||
|
||||
#region The Perforators
|
||||
@@ -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)
|
||||
|
||||
|
Before Width: | Height: | Size: 531 B After Width: | Height: | Size: 573 B |
@@ -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);
|
||||
}
|
||||
|
||||
@@ -18,11 +18,6 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().gState = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().gState < npc.buffTime[buffIndex])
|
||||
@@ -32,20 +27,5 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
internal static void DrawEffects(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player Player = drawInfo.drawPlayer;
|
||||
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Dust d = Dust.NewDustDirect(Player.Center - 10 * Vector2.One, 20, 20, DustID.IcyMerman);
|
||||
d.noGravity = Main.rand.NextBool();
|
||||
d.noLight = false;
|
||||
d.velocity *= 0.2f;
|
||||
d.velocity.Y -= Main.rand.NextFloat(0.4f, 0.6f);
|
||||
d.scale = Main.rand.NextFloat(0.4f, 0.7f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -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;
|
||||
@@ -1267,7 +1269,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool pFlames = false;
|
||||
public bool hFlames = false;
|
||||
public bool hInferno = false;
|
||||
public bool gState = false;
|
||||
public bool bBlood = false;
|
||||
public bool brainRot = false;
|
||||
public bool heavybleeding = false;
|
||||
@@ -2006,7 +2007,6 @@ namespace CalamityMod.CalPlayer
|
||||
Player.statLifeMax2 += 45;
|
||||
|
||||
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;
|
||||
@@ -2176,7 +2176,7 @@ namespace CalamityMod.CalPlayer
|
||||
trinketOfChi = false;
|
||||
gladiatorSword = false;
|
||||
unstableGraniteCore = false;
|
||||
regenator = false;
|
||||
regenerator = false;
|
||||
deepDiver = false;
|
||||
theBee = false;
|
||||
arcFlashRing = false;
|
||||
@@ -2488,7 +2488,6 @@ namespace CalamityMod.CalPlayer
|
||||
pFlames = false;
|
||||
hFlames = false;
|
||||
hInferno = false;
|
||||
gState = false;
|
||||
bBlood = false;
|
||||
brainRot = false;
|
||||
heavybleeding = false;
|
||||
@@ -2956,7 +2955,6 @@ namespace CalamityMod.CalPlayer
|
||||
pFlames = false;
|
||||
hFlames = false;
|
||||
hInferno = false;
|
||||
gState = false;
|
||||
bBlood = false;
|
||||
brainRot = false;
|
||||
heavybleeding = false;
|
||||
|
||||
@@ -238,15 +238,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (calamityPlayer.eutrophication && drawInfo.shadow == 0f)
|
||||
Eutrophication.DrawEffects(drawInfo);
|
||||
|
||||
if (calamityPlayer.gState && drawInfo.shadow == 0f)
|
||||
{
|
||||
// These lines cannot be moved to Glacial State's own file
|
||||
r *= 0.13f;
|
||||
g *= 0.66f;
|
||||
|
||||
GlacialState.DrawEffects(drawInfo);
|
||||
}
|
||||
|
||||
if (calamityPlayer.gsInferno && drawInfo.shadow == 0f)
|
||||
GodSlayerInferno.DrawEffects(drawInfo);
|
||||
|
||||
|
||||
@@ -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));
|
||||
@@ -2702,15 +2702,20 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (inkBomb && !abyssalMirror && !eclipseMirror)
|
||||
{
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Items.Accessories.InkBomb>()));
|
||||
if (Player.whoAmI == Main.myPlayer && !Player.HasCooldown(Cooldowns.InkBomb.ID))
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Player.AddCooldown(Cooldowns.InkBomb.ID, CalamityUtils.SecondsToFrames(20));
|
||||
rogueStealth += 0.5f;
|
||||
if (!Player.HasCooldown(Cooldowns.InkBomb.ID))
|
||||
{
|
||||
Player.AddCooldown(Cooldowns.InkBomb.ID, CalamityUtils.SecondsToFrames(20));
|
||||
rogueStealth += 0.5f;
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath28 with { Volume = 2f }, Player.Center);
|
||||
}
|
||||
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Items.Accessories.InkBomb>()));
|
||||
SoundEngine.PlaySound(SoundID.Item1, Player.Center);
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item61, Player.Center);
|
||||
int ink = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-0f, -4f), ModContent.ProjectileType<InkBombProjectile>(), 0, 0, Player.whoAmI);
|
||||
int ink = Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.One.RotatedByRandom(MathHelper.TwoPi) * 2f, ModContent.ProjectileType<InkBombProjectile>(), 0, 0, Player.whoAmI);
|
||||
if (ink.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[ink].DamageType = DamageClass.Generic;
|
||||
}
|
||||
@@ -2742,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);
|
||||
|
||||
@@ -766,7 +766,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 +777,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 +832,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 +843,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;
|
||||
|
||||
@@ -479,13 +479,17 @@ namespace CalamityMod.CalPlayer
|
||||
IsFirstDashFrame = false;
|
||||
else
|
||||
IsFirstDashFrame = true;
|
||||
|
||||
|
||||
// THIS MUST BE NEAR THE END OF PostUpdateMiscEffects SO ALL OTHER RUN SPEED IS DONE FIRST. DO NOT PUT ANY RUN SPEED AFTER THIS
|
||||
|
||||
|
||||
// Multiplies movement speed by 1.5x so that you don't feel like a snail in the early game.
|
||||
// This applies to movement speed boosts as well as base speed to ensure they are actually worth their listed value compared to base speed
|
||||
//
|
||||
// Disabled while Overhaul is enabled, because Overhaul does very similar things to make movement more snappy
|
||||
if (ExternalMods.overhaul is null && CalamityServerConfig.Instance.FasterBaseSpeed)
|
||||
// 22JUN2025: Ozzatron: Disabled while Remnants is enabled, because Remnants has its own move speed reworks.
|
||||
|
||||
bool ignoreSpeedConfig = ExternalMods.overhaul is not null || ExternalMods.remnants is not null;
|
||||
if (!ignoreSpeedConfig && CalamityServerConfig.Instance.FasterBaseSpeed)
|
||||
Player.moveSpeed *= BalancingConstants.DefaultMoveSpeedBoost;
|
||||
|
||||
// This is used to increase horizontal velocity based on the player's movement speed stat.
|
||||
@@ -2012,7 +2016,7 @@ namespace CalamityMod.CalPlayer
|
||||
SyncCooldownRemoval(Main.dedServ, expiredCooldowns);
|
||||
|
||||
// Grant the player 5 seconds of immunity to immobilizing debuffs after an immobilizing debuff wears off.
|
||||
if (Player.stoned || Player.frozen || Player.webbed || gState)
|
||||
if (Player.stoned || Player.frozen || Player.webbed)
|
||||
{
|
||||
ImmobilityDebuffImmunityTimer = ImmobilityDebuffImmunityTimerMax;
|
||||
}
|
||||
@@ -2022,7 +2026,6 @@ namespace CalamityMod.CalPlayer
|
||||
Player.buffImmune[BuffID.Stoned] = true;
|
||||
Player.buffImmune[BuffID.Frozen] = true;
|
||||
Player.buffImmune[BuffID.Webbed] = true;
|
||||
Player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
|
||||
}
|
||||
|
||||
if (arsenalCooldown > 0)
|
||||
@@ -2623,7 +2626,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
Player.buffImmune[BuffID.Frozen] = true;
|
||||
Player.buffImmune[BuffID.Chilled] = true;
|
||||
Player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
|
||||
}
|
||||
|
||||
// Cosmic Discharge Cosmic Freeze buff, gives surrounding enemies the Glacial State debuff
|
||||
@@ -2736,23 +2738,19 @@ namespace CalamityMod.CalPlayer
|
||||
// Plagued Fuel Pack and Blunder Booster effects
|
||||
if (jetPackDash > 0 && Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
int velocityAmt = blunderBooster ? 35 : 25;
|
||||
int velocityMult = jetPackDash > 1 ? velocityAmt : 5;
|
||||
Player.velocity = new Vector2(jetPackDirection, -1) * velocityMult;
|
||||
int velocityMult = (int)((blunderBooster ? 35 : 25) * Utils.GetLerpValue(-4, 5, jetPackDash, true));
|
||||
Player.velocity = new Vector2(jetPackDirection, -1f) * velocityMult;
|
||||
|
||||
if (blunderBooster)
|
||||
{
|
||||
int lightningCount = Main.rand.Next(5, 7);
|
||||
int lightningCount = 4;
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<BlunderBooster>()));
|
||||
for (int i = 0; i < lightningCount; i++)
|
||||
{
|
||||
Vector2 lightningVel = new Vector2(Main.rand.NextFloat(-1, 1), Main.rand.NextFloat(-1, 1));
|
||||
lightningVel.Normalize();
|
||||
lightningVel *= Main.rand.NextFloat(1f, 2f);
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(30);
|
||||
Vector2 lightningVel = Player.velocity.SafeNormalize(Vector2.UnitX).RotatedByRandom(0.3f) * Main.rand.NextFloat(7f, 10f);
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(35);
|
||||
|
||||
int projectile = Projectile.NewProjectile(source, Player.Center, lightningVel, ModContent.ProjectileType<BlunderBoosterLightning>(), damage, 0, Player.whoAmI, Main.rand.Next(2), 0f);
|
||||
Main.projectile[projectile].timeLeft = Main.rand.Next(180, 240);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
@@ -2767,17 +2765,14 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (plaguedFuelPack)
|
||||
{
|
||||
int numClouds = Main.rand.Next(8, 10);
|
||||
int numClouds = 3;
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<PlaguedFuelPack>()));
|
||||
for (int i = 0; i < numClouds; i++)
|
||||
{
|
||||
Vector2 cloudVelocity = new Vector2(Main.rand.NextFloat(-1, 1), Main.rand.NextFloat(-1, 1));
|
||||
cloudVelocity.Normalize();
|
||||
cloudVelocity *= Main.rand.NextFloat(0f, 1f);
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(20);
|
||||
Vector2 cloudVelocity = Player.velocity.SafeNormalize(Vector2.UnitX).RotatedByRandom(0.3f) * Main.rand.NextFloat(5f, 7f);
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(30);
|
||||
|
||||
int projectile = Projectile.NewProjectile(source, Player.Center, cloudVelocity, ModContent.ProjectileType<PlaguedFuelPackCloud>(), damage, 0, Player.whoAmI, 0, 0);
|
||||
Main.projectile[projectile].timeLeft = Main.rand.Next(180, 240);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
@@ -3164,7 +3159,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)
|
||||
@@ -3319,12 +3314,12 @@ namespace CalamityMod.CalPlayer
|
||||
if (AdamantiteSet)
|
||||
Player.statDefense += AdamantiteSetDefenseBoost;
|
||||
|
||||
// Warmth makes Chilled, Frozen, and Glacial State tick down 3x as fast
|
||||
// Warmth makes Chilled and Frozen tick down 3x as fast
|
||||
if (Player.HasBuff(BuffID.Warmth))
|
||||
{
|
||||
for (int b = 0; b < Player.MaxBuffs; b++)
|
||||
{
|
||||
if (Player.buffType[b] == BuffID.Chilled || Player.buffType[b] == BuffID.Frozen || Player.buffType[b] == ModContent.BuffType<GlacialState>())
|
||||
if (Player.buffType[b] == BuffID.Chilled || Player.buffType[b] == BuffID.Frozen)
|
||||
{
|
||||
if (Player.buffTime[b] > 3)
|
||||
{
|
||||
@@ -3689,11 +3684,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
if (tarraSet)
|
||||
{
|
||||
if (!tarraMelee)
|
||||
Player.calmed = true;
|
||||
Player.lifeMagnet = true;
|
||||
}
|
||||
|
||||
if (wDeath && !laudanum && !purity)
|
||||
Player.GetDamage<GenericDamageClass>() -= 0.2f;
|
||||
@@ -3717,14 +3708,6 @@ namespace CalamityMod.CalPlayer
|
||||
Player.statDefense -= RemsRevenge.WitherDefenseReduction;
|
||||
}
|
||||
|
||||
if (gState)
|
||||
{
|
||||
Player.velocity.X *= 0.5f;
|
||||
Player.velocity.Y += 0.05f;
|
||||
if (Player.velocity.Y > 15f)
|
||||
Player.velocity.Y = 15f;
|
||||
}
|
||||
|
||||
if (eutrophication && !purity)
|
||||
Player.velocity = Vector2.Zero;
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
ItemLifesteal(target, item, damageDone);
|
||||
ItemOnHit(item, damageDone, target.Center, hit.Crit, target.IsAnEnemy(false, true), targetIsDummy);
|
||||
NPCDebuffs(target, item.CountsAsClass<MeleeDamageClass>(), item.CountsAsClass<RangedDamageClass>(), item.CountsAsClass<MagicDamageClass>(), item.CountsAsClass<SummonDamageClass>(), item.CountsAsClass<ThrowingDamageClass>(), item.CountsAsClass<SummonMeleeSpeedDamageClass>());
|
||||
NPCDebuffs(target, item.CountsAsClass<MeleeDamageClass>(), item.CountsAsClass<RangedDamageClass>(), item.CountsAsClass<MagicDamageClass>(), item.CountsAsClass<SummonDamageClass>(), item.CountsAsClass<ThrowingDamageClass>(), item.CountsAsClass<SummonMeleeSpeedDamageClass>(), hit.Crit);
|
||||
|
||||
// Ursa Sergeant slash cooldown is reset on kill
|
||||
if (ursaSergeant && target.life <= 0 && target.realLife == -1)
|
||||
@@ -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)
|
||||
@@ -608,7 +607,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
ProjLifesteal(target, proj, damageDone, hit.Crit);
|
||||
ProjOnHit(proj, target.Center, hit.Crit, target.IsAnEnemy(false), targetIsDummy);
|
||||
NPCDebuffs(target, proj.CountsAsClass<MeleeDamageClass>(), proj.CountsAsClass<RangedDamageClass>(), proj.CountsAsClass<MagicDamageClass>(), proj.CountsAsClass<SummonDamageClass>(), proj.CountsAsClass<ThrowingDamageClass>(), proj.CountsAsClass<SummonMeleeSpeedDamageClass>(), true, proj.noEnchantments);
|
||||
NPCDebuffs(target, proj.CountsAsClass<MeleeDamageClass>(), proj.CountsAsClass<RangedDamageClass>(), proj.CountsAsClass<MagicDamageClass>(), proj.CountsAsClass<SummonDamageClass>(), proj.CountsAsClass<ThrowingDamageClass>(), proj.CountsAsClass<SummonMeleeSpeedDamageClass>(), hit.Crit, true, proj.noEnchantments);
|
||||
|
||||
// Shattered Community tracks all damage dealt with Rage Mode (ignoring dummies).
|
||||
if (targetIsDummy)
|
||||
@@ -1201,7 +1200,7 @@ namespace CalamityMod.CalPlayer
|
||||
#endregion
|
||||
|
||||
#region Debuffs
|
||||
public void NPCDebuffs(NPC target, bool melee, bool ranged, bool magic, bool summon, bool rogue, bool whip, bool proj = false, bool noFlask = false)
|
||||
public void NPCDebuffs(NPC target, bool melee, bool ranged, bool magic, bool summon, bool rogue, bool whip, bool crit, bool proj = false, bool noFlask = false)
|
||||
{
|
||||
if (melee && !noFlask) // Prevents Deep Sea Dumbell from snagging true melee debuff memes
|
||||
{
|
||||
@@ -1308,7 +1307,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);
|
||||
@@ -1323,7 +1322,11 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (vexation)
|
||||
{
|
||||
target.AddBuff(BuffID.Venom, 120, false);
|
||||
target.AddBuff(BuffID.Venom, 120, false);
|
||||
}
|
||||
if (snowRuffianSet && ranged && crit)
|
||||
{
|
||||
target.AddBuff(BuffID.Frostburn, 300, false);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -308,7 +308,6 @@ namespace CalamityMod
|
||||
40, // 48 in phase 2, 56 in phase 3
|
||||
75 } }, // Vanilla: 113 in phase 2; Rev+: 90 in phase 2, 105 in phase 3
|
||||
{ NPCID.ServantofCthulhu, new int[] { 18, 24, 30, 54 } },
|
||||
{ ModContent.NPCType<BloodlettingServant>(), new int[] { 20, 26, 34, 63 } }, // In phase 2: 26, 34, 44, 82
|
||||
|
||||
{ ModContent.NPCType<Crabulon>(), new int[] { 40, 64, 80, 144 } },
|
||||
{ ModContent.NPCType<CrabShroom>(), new int[] { 25, 50, 62, 111 } },
|
||||
@@ -541,7 +540,6 @@ namespace CalamityMod
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DesertNuisanceHeadYoung>(), ModContent.ProjectileType<DesertScourgeSpit>()), new int[] { 26, 36, 44, 84 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.EyeofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 26, 44, 60, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<BloodlettingServant>(), ProjectileID.BloodShot), new int[] { 26, 36, 44, 84 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBomb>()), new int[] { 32, 48, 60, 108 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBombFall>()), new int[] { 32, 48, 60, 108 } },
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace CalamityMod.Events
|
||||
ModContent.NPCType<DesertNuisanceBody>(), ModContent.NPCType<DesertNuisanceTail>(), ModContent.NPCType<DesertNuisanceHeadYoung>(),
|
||||
ModContent.NPCType<DesertNuisanceBodyYoung>(), ModContent.NPCType<DesertNuisanceTailYoung>() }),
|
||||
|
||||
new Boss(NPCID.EyeofCthulhu, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.ServantofCthulhu, ModContent.NPCType<BloodlettingServant>() }),
|
||||
new Boss(NPCID.EyeofCthulhu, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.ServantofCthulhu }),
|
||||
|
||||
new Boss(ModContent.NPCType<Crabulon>(), TimeChangeContext.Day, type =>
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 278 B |
|
Before Width: | Height: | Size: 573 B |
|
Before Width: | Height: | Size: 216 B |
|
Before Width: | Height: | Size: 480 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
@@ -21,6 +21,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.inkBomb = true;
|
||||
modPlayer.rogueStealthMax += 0.1f;
|
||||
player.Calamity().stealthGenStandstill += 0.07f;
|
||||
player.Calamity().stealthGenMoving += 0.07f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -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(),
|
||||
|
||||
@@ -27,12 +27,11 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
public static readonly SoundStyle SmokeBombEndSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerSmokeBombEnd");
|
||||
public static readonly SoundStyle CDResetSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerCDReset");
|
||||
|
||||
public static int FlatDamageBonus = 1;
|
||||
public static int SmokeCooldown = 25 * 60;
|
||||
public static int SmokeDuration = 5 * 60;
|
||||
public static int LightsOutReset = (int)(1.5f * 60);
|
||||
public static int FreeCrit = 200;
|
||||
public static int BonusDamageCap = 100;
|
||||
public static int BonusDamageCap = 200;
|
||||
|
||||
public static bool ShroudedInSmoke(Player player, out CooldownInstance cd)
|
||||
{
|
||||
@@ -78,8 +77,10 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(FlatDamageBonus); //More gets edited in elsewhere
|
||||
player.GetDamage<RangedDamageClass>().Flat += FlatDamageBonus;
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(); //More gets edited in elsewhere
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
player.Calamity().rogueStealthMax += 0.5f;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.05f;
|
||||
|
||||
DesertProwlerPlayer armorPlayer = player.GetModPlayer<DesertProwlerPlayer>();
|
||||
armorPlayer.desertProwlerSet = true;
|
||||
@@ -183,8 +184,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<RangedDamageClass>() += 4;
|
||||
player.ammoCost80 = true;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 4;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
@@ -227,7 +227,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<RangedDamageClass>() += 5;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 5;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
@@ -381,7 +381,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
{
|
||||
if (projectile.damage > 0 && !Main.gameMenu)
|
||||
{
|
||||
if (projectile.owner >= 0 && DesertProwlerHat.ShroudedInSmoke(Main.player[projectile.owner], out var cd) && projectile.DamageType.CountsAsClass(DamageClass.Ranged))
|
||||
if (projectile.owner >= 0 && DesertProwlerHat.ShroudedInSmoke(Main.player[projectile.owner], out var cd) && projectile.DamageType.CountsAsClass(RogueDamageClass.Instance))
|
||||
{
|
||||
int critPool = DesertProwlerHat.FreeCrit;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -67,7 +67,6 @@ namespace CalamityMod.Items.Armor.Fearmonger
|
||||
ModContent.BuffType<GodSlayerInferno>(),
|
||||
BuffID.Chilled,
|
||||
BuffID.Frozen,
|
||||
ModContent.BuffType<GlacialState>(),
|
||||
};
|
||||
for (var i = 0; i < immuneDebuffs.Length; ++i)
|
||||
player.buffImmune[immuneDebuffs[i]] = true;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -35,18 +35,19 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 4; //9
|
||||
Item.defense = 5; //12
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<ThrowingDamageClass>() += 3;
|
||||
player.GetCritChance<RangedDamageClass>() += 4;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddRecipeGroup("AnySnowBlock", 60).
|
||||
AddIngredient(ItemID.BorealWood, 20).
|
||||
AddIngredient(ItemID.Silk, 6).
|
||||
AddIngredient(ItemID.FlinxFur, 2).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
|
||||
@@ -14,18 +14,19 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 3; //9
|
||||
Item.defense = 4; //12
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.05f;
|
||||
player.moveSpeed += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddRecipeGroup("AnySnowBlock", 40).
|
||||
AddIngredient(ItemID.BorealWood, 15).
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddIngredient(ItemID.FlinxFur).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 2; //9
|
||||
Item.defense = 3; //12
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
@@ -38,10 +38,9 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.snowRuffianSet = true;
|
||||
modPlayer.rogueStealthMax += 0.5f;
|
||||
player.GetCritChance<RangedDamageClass>() += 4;
|
||||
player.GetDamage<RangedDamageClass>() += 0.04f;
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.05f;
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
|
||||
if (player.controlJump)
|
||||
{
|
||||
@@ -62,13 +61,14 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.02f;
|
||||
player.GetDamage<RangedDamageClass>() += 0.02f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddRecipeGroup("AnySnowBlock", 20).
|
||||
AddIngredient(ItemID.BorealWood, 10).
|
||||
AddIngredient(ItemID.Silk, 4).
|
||||
AddIngredient(ItemID.FlinxFur).
|
||||
AddTile(TileID.Anvils).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<SnowRuffianChestplate>()).
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@ namespace CalamityMod.Items.Mounts
|
||||
MountData.buff = ModContent.BuffType<OnyxExcavatorBuff>();
|
||||
|
||||
// Horizontal movement
|
||||
MountData.runSpeed = 5.5f;
|
||||
MountData.runSpeed = 4.5f;
|
||||
MountData.swimSpeed = 0.5f;
|
||||
MountData.acceleration = 0.2f;
|
||||
MountData.acceleration = 0.1f;
|
||||
|
||||
// Vertical movement
|
||||
MountData.fallDamage = 0f;
|
||||
|
||||
@@ -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 = "";
|
||||
@@ -52,11 +51,11 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
public static IList<string> devList = new List<string>()
|
||||
{
|
||||
"Altix",
|
||||
"Angel",
|
||||
"apotofkoolaid",
|
||||
"AquaSG",
|
||||
"Atalya",
|
||||
"Ben-TK",
|
||||
"Big E",
|
||||
"CDMusic",
|
||||
"Cei",
|
||||
"CongratsIsTrash",
|
||||
@@ -90,6 +89,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
"Shayy",
|
||||
"Spider Prov",
|
||||
"StipulateVenus",
|
||||
"Sunny",
|
||||
"Tobias",
|
||||
"Tomat",
|
||||
"Triangle",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -32,7 +32,6 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
player.Calamity().eskimoSet = true;
|
||||
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
target.AddBuff(BuffID.Frostburn2, 300);
|
||||
target.AddBuff(ModContent.BuffType<GlacialState>(), 60);
|
||||
var source = player.GetSource_ItemUse(Item);
|
||||
int p = Projectile.NewProjectile(source, target.Center, Vector2.Zero, ModContent.ProjectileType<DarkIceZero>(), Item.damage, 12f, player.whoAmI);
|
||||
Main.projectile[p].Kill();
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public static float MaxThrowReach = 760;
|
||||
public static float SnapDamageMultiplier = 1.2f; //Extra damage from making the scissors snap
|
||||
|
||||
public static float MaxCharge = 15f; // Maximum charge value AKA how much charge you get from a parry
|
||||
public static float MaxCharge = 16f; // Maximum charge value AKA how much charge you get from a parry
|
||||
public static float chargeDamageMultiplier = 1.35f; //Extra damage from charge
|
||||
public static float chainDamageMultiplier = 0.1f;
|
||||
public static float SnapBoltsDamageMultiplier = 0.1f;
|
||||
@@ -235,7 +235,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
|
||||
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
|
||||
|
||||
float barScale = 3f;
|
||||
float barScale = 4f;
|
||||
Vector2 barOrigin = barBG.Size() * 0.5f;
|
||||
float yOffset = 50f;
|
||||
Vector2 drawPos = position + Vector2.UnitY * scale * (frame.Height - yOffset);
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.width = 30;
|
||||
Item.height = 26;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.damage = 152;
|
||||
Item.damage = 115;
|
||||
Item.knockBack = 7f;
|
||||
Item.useTime = 20;
|
||||
Item.useAnimation = 20;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 60;
|
||||
Item.height = 30;
|
||||
Item.damage = 135;
|
||||
Item.damage = 120;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 5;
|
||||
Item.useAnimation = 25;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -9,11 +9,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class FrostyFlare : RogueWeapon
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 99;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 10;
|
||||
@@ -27,12 +22,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.knockBack = 2f;
|
||||
Item.value = Item.buyPrice(0, 0, 8, 0);
|
||||
Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice;
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
Item.shoot = ModContent.ProjectileType<FrostyFlareProj>();
|
||||
Item.shootSpeed = 22f;
|
||||
Item.maxStack = Item.CommonMaxStack;
|
||||
Item.consumable = true;
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<IceStar>(100).
|
||||
AddIngredient<IceStar>().
|
||||
AddIngredient<Avalanche>().
|
||||
AddIngredient<HoarfrostBow>().
|
||||
AddIngredient<Icebreaker>().
|
||||
|
||||
@@ -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.
|
||||
'''
|
||||
|
||||
@@ -999,8 +999,10 @@ InkBomb: {
|
||||
DisplayName: Ink Bomb
|
||||
Tooltip:
|
||||
'''
|
||||
Throws several ink bombs when hit that explode into ink
|
||||
Gain a lot of stealth and confuse enemies when struck
|
||||
+10 maximum stealth
|
||||
Stealth generates 7% faster
|
||||
Throws several ink bombs when hit that explode into ink and confuse enemies
|
||||
Gain a lot of stealth when struck
|
||||
This effect has a 20 second cooldown before it can occur again
|
||||
'''
|
||||
}
|
||||
@@ -1010,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
|
||||
@@ -1023,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
|
||||
@@ -1464,8 +1466,8 @@ ReaperToothNecklace: {
|
||||
'''
|
||||
}
|
||||
|
||||
Regenator: {
|
||||
DisplayName: Regenator
|
||||
Regenerator: {
|
||||
DisplayName: Regenerator
|
||||
Tooltip:
|
||||
'''
|
||||
Your health cannot exceed 50% of its maximum
|
||||
@@ -2101,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
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
'''
|
||||
@@ -423,9 +423,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
|
||||
'''
|
||||
}
|
||||
@@ -617,7 +617,6 @@ TarragonBreastplate: {
|
||||
'''
|
||||
CommonSetBonus:
|
||||
'''
|
||||
Reduces enemy spawn rates
|
||||
Increased heart pickup range
|
||||
Enemies have a chance to drop extra hearts on death
|
||||
'''
|
||||
|
||||
@@ -61,13 +61,17 @@ AerospecLeggings: {
|
||||
|
||||
DesertProwlerHat: {
|
||||
DisplayName: Desert Prowler Hat
|
||||
Tooltip: 4% increased ranged critical strike chance and 20% chance to not consume ammo
|
||||
SetBonus: Ranged attacks deal an extra {0} flat damage
|
||||
Tooltip: 4% increased rogue critical strike chance
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased rogue damage
|
||||
+50 maximum stealth
|
||||
'''
|
||||
AbilityBrief: Sandsmoke Bomb - Double tap {0} to shroud yourself in a small cloud of sand
|
||||
AbilityDescription:
|
||||
'''
|
||||
While the sand cloud is active, gain increased mobility but heavily reduced defense
|
||||
Using a ranged weapon instantly dispels the sand cloak, but guarantees a supercrit for {0}% damage
|
||||
Using a rogue weapon instantly dispels the sand cloak, but guarantees a supercrit for {0}% damage
|
||||
The super crit applies only as long as the resulting hit wouldn't exceed {1} damage
|
||||
Landing the killing blow on an enemy with this shot shortens the ability's cooldown to {2} seconds
|
||||
'''
|
||||
@@ -80,7 +84,7 @@ DesertProwlerPants: {
|
||||
|
||||
DesertProwlerShirt: {
|
||||
DisplayName: Desert Prowler Shirt
|
||||
Tooltip: 5% increased ranged critical strike chance
|
||||
Tooltip: 5% increased rogue critical strike chance
|
||||
}
|
||||
|
||||
MarniteArchitectHeadgear: {
|
||||
@@ -90,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
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -101,22 +105,22 @@ MarniteArchitectToga: {
|
||||
|
||||
SnowRuffianChestplate: {
|
||||
DisplayName: Snow Ruffian Chestplate
|
||||
Tooltip: 3% increased rogue critical strike chance
|
||||
Tooltip: 4% increased ranged critical strike chance
|
||||
}
|
||||
|
||||
SnowRuffianGreaves: {
|
||||
DisplayName: Snow Ruffian Greaves
|
||||
Tooltip: 5% increased movement speed
|
||||
Tooltip: 10% increased movement speed
|
||||
}
|
||||
|
||||
SnowRuffianMask: {
|
||||
DisplayName: Snow Ruffian Mask
|
||||
Tooltip: 2% increased rogue damage
|
||||
Tooltip: 2% increased ranged damage
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased rogue damage
|
||||
+50 maximum stealth
|
||||
4% increased ranged damage and critical strike chance
|
||||
You can glide to negate fall damage
|
||||
Ranged critical strikes frostburn enemies
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -298,7 +302,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
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -4296,12 +4296,12 @@ WulfrumPanelWall: {
|
||||
}
|
||||
|
||||
ChargedWulfrumWallMountedBulb: {
|
||||
DisplayName: Mods.CalamityMod.Items.Placeables.ChargedWulfrumWallMountedBulb.DisplayName
|
||||
DisplayName: Charged Wulfrum Wall Mounted Bulb
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumWallMountedBulb: {
|
||||
DisplayName: Mods.CalamityMod.Items.Placeables.WulfrumWallMountedBulb.DisplayName
|
||||
DisplayName: Wulfrum Wall Mounted Bulb
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -84,7 +84,7 @@ ArkoftheCosmos: {
|
||||
<right> to snip out the scissor blades in front of you
|
||||
Hitting an enemy with it will parry them, granting you brief invulnerability
|
||||
You can also parry projectiles to make them deal 160 less damage for a short period
|
||||
Parrying will empower the next 15 swings of the sword
|
||||
Parrying will empower the next 16 swings of the sword
|
||||
'''
|
||||
BlastInfo: Double <right> with charges available to cause a Big Rip in spacetime and consume all charges
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,14 +3,11 @@
|
||||
RecipeGroup: {
|
||||
HardmodeAnvil: "{$LegacyMisc.37} Hardmode Anvil"
|
||||
HardmodeForge: "{$LegacyMisc.37} Hardmode Forge"
|
||||
AnyLargeGem: "{$LegacyMisc.37} Large Gem"
|
||||
AnyFood: "{$LegacyMisc.37} Food Item"
|
||||
AnyEvilBar: "{$LegacyMisc.37} Evil Bar"
|
||||
AnyEvilPowder: "{$LegacyMisc.37} Evil Powder"
|
||||
Boss2Material: Shadow Scale or Tissue Sample
|
||||
CursedFlameIchor: Cursed Flame or Ichor
|
||||
AnyEvilWater: "{$LegacyMisc.37} Evil Water"
|
||||
AnyEvilFlask: "{$LegacyMisc.37} Evil Flask"
|
||||
AnyEvilBlock: "{$LegacyMisc.37} Evil Block"
|
||||
AnyGoodBlock: "{$LegacyMisc.37} Good Block"
|
||||
LunarPickaxe: "{$LegacyMisc.37} Lunar Pickaxe"
|
||||
@@ -43,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!
|
||||
|
||||
@@ -147,7 +147,6 @@ AeroSlime.DisplayName: Aero Slime
|
||||
ArmoredDiggerHead.DisplayName: Armored Digger
|
||||
MechanizedSerpent: Mechanized Serpent
|
||||
AuroraSpirit.DisplayName: Aurora Spirit
|
||||
BloodlettingServant.DisplayName: Bloodletting Servant
|
||||
BloomSlime.DisplayName: Bloom Slime
|
||||
Bohldohr.DisplayName: Bohldohr
|
||||
BucketZombie.DisplayName: "{$NPCName.Zombie}"
|
||||
|
||||
@@ -63,9 +63,6 @@ FlareBomb.DisplayName: Flare Bomb
|
||||
FlareDust.DisplayName: Flare Dust
|
||||
FlareDust2.DisplayName: Flare Bomb
|
||||
Flarenado.DisplayName: Flarenado
|
||||
FoveanatorEnergyBomb.DisplayName: Nebulous Energy Bomb
|
||||
FoveanatorLaser.DisplayName: Nebulous Laser
|
||||
FoveanatorFlamethrower.DisplayName: Nebulous Flames
|
||||
FrostMist.DisplayName: Frost Mist
|
||||
GooglyEye.DisplayName: Googly Eye
|
||||
GreatSandBlast.DisplayName: Great Sand Blast
|
||||
|
||||
@@ -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!]"
|
||||
@@ -145,7 +145,7 @@ Cooldowns: {
|
||||
PrismaticLaser: Prismatic Laser Barrage Cooldown
|
||||
ProfanedSoulShieldDurability: Profaned Soul Shield Durability
|
||||
ProfanedSoulShieldRecharge: Profaned Soul Shield Recharge
|
||||
RaiderBoost: Extra Critical Chance
|
||||
RaidersBoost: Extra Critical Chance
|
||||
RelicOfResilienceCooldown: Relic of Resilience Cooldown
|
||||
RogueBooster: Rogue Booster Cooldown
|
||||
SandCloak: Sand Cloak Cooldown
|
||||
@@ -668,8 +668,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 -
|
||||
@@ -39,7 +39,7 @@ SetBonus: {
|
||||
'''
|
||||
Multiplies all cold-based debuff damage by 1.25x
|
||||
Cold enemies will deal reduced contact damage to the player
|
||||
Provides immunity to the Chilled, Frozen, Frostburn and Glacial State debuffs
|
||||
Provides immunity to the Chilled, Frozen, and Frostburn debuffs
|
||||
'''
|
||||
Rain:
|
||||
'''
|
||||
|
||||
@@ -27,7 +27,7 @@ AddedTooltip: {
|
||||
This grants +1.5 HP/s life regen and accelerates natural life regen
|
||||
Life drain stacks based on the number of enemies being hit
|
||||
'''
|
||||
WarmthPotion: Greatly reduces the duration of Chilled, Frozen, and Glacial State
|
||||
WarmthPotion: Greatly reduces the duration of Chilled and Frozen
|
||||
HandWarmer: Provides a regeneration boost while wearing the Snow armor
|
||||
GoldenFishingRod: Its fishing line will never break
|
||||
// Step Stool
|
||||
@@ -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
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -296,7 +296,7 @@ BuffDescription: {
|
||||
ChaosState: Rod of Discord teleports are disabled
|
||||
LeafCrystal: Emits powerful life pulses at nearby enemies
|
||||
Rabies: Decreased life regen, Causes status effects
|
||||
WarmthExtra: Reduced durations of Chilled, Frozen, and Glacial State
|
||||
WarmthExtra: Reduced durations of Chilled and Frozen
|
||||
WeaponImbueConfetti: All attacks cause confetti to appear
|
||||
WeaponImbueCursedFlames: Melee, Whip, and Rogue attacks inflict enemies with cursed flames
|
||||
WeaponImbueFire: Melee, Whip, and Rogue attacks set enemies on fire
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod
|
||||
{
|
||||
@@ -31,6 +25,7 @@ namespace CalamityMod
|
||||
internal static Mod magicStorage = null;
|
||||
internal static Mod overhaul = null;
|
||||
internal static Mod redemption = null;
|
||||
internal static Mod remnants = null;
|
||||
internal static Mod soa = null;
|
||||
internal static Mod subworldLibrary = null;
|
||||
internal static Mod summonersAssociation = null;
|
||||
@@ -67,6 +62,8 @@ namespace CalamityMod
|
||||
ModLoader.TryGetMod("TerrariaOverhaul", out overhaul);
|
||||
redemption = null;
|
||||
ModLoader.TryGetMod("Redemption", out redemption);
|
||||
remnants = null;
|
||||
ModLoader.TryGetMod("Remnants", out remnants);
|
||||
soa = null;
|
||||
ModLoader.TryGetMod("SacredTools", out soa);
|
||||
subworldLibrary = null;
|
||||
@@ -97,6 +94,7 @@ namespace CalamityMod
|
||||
magicStorage = null;
|
||||
overhaul = null;
|
||||
redemption = null;
|
||||
remnants = null;
|
||||
soa = null;
|
||||
subworldLibrary = null;
|
||||
summonersAssociation = null;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
using System.IO;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.World;
|
||||
@@ -52,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)
|
||||
@@ -258,6 +256,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
var postLevi = npcLoot.DefineConditionalDropSet(DropHelper.PostLevi());
|
||||
npcLoot.Add(ItemDropRule.NormalvsExpert(ItemID.Blindfold, 100, 50));
|
||||
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<Items.Accessories.InkBomb>(), 10, 5));
|
||||
postLevi.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<DepthCells>(), 2, 2, 4, 3, 6));
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||