{
  "slot_limits": {
    "Overlay":  { "max": 1, "optional": false },
    "Underlay": { "max": 1, "optional": false }
  },
  "armor_upgrades": [
    { "name": "Stealth Plating I",            "slot": "Overlay",  "compatible_armor_types": ["Light"],                    "cost_credits": 1500,  "min_level": 3,  "ac_bonus": 0, "effect": "+1 to Stealth checks while wearing this armor." },
    { "name": "Stealth Plating II",           "slot": "Overlay",  "compatible_armor_types": ["Light"],                    "cost_credits": 3000,  "min_level": 5,  "ac_bonus": 0, "effect": "+2 to Stealth checks while wearing this armor." },
    { "name": "Stealth Plating III",          "slot": "Overlay",  "compatible_armor_types": ["Light"],                    "cost_credits": 6000,  "min_level": 8,  "ac_bonus": 0, "effect": "+2 to Stealth checks and +1 to Acrobatics checks while wearing this armor." },
    { "name": "Thermal Shielding I",          "slot": "Overlay",  "compatible_armor_types": ["Light", "Medium", "Heavy"], "cost_credits": 2000,  "min_level": 3,  "ac_bonus": 0, "effect": "You gain Damage Resistance 1 vs Fire damage." },
    { "name": "Thermal Shielding II",         "slot": "Overlay",  "compatible_armor_types": ["Light", "Medium", "Heavy"], "cost_credits": 3500,  "min_level": 6,  "ac_bonus": 0, "effect": "You gain Damage Resistance 2 vs Fire damage." },
    { "name": "Thermal Shielding III",        "slot": "Overlay",  "compatible_armor_types": ["Light", "Medium", "Heavy"], "cost_credits": 5000,  "min_level": 9,  "ac_bonus": 0, "effect": "You gain Damage Resistance 3 vs Fire damage." },
    { "name": "Ablative Energy Plating I",    "slot": "Overlay",  "compatible_armor_types": ["Medium", "Heavy"],          "cost_credits": 2500,  "min_level": 5,  "ac_bonus": 0, "effect": "You gain Damage Resistance 1 vs Energy damage; -1 to Stealth checks." },
    { "name": "Ablative Energy Plating II",   "slot": "Overlay",  "compatible_armor_types": ["Medium", "Heavy"],          "cost_credits": 4000,  "min_level": 8,  "ac_bonus": 0, "effect": "You gain Damage Resistance 2 vs Energy damage; -2 to Stealth checks." },
    { "name": "Ablative Energy Plating III",  "slot": "Overlay",  "compatible_armor_types": ["Medium", "Heavy"],          "cost_credits": 6000,  "min_level": 11, "ac_bonus": 0, "effect": "You gain Damage Resistance 3 vs Energy damage; -2 to Stealth checks." },
    { "name": "Ballistic Plating I",          "slot": "Overlay",  "compatible_armor_types": ["Medium", "Heavy"],          "cost_credits": 2500,  "min_level": 5,  "ac_bonus": 0, "effect": "You gain Damage Resistance 1 vs Bludgeoning, Piercing, and Slashing damage." },
    { "name": "Ballistic Plating II",         "slot": "Overlay",  "compatible_armor_types": ["Medium", "Heavy"],          "cost_credits": 4000,  "min_level": 8,  "ac_bonus": 0, "effect": "You gain Damage Resistance 2 vs Bludgeoning, Piercing, and Slashing damage." },
    { "name": "Ballistic Plating III",        "slot": "Overlay",  "compatible_armor_types": ["Medium", "Heavy"],          "cost_credits": 6000,  "min_level": 11, "ac_bonus": 0, "effect": "You gain Damage Resistance 3 vs Bludgeoning, Piercing, and Slashing damage." },
    { "name": "Bonded Plates I",              "slot": "Overlay",  "compatible_armor_types": ["Medium"],                   "cost_credits": 2000,  "min_level": 4,  "ac_bonus": 1, "effect": "Your armor grants an additional +1 bonus to AC." },
    { "name": "Bonded Plates II",             "slot": "Overlay",  "compatible_armor_types": ["Medium"],                   "cost_credits": 4000,  "min_level": 8,  "ac_bonus": 2, "effect": "Your armor grants an additional +2 bonus to AC; -1 to Stealth checks." },
    { "name": "Heavy Bonded Plates I",        "slot": "Overlay",  "compatible_armor_types": ["Heavy"],                    "cost_credits": 2000,  "min_level": 5,  "ac_bonus": 1, "effect": "Your armor grants an additional +1 bonus to AC; your Speed is reduced by 5 ft (to a minimum of 10 ft)." },
    { "name": "Heavy Bonded Plates II",       "slot": "Overlay",  "compatible_armor_types": ["Heavy"],                    "cost_credits": 4000,  "min_level": 9,  "ac_bonus": 2, "effect": "Your armor grants an additional +2 bonus to AC; your Speed is reduced by 5 ft and you suffer -1 to Stealth checks." },

    { "name": "Biorestorative Underlay I",    "slot": "Underlay", "compatible_armor_types": ["Light", "Medium", "Heavy"], "cost_credits": 6000,  "min_level": 7,  "ac_bonus": 0, "effect": "Regeneration 1 while you are at or below half your maximum HP (does not function while at 0 HP)." },
    { "name": "Biorestorative Underlay II",   "slot": "Underlay", "compatible_armor_types": ["Light", "Medium", "Heavy"], "cost_credits": 12000, "min_level": 9,  "ac_bonus": 0, "effect": "Regeneration 1 while at or below half your maximum HP (does not function at 0 HP); allies gain +1 to Treat Injury checks made to heal you." },
    { "name": "Biorestorative Underlay III",  "slot": "Underlay", "compatible_armor_types": ["Light", "Medium", "Heavy"], "cost_credits": 25000, "min_level": 11, "ac_bonus": 0, "effect": "Regeneration 2 while you are at or below half your maximum HP (does not function while at 0 HP)." },
    { "name": "Environmental Underlay I",     "slot": "Underlay", "compatible_armor_types": ["Light", "Medium", "Heavy"], "cost_credits": 3000,  "min_level": 4,  "ac_bonus": 0, "effect": "You gain Damage Resistance 1 vs Cold and Fire damage." },
    { "name": "Environmental Underlay II",    "slot": "Underlay", "compatible_armor_types": ["Light", "Medium", "Heavy"], "cost_credits": 4500,  "min_level": 7,  "ac_bonus": 0, "effect": "You gain Damage Resistance 2 vs Cold and Fire damage." },
    { "name": "Environmental Underlay III",   "slot": "Underlay", "compatible_armor_types": ["Light", "Medium", "Heavy"], "cost_credits": 6000,  "min_level": 10, "ac_bonus": 0, "effect": "You gain Damage Resistance 3 vs Cold and Fire damage." },
    { "name": "Armorweave Underlay I",        "slot": "Underlay", "compatible_armor_types": ["Light", "Medium"],          "cost_credits": 2500,  "min_level": 4,  "ac_bonus": 0, "effect": "You gain Damage Resistance 1 vs Energy damage." },
    { "name": "Armorweave Underlay II",       "slot": "Underlay", "compatible_armor_types": ["Light", "Medium"],          "cost_credits": 4000,  "min_level": 7,  "ac_bonus": 0, "effect": "You gain Damage Resistance 2 vs Energy damage." },
    { "name": "Armorweave Underlay III",      "slot": "Underlay", "compatible_armor_types": ["Light", "Medium"],          "cost_credits": 5500,  "min_level": 10, "ac_bonus": 0, "effect": "You gain Damage Resistance 3 vs Energy damage." },
    { "name": "Durasteel Underlay I",         "slot": "Underlay", "compatible_armor_types": ["Light", "Medium"],          "cost_credits": 2500,  "min_level": 4,  "ac_bonus": 0, "effect": "You gain Damage Resistance 1 vs Bludgeoning, Piercing, and Slashing damage." },
    { "name": "Durasteel Underlay II",        "slot": "Underlay", "compatible_armor_types": ["Light", "Medium"],          "cost_credits": 4000,  "min_level": 7,  "ac_bonus": 0, "effect": "You gain Damage Resistance 2 vs Bludgeoning, Piercing, and Slashing damage." },
    { "name": "Durasteel Underlay III",       "slot": "Underlay", "compatible_armor_types": ["Light", "Medium"],          "cost_credits": 5500,  "min_level": 10, "ac_bonus": 0, "effect": "You gain Damage Resistance 3 vs Bludgeoning, Piercing, and Slashing damage." },
    { "name": "Strengthening Underlay I",     "slot": "Underlay", "compatible_armor_types": ["Light", "Medium"],          "cost_credits": 3000,  "min_level": 3,  "ac_bonus": 0, "effect": "+1 to Athletics checks and Strength checks to resist being shoved or knocked prone." },
    { "name": "Strengthening Underlay II",    "slot": "Underlay", "compatible_armor_types": ["Light", "Medium"],          "cost_credits": 6000,  "min_level": 6,  "ac_bonus": 0, "effect": "+1 to Athletics and Endurance checks; +1 to Strength checks to resist being shoved or knocked prone." },
    { "name": "Strengthening Underlay III",   "slot": "Underlay", "compatible_armor_types": ["Light", "Medium"],          "cost_credits": 10000, "min_level": 9,  "ac_bonus": 0, "effect": "+2 to Athletics checks and +1 to Endurance checks." },
    { "name": "Flexible Underlay I",          "slot": "Underlay", "compatible_armor_types": ["Heavy"],                    "cost_credits": 3000,  "min_level": 5,  "ac_bonus": 0, "effect": "Increase this armor's maximum Dexterity bonus by +1." },
    { "name": "Flexible Underlay II",         "slot": "Underlay", "compatible_armor_types": ["Heavy"],                    "cost_credits": 6000,  "min_level": 8,  "ac_bonus": 0, "effect": "Increase this armor's maximum Dexterity bonus by +1 and gain +1 to Acrobatics checks while wearing it." },
    { "name": "Flexible Underlay III",        "slot": "Underlay", "compatible_armor_types": ["Heavy"],                    "cost_credits": 12000, "min_level": 11, "ac_bonus": 0, "effect": "Increase this armor's maximum Dexterity bonus by +2 total and gain +1 to Acrobatics checks while wearing it." }
  ]
}
