Files
CalamityModPublic/CalamityConfig.cs
T
Andrew Marheine 1bf3de0b06 1 - Reduced severity of boss rush i-frame curse from 5 seconds to 3 seconds.
2 - Provi darkness is now at max distance during all attacks while any guardian is alive.
3 - Elemental Quiver increases ranged damage by 15% instead of 10%.
4 - Increased Frequency Manipulator damage by 13 and made it throw the spear sooner.
5 - Increased Galvanizing Glaive damage by 16 and made the spear itself ignore more i-frames.
6 - Increased Gauss Dagger size by 50% and allowed the player to turn while using it.
7 - Decreased Gauss Pistol damage by 20 and made the projectile stay still for half the time.
8 - Increased Plasma Grenade damage by 1000 and gave it an impact sound.
9 - Increased Pulse Rifle damage by 2000.
10 - Increased Snake Eyes damage by 15 and made the leash distance longer.
11 - Decreased Taser damage by 6 and increased the velocity of it.
12 - Increased Tesla Cannon damage by 5000 and increased split beam damage by 10%.
13 - Tripled Wave Pounder damage.
14 - Reduced Shadowdrop Staff projectiles from 20 per use to 6 and reduced spread by 75%.
15 - Increased Ancient Crusher size by 50% again.
16 - Increased Astral Blade damage due to how dangerous it is to use at times.
17 - Gave Brimlance, Earthen Pike, Fulguration Halberd, Goldplume Spear, Hellion Flower Spear, Marnite Spear, Sausage Maker, Starnight Lance, Urchin Spear and Yateveo Bloom autoswing.
18 - Increased Earthen Pike, Majestic Guard and Fulguration Halberd size by 50%.
19 - Decreased Insidious Impaler damage by 40.
20 - Ultimus Cleaver explodes on hit now and increased size by 50%.
21 - Decreased Arterial Assault damage by 32.
22 - Onyxia onyx shard travels further.
23 - Increased God's Bellows range.
24 - Made SCal bullet hell 5 feel less rng with how full or empty it can sometimes feel.
25 - Reduced how often Supreme Catastrophe fires projectiles.
26 - Reduced how insane Old Duke is in Boss Rush.
27 - Reduced Rev+ Destroyer laser speed again from 14 to 12.
28 - Fixed a bug with Rev+ Destroyer flying phase lights where they'd show even when broken.
29 - Dark Energies resist piercing.
30 - Skeletron Head is now immune to all debuffs.
31 - Storm Weaver phase 2 resists Wave Pounder.
32 - Increased Volt Crasher Voltage Stream damage.
33 - Destroyer and Aquatic Scourge resist Volt Crasher.
34 - Gauss Rifle dust particles are smaller and the explosion no longer vanishes when tiles are near it, made the explosion pierce infinitely.
35 - Pole Warpers ignore more i-frames.
36 - Gave Pulse Dragon an extra update.
37 - Decreased Tracking Disk laser damage.
38 - Matter Modulator projectiles now deal a third of their damage if they haven't hit a tile yet to avoid confusion.
39 - Astral Pike stars now home in.
40 - Gilded Proboscis heals less often.
41 - Increased Goldplume Spear feather damage.
42 - Increased Avalanche ice shard damage.
43 - Gave Mourningstar an extra update and made it ignore more i-frames.
44 - True Caustic Edge projectiles no longer gain damage on tile collision.
45 - Version bump.
2020-11-09 19:50:33 -06:00

272 lines
11 KiB
C#

using CalamityMod.UI;
using System.ComponentModel;
using System.Runtime.Serialization;
using Terraria;
using Terraria.ModLoader.Config;
namespace CalamityMod
{
[Label("Config")]
[BackgroundColor(49, 32, 36, 216)]
public class CalamityConfig : ModConfig
{
public static CalamityConfig Instance;
public override ConfigScope Mode => ConfigScope.ClientSide;
// Clamps values that would cause ugly problems if loaded directly without sanitization.
[OnDeserialized]
internal void ClampValues(StreamingContext context)
{
BossHealthBoost = Utils.Clamp(BossHealthBoost, MinBossHealthBoost, MaxBossHealthBoost);
MeterShake = Utils.Clamp(MeterShake, MinMeterShake, MaxMeterShake);
DeathWeatherMultiplier = Utils.Clamp(DeathWeatherMultiplier, MinWeatherMultiplier, MaxWeatherMultiplier);
}
[Header("Graphics Changes")]
[Label("Afterimages")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Enables rendering afterimages for Calamity NPCs, projectiles, etc.\nDisable to improve performance.")]
public bool Afterimages { get; set; }
[Label("Stealth Invisibility")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Enables players gradually turning invisible as their Rogue Stealth increases.\nThis effect is visually similar to Shroomite armor's stealth.")]
public bool StealthInvisbility { get; set; }
[Label("New Shop Inventory Alert")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Adds an icon that appears over Town NPCs when they have new items in their shops.")]
public bool ShopNewAlert { get; set; }
[Header("UI Changes")]
[Label("Boss Health Bars")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Enables Calamity's boss health bar in the bottom right corner of the screen.")]
public bool BossHealthBar { get; set; }
[Label("Boss Health Bar Extra Info")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Adds extra info to the Calamity boss health bar.\nThis displays either the boss's exact health or number of remaining parts or segments.")]
public bool BossHealthBarExtraInfo { get; set; }
[Label("Boss and Miniboss Debuff Display")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Adds an array of debuff icons above all bosses and minibosses.")]
public bool DebuffDisplay { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[Label("Lock Meter Positions")]
[DefaultValue(true)]
[Tooltip("Prevents clicking on the Stealth, Rage and Adrenaline Meters.\nThis stops them from being dragged around with the mouse.")]
public bool MeterPosLock { get; set; }
[Label("Stealth Meter")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Enables the Stealth Meter UI, which shows the player's current stealth level.\nThe Stealth Meter is always hidden if not wearing Rogue armor.")]
public bool StealthBar { get; set; }
[Label("Stealth Meter X Position")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 3840f)]
[DefaultValue(820f)]
[Tooltip("The X position of the Stealth Meter.\nThe meter can be dragged with the mouse if Lock Meter Positions is disabled.")]
public float StealthMeterPosX { get; set; }
[Label("Stealth Meter Y Position")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 2160f)]
[DefaultValue(43f)]
[Tooltip("The Y position of the Stealth Meter.\nThe meter can be dragged with the mouse if Lock Meter Positions is disabled.")]
public float StealthMeterPosY { get; set; }
[Header("General Gameplay Changes")]
[Label("Lethal Lava")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Makes lava significantly more deadly by adding a new debuff.\nPermanent lava immunity does not provide immunity to this debuff.\nThis setting is ignored in Death Mode, which always has Lethal Lava.")]
public bool LethalLava { get; set; }
[Label("Proficiency")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Enables the Proficiency system which allows the player to gain slight stat bonuses by persistently using one damage class.\nDisabling the system does not remove levels players already have, but disables their stat bonuses and prevents experience gain.")]
public bool Proficiency { get; set; }
[Label("Sell Vanilla Boss Summons")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Adds vanilla boss summons to NPC shops after the corresponding boss is defeated.\nThis does not affect Calamity's boss summons, which are always sold.\nTo apply changes, close and reopen the shop.")]
public bool SellVanillaSummons { get; set; }
[Label("Boost Mining Speed")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
[Tooltip("Increases the player's mining speed by 75%.\nThis does not affect drills.")]
public bool MiningSpeedBoost { get; set; }
[Label("Boss Zen")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("While a boss is alive, all players receive the Boss Zen buff which drastically reduces enemy spawn rates.")]
public bool BossZen { get; set; }
[Label("Never Weaken Reactive Boss DR")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
[Tooltip("Sets Reactive Boss DR to always be full strength, even if the boss has already been defeated.\nIf disabled, the effect is only 66% as powerful after the boss has been defeated.\n\nReactive Boss DR makes bosses smoothly take less damage if they are being killed very quickly.\nIn most cases, the system has no noticeable effect.")]
public bool FullPowerReactiveBossDR { get; set; }
private const float MinBossHealthBoost = 0f;
private const float MaxBossHealthBoost = 900f;
[Label("Boss Health Percentage Boost")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(MinBossHealthBoost, MaxBossHealthBoost)]
[Increment(50f)]
[DrawTicks]
[DefaultValue(MinBossHealthBoost)]
[Tooltip("Globally boosts the health of all bosses.\nDoes not affect bosses that are already spawned.")]
public float BossHealthBoost { get; set; }
[Header("Expert Mode Changes")]
[Label("Reduce Expert Debuff Durations")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Disables Expert Mode doubling the duration of all debuffs inflicted on the player.\nCalamity is balanced with the assumption that this setting is enabled.")]
public bool NerfExpertDebuffs { get; set; }
[Label("Rework Chilled Water")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("When enabled, water in the Snow and Ice biomes will rapidly drain the player's breath instead of inflicting Chilled.")]
public bool ReworkChilledWater { get; set; }
[Label("Reduce Celestial Pillar Kill Count")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Reduces the kills required to destroy a Celestial Pillar shield in Expert Mode from 150 to 100.\nThis makes the value equivalent to Normal Mode.")]
public bool NerfExpertPillars { get; set; }
[Label("Disable Expert Enemy Spawns in Towns")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
[Tooltip("Counteracts Expert Mode allowing enemies to spawn near towns by vastly decreasing spawn rates.\nThis can have unintended side effects such as making critters difficult to find.")]
public bool DisableExpertTownSpawns { get; set; }
[Header("Revengeance Mode Changes")]
[Label("Rage and Adrenaline")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
[Tooltip("Enables Rage and Adrenaline, the two Revengeance Mode mechanics.")]
public bool Rippers { get; set; }
private const float MinMeterShake = 0f;
private const float MaxMeterShake = 4f;
[Label("Rage and Adrenaline Meter Shake")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(MinMeterShake, MaxMeterShake)]
[Increment(1f)]
[DrawTicks]
[DefaultValue(2f)]
[Tooltip("How much the Rage and Adrenaline Meters shake while in use.\nSet to zero to disable the shaking entirely.")]
public float MeterShake { get; set; }
[Label("Rage Meter X Position")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 3840f)]
[DefaultValue(RipperUI.DefaultRagePosX)]
[Tooltip("The X position of the Rage Meter.\nThe meter can be dragged with the mouse if Lock Meter Positions is disabled.")]
public float RageMeterPosX { get; set; }
[Label("Rage Meter Y Position")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 2160f)]
[DefaultValue(RipperUI.DefaultRagePosY)]
[Tooltip("The Y position of the Rage Meter.\nThe meter can be dragged with the mouse if Lock Meter Positions is disabled.")]
public float RageMeterPosY { get; set; }
[Label("Adrenaline Meter X Position")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 3840f)]
[DefaultValue(RipperUI.DefaultAdrenPosX)]
[Tooltip("The X position of the Adrenaline Meter.\nThe meter can be dragged with the mouse if Lock Meter Positions is disabled.")]
public float AdrenalineMeterPosX { get; set; }
[Label("Adrenaline Meter Y Position")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 2160f)]
[DefaultValue(RipperUI.DefaultAdrenPosY)]
[Tooltip("The Y position of the Adrenaline Meter.\nThe meter can be dragged with the mouse if Lock Meter Positions is disabled.")]
public float AdrenalineMeterPosY { get; set; }
[Header("Death Mode Changes")]
private const float MinWeatherMultiplier = 0.5f;
private const float MaxWeatherMultiplier = 3f;
[Label("Weather Hazard Delay Multiplier")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(MinWeatherMultiplier, MaxWeatherMultiplier)]
[Increment(0.25f)]
[DrawTicks]
[DefaultValue(1f)]
[Tooltip("Adjusts the delay between Death Mode weather hazards such as lightning.\nDecreasing this value makes hazards more frequent.\nIncreasing this value makes hazards less frequent.")]
public float DeathWeatherMultiplier { get; set; }
[Header("Boss Rush Curses")]
[Label("Accessory Curse")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
[Tooltip("Limits the player to five accessories during the Boss Rush.")]
public bool BossRushAccessoryCurse { get; set; }
[Label("Health Curse")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
[Tooltip("Disables all health regeneration during the Boss Rush.")]
public bool BossRushHealthCurse { get; set; }
[Label("Dash Curse")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
[Tooltip("Disables all dashes during the Boss Rush.")]
public bool BossRushDashCurse { get; set; }
[Label("Immunity Frame Curse")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
[Tooltip("During the Boss Rush, being hit twice within three seconds will cause instant death.\nThis effect ignores revives.")]
public bool BossRushImmunityFrameCurse { get; set; }
[Label("Xeroc Curse")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
[Tooltip("Permanently enrages every boss in the Boss Rush.\nThis enrage is equivalent to that provided by Demonshade armor.")]
public bool BossRushXerocCurse { get; set; }
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message) => true;
}
}