# SPDX-FileCopyrightText: 2025 Kutosss <162154227+Kutosss@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 LuciferEOS <stepanteliatnik2022@gmail.com>
# SPDX-FileCopyrightText: 2025 ReserveBot <211949879+ReserveBot@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Svarshik <96281939+lexaSvarshik@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

# Armor

- type: entityTable
  id: RoyaleArmorTable
  table: !type:GroupSelector
    children:
    # Tier 1 - Common (40%) (little: <45% protection)
    - !type:GroupSelector
      weight: 40
      children:
      - id: ClothingOuterArmorBasicSlim
      - id: ClothingOuterArmorBasic
      - id: ClothingOuterDogi
      - id: ClothingOuterLightVestSwat
      - id: ClothingOuterCoatDetective
      - id: ClothingOuterHardsuitLuxury
      - id: ClothingOuterVestDetective
      - id: ClothingOuterHardsuitCap
      - id: ClothingOuterHardsuitCombatStandard
      - id: ClothingOuterHardsuitCombatRiot
      - id: ClothingOuterWinterHoS
      - id: GoobClothingOuterHardsuitSpirate
      - id: ClothingOuterCoatDetectiveLoadoutGrey
      - id: ClothingModsuitParamedicPowerCell
      - id: ClothingOuterHardsuitLing
    # Tier 2 - Uncommon (35%) (mediocre: 45-55% protection)
    - !type:GroupSelector
      weight: 35
      children:
      - id: ClothingOuterArmorBulletproof
      - id: ClothingOuterArmorRiot
      - id: ClothingOuterArmorReflective
      - id: ClothingOuterWinterSyndieCapArmored
      - id: ClothingOuterCoatSyndieCapArmored
      - id: ClothingOuterVoidsuitSecurity
      - id: ClothingOuterArmorHoSVestWeb
      - id: ClothingModsuitSecurityPowerCell
      - id: ClothingOuterHardsuitPirateCap
      - id: ClothingOuterHardsuitWarden
      - id: ClothingOuterArmorChangeling
      - id: ClothingOuterHardsuitGoliath
      - id: ClothingOuterHardsuitHeadOfSecurityExperimental
      - id: ClothingModsuitPraetorian
      - id: ClothingOuterHardsuitBlueshieldLight
    # Tier 3 - Rare (20%) (good: 55-70% protection)
    - !type:GroupSelector
      weight: 15
      children:
      - id: ClothingOuterVestWebElite
      - id: ClothingModsuitHeadOfSecurityPowerCell
      - id: ClothingOuterMediumVestSwat
      - id: ClothingOuterWinterBlueshield
      - id: ClothingOuterArmorBone
      - id: ClothingOuterArmourInvisibleSyndie
      - id: ClothingOuterArmorCaptainCarapace
      - id: ClothingOuterArmorCult
      - id: ClothingOuterHardsuitSyndie
      - id: ClothingOuterHardsuitERTSecurity
      - id: ClothingOuterHeavyVestSwat
      - id: ClothingOuterHardsuitCBURN
      - id: ClothingOuterHardsuitCBURNLeader
      - id: ClothingOuterHardsuitSyndieElite
      - id: ClothingBlueshieldArmourVest
    # Tier 4 - Very Rare (10%) (very good: 60-80% protection)
    - !type:GroupSelector
      weight: 10
      children:
      - id: ClothingOuterVestWeb
      - id: ClothingOuterVestWebDurathread
      - id: ClothingOuterVestWebMerc
      - id: ClothingOuterArmorHeavy
      - id: ClothingOuterArmorHeavyGreen
      - id: ClothingOuterArmorHeavyRed
      - id: ClothingOuterHardsuitSyndie
      - id: ClothingOuterHardsuitMaxim
      - id: ClothingOuterArmorRaid
      - id: ClothingOuterHardsuitSyndieMedic
      - id: ClothingOuterArmorHeretic

- type: entity
  name: BR Armor Spawner
  description: BR issue
  suffix: DO NOT MAP, Battle Royale
  id: RoyalArmorTableSpawner
  parent: MarkerBase
  components:
  - type: Sprite
    layers:
    - state: red
    - sprite: Clothing/OuterClothing/Armor/captain_carapace.rsi
      state: icon
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: RoyaleArmorTable
      prob: 0.7

#Helmets
- type: entityTable
  id: RoyaleHelmetTable
  table: !type:GroupSelector
    children:
    # Tier 1 - no armor (40%) (little: <10% protection)
    - !type:GroupSelector
      weight: 40
      children:
      - id: ClothingHeadHatWelding
      - id: ClothingHeadHatWeldingMaskFlame
      - id: ClothingHeadHatWeldingMaskFlameBlue
      - id: ClothingHeadHatWeldingMaskPainted
      - id: ClothingHeadHatShrineMaidenWig
      - id: ClothingHeadHatHoodMoth
      - id: ClothingHeadHatHardhatYellow
      - id: ClothingHeadHatWitch1
      - id: ClothingHeadHatChameleon
      - id: ClothingHeadHatRichard
      - id: ClothingHeadHatCasa
      - id: ClothingHeadHatCatEars
      - id: ClothingHeadHelmetAtmosFire
      - id: ClothingHeadHelmetFire
      - id: ClothingHeadHatTacticalMaidHeadband
      - id: ClothingHeadHelmetEVALarge
      - id: ClothingHeadHelmetCosmonaut
      - id: ClothingHeadHatWatermelon
      - id: ClothingHeadHatPirateTricord
      - id: ClothingHeadHatCone
      - id: ClothingHeadHatBeretFrench
    # Tier 2 - Uncommon (35%) (mediocre: 30-40% protection)
    - !type:GroupSelector
      weight: 35
      children:
      - id: ClothingHeadHelmetERTSecurity
      - id: ClothingHeadHatHardhatArmored
      - id: ClothingHeadHelmetMerc
      - id: ClothingHeadHelmetBombSuit
      - id: ClothingHeadHelmetBasicAlt
      - id: ClothingHeadHelmetSyndicate
      - id: ClothingHeadHelmetJustice
      - id: ClothingHeadHelmetBone
    # Tier 3 - Rare (20%) (good: 55-70% protection)
    - !type:GroupSelector
      weight: 15
      children:
      - id: ClothingHeadHelmetRiot
      - id: ClothingHeadHelmetWizardHelm
      - id: ClothingHeadHelmetCult
    # Tier 4 - Very Rare (10%) (very good: 60-80% protection)
    - !type:GroupSelector
      weight: 10
      children:
      - id: ClothingHeadHelmetRaid
      - id: ClothingHeadHelmetAbductor
      - id: ClothingHeadHelmetSwatSyndicate
      - id: ClothingHeadHelmetSwat

- type: entity
  name: BR Helmet Spawner
  description: BR issue
  suffix: DO NOT MAP, Battle Royale
  id: RoyalHelmetTableSpawner
  parent: MarkerBase
  components:
  - type: Sprite
    layers:
    - state: red
    - sprite: Clothing/Head/Helmets/light_riot.rsi
      state: icon
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: RoyaleHelmetTable
      prob: 0.6
