split client and server configs
rebased by Ozzatron 15AUG2024 to fix conflicts
This commit is contained in:
1 parent
d6d44e24aa
commit
ba50bb246f
132 files changed
+572
-544
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
+10
-10
@@ -2287,13 +2287,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
|
||||
@@ -2729,7 +2729,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;
|
||||
}
|
||||
@@ -3401,14 +3401,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;
|
||||
@@ -3671,7 +3671,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region PostUpdateBuffs
|
||||
public override void PostUpdateBuffs()
|
||||
{
|
||||
if (Player.whoAmI == Main.myPlayer && CalamityConfig.Instance.VanillaCooldownDisplay)
|
||||
if (Player.whoAmI == Main.myPlayer && CalamityClientConfig.Instance.VanillaCooldownDisplay)
|
||||
{
|
||||
if (Player.whoAmI == Main.myPlayer && Player.potionDelay != 0)
|
||||
potionSick = true;
|
||||
@@ -4942,11 +4942,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();
|
||||
|
||||
bool showWikiMessage = CalamityConfig.Instance.WikiStatusMessage;
|
||||
bool showVCMMMessage = CalamityConfig.Instance.VCMMStatusMessage && !CalamityMod.Instance.VCMMAvailable;
|
||||
bool showWikiMessage = CalamityClientConfig.Instance.WikiStatusMessage;
|
||||
bool showVCMMMessage = CalamityClientConfig.Instance.VCMMStatusMessage && !CalamityMod.Instance.VCMMAvailable;
|
||||
bool showStartupMessages = showWikiMessage || showVCMMMessage;
|
||||
|
||||
// Set a random delay between 12 and 20 seconds. When this delay hits zero, startup messages display
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -86,7 +86,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
|
||||
@@ -1001,7 +1001,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)
|
||||
{
|
||||
@@ -1124,7 +1124,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;
|
||||
@@ -1154,7 +1154,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// Increase Rope climb velocities, if enabled
|
||||
if (CalamityConfig.Instance.FasterRopeClimbSpeed)
|
||||
if (CalamityServerConfig.Instance.FasterRopeClimbSpeed)
|
||||
{
|
||||
if (Player.pulley)
|
||||
{
|
||||
@@ -2852,7 +2852,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
|
||||
@@ -4299,13 +4299,13 @@ 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");
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.VCMMStatusMessage && !CalamityMod.Instance.VCMMAvailable)
|
||||
if (CalamityClientConfig.Instance.VCMMStatusMessage && !CalamityMod.Instance.VCMMAvailable)
|
||||
{
|
||||
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.VCMMStatus");
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
+86
-59
@@ -5,25 +5,22 @@ 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;
|
||||
public static CalamityClientConfig 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 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 +45,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)]
|
||||
@@ -106,6 +99,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)]
|
||||
@@ -130,10 +150,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)]
|
||||
@@ -147,8 +163,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)]
|
||||
@@ -162,10 +198,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)]
|
||||
@@ -206,7 +238,37 @@ 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;
|
||||
}
|
||||
|
||||
// Clamps values that would cause ugly problems if loaded directly without sanitization.
|
||||
[OnDeserialized]
|
||||
internal void ClampValues(StreamingContext context)
|
||||
{
|
||||
BossHealthBoost = Utils.Clamp(BossHealthBoost, MinBossHealthBoost, MaxBossHealthBoost);
|
||||
}
|
||||
|
||||
[Header("Gameplay")]
|
||||
#region General Gameplay Changes
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
public bool RemoveReforgeRNG { get; set; }
|
||||
@@ -257,6 +319,10 @@ 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
|
||||
@@ -306,44 +372,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
@@ -503,7 +503,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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -345,7 +345,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();
|
||||
});
|
||||
|
||||
@@ -361,7 +361,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;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,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
|
||||
|
||||
@@ -68,7 +68,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);
|
||||
|
||||
@@ -1802,7 +1802,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.
|
||||
|
||||
@@ -488,7 +488,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");
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
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
|
||||
UI: UI Changes
|
||||
BaseBoosts: Base Stat Boosts
|
||||
MusicEvents: Music Events
|
||||
MeterPositions: Meter Positions
|
||||
MusicEvents: Music Events Header
|
||||
}
|
||||
|
||||
AdrenalineMeterPosX: {
|
||||
@@ -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,37 +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.
|
||||
'''
|
||||
}
|
||||
|
||||
FasterRopeClimbSpeed: {
|
||||
Label: "[i:Rope] Increase Rope Climb Speed"
|
||||
Tooltip:
|
||||
'''
|
||||
Increases the player's rope climb speed substantially by increasing acceleration and deceleration while on a rope.
|
||||
Calamity is balanced around this setting being enabled.
|
||||
'''
|
||||
}
|
||||
|
||||
FasterFallHotkey: {
|
||||
Label: "[i:CalamityMod/BallAndChain] Enable Fast Falling"
|
||||
Tooltip:
|
||||
@@ -177,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:CalamityMod/DrewsWings] Display Flight Bar"
|
||||
Tooltip:
|
||||
@@ -223,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 - "Silence before the storms", after Calamitas Clone has been defeated.
|
||||
@@ -265,24 +153,6 @@ CalamityConfig: {
|
||||
'''
|
||||
}
|
||||
|
||||
MusicModReminderMessage: {
|
||||
Label: "[i:MusicBoxMartians] Music Mod Reminder Message"
|
||||
Tooltip:
|
||||
'''
|
||||
Enable or disable the status message which reminds users to install the Calamity Music Mod.
|
||||
This message plays on world entry.
|
||||
'''
|
||||
}
|
||||
|
||||
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:
|
||||
@@ -321,20 +191,6 @@ CalamityConfig: {
|
||||
'''
|
||||
}
|
||||
|
||||
RemoveLavaDropsFromLavaSlimes: {
|
||||
Label: "[i:LavaWaders] Remove Lava Drops From Lava Slimes"
|
||||
Tooltip: When enabled, Lava Slimes will be replaced with a new Lava Slime that no longer drops lava.
|
||||
}
|
||||
|
||||
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:
|
||||
@@ -442,6 +298,170 @@ CalamityConfig: {
|
||||
'''
|
||||
}
|
||||
|
||||
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.
|
||||
'''
|
||||
}
|
||||
|
||||
VCMMStatusMessage: {
|
||||
Label: "[i:MusicBoxMartians] VCMM Status Message"
|
||||
Tooltip: Enable or disable the status message promoting the Vanilla Calamity Music Mod that plays on world entry.
|
||||
}
|
||||
|
||||
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.
|
||||
'''
|
||||
}
|
||||
|
||||
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.
|
||||
'''
|
||||
}
|
||||
|
||||
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.
|
||||
}
|
||||
|
||||
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.
|
||||
'''
|
||||
}
|
||||
|
||||
FasterRopeClimbSpeed: {
|
||||
Label: "[i:Rope] Increase Rope Climb Speed"
|
||||
Tooltip:
|
||||
'''
|
||||
Increases the player's rope climb speed substantially by increasing acceleration and deceleration while on a rope.
|
||||
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.
|
||||
'''
|
||||
}
|
||||
|
||||
RemoveLavaDropsFromLavaSlimes: {
|
||||
Label: "[i:LavaWaders] Remove Lava Drops From Lava Slimes"
|
||||
Tooltip: When enabled, Lava Slimes will be replaced with a new Lava Slime that no longer drops lava.
|
||||
}
|
||||
|
||||
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.
|
||||
'''
|
||||
}
|
||||
|
||||
PotionSelling: {
|
||||
Label: "[i:SpelunkerPotion] Town NPC Potion Selling"
|
||||
Tooltip:
|
||||
@@ -477,23 +497,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.
|
||||
'''
|
||||
}
|
||||
|
||||
VCMMStatusMessage: {
|
||||
Label: "[i:MusicBoxMartians] VCMM Status Message"
|
||||
Tooltip: Enable or disable the status message promoting the Vanilla Calamity Music Mod that plays on world entry.
|
||||
}
|
||||
|
||||
WikiStatusMessage: {
|
||||
Label: "[i:Book] Wiki Status Message"
|
||||
Tooltip: Enable or disable the status message promoting the Official Calamity Wiki that plays on world entry.
|
||||
}
|
||||
}
|
||||
@@ -2180,7 +2180,7 @@ namespace CalamityMod
|
||||
case "GetBossHealthBoost":
|
||||
case "BossHealthMultiplier":
|
||||
case "GetBossHealthMultiplier":
|
||||
return CalamityConfig.Instance.BossHealthBoost;
|
||||
return CalamityServerConfig.Instance.BossHealthBoost;
|
||||
|
||||
case "HasPermanentPowerup":
|
||||
case "GetPermanentPowerup":
|
||||
|
||||
@@ -319,7 +319,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)
|
||||
{
|
||||
@@ -349,7 +349,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++)
|
||||
{
|
||||
|
||||
@@ -244,7 +244,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)
|
||||
{
|
||||
@@ -267,7 +267,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++)
|
||||
{
|
||||
|
||||
@@ -280,7 +280,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
color = altColor;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += afterimageIncrement)
|
||||
{
|
||||
@@ -333,7 +333,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 0; j < extraAfterimageAmt; j++)
|
||||
{
|
||||
@@ -375,7 +375,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
glowmaskColor *= glowmaskDampener;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int k = 1; k < afterimageAmt; k += afterimageIncrement)
|
||||
{
|
||||
|
||||
@@ -104,7 +104,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)
|
||||
{
|
||||
|
||||
@@ -149,7 +149,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)
|
||||
{
|
||||
@@ -176,7 +176,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
color = Color.CornflowerBlue;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i++)
|
||||
{
|
||||
|
||||
@@ -122,7 +122,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)
|
||||
{
|
||||
@@ -145,7 +145,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++)
|
||||
{
|
||||
|
||||
@@ -116,7 +116,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)
|
||||
{
|
||||
@@ -139,7 +139,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++)
|
||||
{
|
||||
|
||||
@@ -194,7 +194,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)
|
||||
{
|
||||
@@ -217,7 +217,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++)
|
||||
{
|
||||
|
||||
@@ -391,7 +391,7 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
// Destroy all Dark Energies if their total HP is below 20%
|
||||
int darkEnergyMaxHP = bossRush ? DarkEnergy.MaxBossRushHP : DarkEnergy.MaxHP;
|
||||
//These are still needed so that CV Dark energy despawn works properly
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
|
||||
darkEnergyMaxHP += (int)(darkEnergyMaxHP * HPBoost);
|
||||
|
||||
int totalDarkEnergiesSpawned = darkEnergyAmt * 3 + 2;
|
||||
|
||||
@@ -69,7 +69,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();
|
||||
|
||||
+13
-13
@@ -2324,7 +2324,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);
|
||||
}
|
||||
|
||||
@@ -2527,7 +2527,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)
|
||||
{
|
||||
@@ -3227,7 +3227,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];
|
||||
@@ -6301,12 +6301,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);
|
||||
@@ -6424,7 +6424,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Replace vanilla Lava Slimes with Calamity Lava Slimes to avoid annoying lava drops
|
||||
if (spawnInfo.Player.ZoneUnderworldHeight && !calamityBiomeZone && CalamityConfig.Instance.RemoveLavaDropsFromLavaSlimes && Main.expertMode)
|
||||
if (spawnInfo.Player.ZoneUnderworldHeight && !calamityBiomeZone && CalamityServerConfig.Instance.RemoveLavaDropsFromLavaSlimes && Main.expertMode)
|
||||
{
|
||||
pool.Add(NPCType<LavaSlimeNoLavaDrop>(), SpawnCondition.Underworld.Chance);
|
||||
pool.Remove(NPCID.LavaSlime);
|
||||
@@ -6943,7 +6943,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>() { };
|
||||
|
||||
@@ -7459,7 +7459,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:
|
||||
@@ -7467,11 +7467,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;
|
||||
}
|
||||
|
||||
@@ -7481,7 +7481,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Laser telegraph
|
||||
else if (npc.type == NPCID.Probe && CalamityConfig.Instance.NewVanillaTextures)
|
||||
else if (npc.type == NPCID.Probe && CalamityClientConfig.Instance.NewVanillaTextures)
|
||||
{
|
||||
float eyeTelegraphGateValue = (NPC.IsMechQueenUp ? DestroyerAI.ProbeLaserGateValue_Mechdusa : BossRushEvent.BossRushActive ? DestroyerAI.ProbeLaserGateValue_BossRush : revenge ? DestroyerAI.ProbeLaserGateValue_Rev : DestroyerAI.ProbeLaserGateValue) - DestroyerAI.ProbeLaserTelegraphTime;
|
||||
Texture2D glowTexture = CalamityMod.ProbeGlowmask.Value;
|
||||
@@ -7795,7 +7795,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)
|
||||
@@ -7947,7 +7947,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;
|
||||
|
||||
@@ -1816,7 +1816,7 @@ DukeEditFailed:
|
||||
if (!Main.hardMode && !BossRushEvent.BossRushActive)
|
||||
{
|
||||
// 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";
|
||||
@@ -1840,7 +1840,7 @@ DukeEditFailed:
|
||||
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3);
|
||||
SetNewBossJustDowned(npc);
|
||||
|
||||
if (!NPC.downedMechBoss1 && CalamityConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
|
||||
if (!NPC.downedMechBoss1 && CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
|
||||
SpawnMechBossHardmodeOres();
|
||||
break;
|
||||
|
||||
@@ -1852,7 +1852,7 @@ DukeEditFailed:
|
||||
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, !NPC.downedMechBoss1 || NPC.downedMechBoss2 || !NPC.downedMechBoss3);
|
||||
SetNewBossJustDowned(npc);
|
||||
|
||||
if (!NPC.downedMechBoss2 && CalamityConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
|
||||
if (!NPC.downedMechBoss2 && CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
|
||||
SpawnMechBossHardmodeOres();
|
||||
}
|
||||
break;
|
||||
@@ -1862,7 +1862,7 @@ DukeEditFailed:
|
||||
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, !NPC.downedMechBoss1 || !NPC.downedMechBoss2 || NPC.downedMechBoss3);
|
||||
SetNewBossJustDowned(npc);
|
||||
|
||||
if (!NPC.downedMechBoss3 && CalamityConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
|
||||
if (!NPC.downedMechBoss3 && CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
|
||||
SpawnMechBossHardmodeOres();
|
||||
break;
|
||||
|
||||
|
||||
@@ -681,7 +681,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++)
|
||||
{
|
||||
|
||||
@@ -164,7 +164,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)
|
||||
{
|
||||
@@ -187,7 +187,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++)
|
||||
{
|
||||
|
||||
@@ -228,7 +228,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)
|
||||
{
|
||||
@@ -251,7 +251,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++)
|
||||
{
|
||||
|
||||
@@ -252,7 +252,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)
|
||||
{
|
||||
@@ -275,7 +275,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++)
|
||||
{
|
||||
|
||||
@@ -263,7 +263,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
NPC.ai[2] = 0f;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.BossesStopWeather)
|
||||
if (CalamityServerConfig.Instance.BossesStopWeather)
|
||||
CalamityMod.StopRain();
|
||||
else if (!Main.raining && !BossRushEvent.BossRushActive)
|
||||
CalamityUtils.StartRain();
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1529,7 +1529,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)
|
||||
{
|
||||
@@ -1600,7 +1600,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)
|
||||
{
|
||||
|
||||
@@ -1242,7 +1242,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)
|
||||
{
|
||||
@@ -1262,7 +1262,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)
|
||||
{
|
||||
|
||||
@@ -552,7 +552,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)
|
||||
{
|
||||
@@ -593,7 +593,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)
|
||||
{
|
||||
|
||||
@@ -600,7 +600,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)
|
||||
{
|
||||
@@ -639,7 +639,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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
@@ -591,7 +591,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)
|
||||
{
|
||||
|
||||
@@ -546,7 +546,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)
|
||||
{
|
||||
@@ -585,7 +585,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)
|
||||
{
|
||||
|
||||
@@ -1424,7 +1424,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)
|
||||
{
|
||||
@@ -1495,7 +1495,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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
{
|
||||
|
||||
@@ -316,7 +316,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)
|
||||
{
|
||||
|
||||
@@ -264,7 +264,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;
|
||||
|
||||
@@ -382,7 +382,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;
|
||||
@@ -513,7 +513,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;
|
||||
@@ -702,7 +702,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;
|
||||
|
||||
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -418,7 +418,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;
|
||||
@@ -683,7 +683,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;
|
||||
@@ -751,7 +751,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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -259,7 +259,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
color = drawColor;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += afterimageIncrement)
|
||||
{
|
||||
@@ -310,7 +310,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
afterimageScale = 20f;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 0; j < secondAfterimageAmt; j++)
|
||||
{
|
||||
@@ -366,7 +366,7 @@ namespace CalamityMod.NPCs.OldDuke
|
||||
yellowLerpColor *= ai2Opacity;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int k = 1; k < afterimageAmt; k += afterimageIncrement)
|
||||
{
|
||||
|
||||
@@ -243,7 +243,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)
|
||||
{
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
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 = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
texture2D15 = GlowTexture.Value;
|
||||
Color redEyeColor = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
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 = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -95,7 +95,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/PlagueEnemies/PlagueChargerGlow").Value;
|
||||
Color redEyeColor = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -383,7 +383,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
Texture2D texture2D15 = TextureAssets.Npc[NPC.type].Value;
|
||||
Vector2 halfSizeTexture = new Vector2((float)(TextureAssets.Npc[NPC.type].Value.Width / 2), (float)(TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2));
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
if (NPC.ai[0] == 0f && NPC.localAI[0] == 1f)
|
||||
{
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
spriteBatch.Draw(texture, drawLocation + drawOffset, NPC.frame, backAfterimageColor, NPC.rotation, halfSizeTexture, NPC.scale, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -198,7 +198,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
texture = GlowTexture.Value;
|
||||
Color redLerpColor = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -1267,7 +1267,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
Vector2 posOffset = new Vector2(charging ? 175 : 125, 0);
|
||||
int chargeAfterimageAmount = 10;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
if ((NPC.ai[0] == 0f || NPC.ai[0] == 4f) && charging)
|
||||
{
|
||||
@@ -1292,7 +1292,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
|
||||
Color redLerpColor = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
if ((NPC.ai[0] == 0f || NPC.ai[0] == 4f) && charging)
|
||||
{
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
Vector2 halfSizeTexture = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2);
|
||||
int afterimageAmt = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
|
||||
@@ -455,7 +455,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
Color lightRed = new Color(255, 100, 100, 255) * NPC.Opacity;
|
||||
int afterimageAmt = 7;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -490,7 +490,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
|
||||
Color blackWhiteLerp = Color.Lerp(Color.White, c, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -307,7 +307,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
}
|
||||
|
||||
// Stop rain
|
||||
if (CalamityConfig.Instance.BossesStopWeather)
|
||||
if (CalamityServerConfig.Instance.BossesStopWeather)
|
||||
CalamityMod.StopRain();
|
||||
|
||||
// Set time left
|
||||
@@ -1169,7 +1169,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
Vector2 halfSizeTexture = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, 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)
|
||||
{
|
||||
@@ -1213,7 +1213,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
|
||||
Color veinColor = Color.Lerp(Color.White, (NPC.ai[2] >= changeColorGateValue || NPC.Calamity().newAI[0] > changeColorGateValue) ? Color.Red : Color.Black, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -375,7 +375,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
Vector2 halfSizeTexture = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2);
|
||||
int afterimageAmt = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -401,7 +401,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
if (Main.npc[CalamityGlobalNPC.ghostBoss].Calamity().newAI[0] > changeColorGateValue)
|
||||
cyanLerp2 = Color.Lerp(cyanLerp2, lightRed, MathHelper.Clamp((Main.npc[CalamityGlobalNPC.ghostBoss].Calamity().newAI[0] - changeColorGateValue) / timeToReachFullColor, 0f, 1f));
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -1017,7 +1017,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
if (NPC.ai[0] == 2f)
|
||||
afterimageAmt = 10;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -1055,7 +1055,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
if (colorOverride != null)
|
||||
timeBasedColorLerp = colorOverride.Value;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -737,7 +737,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
if (NPC.ai[0] == 2f)
|
||||
afterimageAmt = 10;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -775,7 +775,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
if (colorOverride != null)
|
||||
timeBasedGlowColor = colorOverride.Value;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -442,7 +442,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
Vector2 halfSizeTexture = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2);
|
||||
int afterimageAmt = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -484,7 +484,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
overrideColor = colorOverride.Value;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
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 = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -141,7 +141,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
texture2D15 = ProfanedGuardianDefender.Texture_Glow.Value;
|
||||
Color yellowLerp = Color.Lerp(Color.White, Color.Yellow, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
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 = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -142,7 +142,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
Color yellowLerp = Color.Lerp(Color.White, Color.Yellow, 0.5f);
|
||||
Color violetLerp = Color.Lerp(Color.White, Color.Violet, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
if (NPC.ai[0] == 2f)
|
||||
afterimageAmt = 10;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -143,7 +143,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
texture2D15 = ProfanedGuardianCommander.Texture_Glow.Value;
|
||||
Color yellowLerpColor = Color.Lerp(Color.White, Color.Yellow, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -632,7 +632,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
NPC.chaseable = normalAttackRate;
|
||||
|
||||
// Prevent lag by stopping rain
|
||||
if (CalamityConfig.Instance.BossesStopWeather)
|
||||
if (CalamityServerConfig.Instance.BossesStopWeather)
|
||||
CalamityMod.StopRain();
|
||||
|
||||
// Set target biome type
|
||||
@@ -2220,7 +2220,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
float Brightness = 0.5f; // Ranges from 0 (full vibrance) to 1 (pure white)
|
||||
int maxAfterimages = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < maxAfterimages; i += 2)
|
||||
{
|
||||
@@ -2295,7 +2295,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
|
||||
Color GlowWingColor = ProvUtils.GetProjectileColor(NPC.GetAlpha(drawColor), true);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < maxAfterimages; j++)
|
||||
{
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace CalamityMod.NPCs.Signus
|
||||
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 = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -154,7 +154,7 @@ namespace CalamityMod.NPCs.Signus
|
||||
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++)
|
||||
{
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace CalamityMod.NPCs.Signus
|
||||
Vector2 halfSizeTexture = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2);
|
||||
int afterimageAmt = 5;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
|
||||
@@ -852,7 +852,7 @@ namespace CalamityMod.NPCs.Signus
|
||||
transparency = (100 - (stealthTimer - 300)) * 0.01f;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -878,7 +878,7 @@ namespace CalamityMod.NPCs.Signus
|
||||
eyeGlowColor = Color.MediumBlue;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -596,7 +596,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
spriteBatch.Draw(pog, NPC.Center - screenPos + new Vector2(0, NPC.gfxOffY), NPC.frame, drawColorAlpha, NPC.rotation, NPC.frame.Size() / 2, NPC.scale, spriteEffects, 0);
|
||||
}
|
||||
if (!Main.zenithWorld)
|
||||
while (((twoConst > 0 && coreID < 8) || (twoConst < 0 && coreID > 8)) && CalamityConfig.Instance.Afterimages)
|
||||
while (((twoConst > 0 && coreID < 8) || (twoConst < 0 && coreID > 8)) && CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
Color colorLightingAlpha = NPC.GetAlpha(colorLightingArea);
|
||||
{
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
bool revenge = CalamityWorld.revenge || bossRush;
|
||||
bool expertMode = Main.expertMode || bossRush;
|
||||
|
||||
if (CalamityConfig.Instance.BossesStopWeather)
|
||||
if (CalamityServerConfig.Instance.BossesStopWeather)
|
||||
CalamityMod.StopRain();
|
||||
else if (!Main.raining && !bossRush)
|
||||
CalamityUtils.StartRain();
|
||||
|
||||
@@ -406,7 +406,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
float colorLerpAmt = 0.5f;
|
||||
int afterimageAmt = 7;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
|
||||
@@ -266,7 +266,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
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 = 2;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
@@ -289,7 +289,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
texture2D15 = GlowTexture.Value;
|
||||
Color redLerp = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int j = 1; j < afterimageAmt; j++)
|
||||
{
|
||||
|
||||
@@ -456,7 +456,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
CalamityNetcode.SyncWorld();
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.BossesStopWeather)
|
||||
if (CalamityServerConfig.Instance.BossesStopWeather)
|
||||
CalamityMod.StopRain();
|
||||
|
||||
bool bossRush = BossRushEvent.BossRushActive;
|
||||
@@ -3632,7 +3632,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
ponyPos -= new Vector2(pony.Width / 2f, pony.Height / 15) * NPC.scale / 2f;
|
||||
ponyPos += ponyOrigin * NPC.scale + new Vector2(-20, NPC.gfxOffY);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages && !(cirrus && NPC.ai[1] == 2f))
|
||||
if (CalamityClientConfig.Instance.Afterimages && !(cirrus && NPC.ai[1] == 2f))
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += 2)
|
||||
{
|
||||
|
||||
@@ -475,7 +475,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
Vector2 origin = NPC.frame.Size() * 0.5f;
|
||||
int afterimageCount = 4;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageCount; i += 2)
|
||||
{
|
||||
@@ -492,7 +492,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
Color primarycolor = Main.zenithWorld ? Color.Blue : Color.Red; // why? because blue fire is awesome!!
|
||||
Color baseGlowmaskColor = NPC.IsABestiaryIconDummy ? Color.White : Color.Lerp(Color.White, primarycolor, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageCount; i++)
|
||||
{
|
||||
|
||||
@@ -511,7 +511,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
Vector2 origin = NPC.frame.Size() * 0.5f;
|
||||
int afterimageCount = 4;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageCount; i += 2)
|
||||
{
|
||||
@@ -527,7 +527,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
texture = GlowTexture.Value;
|
||||
Color baseGlowmaskColor = Color.Lerp(Color.White, Color.Cyan, 0.35f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageCount; i++)
|
||||
{
|
||||
|
||||
@@ -397,7 +397,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -589,7 +589,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
int damage = npc.GetProjectileDamage(projectileType);
|
||||
|
||||
// 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;
|
||||
@@ -1293,7 +1293,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
@@ -1873,7 +1873,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -2056,7 +2056,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
|
||||
@@ -441,7 +441,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -705,7 +705,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -786,7 +786,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -994,7 +994,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -1062,7 +1062,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -1297,7 +1297,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -1344,7 +1344,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -2542,7 +2542,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
@@ -2642,7 +2642,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
|
||||
@@ -309,7 +309,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -448,7 +448,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -639,7 +639,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -733,7 +733,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
int damage = (int)Math.Round(npc.GetProjectileDamage(type) * 0.75);
|
||||
|
||||
// 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;
|
||||
@@ -844,7 +844,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -1268,7 +1268,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -1416,7 +1416,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -1598,7 +1598,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -1798,7 +1798,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -1949,7 +1949,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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;
|
||||
@@ -2203,7 +2203,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
@@ -2344,7 +2344,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
@@ -2524,7 +2524,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
@@ -2615,7 +2615,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
int damage = (int)Math.Round(npc.GetProjectileDamage(type) * 0.75);
|
||||
|
||||
// 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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
@@ -2863,7 +2863,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
@@ -3001,7 +3001,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
@@ -3159,7 +3159,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
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 = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
double secondMechMultiplier = Main.expertMode ? CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : CalamityGlobalNPC.EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
float lifeRatio = NPC.life / (float)NPC.lifeMax;
|
||||
|
||||
// Stop rain
|
||||
if (CalamityConfig.Instance.BossesStopWeather)
|
||||
if (CalamityServerConfig.Instance.BossesStopWeather)
|
||||
CalamityMod.StopRain();
|
||||
|
||||
// Variables
|
||||
@@ -2773,7 +2773,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
else
|
||||
color = drawColor;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 1; i < afterimageAmt; i += afterimageIncrement)
|
||||
{
|
||||
@@ -2822,7 +2822,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
afterimageScale = 20f;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int k = 0; k < additionalAfterimageAmt; k++)
|
||||
{
|
||||
@@ -2899,7 +2899,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
blueGlowColor *= teleportGlowColorScaler;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int l = 1; l < afterimageAmt; l += afterimageIncrement)
|
||||
{
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace CalamityMod.Particles
|
||||
if (Main.gamePaused || Main.netMode == NetmodeID.Server || particles == null)
|
||||
return;
|
||||
|
||||
if (particles.Count >= CalamityConfig.Instance.ParticleLimit && !particle.Important)
|
||||
if (particles.Count >= CalamityClientConfig.Instance.ParticleLimit && !particle.Important)
|
||||
return;
|
||||
|
||||
particles.Add(particle);
|
||||
@@ -239,7 +239,7 @@ namespace CalamityMod.Particles
|
||||
if (Main.dedServ || particles == null)
|
||||
return 0;
|
||||
|
||||
return CalamityConfig.Instance.ParticleLimit - particles.Count();
|
||||
return CalamityClientConfig.Instance.ParticleLimit - particles.Count();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -544,7 +544,7 @@ namespace CalamityMod.Projectiles.BaseProjectiles
|
||||
// By default, maces have afterimages when launched.
|
||||
// This can still be disabled via config or set individually by the projectile.
|
||||
// (Does not use utils due to set trail length conditions)
|
||||
if (CurrentFlailState == FlailState.LaunchingForward && CalamityConfig.Instance.Afterimages && AfterimageLength > 0)
|
||||
if (CurrentFlailState == FlailState.LaunchingForward && CalamityClientConfig.Instance.Afterimages && AfterimageLength > 0)
|
||||
{
|
||||
Texture2D maceTex = TextureAssets.Projectile[Type].Value;
|
||||
Vector2 drawOrigin = new Vector2(maceTex.Width * 0.5f, maceTex.Height * 0.5f);
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Projectile.spriteDirection == -1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldPos.Length; i++)
|
||||
{
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
int frameHeight = texture.Height / Main.projFrames[Projectile.type];
|
||||
int frameY = frameHeight * Projectile.frame;
|
||||
Rectangle rectangle = new Rectangle(0, frameY, texture.Width, frameHeight);
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldPos.Length; i++)
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor);
|
||||
|
||||
return true;
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 drawOrigin = new Vector2(Owner.direction < 0 ? sword.Width : 0f, sword.Height);
|
||||
Vector2 drawOffset = Owner.Center + drawAngle.ToRotationVector2() * 10f - Main.screenPosition;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages && Timer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
if (CalamityClientConfig.Instance.Afterimages && Timer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldRot.Length; ++i)
|
||||
{
|
||||
|
||||
@@ -489,7 +489,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 drawOrigin = new Vector2(flipped ? sword.Width : 0f, sword.Height);
|
||||
Vector2 drawOffset = Owner.Center + drawAngle.ToRotationVector2() * 10f - Main.screenPosition;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages && SwingTimer > ProjectileID.Sets.TrailCacheLength[Projectile.type] && Combo == 0f)
|
||||
if (CalamityClientConfig.Instance.Afterimages && SwingTimer > ProjectileID.Sets.TrailCacheLength[Projectile.type] && Combo == 0f)
|
||||
{
|
||||
for (int i = 1; i < Projectile.oldRot.Length; ++i)
|
||||
{
|
||||
@@ -544,7 +544,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
Vector2 backScissorDrawPosition = Owner.Center + drawAngle.ToRotationVector2() * 10f + (drawAngle.ToRotationVector2() * 56f + (drawAngle - MathHelper.PiOver2).ToRotationVector2() * 11 * Owner.direction) * Projectile.scale - Main.screenPosition; //Lined up with the hole in the front blade
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages && SwingTimer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
if (CalamityClientConfig.Instance.Afterimages && SwingTimer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
{
|
||||
Texture2D afterimage = Request<Texture2D>("CalamityMod/Projectiles/Melee/SunderingScissorsGlow").Value;
|
||||
|
||||
|
||||
@@ -308,7 +308,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 drawOrigin = new Vector2(Combo == 1 ? sword.Width / 2f : flipped ? sword.Width : 0f, sword.Height);
|
||||
Vector2 drawOffset = Owner.Center + drawAngle.ToRotationVector2() * 10f - Main.screenPosition;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages && SwingTimer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
if (CalamityClientConfig.Instance.Afterimages && SwingTimer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldRot.Length; ++i)
|
||||
{
|
||||
@@ -362,7 +362,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 backScissorDrawPosition = Owner.Center + drawAngle.ToRotationVector2() * 10f + functionalDrawAngle.ToRotationVector2() * 70f * Projectile.scale - Main.screenPosition; //Lined up with the hole in the front blade
|
||||
float backScissorRotation = drawRotation + (Combo == 1 ? (!flipped ? MathHelper.PiOver4 * 0.75f : MathHelper.PiOver4 * -0.75f) : 0f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages && SwingTimer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
if (CalamityClientConfig.Instance.Afterimages && SwingTimer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldRot.Length; ++i)
|
||||
{
|
||||
|
||||
@@ -286,7 +286,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 drawOffset = Projectile.Center - Main.screenPosition;
|
||||
|
||||
//Afterimages
|
||||
if (CalamityConfig.Instance.Afterimages && CurrentState == 0f && Empowerment / maxEmpowerment > 0.4f)
|
||||
if (CalamityClientConfig.Instance.Afterimages && CurrentState == 0f && Empowerment / maxEmpowerment > 0.4f)
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldRot.Length; ++i)
|
||||
{
|
||||
|
||||
@@ -340,7 +340,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 origin = rectangle.Size() / 2f;
|
||||
Color alphaColor = Projectile.GetAlpha(lightColor);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityClientConfig.Instance.Afterimages)
|
||||
{
|
||||
Vector2 centerOffset = Projectile.Size / 2f;
|
||||
int totalAfterimages = TotalAfterimages;
|
||||
|
||||
@@ -215,7 +215,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 drawOffset = Projectile.Center - Main.screenPosition;
|
||||
|
||||
//Afterimages
|
||||
if (CalamityConfig.Instance.Afterimages && CurrentState == 0f && Empowerment / maxEmpowerment > 0.4f)
|
||||
if (CalamityClientConfig.Instance.Afterimages && CurrentState == 0f && Empowerment / maxEmpowerment > 0.4f)
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldRot.Length; ++i)
|
||||
{
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 drawOrigin = new Vector2(Owner.direction < 0 ? sword.Width : 0f, sword.Height);
|
||||
Vector2 drawOffset = Owner.Center + drawAngle.ToRotationVector2() * 10f - Main.screenPosition;
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages && Timer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
if (CalamityClientConfig.Instance.Afterimages && Timer > ProjectileID.Sets.TrailCacheLength[Projectile.type])
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldRot.Length; ++i)
|
||||
{
|
||||
|
||||
@@ -310,7 +310,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
drawOrigin = new Vector2(0f, blade.Height);
|
||||
|
||||
//Afterimages
|
||||
if (CalamityConfig.Instance.Afterimages && CurrentState == 0f && Empowerment / maxEmpowerment > 0.4f)
|
||||
if (CalamityClientConfig.Instance.Afterimages && CurrentState == 0f && Empowerment / maxEmpowerment > 0.4f)
|
||||
{
|
||||
for (int i = 0; i < Projectile.oldRot.Length; ++i)
|
||||
{
|
||||
|
||||
@@ -239,7 +239,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (Time / ChargeupTime >= 0.25f)
|
||||
Main.EntitySpriteDraw(smallSlashTexture, GunTipPosition - Main.screenPosition, null, slashColor, Time * MathHelper.ToRadians(42f), smallSlashTexture.Size() * 0.5f, 1f, SpriteEffects.None);
|
||||
|
||||
if (!CalamityConfig.Instance.Afterimages)
|
||||
if (!CalamityClientConfig.Instance.Afterimages)
|
||||
return false;
|
||||
|
||||
// Special afterimage drawing for the slashes only
|
||||
|
||||
@@ -189,7 +189,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
}
|
||||
|
||||
if (!CalamityConfig.Instance.Afterimages)
|
||||
if (!CalamityClientConfig.Instance.Afterimages)
|
||||
return true;
|
||||
|
||||
// Special afterimage drawing to include the slashes
|
||||
|
||||
Loaded 100 of 132 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user