Split client and server configs

This commit is contained in:
CongratsIsTrash committed 2025-11-22 16:08:16 -05:00
1 parent faf3d7caf4
commit 8b93e4977e
214 files changed
+684 -652

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Buffs.Potions
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().shadow = true;
if (player.yoraiz0rEye < 2 && CalamityConfig.Instance.StealthInvisibility)
if (player.yoraiz0rEye < 2 && CalamityClientConfig.Instance.StealthInvisibility)
player.yoraiz0rEye = 2;
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Buffs.StatBuffs
public override void ModifyBuffText(ref string buffName, ref string tip, ref int rare)
{
if (CalamityConfig.Instance.BossZen)
if (CalamityServerConfig.Instance.BossZen)
tip = tip.Replace(":", ":\n" + this.GetLocalizedValue("ZenDescription"));
}
}
+8 -8
View File
@@ -2241,13 +2241,13 @@ namespace CalamityMod.CalPlayer
#region Screen Position Movements
public override void ModifyScreenPosition()
{
if (CalamityConfig.Instance.ScreenshakePower == 0)
if (CalamityClientConfig.Instance.ScreenshakePower == 0)
return;
if (GeneralScreenShakePower > 0f)
{
Main.screenPosition += Main.rand.NextVector2Circular(GeneralScreenShakePower * CalamityConfig.Instance.ScreenshakePower, GeneralScreenShakePower * CalamityConfig.Instance.ScreenshakePower);
GeneralScreenShakePower = MathHelper.Clamp(GeneralScreenShakePower - 0.185f, 0f, 20f * CalamityConfig.Instance.ScreenshakePower);
Main.screenPosition += Main.rand.NextVector2Circular(GeneralScreenShakePower * CalamityClientConfig.Instance.ScreenshakePower, GeneralScreenShakePower * CalamityClientConfig.Instance.ScreenshakePower);
GeneralScreenShakePower = MathHelper.Clamp(GeneralScreenShakePower - 0.185f, 0f, 20f * CalamityClientConfig.Instance.ScreenshakePower);
}
}
#endregion
@@ -2670,7 +2670,7 @@ namespace CalamityMod.CalPlayer
// Respawn the player faster
// 3 seconds normally and configurable while a boss is alive between 15 and 60 seconds
int respawnTimerSet = areThereAnyDamnBosses ? (CalamityConfig.Instance.PlayerRespawnTime_BossAlive * 60) : 180;
int respawnTimerSet = areThereAnyDamnBosses ? (CalamityServerConfig.Instance.PlayerRespawnTime_BossAlive * 60) : 180;
if (Player.respawnTimer > respawnTimerSet)
Player.respawnTimer = respawnTimerSet;
}
@@ -3342,14 +3342,14 @@ namespace CalamityMod.CalPlayer
public override void UpdateEquips()
{
// TODO -- why is boss health bar code in Player.UpdateEquips and not a ModSystem
CalamityConfig.Instance.BossHealthBarExtraInfo = shouldDrawSmallText;
CalamityClientConfig.Instance.BossHealthBarExtraInfo = shouldDrawSmallText;
// Putting this in GlobalItem will run multiple times for each slot, which this system already does, creating a slew of problems.
VanillaArmorChangeManager.ApplyPotentialEffectsTo(Player);
// If the config is enabled, vastly increase the player's base tile and wall placement speeds
// This stacks with the Brick Layer and Portable Cement Mixer
if (CalamityConfig.Instance.FasterTilePlacement)
if (CalamityServerConfig.Instance.FasterTilePlacement)
{
Player.tileSpeed += 0.5f;
Player.wallSpeed += 0.5f;
@@ -4863,11 +4863,11 @@ namespace CalamityMod.CalPlayer
// Enabling the config while a player is loaded will show the timer immediately.
// But it won't start running until you save and quit and re-enter a world.
if (CalamityConfig.Instance.SpeedrunTimer)
if (CalamityClientConfig.Instance.SpeedrunTimer)
CalamityMod.SpeedrunTimer.Restart();
// Set a random delay between 12 and 20 seconds. When this delay hits zero, startup messages display
if (CalamityConfig.Instance.WikiStatusMessage)
if (CalamityClientConfig.Instance.WikiStatusMessage)
{
startMessageDisplayDelay = Main.rand.Next(CalamityUtils.SecondsToFrames(12), CalamityUtils.SecondsToFrames(20) + 1);
}
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.CalPlayer
{
get
{
return (String.IsNullOrEmpty(dashID) && Player.dashType == 0 && CalamityConfig.Instance.DefaultDashEnabled) ? DefaultDash.ID : dashID; //gives default dash ONLY if no custom or vanilla dash.
return (String.IsNullOrEmpty(dashID) && Player.dashType == 0 && CalamityServerConfig.Instance.DefaultDashEnabled) ? DefaultDash.ID : dashID; //gives default dash ONLY if no custom or vanilla dash.
}
set => dashID = value;
}
+1 -1
View File
@@ -110,7 +110,7 @@ namespace CalamityMod.CalPlayer
}
// TODO -- rogue stealth visuals are an utter catastrophe and should be fully destroyed on next stealth rework
if (calamityPlayer.rogueStealth > 0f && calamityPlayer.rogueStealthMax > 0f && Player.townNPCs < 3f && CalamityConfig.Instance.StealthInvisibility)
if (calamityPlayer.rogueStealth > 0f && calamityPlayer.rogueStealthMax > 0f && Player.townNPCs < 3f && CalamityClientConfig.Instance.StealthInvisibility)
{
// A translucent orchid color, the rogue class color
float colorValue = calamityPlayer.rogueStealth / calamityPlayer.rogueStealthMax * 0.9f; //0 to 0.9
+5 -5
View File
@@ -83,7 +83,7 @@ namespace CalamityMod.CalPlayer
// Give the player a 24% jump speed boost while wings are equipped, otherwise grant 4% more jump speed so that players can jump 7 tiles high
if (Player.wingsLogic > 0)
Player.jumpSpeedBoost += 1.2f;
else if (CalamityConfig.Instance.FasterJumpSpeed)
else if (CalamityServerConfig.Instance.FasterJumpSpeed)
Player.jumpSpeedBoost += 0.2f;
// Decrease the counter on Fearmonger set turbo regeneration
@@ -983,7 +983,7 @@ namespace CalamityMod.CalPlayer
{
Player.buffImmune[ModContent.BuffType<FrozenLungs>()] = true;
}
if (CalamityConfig.Instance.ChilledWaterRework)
if (CalamityServerConfig.Instance.ChilledWaterRework)
{
if (Main.expertMode && Player.ZoneSnow && Player.wet && !Player.lavaWet && !Player.honeyWet)
{
@@ -1098,7 +1098,7 @@ namespace CalamityMod.CalPlayer
Player.noFallDmg = true;
}
if (CalamityConfig.Instance.FasterFallHotkey)
if (CalamityClientConfig.Instance.FasterFallHotkey)
{
// Allow the player to double their gravity (but NOT max fall speed!) by holding the down button while in midair.
bool holdingDown = Player.controlDown && !Player.controlJump;
@@ -2712,7 +2712,7 @@ namespace CalamityMod.CalPlayer
// 50% movement speed bonus so that you don't feel like a snail in the early game
// Disabled while Overhaul is enabled, because Overhaul does very similar things to make movement more snappy
if (CalamityMod.Instance.overhaul is null && CalamityConfig.Instance.FasterBaseSpeed)
if (CalamityMod.Instance.overhaul is null && CalamityServerConfig.Instance.FasterBaseSpeed)
Player.moveSpeed += BalancingConstants.DefaultMoveSpeedBoost;
// Reduce how slow Chilled makes the player, because it's cancerous right now
@@ -4146,7 +4146,7 @@ namespace CalamityMod.CalPlayer
{
if (startMessageDisplayDelay == 0)
{
if (CalamityConfig.Instance.WikiStatusMessage)
if (CalamityClientConfig.Instance.WikiStatusMessage)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus1");
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus2");
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod
// Config based conditions
//
public static readonly Condition PotionSellingConfig = Create("PotionConfig", () => CalamityConfig.Instance.PotionSelling);
public static readonly Condition PotionSellingConfig = Create("PotionConfig", () => CalamityServerConfig.Instance.PotionSelling);
//
// Player conditions
+87 -64
View File
@@ -5,25 +5,21 @@ using CalamityMod.UI.DraedonsArsenal;
using CalamityMod.UI.Rippers;
using CalamityMod.UI.SulphurousWaterMeter;
using Terraria;
using Terraria.Localization;
using Terraria.ModLoader.Config;
namespace CalamityMod
{
[BackgroundColor(49, 32, 36, 216)]
public class CalamityConfig : ModConfig
public class CalamityClientConfig : ModConfig
{
public static CalamityConfig Instance;
// TODO -- Not all Calamity config settings should be considered client side.
// There are many configs which are server side and should stay that way.
public static CalamityClientConfig Instance;
public override ConfigScope Mode => ConfigScope.ClientSide;
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message) => true;
// Clamps values that would cause ugly problems if loaded directly without sanitization.
[OnDeserialized]
internal void ClampValues(StreamingContext context)
{
BossHealthBoost = Utils.Clamp(BossHealthBoost, MinBossHealthBoost, MaxBossHealthBoost);
RipperMeterShake = Utils.Clamp(RipperMeterShake, MinMeterShake, MaxMeterShake);
ParticleLimit = (int)Utils.Clamp(ParticleLimit, MinParticleLimit, MaxParticleLimit);
}
@@ -48,10 +44,6 @@ namespace CalamityMod
[DefaultValue(5000)]
public int ParticleLimit { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool BossesStopWeather { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 10f)]
@@ -102,6 +94,33 @@ namespace CalamityMod
[DefaultValue(true)]
public bool StealthMeter { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool ChargeMeter { get; set; }
private const float MinMeterShake = 0f;
private const float MaxMeterShake = 4f;
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(MinMeterShake, MaxMeterShake)]
[Increment(1f)]
[DrawTicks]
[DefaultValue(2f)]
public float RipperMeterShake { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool SpeedrunTimer { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool FlightBar { get; set; }
#endregion
#region Meter Positions
[Header("MeterPositions")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
@@ -126,10 +145,6 @@ namespace CalamityMod
[DefaultValue(SulphurousWaterMeterUI.DefaultPosY)]
public float SulphuricWaterMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool ChargeMeter { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
@@ -143,8 +158,28 @@ namespace CalamityMod
public float ChargeMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool SpeedrunTimer { get; set; }
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultRagePosX)]
public float RageMeterPosX { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultRagePosY)]
public float RageMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultAdrenPosX)]
public float AdrenalineMeterPosX { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultAdrenPosY)]
public float AdrenalineMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
@@ -158,10 +193,6 @@ namespace CalamityMod
[DefaultValue(SpeedrunTimerUI.DefaultTimerPosY)]
public float SpeedrunTimerPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool FlightBar { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
@@ -202,6 +233,35 @@ namespace CalamityMod
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool FasterFallHotkey { get; set; }
#endregion
}
[BackgroundColor(49, 32, 36, 216)]
public class CalamityServerConfig : ModConfig
{
public static CalamityServerConfig Instance;
public override ConfigScope Mode => ConfigScope.ServerSide;
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref NetworkText message)
{
if (whoAmI == 0)
return true;
if (whoAmI != 0)
{
message = CalamityUtils.GetText("Configs.CalamityServerConfig.Denied").ToNetworkText();
return false;
}
return false;
}
// Clamp values that would cause ugly problems if loaded directly without sanitization.
[OnDeserialized]
internal void ClampValues(StreamingContext context)
{
BossHealthBoost = Utils.Clamp(BossHealthBoost, MinBossHealthBoost, MaxBossHealthBoost);
}
#region General Gameplay Changes
[Header("Gameplay")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
@@ -253,11 +313,14 @@ namespace CalamityMod
[DrawTicks]
[DefaultValue(MinBossHealthBoost)]
public float BossHealthBoost { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool BossesStopWeather { get; set; }
#endregion
#region Default Player Stat Boosts
[Header("BaseBoosts")]
#region Default Player Stat Boosts
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool DefaultDashEnabled { get; set; }
@@ -279,9 +342,8 @@ namespace CalamityMod
public bool FasterTilePlacement { get; set; }
#endregion
#region Expert and Master Mode Changes
[Header("ExpertMaster")]
#region Expert and Master Mode Changes
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool NerfExpertDebuffs { get; set; }
@@ -298,44 +360,5 @@ namespace CalamityMod
[DefaultValue(false)]
public bool ForceTownSafety { get; set; }
#endregion
#region Revengeance Mode Changes
[Header("Revengeance")]
private const float MinMeterShake = 0f;
private const float MaxMeterShake = 4f;
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(MinMeterShake, MaxMeterShake)]
[Increment(1f)]
[DrawTicks]
[DefaultValue(2f)]
public float RipperMeterShake { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultRagePosX)]
public float RageMeterPosX { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultRagePosY)]
public float RageMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultAdrenPosX)]
public float AdrenalineMeterPosX { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultAdrenPosY)]
public float AdrenalineMeterPosY { get; set; }
#endregion
}
}
+1 -1
View File
@@ -547,7 +547,7 @@ namespace CalamityMod
#endregion Render Target Management
#region Force ModConfig save (Reflection)
internal static void SaveConfig(CalamityConfig cfg)
internal static void SaveConfig(CalamityClientConfig cfg)
{
// There is no current way to manually save a mod configuration file in tModLoader.
// The method which saves mod config files is private in ConfigManager, so reflection is used to invoke it.
+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "ChaosState";
public override bool ShouldDisplay => CalamityConfig.Instance.VanillaCooldownDisplay && instance.player.chaosState;
public override bool ShouldDisplay => CalamityClientConfig.Instance.VanillaCooldownDisplay && instance.player.chaosState;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/ChaosState" + skinTexture;
public override Color OutlineColor => outlineColor;
+1 -1
View File
@@ -7,7 +7,7 @@ namespace CalamityMod.Cooldowns
public class PotionSickness : CooldownHandler
{
public static new string ID => "PotionSickness";
public override bool ShouldDisplay => CalamityConfig.Instance.VanillaCooldownDisplay && instance.player.potionDelay > 0;
public override bool ShouldDisplay => CalamityClientConfig.Instance.VanillaCooldownDisplay && instance.player.potionDelay > 0;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/PotionSickness";
public override Color OutlineColor => new Color(255, 142, 165);
+1 -1
View File
@@ -114,7 +114,7 @@ namespace CalamityMod.ILEditing
cursor.Remove();
// Increase by 10% if the higher jump speed is enabled.
cursor.EmitDelegate<Func<float>>(() => CalamityConfig.Instance.HigherJumpHeight ? BalancingConstants.ConfigBoostedBaseJumpHeight : VanillaBaseJumpHeight);
cursor.EmitDelegate<Func<float>>(() => CalamityServerConfig.Instance.HigherJumpHeight ? BalancingConstants.ConfigBoostedBaseJumpHeight : VanillaBaseJumpHeight);
}
#endregion
+2 -2
View File
@@ -326,7 +326,7 @@ namespace CalamityMod.ILEditing
{
// A cached delegate is used here instead of direct reflection for performance reasons
// since UpdateTime is called every frame.
if (Main.dayTime || CalamityConfig.Instance.TownNPCsSpawnAtNight)
if (Main.dayTime || CalamityServerConfig.Instance.TownNPCsSpawnAtNight)
VanillaSpawnTownNPCs();
});
@@ -342,7 +342,7 @@ namespace CalamityMod.ILEditing
private static void AlterTownNPCSpawnRate(Terraria.On_Main.orig_UpdateTime_SpawnTownNPCs orig)
{
double oldWorldRate = Main.desiredWorldTilesUpdateRate;
Main.desiredWorldTilesUpdateRate *= CalamityConfig.Instance.TownNPCSpawnRateMultiplier;
Main.desiredWorldTilesUpdateRate *= CalamityServerConfig.Instance.TownNPCSpawnRateMultiplier;
orig();
Main.desiredWorldTilesUpdateRate = oldWorldRate;
}
+3 -3
View File
@@ -116,7 +116,7 @@ namespace CalamityMod.ILEditing
#region Prevention of Slime Rain Spawns When Near Bosses
private static void PreventBossSlimeRainSpawns(Terraria.On_NPC.orig_SlimeRainSpawns orig, int plr)
{
if (!Main.player[plr].Calamity().isNearbyBoss && CalamityConfig.Instance.BossZen)
if (!Main.player[plr].Calamity().isNearbyBoss && CalamityServerConfig.Instance.BossZen)
orig(plr);
}
#endregion Prevention of Slime Rain Spawns When Near Bosses
@@ -136,7 +136,7 @@ namespace CalamityMod.ILEditing
// Add an additional check for the config.
cursor.Remove();
cursor.EmitDelegate<Func<bool>>(() => CalamityConfig.Instance.RemoveLavaDropsFromLavaSlimes || Main.remixWorld);
cursor.EmitDelegate<Func<bool>>(() => CalamityServerConfig.Instance.RemoveLavaDropsFromLavaSlimes || Main.remixWorld);
}
#endregion
@@ -174,7 +174,7 @@ namespace CalamityMod.ILEditing
// Emit a delegate which grabs the value of the screenshake config. Then multiply the local variable by it.
cursor.Emit(OpCodes.Ldloc_1);
cursor.EmitDelegate<Func<float>>(() => CalamityConfig.Instance.ScreenshakePower);
cursor.EmitDelegate<Func<float>>(() => CalamityClientConfig.Instance.ScreenshakePower);
cursor.Emit(OpCodes.Mul);
cursor.Emit(OpCodes.Stloc_1);
}
+1 -1
View File
@@ -46,7 +46,7 @@ namespace CalamityMod.ILEditing
#region Removal of Hardmode Ore Generation from Evil Altars
private static void PreventSmashAltarCode(Terraria.On_WorldGen.orig_SmashAltar orig, int i, int j)
{
if (CalamityConfig.Instance.EarlyHardmodeProgressionRework)
if (CalamityServerConfig.Instance.EarlyHardmodeProgressionRework)
return;
orig(i, j);
+1 -1
View File
@@ -1785,7 +1785,7 @@ namespace CalamityMod.Items
return keepPrefix ? prefix : 0;
}
if (!CalamityConfig.Instance.RemoveReforgeRNG || Main.gameMenu || storedPrefix == -1)
if (!CalamityServerConfig.Instance.RemoveReforgeRNG || Main.gameMenu || storedPrefix == -1)
return -1;
// Pick a prefix using the new system.
+1 -1
View File
@@ -288,7 +288,7 @@ namespace CalamityMod.Items
EditTooltipByNum(1, (line) => line.Text += ", including Mighty Wind");
// If Early Hardmode Rework is enabled: Remind users that ores will NOT spawn when an altar is smashed.
if (CalamityConfig.Instance.EarlyHardmodeProgressionRework && (item.type == ItemID.Pwnhammer || item.type == ItemID.Hammush))
if (CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && (item.type == ItemID.Pwnhammer || item.type == ItemID.Hammush))
EditTooltipByNum(0, (line) => line.Text += "\nDemon Altars now drop Souls of Night instead of generating ores when destroyed" +
"\nHardmode ores now generate after defeating Mechanical Bosses for the first time");
+4 -4
View File
@@ -132,22 +132,22 @@ namespace CalamityMod.Items.Placeables
}
else if (val < 85.03f)
{
resultType = CalamityConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.CobaltOre : ItemID.MythrilOre) : ItemID.MythrilOre;
resultType = CalamityServerConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.CobaltOre : ItemID.MythrilOre) : ItemID.MythrilOre;
resultStack = Main.rand.Next(1, 17);
}
else if (val < 87.03f)
{
resultType = CalamityConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.PalladiumOre : ItemID.OrichalcumOre) : ItemID.OrichalcumOre;
resultType = CalamityServerConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.PalladiumOre : ItemID.OrichalcumOre) : ItemID.OrichalcumOre;
resultStack = Main.rand.Next(1, 17);
}
else if (val < 88.78f)
{
resultType = CalamityConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.CobaltOre : !twoMechsDowned ? ItemID.MythrilOre : ItemID.AdamantiteOre) : ItemID.AdamantiteOre;
resultType = CalamityServerConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.CobaltOre : !twoMechsDowned ? ItemID.MythrilOre : ItemID.AdamantiteOre) : ItemID.AdamantiteOre;
resultStack = Main.rand.Next(1, 17);
}
else if (val < 89.53f)
{
resultType = CalamityConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.PalladiumOre : !twoMechsDowned ? ItemID.OrichalcumOre : ItemID.TitaniumOre) : ItemID.TitaniumOre;
resultType = CalamityServerConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.PalladiumOre : !twoMechsDowned ? ItemID.OrichalcumOre : ItemID.TitaniumOre) : ItemID.TitaniumOre;
resultStack = Main.rand.Next(1, 17);
}
else if (DownedBossSystem.downedAstrumDeus)
+4 -4
View File
@@ -120,22 +120,22 @@ namespace CalamityMod.Items.Placeables
}
else if (val < 83.03f)
{
resultType = CalamityConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.CobaltOre : ItemID.MythrilOre) : ItemID.MythrilOre;
resultType = CalamityServerConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.CobaltOre : ItemID.MythrilOre) : ItemID.MythrilOre;
resultStack = Main.rand.Next(1, 17);
}
else if (val < 85.03f)
{
resultType = CalamityConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.PalladiumOre : ItemID.OrichalcumOre) : ItemID.OrichalcumOre;
resultType = CalamityServerConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.PalladiumOre : ItemID.OrichalcumOre) : ItemID.OrichalcumOre;
resultStack = Main.rand.Next(1, 17);
}
else if (val < 86.78f)
{
resultType = CalamityConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.CobaltOre : !twoMechsDowned ? ItemID.MythrilOre : ItemID.AdamantiteOre) : ItemID.AdamantiteOre;
resultType = CalamityServerConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.CobaltOre : !twoMechsDowned ? ItemID.MythrilOre : ItemID.AdamantiteOre) : ItemID.AdamantiteOre;
resultStack = Main.rand.Next(1, 17);
}
else if (val < 88.53f)
{
resultType = CalamityConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.PalladiumOre : !twoMechsDowned ? ItemID.OrichalcumOre : ItemID.TitaniumOre) : ItemID.TitaniumOre;
resultType = CalamityServerConfig.Instance.EarlyHardmodeProgressionRework ? (!NPC.downedMechBossAny ? ItemID.PalladiumOre : !twoMechsDowned ? ItemID.OrichalcumOre : ItemID.TitaniumOre) : ItemID.TitaniumOre;
resultStack = Main.rand.Next(1, 17);
}
else if (DownedBossSystem.downedAstrumDeus)
+156 -147
View File
@@ -1,13 +1,11 @@
CalamityConfig: {
DisplayName: Main Config
CalamityClientConfig: {
DisplayName: Client Config
Headers: {
ExpertMaster: Expert and Master Mode Changes
Gameplay: General Gameplay Changes
Graphics: Graphics Changes
Revengeance: Revengeance Mode Changes
MeterPositions: Meter Positions
UI: UI Changes
BaseBoosts: Base Stat Boosts
MusicEvents: Music Events
}
@@ -38,15 +36,6 @@ CalamityConfig: {
'''
}
BossesStopWeather: {
Label: "[i:CalamityMod/TorrentialTear] Bosses Stop Weather"
Tooltip:
'''
When enabled, many late game bosses will stop all rain and related weather when spawned.
Enable if you have performance issues during late game boss fights.
'''
}
BossHealthBarExtraInfo: {
Label: "[i:CalamityMod/EncryptedSchematicPlanetoid] Boss Health Bar Extra Info"
Tooltip:
@@ -56,35 +45,6 @@ CalamityConfig: {
'''
}
BossHealthBoost: {
Label: "[i:LifeCrystal] Boss Health Boost Percentage"
Tooltip:
'''
Globally boosts the health of all bosses by the specified percentage.
This stacks with multiplayer boss health boosts.
Does not affect bosses that are already spawned.
'''
}
DefaultDashEnabled: {
Label: "[i:Tabi] Default Dash"
Tooltip:
'''
Gives the player a very weak dash by default that requires no equipment or items to use.
This dash will be replaced by any other available dash, including those from other mods.
'''
}
BossZen: {
Label: "[i:CalamityMod/ZenPotion] Bosses Drastically Reduce Spawn Rates"
Tooltip:
'''
All living bosses will drastically reduce the spawn rates of regular enemies.
This also prevents Slime Rain from occurring while a boss is alive.
Calamity is balanced around this setting being enabled.
'''
}
ChargeMeter: {
Label: "[i:CalamityMod/DraedonPowerCell] Display Charge Meter"
Tooltip:
@@ -112,11 +72,6 @@ CalamityConfig: {
'''
}
ChilledWaterRework: {
Label: "[i:ArcticDivingGear] Chilled Water Rework"
Tooltip: When enabled, water in the Snow and Ice biomes will rapidly drain the player's breath instead of inflicting Chilled.
}
CooldownDisplay: {
Label: "[i:CalamityMod/NebulousCore] Cooldown Rack Display Mode"
Tooltip:
@@ -136,28 +91,6 @@ CalamityConfig: {
Tooltip: Plays Calamity Mod OST - "Scourge of The Universe (Eulogy for The Ego)", after The Devourer of Gods has been defeated.
}
EarlyHardmodeProgressionRework: {
Label: "[i:Pwnhammer] Early Hardmode Progression Rework"
Tooltip:
'''
Demon Altars no longer spawn ores and crimson/corruption blocks when broken.
Wall of Flesh spawns Cobalt and Palladium ore on first kill.
The first mech boss you fight has 20% (10% in Expert and Master) less HP and damage and spawns Mythril and Orichalcum ore on first kill.
The second mech boss you fight has 10% (5% in Expert and Master) less HP and damage and spawns Adamantite and Titanium ore on first kill.
The third mech boss spawns Hallowed Ore on first kill.
'''
}
FasterBaseSpeed: {
Label: "[i:HermesBoots] Increase Base Movement Speed"
Tooltip:
'''
Increases the player's base movement speed substantially by always giving them +50% movement speed.
This setting does nothing if the mod Terraria Overhaul is loaded.
Calamity is balanced around this setting being enabled.
'''
}
FasterFallHotkey: {
Label: "[i:CalamityMod/BallAndChain] Enable Fast Falling"
Tooltip:
@@ -168,24 +101,6 @@ CalamityConfig: {
'''
}
FasterJumpSpeed: {
Label: "[i:FrogLeg] Increase Base Jump Speed"
Tooltip:
'''
Slightly increases the player's base jump speed.
Calamity is balanced around this setting being enabled.
'''
}
FasterTilePlacement: {
Label: "[i:ArchitectGizmoPack] Increase Base Building Speed"
Tooltip:
'''
Substantially increases how rapidly the player can place tiles and walls.
This config stacks with the Brick Layer, Portable Cement Mixer and other accessories.
'''
}
FlightBar: {
Label: "[i:AngelWings] Display Flight Bar"
Tooltip:
@@ -214,24 +129,6 @@ CalamityConfig: {
'''
}
ForceTownSafety: {
Label: "[i:Sunflower] Force Town Safety"
Tooltip:
'''
Counteracts Expert and Master Mode allowing enemies to spawn near towns by vastly decreasing spawn rates.
This can have unintended side effects such as making critters difficult to find.
'''
}
HigherJumpHeight: {
Label: "[i:ShinyRedBalloon] Increase Base Jump Height"
Tooltip:
'''
Increases the player's base jump height by 10% so that they can jump 7 tiles.
Calamity is balanced around this setting being enabled.
'''
}
Interlude1: {
Label: "[i:CalamityModMusic/Interlude1MusicBox] Interlude 1"
Tooltip: Plays Calamity Mod OST - Interlude 1, "Silence before the storms", after Calamitas Clone has been defeated.
@@ -265,15 +162,6 @@ CalamityConfig: {
'''
}
NerfExpertDebuffs: {
Label: "[i:AnkhCharm] Remove Increased Debuff Duration"
Tooltip:
'''
Disables Expert Mode doubling (and Master Mode tripling) the duration of debuffs on the player.
Calamity is balanced around this setting being enabled.
'''
}
NewVanillaTextures: {
Label: "[i:Paintbrush] New Vanilla Textures"
Tooltip:
@@ -312,20 +200,6 @@ CalamityConfig: {
'''
}
RemoveLavaDropsFromLavaSlimes: {
Label: "[i:LavaWaders] Remove Lava Drops From Lava Slimes"
Tooltip: When enabled, Lava Slimes will be prevented from dropping lava in Expert Mode.
}
RemoveReforgeRNG: {
Label: "[i:TinHammer] Remove Reforge RNG"
Tooltip:
'''
Removes randomness from the Goblin Tinkerer's reforges for both weapons and accessories.
Disable this if using mods that change reforging on their own to prevent conflicts.
'''
}
RipperMeterShake: {
Label: "[i:CalamityMod/RedLightningContainer] Rage and Adrenaline Meter Shake"
Tooltip:
@@ -433,12 +307,138 @@ CalamityConfig: {
'''
}
PotionSelling: {
Label: "[i:SpelunkerPotion] Town NPC Potion Selling"
VanillaCooldownDisplay: {
Label: "[i:HealingPotion] Display Vanilla Cooldowns"
Tooltip:
'''
Allows town NPCs to sell various potions.
Certain potions are sold after specific bosses have been defeated.
Adds the vanilla debuffs Potion Sickness and Chaos State to the Cooldown Rack.
The debuffs will still appear in the buffs array, but this may help make them more visible.
'''
}
WikiStatusMessage: {
Label: "[i:Book] Wiki Status Message"
Tooltip: Enable or disable the status message promoting the Official Calamity Wiki that plays on world entry.
}
}
CalamityServerConfig: {
DisplayName: Server Config
Denied: You have no permission to change this config
Headers: {
ExpertMaster: Expert and Master Mode Changes
Gameplay: General Gameplay Changes
BaseBoosts: Base Stat Boosts
}
BossesStopWeather: {
Label: "[i:CalamityMod/TorrentialTear] Bosses Stop Weather"
Tooltip:
'''
When enabled, many late game bosses will stop all rain and related weather when spawned.
Enable if you have performance issues during late game boss fights.
'''
}
BossHealthBoost: {
Label: "[i:LifeCrystal] Boss Health Boost Percentage"
Tooltip:
'''
Globally boosts the health of all bosses by the specified percentage.
This stacks with multiplayer boss health boosts.
Does not affect bosses that are already spawned.
'''
}
BossZen: {
Label: "[i:CalamityMod/ZenPotion] Bosses Drastically Reduce Spawn Rates"
Tooltip:
'''
All living bosses will drastically reduce the spawn rates of regular enemies.
This also prevents Slime Rain from occurring while a boss is alive.
Calamity is balanced around this setting being enabled.
'''
}
ChilledWaterRework: {
Label: "[i:ArcticDivingGear] Chilled Water Rework"
Tooltip: When enabled, water in the Snow and Ice biomes will rapidly drain the player's breath instead of inflicting Chilled.
}
DefaultDashEnabled: {
Label: "[i:Tabi] Default Dash"
Tooltip:
'''
Gives the player a very weak dash by default that requires no equipment or items to use.
This dash will be replaced by any other available dash, including those from other mods.
'''
}
EarlyHardmodeProgressionRework: {
Label: "[i:Pwnhammer] Early Hardmode Progression Rework"
Tooltip:
'''
Demon Altars no longer spawn ores and crimson/corruption blocks when broken.
Wall of Flesh spawns Cobalt and Palladium ore on first kill.
The first mech boss you fight has 20% (10% in Expert and Master) less HP and damage and spawns Mythril and Orichalcum ore on first kill.
The second mech boss you fight has 10% (5% in Expert and Master) less HP and damage and spawns Adamantite and Titanium ore on first kill.
The third mech boss spawns Hallowed Ore on first kill.
'''
}
FasterBaseSpeed: {
Label: "[i:HermesBoots] Increase Base Movement Speed"
Tooltip:
'''
Increases the player's base movement speed substantially by always giving them +50% movement speed.
This setting does nothing if the mod Terraria Overhaul is loaded.
Calamity is balanced around this setting being enabled.
'''
}
FasterJumpSpeed: {
Label: "[i:FrogLeg] Increase Base Jump Speed"
Tooltip:
'''
Slightly increases the player's base jump speed.
Calamity is balanced around this setting being enabled.
'''
}
FasterTilePlacement: {
Label: "[i:ArchitectGizmoPack] Increase Base Building Speed"
Tooltip:
'''
Substantially increases how rapidly the player can place tiles and walls.
This config stacks with the Brick Layer, Portable Cement Mixer and other accessories.
'''
}
ForceTownSafety: {
Label: "[i:Sunflower] Force Town Safety"
Tooltip:
'''
Counteracts Expert and Master Mode allowing enemies to spawn near towns by vastly decreasing spawn rates.
This can have unintended side effects such as making critters difficult to find.
'''
}
HigherJumpHeight: {
Label: "[i:ShinyRedBalloon] Increase Base Jump Height"
Tooltip:
'''
Increases the player's base jump height by 10% so that they can jump 7 tiles.
Calamity is balanced around this setting being enabled.
'''
}
NerfExpertDebuffs: {
Label: "[i:AnkhCharm] Remove Increased Debuff Duration"
Tooltip:
'''
Disables Expert Mode doubling (and Master Mode tripling) the duration of debuffs on the player.
Calamity is balanced around this setting being enabled.
'''
}
@@ -451,6 +451,29 @@ CalamityConfig: {
'''
}
PotionSelling: {
Label: "[i:SpelunkerPotion] Town NPC Potion Selling"
Tooltip:
'''
Allows town NPCs to sell various potions.
Certain potions are sold after specific bosses have been defeated.
'''
}
RemoveLavaDropsFromLavaSlimes: {
Label: "[i:LavaWaders] Remove Lava Drops From Lava Slimes"
Tooltip: When enabled, Lava Slimes will be prevented from dropping lava in Expert Mode.
}
RemoveReforgeRNG: {
Label: "[i:TinHammer] Remove Reforge RNG"
Tooltip:
'''
Removes randomness from the Goblin Tinkerer's reforges for both weapons and accessories.
Disable this if using mods that change reforging on their own to prevent conflicts.
'''
}
TownNPCSpawnRateMultiplier: {
Label: "[i:GuideVoodooDoll] Town NPC Spawn Rate Multiplier"
Tooltip:
@@ -468,18 +491,4 @@ CalamityConfig: {
This includes the Old Man.
'''
}
VanillaCooldownDisplay: {
Label: "[i:HealingPotion] Display Vanilla Cooldowns"
Tooltip:
'''
Adds the vanilla debuffs Potion Sickness and Chaos State to the Cooldown Rack.
The debuffs will still appear in the buffs array, but this may help make them more visible.
'''
}
WikiStatusMessage: {
Label: "[i:Book] Wiki Status Message"
Tooltip: Enable or disable the status message promoting the Official Calamity Wiki that plays on world entry.
}
}
+1 -1
View File
@@ -2163,7 +2163,7 @@ namespace CalamityMod
case "GetBossHealthBoost":
case "BossHealthMultiplier":
case "GetBossHealthMultiplier":
return CalamityConfig.Instance.BossHealthBoost;
return CalamityServerConfig.Instance.BossHealthBoost;
case "HasPermanentPowerup":
case "GetPermanentPowerup":
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.NPCs.AquaticScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax *= 2;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.behindTiles = true;
NPC.noGravity = true;
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.NPCs.AquaticScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax *= 2;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.behindTiles = true;
NPC.noGravity = true;
+1 -1
View File
@@ -65,7 +65,7 @@ namespace CalamityMod.NPCs.AquaticScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax *= 2;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 40, 0, 0);
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.NPCs.AquaticScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax *= 2;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.behindTiles = true;
NPC.noGravity = true;
+3 -3
View File
@@ -102,7 +102,7 @@ namespace CalamityMod.NPCs.AstrumAureus
NPC.value = Item.buyPrice(0, 60, 0, 0);
NPC.boss = true;
NPC.DeathSound = DeathSound;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.Calamity().VulnerableToHeat = true;
NPC.Calamity().VulnerableToSickness = false;
@@ -317,7 +317,7 @@ namespace CalamityMod.NPCs.AstrumAureus
if (NPC.ai[0] == 3f || NPC.ai[0] == 4f)
afterimageAmt = 10;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
@@ -347,7 +347,7 @@ namespace CalamityMod.NPCs.AstrumAureus
attackingColor = slimePhase == 0 ? Color.Violet : Color.Yellow;
}
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int j = 1; j < afterimageAmt; j++)
{
+3 -3
View File
@@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.AstrumAureus
NPC.Opacity = 0f;
NPC.defense = 10;
NPC.lifeMax = 5000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
NPC.dontTakeDamage = true;
@@ -246,7 +246,7 @@ namespace CalamityMod.NPCs.AstrumAureus
Color whiteColor = Color.White;
int afterimageAmt = 10;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
@@ -269,7 +269,7 @@ namespace CalamityMod.NPCs.AstrumAureus
texture2D15 = GlowTexture.Value;
Color afterimageColorLerp = Color.Lerp(Color.White, Color.Orange, 0.5f) * NPC.Opacity;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int j = 1; j < afterimageAmt; j++)
{
+1 -1
View File
@@ -53,7 +53,7 @@ namespace CalamityMod.NPCs.AstrumDeus
NPC.defense = 35;
NPC.DR_NERD(0.25f);
NPC.LifeMaxNERB(200000, 240000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.AstrumDeus
NPC.defense = 20;
NPC.DR_NERD(0.1f);
NPC.LifeMaxNERB(200000, 240000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.AstrumDeus
NPC.defense = 50;
NPC.DR_NERD(0.4f);
NPC.LifeMaxNERB(200000, 240000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
{
NPC.lifeMax = 10000;
}
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.Calamity().VulnerableToHeat = false;
NPC.Calamity().VulnerableToCold = true;
@@ -68,7 +68,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
NPC.value = Item.buyPrice(0, 40, 0, 0);
NPC.LifeMaxNERB(41000, 49200, 780000);
NPC.DR_NERD(0.15f);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
NPC.aiStyle = -1;
+4 -4
View File
@@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.Bumblebirb
NPC.defense = 40;
NPC.DR_NERD(0.1f);
NPC.LifeMaxNERB(187500, 225000, 300000); // Old HP - 227500, 252500
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
NPC.boss = true;
@@ -278,7 +278,7 @@ namespace CalamityMod.NPCs.Bumblebirb
color = altColor;
}
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += afterimageIncrement)
{
@@ -331,7 +331,7 @@ namespace CalamityMod.NPCs.Bumblebirb
}
}
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int j = 0; j < extraAfterimageAmt; j++)
{
@@ -373,7 +373,7 @@ namespace CalamityMod.NPCs.Bumblebirb
glowmaskColor *= glowmaskDampener;
}
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int k = 1; k < afterimageAmt; k += afterimageIncrement)
{
+2 -2
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.Bumblebirb
NPC.height = 80;
NPC.defense = 20;
NPC.LifeMaxNERB(9375, 11250, 5000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0.15f;
NPC.lavaImmune = true;
@@ -106,7 +106,7 @@ namespace CalamityMod.NPCs.Bumblebirb
Vector2 halfSizeTexture = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2);
int afterimageAmt = NPC.ai[0] == 2.1f ? 7 : 0;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
+3 -3
View File
@@ -70,7 +70,7 @@ namespace CalamityMod.NPCs.CalClone
NPC.value = Item.buyPrice(0, 50, 0, 0);
NPC.DR_NERD((CalamityWorld.death || BossRushEvent.BossRushActive) ? 0.075f : 0.15f);
NPC.LifeMaxNERB(37500, 45000, 520000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -142,7 +142,7 @@ namespace CalamityMod.NPCs.CalClone
float colorLerpAmt = 0.5f;
int afterimageAmt = 7;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
@@ -169,7 +169,7 @@ namespace CalamityMod.NPCs.CalClone
color = Color.CornflowerBlue;
}
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i++)
{
+3 -3
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.CalClone
NPC.defense = (CalamityWorld.death || BossRushEvent.BossRushActive) ? 15 : 10;
NPC.DR_NERD((CalamityWorld.death || BossRushEvent.BossRushActive) ? 0.225f : 0.15f);
NPC.LifeMaxNERB(11000, 13200, 80000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -117,7 +117,7 @@ namespace CalamityMod.NPCs.CalClone
Vector2 halfSizeTexture = new Vector2((float)(TextureAssets.Npc[NPC.type].Value.Width / 2), (float)(TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2));
int afterimageAmt = 7;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
@@ -140,7 +140,7 @@ namespace CalamityMod.NPCs.CalClone
texture2D15 = GlowTexture.Value;
Color pinkLerp = Color.Lerp(Color.White, Color.Red, 0.5f);
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int j = 1; j < afterimageAmt; j++)
{
+3 -3
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.CalClone
NPC.defense = (CalamityWorld.death || BossRushEvent.BossRushActive) ? 15 : 10;
NPC.DR_NERD((CalamityWorld.death || BossRushEvent.BossRushActive) ? 0.225f : 0.15f);
NPC.LifeMaxNERB(9200, 11025, 80000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -117,7 +117,7 @@ namespace CalamityMod.NPCs.CalClone
Vector2 halfSizeTexture = new Vector2((float)(TextureAssets.Npc[NPC.type].Value.Width / 2), (float)(TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2));
int afterimageAmt = 7;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
@@ -140,7 +140,7 @@ namespace CalamityMod.NPCs.CalClone
texture2D15 = GlowTexture.Value;
Color pinkLerp = Color.Lerp(Color.White, Color.Red, 0.5f);
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int j = 1; j < afterimageAmt; j++)
{
+3 -3
View File
@@ -47,7 +47,7 @@ namespace CalamityMod.NPCs.CalClone
{
NPC.lifeMax = 15000;
}
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.HitSound = SoundID.NPCHit4;
NPC.DeathSound = SoundID.NPCDeath14;
@@ -197,7 +197,7 @@ namespace CalamityMod.NPCs.CalClone
float colorLerpAmt = 0.5f;
int afterImageAmt = 5;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int a = 1; a < afterImageAmt; a += 2)
{
@@ -220,7 +220,7 @@ namespace CalamityMod.NPCs.CalClone
texture = GlowTexture.Value;
Color glow = Color.Lerp(Color.White, Color.Red, colorLerpAmt);
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int a = 1; a < afterImageAmt; a++)
{
@@ -390,7 +390,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
// Destroy all Dark Energies if their total HP is below 20%
int darkEnergyMaxHP = bossRush ? DarkEnergy.MaxBossRushHP : DarkEnergy.MaxHP;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
darkEnergyMaxHP += (int)(darkEnergyMaxHP * HPBoost);
int totalDarkEnergiesSpawned = darkEnergyAmt * 3 + 2;
int totalDarkEnergyMaxHP = darkEnergyMaxHP * totalDarkEnergiesSpawned;
@@ -68,7 +68,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
float greenLight = (phase3AI ? 1.2f : phase2AI ? 0.8f : 0.4f) * alphaScale;
Lighting.AddLight((int)((npc.position.X + (npc.width / 2)) / 16f), (int)((npc.position.Y + (npc.height / 2)) / 16f), redLight, greenLight, 0f);
if (CalamityConfig.Instance.BossesStopWeather)
if (CalamityServerConfig.Instance.BossesStopWeather)
CalamityMod.StopRain();
else if (!Main.raining && !BossRushEvent.BossRushActive)
CalamityUtils.StartRain();
+11 -11
View File
@@ -2233,7 +2233,7 @@ namespace CalamityMod.NPCs
if ((npc.boss && npc.type != NPCID.MartianSaucerCore) || CalamityLists.bossHPScaleList.Contains(npc.type))
{
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
npc.lifeMax += (int)Math.Round(npc.lifeMax * HPBoost);
}
}
@@ -2437,7 +2437,7 @@ namespace CalamityMod.NPCs
}
// Reduce mech boss HP and damage depending on the new ore progression changes
if (CalamityConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
if (CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
{
if (!NPC.downedMechBossAny)
{
@@ -3096,7 +3096,7 @@ namespace CalamityMod.NPCs
Texture2D npcTexture = texture ?? TextureAssets.Npc[npc.type].Value;
Vector2 screenOffset = npc.IsABestiaryIconDummy ? Vector2.Zero : Main.screenPosition;
int afterimageCounter = 1;
while (afterimageCounter < NPCID.Sets.TrailCacheLength[npc.type] && CalamityConfig.Instance.Afterimages)
while (afterimageCounter < NPCID.Sets.TrailCacheLength[npc.type] && CalamityClientConfig.Instance.Afterimages)
{
Color colorToDraw = Color.Lerp(drawColor, endingColor, afterimageCounter / (float)NPCID.Sets.TrailCacheLength[npc.type]);
colorToDraw *= afterimageCounter / (float)NPCID.Sets.TrailCacheLength[npc.type];
@@ -6017,12 +6017,12 @@ namespace CalamityMod.NPCs
spawnRate = (int)(spawnRate * 1.4);
maxSpawns = (int)(maxSpawns * 0.4f);
}
if (player.Calamity().zen || (CalamityConfig.Instance.ForceTownSafety && player.townNPCs > 1f && Main.expertMode))
if (player.Calamity().zen || (CalamityServerConfig.Instance.ForceTownSafety && player.townNPCs > 1f && Main.expertMode))
{
spawnRate = (int)(spawnRate * 2.5);
maxSpawns = (int)(maxSpawns * 0.3f);
}
if (player.Calamity().isNearbyBoss && CalamityConfig.Instance.BossZen)
if (player.Calamity().isNearbyBoss && CalamityServerConfig.Instance.BossZen)
{
spawnRate *= 5;
maxSpawns = (int)(maxSpawns * 0.001f);
@@ -6589,7 +6589,7 @@ namespace CalamityMod.NPCs
{
if (npc.type != NPCID.BrainofCthulhu && (npc.type != NPCID.DukeFishron || npc.ai[0] <= 9f) && npc.active)
{
if (CalamityConfig.Instance.DebuffDisplay && (npc.boss || BossHealthBarManager.MinibossHPBarList.Contains(npc.type) || BossHealthBarManager.OneToMany.ContainsKey(npc.type) || CalamityLists.needsDebuffIconDisplayList.Contains(npc.type)))
if (CalamityClientConfig.Instance.DebuffDisplay && (npc.boss || BossHealthBarManager.MinibossHPBarList.Contains(npc.type) || BossHealthBarManager.OneToMany.ContainsKey(npc.type) || CalamityLists.needsDebuffIconDisplayList.Contains(npc.type)))
{
List<Texture2D> currentDebuffs = new List<Texture2D>() { };
@@ -7115,7 +7115,7 @@ namespace CalamityMod.NPCs
}
}
Texture2D glowTexture = CalamityConfig.Instance.NewVanillaTextures ? CalamityMod.DestroyerGlowmasks[0].Value : TextureAssets.Dest[0].Value;
Texture2D glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? CalamityMod.DestroyerGlowmasks[0].Value : TextureAssets.Dest[0].Value;
switch (npc.type)
{
default:
@@ -7123,11 +7123,11 @@ namespace CalamityMod.NPCs
break;
case NPCID.TheDestroyerBody:
glowTexture = CalamityConfig.Instance.NewVanillaTextures ? CalamityMod.DestroyerGlowmasks[1].Value : TextureAssets.Dest[1].Value;
glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? CalamityMod.DestroyerGlowmasks[1].Value : TextureAssets.Dest[1].Value;
break;
case NPCID.TheDestroyerTail:
glowTexture = CalamityConfig.Instance.NewVanillaTextures ? CalamityMod.DestroyerGlowmasks[2].Value : TextureAssets.Dest[2].Value;
glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? CalamityMod.DestroyerGlowmasks[2].Value : TextureAssets.Dest[2].Value;
break;
}
@@ -7429,7 +7429,7 @@ namespace CalamityMod.NPCs
float eyeTelegraphGateValue = WallOfFleshAI.LaserShootGateValue - WallOfFleshAI.LaserShootTelegraphTime;
if (npc.localAI[1] > eyeTelegraphGateValue || npc.localAI[2] > 0f || enraged)
{
Texture2D glowTexture = CalamityConfig.Instance.NewVanillaTextures ? CalamityMod.WallOfFleshEyeGlowmask.Value : TextureAssets.Npc[npc.type].Value;
Texture2D glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? CalamityMod.WallOfFleshEyeGlowmask.Value : TextureAssets.Npc[npc.type].Value;
Vector2 halfSize = npc.frame.Size() / 2;
SpriteEffects spriteEffects = SpriteEffects.None;
if (npc.spriteDirection == 1)
@@ -7581,7 +7581,7 @@ namespace CalamityMod.NPCs
float telegraphScalar = MathHelper.Clamp((Math.Abs(PlanteraAI.StopChargeGateValue) - telegraphTimer) / Math.Abs(PlanteraAI.StopChargeGateValue), 0f, 1f);
Color telegraphColor = Color.Lerp(originalColor, newColor, telegraphScalar);
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
int afterimageAmount = 10;
int afterImageIncrement = 2;
+4 -4
View File
@@ -1856,7 +1856,7 @@ DukeEditFailed:
if (!Main.hardMode)
{
// Increase altar count to allow natural mech boss spawning.
if (CalamityConfig.Instance.EarlyHardmodeProgressionRework)
if (CalamityServerConfig.Instance.EarlyHardmodeProgressionRework)
WorldGen.altarCount++;
string key2 = "Mods.CalamityMod.Status.Progression.UglyBossText";
@@ -1880,7 +1880,7 @@ DukeEditFailed:
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<THIEF>() }, NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
if (!NPC.downedMechBoss1 && CalamityConfig.Instance.EarlyHardmodeProgressionRework)
if (!NPC.downedMechBoss1 && CalamityServerConfig.Instance.EarlyHardmodeProgressionRework)
SpawnMechBossHardmodeOres();
break;
@@ -1892,7 +1892,7 @@ DukeEditFailed:
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<THIEF>() }, !NPC.downedMechBoss1 || NPC.downedMechBoss2 || !NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
if (!NPC.downedMechBoss2 && CalamityConfig.Instance.EarlyHardmodeProgressionRework)
if (!NPC.downedMechBoss2 && CalamityServerConfig.Instance.EarlyHardmodeProgressionRework)
SpawnMechBossHardmodeOres();
}
break;
@@ -1902,7 +1902,7 @@ DukeEditFailed:
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<THIEF>() }, !NPC.downedMechBoss1 || !NPC.downedMechBoss2 || NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
if (!NPC.downedMechBoss3 && CalamityConfig.Instance.EarlyHardmodeProgressionRework)
if (!NPC.downedMechBoss3 && CalamityServerConfig.Instance.EarlyHardmodeProgressionRework)
SpawnMechBossHardmodeOres();
break;
+1 -1
View File
@@ -764,7 +764,7 @@ namespace CalamityMod.NPCs
public void TownNPCAlertSystem(NPC npc, Mod mod, SpriteBatch spriteBatch)
{
if (CalamityConfig.Instance.ShopNewAlert && npc.townNPC)
if (CalamityClientConfig.Instance.ShopNewAlert && npc.townNPC)
{
for (int i = 0; i < npcAlertList.Count; i++)
{
+3 -3
View File
@@ -67,7 +67,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
global.DR = 0.5f;
NPC.LifeMaxNERB(65000, 78000, 72000);
NPC.value = Item.buyPrice(2, 0, 0, 0);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -162,7 +162,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
Vector2 halfSizeTexture = new Vector2((float)(TextureAssets.Npc[NPC.type].Value.Width / 2), (float)(TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2));
int afterimageAmt = 7;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
@@ -185,7 +185,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
texture2D15 = GlowTexture.Value;
Color cyanLerp = Color.Lerp(Color.White, Color.Cyan, 0.5f);
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int j = 1; j < afterimageAmt; j++)
{
+3 -3
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
NPC.width = NPC.height = HitboxSize;
NPC.defense = 50;
NPC.lifeMax = BossRushEvent.BossRushActive ? MaxBossRushHP : MaxHP;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
NPC.Opacity = 0f;
@@ -230,7 +230,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
drawPos -= new Vector2(mainTexture.Width, mainTexture.Height / Main.npcFrameCount[NPC.type]) * NPC.scale / 2f;
drawPos += drawOrigin * NPC.scale + new Vector2(0f, NPC.gfxOffY);
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < trailCount; i += 2)
{
@@ -253,7 +253,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
Texture2D glowTexture = GlowTexture.Value;
Color glowColor = Color.Lerp(Color.White, Color.Fuchsia, 0.5f) * NPC.Opacity;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < trailCount; i++)
{
+1 -1
View File
@@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.Crabulon
if (Main.getGoodWorld)
NPC.lifeMax *= 2;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
AIType = -1;
NPC.knockBackResist = 0.5f;
+1 -1
View File
@@ -74,7 +74,7 @@ namespace CalamityMod.NPCs.Crabulon
NPC.height = 196;
NPC.defense = 8;
NPC.LifeMaxNERB(3700, 4400, 680000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+2 -2
View File
@@ -254,7 +254,7 @@ namespace CalamityMod.NPCs.Crags
Vector2 halfSizeTexture = new Vector2((float)(texture.Width / 2), (float)(texture.Height / 2));
int afterimageAmt = 5;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
@@ -277,7 +277,7 @@ namespace CalamityMod.NPCs.Crags
texture = GlowTexture.Value;
Color redGlow = Color.Lerp(Color.White, Color.Red, 0.5f);
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int j = 1; j < afterimageAmt; j++)
{
+2 -2
View File
@@ -102,7 +102,7 @@ namespace CalamityMod.NPCs.Cryogen
NPC.defense = 15;
NPC.DR_NERD(0.3f);
NPC.LifeMaxNERB(40000, 48000, 300000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -263,7 +263,7 @@ namespace CalamityMod.NPCs.Cryogen
NPC.localAI[1] -= 1f;
}
if (CalamityConfig.Instance.BossesStopWeather)
if (CalamityServerConfig.Instance.BossesStopWeather)
CalamityMod.StopRain();
else if (!Main.raining && !BossRushEvent.BossRushActive)
CalamityUtils.StartRain();
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.NPCs.Cryogen
{
NPC.lifeMax = 10000;
}
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.Opacity = 0f;
NPC.HitSound = Cryogen.HitSound;
+1 -1
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax = 4800;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax = 4000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -66,7 +66,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax = 4800;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -58,7 +58,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax = 4000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax = 4800;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
NPC.lifeMax = 4000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (Main.getGoodWorld)
NPC.lifeMax *= 4;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -94,7 +94,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (Main.getGoodWorld)
NPC.lifeMax *= 4;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (Main.getGoodWorld)
NPC.lifeMax *= 4;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.DevourerofGods
global.DR = 0.5f;
global.unbreakableDR = true;
NPC.lifeMax = 50000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.height = 76;
NPC.defense = 40;
NPC.lifeMax = 50000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.height = 50;
NPC.defense = 70;
NPC.lifeMax = 50000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -77,7 +77,7 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.chaseable = false;
}
NPC.LifeMaxNERB(887500, 1065000, 1500000); // Phase 1 is 355000, Phase 2 is 532500
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+2 -2
View File
@@ -203,7 +203,7 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.height = 104;
NPC.defense = 50;
NPC.LifeMaxNERB(887500, 1065000, 1500000); // Phase 1 is 355000, Phase 2 is 532500
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.takenDamageMultiplier = 1.1f;
NPC.aiStyle = -1;
@@ -353,7 +353,7 @@ namespace CalamityMod.NPCs.DevourerofGods
CalamityGlobalNPC.DoGP2 = -1;
// Stop rain
if (CalamityConfig.Instance.BossesStopWeather)
if (CalamityServerConfig.Instance.BossesStopWeather)
CalamityMod.StopRain();
// Get a target (time is checked in the second check to ensure a new target isn't being set constantly)
+1 -1
View File
@@ -74,7 +74,7 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.height = 66;
NPC.defense = 50;
NPC.LifeMaxNERB(887500, 1065000, 1500000); // Phase 1 is 355000, Phase 2 is 532500
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+3 -3
View File
@@ -154,7 +154,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
NPC.defense = 100;
NPC.DR_NERD(0.25f);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -1528,7 +1528,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
// This is created to allow easy duplication of them when drawing the charge.
void drawInstance(Vector2 drawOffset, Color baseColor)
{
if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
if (CalamityClientConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
{
for (int i = 1; i < numAfterimages; i += 2)
{
@@ -1599,7 +1599,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
}
texture = GlowTexture.Value;
if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
if (CalamityClientConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
{
for (int i = 1; i < numAfterimages; i += 2)
{
+3 -3
View File
@@ -225,7 +225,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.defense = 100;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -1241,7 +1241,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
Vector2 vector = new Vector2(NPC.width / 2, NPC.height / 2);
int numAfterimages = 5;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
@@ -1261,7 +1261,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
texture = GlowTexture.Value;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
+3 -3
View File
@@ -93,7 +93,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.defense = 100;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -551,7 +551,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
Color afterimageBaseColor = Main.npc[(int)NPC.ai[2]].localAI[1] == (float)AresBody.Enraged.Yes ? Color.Red : Color.White;
int numAfterimages = 5;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
@@ -592,7 +592,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
Texture2D glowTexture = GlowTexture.Value;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
+3 -3
View File
@@ -96,7 +96,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.defense = 100;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -599,7 +599,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
Color afterimageBaseColor = Main.npc[(int)NPC.ai[2]].localAI[1] == (float)AresBody.Enraged.Yes ? Color.Red : Color.White;
int numAfterimages = 5;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
@@ -638,7 +638,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
Texture2D glowTexture = GlowTexture.Value;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
+3 -3
View File
@@ -90,7 +90,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.defense = 100;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -550,7 +550,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
Color afterimageBaseColor = Main.npc[(int)NPC.ai[2]].localAI[1] == (float)AresBody.Enraged.Yes ? Color.Red : Color.White;
int numAfterimages = 5;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
@@ -590,7 +590,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
Texture2D glowTexture = GlowTexture.Value;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
+3 -3
View File
@@ -91,7 +91,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.defense = 100;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -545,7 +545,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
Color afterimageBaseColor = Main.npc[(int)NPC.ai[2]].localAI[1] == (float)AresBody.Enraged.Yes ? Color.Red : Color.White;
int numAfterimages = 5;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
@@ -584,7 +584,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
Texture2D glowTexture = GlowTexture.Value;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < numAfterimages; i += 2)
{
+3 -3
View File
@@ -187,7 +187,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
NPC.defense = 100;
NPC.DR_NERD(0.25f);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -1423,7 +1423,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
// This is created to allow easy duplication of them when drawing the charge.
void drawInstance(Vector2 drawOffset, Color baseColor)
{
if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
if (CalamityClientConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
{
for (int i = 1; i < numAfterimages; i += 2)
{
@@ -1494,7 +1494,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
}
texture = GlowTexture.Value;
if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
if (CalamityClientConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
{
for (int i = 1; i < numAfterimages; i += 2)
{
+1 -1
View File
@@ -75,7 +75,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
NPC.DR_NERD(0.9999f);
NPC.Calamity().unbreakableDR = true;
NPC.LifeMaxNERB(960000, 1150000, 600000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -74,7 +74,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
NPC.DR_NERD(0.9999f);
NPC.Calamity().unbreakableDR = true;
NPC.LifeMaxNERB(960000, 1150000, 600000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -174,7 +174,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
NPC.DR_NERD(0.9999f);
NPC.Calamity().unbreakableDR = true;
NPC.LifeMaxNERB(960000, 1150000, 600000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -74,7 +74,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
NPC.DR_NERD(0.9999f);
NPC.Calamity().unbreakableDR = true;
NPC.LifeMaxNERB(960000, 1150000, 600000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -609,7 +609,7 @@ namespace CalamityMod.NPCs.GreatSandShark
int eightConst = 8;
int afterimageInc = 2;
int afterimageCounter = 1;
while (((afterimageInc > 0 && afterimageCounter < eightConst) || (afterimageInc < 0 && afterimageCounter > eightConst)) && CalamityConfig.Instance.Afterimages)
while (((afterimageInc > 0 && afterimageCounter < eightConst) || (afterimageInc < 0 && afterimageCounter > eightConst)) && CalamityClientConfig.Instance.Afterimages)
{
Color alphaAfterimageColor = NPC.GetAlpha(extraAfterimageColor);
{
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.HiveMind
if (Main.getGoodWorld)
NPC.lifeMax *= 4;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
if ((CalamityWorld.LegendaryMode && CalamityWorld.revenge))
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.HiveMind
if (Main.getGoodWorld)
NPC.lifeMax *= 4;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.NPCs.HiveMind
if (Main.getGoodWorld)
NPC.lifeMax *= 2;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0.9f;
+1 -1
View File
@@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.HiveMind
if (Main.getGoodWorld)
NPC.lifeMax *= 2;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0.9f;
+2 -2
View File
@@ -121,7 +121,7 @@ namespace CalamityMod.NPCs.HiveMind
NPC.height = 122;
NPC.defense = 8;
NPC.LifeMaxNERB(7700, 9200, 350000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
@@ -315,7 +315,7 @@ namespace CalamityMod.NPCs.HiveMind
Color afterimageBaseColor = Color.White;
int numAfterimages = 5;
if (CalamityConfig.Instance.Afterimages && state != 0)
if (CalamityClientConfig.Instance.Afterimages && state != 0)
{
for (int i = 1; i < numAfterimages; i += 2)
{
+1 -1
View File
@@ -66,7 +66,7 @@ namespace CalamityMod.NPCs.Leviathan
NPC.defense = 20;
NPC.DR_NERD(0.2f);
NPC.LifeMaxNERB(35000, 42000, 260000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
NPC.aiStyle = -1;
+1 -1
View File
@@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.Leviathan
NPC.defense = 10;
NPC.DR_NERD(0.5f);
NPC.lifeMax = BossRushEvent.BossRushActive ? 1000 : 650;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.alpha = 255;
NPC.HitSound = SoundID.NPCHit5;
+1 -1
View File
@@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.Leviathan
NPC.height = 50;
NPC.defense = 14;
NPC.lifeMax = BossRushEvent.BossRushActive ? 10000 : 600;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0.2f;
NPC.noGravity = true;
+1 -1
View File
@@ -66,7 +66,7 @@ namespace CalamityMod.NPCs.Leviathan
NPC.defense = 40;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(60000, 72000, 600000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
NPC.aiStyle = -1;
+2 -2
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.defense = 5;
NPC.lifeMax = 96;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
@@ -259,7 +259,7 @@ namespace CalamityMod.NPCs.NormalNPCs
float telegraphScalar = MathHelper.Clamp((NPC.ai[0] - ChargeTelegraphGateValue) / ChargeTelegraphGateValue, 0f, 1f);
Color telegraphColor = Color.Lerp(originalColor, newColor, telegraphScalar);
if (CalamityConfig.Instance.Afterimages && NPC.ai[1] > 0f)
if (CalamityClientConfig.Instance.Afterimages && NPC.ai[1] > 0f)
{
int afterimageAmount = 10;
int afterImageIncrement = 2;
+1 -1
View File
@@ -342,7 +342,7 @@ namespace CalamityMod.NPCs.NormalNPCs
(MathHelper.Clamp(AITimer, 0f, TimeBeforeDash) / TimeBeforeDash);
float AfterimageFade = MathHelper.Lerp(0f, 1f, interpolant);
if (CurrentState == IceClasperAIState.Dashing && CalamityConfig.Instance.Afterimages)
if (CurrentState == IceClasperAIState.Dashing && CalamityClientConfig.Instance.Afterimages)
{
for (int i = 0; i < NPC.oldPos.Length; i++)
{
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.DR_NERD(0.15f);
NPC.lifeMax = 240;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0.7f;
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.DR_NERD(0.1f);
NPC.lifeMax = 120;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0.8f;
+1 -1
View File
@@ -35,7 +35,7 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.DR_NERD(0.05f);
NPC.lifeMax = 120;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0.9f;
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.defense = 20;
NPC.lifeMax = 500;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0.4f;
+4 -4
View File
@@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.defense = 24;
NPC.lifeMax = 28000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
@@ -399,7 +399,7 @@ namespace CalamityMod.NPCs.NormalNPCs
int damage = NPC.GetProjectileDamage(type);
// Reduce mech boss projectile damage depending on the new ore progression changes
if (CalamityConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
if (CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
{
double firstMechMultiplier = CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert;
double secondMechMultiplier = CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert;
@@ -664,7 +664,7 @@ namespace CalamityMod.NPCs.NormalNPCs
int damage = NPC.GetProjectileDamage(type);
// Reduce mech boss projectile damage depending on the new ore progression changes
if (CalamityConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
if (CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
{
double firstMechMultiplier = CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert;
double secondMechMultiplier = CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert;
@@ -732,7 +732,7 @@ namespace CalamityMod.NPCs.NormalNPCs
int damage = NPC.GetProjectileDamage(type);
// Reduce mech boss projectile damage depending on the new ore progression changes
if (CalamityConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
if (CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
{
double firstMechMultiplier = CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert;
double secondMechMultiplier = CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert;
+1 -1
View File
@@ -129,7 +129,7 @@ namespace CalamityMod.NPCs.NormalNPCs
Vector2 halfSizeTexture = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2);
int afterimageAmt = NPC.ai[0] == 2.1f ? 7 : 0;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
+4 -4
View File
@@ -73,7 +73,7 @@ namespace CalamityMod.NPCs.OldDuke
NPC.defense = 90;
NPC.DR_NERD(0.5f, null, null, null, true);
NPC.LifeMaxNERB(500000, 600000, 400000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;
NPC.noTileCollide = true;
@@ -258,7 +258,7 @@ namespace CalamityMod.NPCs.OldDuke
color = drawColor;
}
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += afterimageIncrement)
{
@@ -309,7 +309,7 @@ namespace CalamityMod.NPCs.OldDuke
afterimageScale = 20f;
}
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int j = 0; j < secondAfterimageAmt; j++)
{
@@ -365,7 +365,7 @@ namespace CalamityMod.NPCs.OldDuke
yellowLerpColor *= ai2Opacity;
}
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int k = 1; k < afterimageAmt; k += afterimageIncrement)
{
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.OldDuke
{
NPC.lifeMax = 16000;
}
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0.2f;
NPC.HitSound = SoundID.NPCHit1;
+2 -2
View File
@@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.OldDuke
{
NPC.lifeMax = 10000;
}
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
@@ -245,7 +245,7 @@ namespace CalamityMod.NPCs.OldDuke
Vector2 halfSizeTexture = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2);
int afterimageAmt = 10;
if (CalamityConfig.Instance.Afterimages)
if (CalamityClientConfig.Instance.Afterimages)
{
for (int i = 1; i < afterimageAmt; i += 2)
{
+1 -1
View File
@@ -47,7 +47,7 @@ namespace CalamityMod.NPCs.Perforator
if (Main.zenithWorld)
NPC.lifeMax *= 4;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.Perforator
if (Main.zenithWorld)
NPC.lifeMax *= 4;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
+1 -1
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.Perforator
if (Main.zenithWorld)
NPC.lifeMax *= 4;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
AIType = -1;
Loaded 100 of 214 files, more files were not shown because too many files have changed in this diff. Show more