198 lines
7.3 KiB
C#
198 lines
7.3 KiB
C#
using CalamityMod.UI;
|
|
using Microsoft.Xna.Framework;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using Terraria;
|
|
using Terraria.Localization;
|
|
using Terraria.ModLoader.Config;
|
|
|
|
namespace CalamityMod
|
|
{
|
|
[Label("Configs")]
|
|
public class Configs : ModConfig
|
|
{
|
|
public override ConfigScope Mode => ConfigScope.ClientSide;
|
|
public override void OnLoaded() => CalamityMod.CalamityConfig = this;
|
|
|
|
[Header("General Changes")]
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Afterimages")]
|
|
[Tooltip("Enables afterimages for Calamity NPCs, projectiles, etc.")]
|
|
public bool Afterimages { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Town NPC New Shop Inventory Alert Display")]
|
|
[Tooltip("Enables an icon that appears above town NPC heads whenever they have new items in their shops")]
|
|
public bool TownNPCNewShopInventoryAlertDisplay { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Boss and Miniboss Debuff Display")]
|
|
[Tooltip("Enables a debuff display that shows all debuffs a boss or miniboss is currently afflicted with\nDebuffs are displayed above the hitbox")]
|
|
public bool EnemyDebuffDisplay { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Proficiency")]
|
|
[Tooltip("Enables the Proficiency stat that rewards the player based on the attack type they use")]
|
|
public bool ProficiencyEnabled { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Lethal Lava")]
|
|
[Tooltip("Increases the severity of lava with a new debuff to punish those who stay in lava for too long\nEnabled in Death Mode regardless of this configuration setting")]
|
|
public bool LethalLava { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Boss Health Bar")]
|
|
[Tooltip("Enables the Boss Health Bar to show while a boss or miniboss is alive")]
|
|
public bool DrawBossBar { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Stealth Invisibility")]
|
|
[Tooltip("Enables the fading of the player as stealth goes up")]
|
|
public bool StealthInvisbility { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Stealth Bar")]
|
|
[Tooltip("Enables the visibility of the stealth bar")]
|
|
public bool StealthBar { get; set; }
|
|
|
|
[Label("Stealth Meter Position X")]
|
|
[Tooltip("Changes the X position of the Stealth Meter")]
|
|
[Range(0f, 1660f)]
|
|
[DefaultValue(820f)]
|
|
public float StealthMeterPosX { get; set; }
|
|
|
|
[Label("Stealth Meter Position Y")]
|
|
[Tooltip("Changes the Y position of the Stealth Meter")]
|
|
[Range(0f, 1100f)]
|
|
[DefaultValue(43f)]
|
|
public float StealthMeterPosY { get; set; }
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Meter Position Lock")]
|
|
[Tooltip("Prevents the movement of the Adrenaline, Rage and Stealth bars with the Mouse")]
|
|
public bool MeterPosLock { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Boss Health Bar Small Text")]
|
|
[Tooltip("Enables the small text below the health bar\nThis displays the exact health amount or remaining boss parts")]
|
|
public bool DrawSmallText { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Selling Vanilla Boss Summons")]
|
|
[Tooltip("Enables certain town NPCs to sell boss summoning items after the defeat of their respective boss\nThis does not affect Calamity's boss summoning items, which are always sold\nThe shop will need to be refreshed if the config is adjusted while the shop is open")]
|
|
public bool SellBossSummons { get; set; }
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Mining Speed Boost")]
|
|
[Tooltip("Boosts the player's mining speed by 75%")]
|
|
public bool MiningSpeedBoost { get; set; }
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Extra Damage Reduction for Bosses")]
|
|
[Tooltip("Grants extra damage reduction for bosses for every boss encounter, regardless if you've defeated the boss already or not")]
|
|
public bool ExtraBossDR { get; set; }
|
|
|
|
[Label("Boss Health Percentage Boost")]
|
|
[Tooltip("Boosts the health of bosses to a maximum of +900% health")]
|
|
[Range(0f, 900f)]
|
|
[DefaultValue(0f)]
|
|
public float BossHealthPercentageBoost { get; set; }
|
|
|
|
[Header("Expert Changes")]
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Expert Debuff Duration Reduction")]
|
|
[Tooltip("Debuffs in Expert Mode are no longer doubled")]
|
|
public bool ExpertDebuffDurationReduction { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Expert Chilled Water Removal")]
|
|
[Tooltip("Water in the Ice and Snow biome in Expert Mode rapidly drain your breath rather than slowing your movement")]
|
|
public bool ExpertChilledWaterRemoval { get; set; }
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Expert Pillar Enemy Kill Count Reduction")]
|
|
[Tooltip("Only 100 enemies are required to destroy the shields of the Celestial Pillars in Expert Mode")]
|
|
public bool ExpertPillarEnemyKillCountReduction { get; set; }
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Expert Enemy Spawns in Villages Reduction")]
|
|
[Tooltip("Enemy spawns are drastically reduced in the presence of town NPCs in Expert Mode")]
|
|
public bool DisableExpertEnemySpawnsNearHouse { get; set; }
|
|
|
|
[Header("Revengeance Changes")]
|
|
|
|
[DefaultValue(true)]
|
|
[Label("Adrenaline and Rage")]
|
|
[Tooltip("Enables the Adrenaline and Rage mechanics")]
|
|
public bool AdrenalineAndRage { get; set; }
|
|
|
|
[Label("Rage Meter Position X")]
|
|
[Tooltip("Changes the X position of the Rage Meter")]
|
|
[Range(0f, 1660f)]
|
|
[DefaultValue(RipperUI.DefaultRagePosX)]
|
|
public float RageMeterPosX { get; set; }
|
|
|
|
[Label("Rage Meter Position Y")]
|
|
[Tooltip("Changes the Y position of the Rage Meter")]
|
|
[Range(0f, 1100f)]
|
|
[DefaultValue(RipperUI.DefaultRagePosY)]
|
|
public float RageMeterPosY { get; set; }
|
|
|
|
[Label("Adrenaline Meter Position X")]
|
|
[Tooltip("Changes the X position of the Adrenaline Meter")]
|
|
[Range(0f, 1660f)]
|
|
[DefaultValue(RipperUI.DefaultAdrenPosX)]
|
|
public float AdrenalineMeterPosX { get; set; }
|
|
|
|
[Label("Adrenaline Meter Position Y")]
|
|
[Tooltip("Changes the Y position of the Adrenaline Meter")]
|
|
[Range(0f, 1100f)]
|
|
[DefaultValue(RipperUI.DefaultAdrenPosY)]
|
|
public float AdrenalineMeterPosY { get; set; }
|
|
|
|
[DefaultValue(2f)]
|
|
[Range(0f, 4f)]
|
|
[Label("Adrenaline and Rage Meter Shake")]
|
|
[Tooltip("How much the Adrenaline and Rage Meter shake while in use. Set to 0 to disable.")]
|
|
public float MeterShake { get; set; }
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Revengeance and Death Thorium Boss buff")]
|
|
[Tooltip("Buffs the health of Thorium bosses if Revengeance or Death is enabled")]
|
|
public bool RevengeanceAndDeathThoriumBossBuff { get; set; }
|
|
|
|
[Header("Boss Rush Curses")]
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Boss Rush Accessory Curse")]
|
|
[Tooltip("Accessories are limited to a maximum of five while the Boss Rush is active")]
|
|
public bool BossRushAccessoryCurse { get; set; }
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Boss Rush Health Curse")]
|
|
[Tooltip("Life regeneration is disabled while the Boss Rush is active")]
|
|
public bool BossRushHealthCurse { get; set; }
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Boss Rush Dash Curse")]
|
|
[Tooltip("Dashes are disabled while the Boss Rush is active")]
|
|
public bool BossRushDashCurse { get; set; }
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Boss Rush Xeroc Curse")]
|
|
[Tooltip("All bosses are permanently enraged while the Boss Rush is active")]
|
|
public bool BossRushXerocCurse { get; set; }
|
|
|
|
[DefaultValue(false)]
|
|
[Label("Boss Rush Immunity Frame Curse")]
|
|
[Tooltip("Getting hit more than once in the span of five seconds will instantly kill you if the Boss Rush is active")]
|
|
public bool BossRushImmunityFrameCurse { get; set; }
|
|
|
|
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
} |