VERSION = 1,

/* Condition restored per use of CLP when cleaning. */
option HagsFirearmMaintenance.CleanEfficacy
{
    type = integer, min = 1, max = 100, default = 1,
    page = HagsFirearmMaintenance, translation = HFM_CleanEfficacy,
}

/* Parts below this condition can't be cleaned (they need repair first). */
option HagsFirearmMaintenance.MinimumCleanThreshold
{
    type = integer, min = 0, max = 500, default = 5,
    page = HagsFirearmMaintenance, translation = HFM_MinimumCleanThreshold,
}

/* Condition restored per Scrap Metal when repairing. */
option HagsFirearmMaintenance.RepairEfficacy
{
    type = integer, min = 1, max = 100, default = 1,
    page = HagsFirearmMaintenance, translation = HFM_RepairEfficacy,
}

/* Parts below this condition can't be repaired at all. 0 = even broken guns. */
option HagsFirearmMaintenance.MinimumRepairThreshold
{
    type = integer, min = 0, max = 500, default = 0,
    page = HagsFirearmMaintenance, translation = HFM_MinimumRepairThreshold,
}

/* Repairs stop at this % of the gun's max condition. 100 = no cap.
   A percentage rather than a flat value, because max condition varies
   between firearms, especially modded ones. */
option HagsFirearmMaintenance.RepairConditionCap
{
    type = integer, min = 10, max = 100, default = 70,
    page = HagsFirearmMaintenance, translation = HFM_RepairConditionCap,
}

/* Aiming OR Reloading must be at least this to repair. */
option HagsFirearmMaintenance.MinimumFirearmSkill
{
    type = integer, min = 0, max = 10, default = 5,
    page = HagsFirearmMaintenance, translation = HFM_MinimumFirearmSkill,
}

/* Repairing requires a nearby table/counter/workbench. Cleaning never does. */
option HagsFirearmMaintenance.RepairRequiresSurface
{
    type = boolean, default = true,
    page = HagsFirearmMaintenance, translation = HFM_RepairRequiresSurface,
}

/* Take attachments off before disassembly (Universal Gun Repair behaviour).
   Off by default: attachments normally ride along inside the parts. */
option HagsFirearmMaintenance.StripAttachments
{
    type = boolean, default = false,
    page = HagsFirearmMaintenance, translation = HFM_StripAttachments,
}

/* Weight of disassembled parts as a % of the gun's weight. 100 = no extra bulk. */
option HagsFirearmMaintenance.PartsBulk
{
    type = integer, min = 100, max = 300, default = 120,
    page = HagsFirearmMaintenance, translation = HFM_PartsBulk,
}

/* Multiplies all XP this mod awards. 0 disables XP entirely. */
option HagsFirearmMaintenance.XPGain
{
    type = integer, min = 0, max = 200, default = 100,
    page = HagsFirearmMaintenance, translation = HFM_XPGain,
}

/* Loot rarity: 1 Extremely Rare ... 5 Abundant */
option HagsFirearmMaintenance.MaintenanceKitRarity
{
    type = enum, numValues = 5, default = 3,
    page = HagsFirearmMaintenance, translation = HFM_MaintenanceKitRarity,
}

option HagsFirearmMaintenance.GunsmithingToolsRarity
{
    type = enum, numValues = 5, default = 3,
    page = HagsFirearmMaintenance, translation = HFM_GunsmithingToolsRarity,
}

option HagsFirearmMaintenance.CLPRarity
{
    type = enum, numValues = 5, default = 3,
    page = HagsFirearmMaintenance, translation = HFM_CLPRarity,
}

/* Loot rarity of the Gunsmithing Manual. */
option HagsFirearmMaintenance.ManualRarity
{
    type = enum, numValues = 5, default = 3,
    page = HagsFirearmMaintenance, translation = HFM_ManualRarity,
}
