#spawns

# Example CLF objective-point vendor.
# Mirrors the CLF weapons rack but costs are paid from the CLF faction win-point pool.
# Each entry's "points" value is the win-point cost to purchase it.
- type: entity
  parent: ColMarTechBase
  id: AU14CLFObjectiveWeaponsVendor
  name: CLF Requisitions Rack
  description: A high-value weapons cache accessible only with CLF operational funds.
  suffix: CLF, Objective Points
  components:
  - type: Pullable
  - type: Sprite
    sprite: _AU14/Structures/Vendors/genericweaponrack.rsi
    layers:
    - state: "base"
      map: [ "enum.VendingMachineVisualLayers.BaseUnshaded", "enum.VendingMachineVisualLayers.Base" ]
  - type: CMAutomatedVendor
    useObjectivePoints: true
    faction: clf
    sections:
    - name: Rifles
      entries:
      - id: AU14WeaponRifleM16A1
        amount: 2
        points: 6
      - id: AU14WeaponRifleM16A2
        amount: 3
        points: 5
      - id: AU14WeaponRifleAR10
        amount: 3
        points: 4
      - id: RMCWeaponBoltActionRifle
        amount: 3
        points: 2
      - id: WeaponRifleMAR40
        amount: 2
        points: 10
      - id: RMCWeaponRifleType71C
        amount: 1
        points: 7
    - name: Shotguns
      entries:
      - id: RMCWeaponShotgunHG3712
        amount: 1
        points: 7
      - id: WeaponShotgunM357Sawn
        amount: 2
        points: 4
      - id: WeaponShotgunM357
        amount: 3
        points: 5
    - name: Handguns
      entries:
      - id: CMWeaponPistolM1984Empty
        amount: 3
        points: 3
      - id: RMCWeaponPistolB92FS
        amount: 2
        points: 4
      - id: RMCWeaponRevolverM44
        amount: 3
        points: 4
      - id: RMCWeaponPistolHoldout
        amount: 10
        points: 1
      - id: RMCWeaponPistolD18
        amount: 7
        points: 3
    - name: Special Weapons
      entries:
      - id: RMCWeaponLauncherHJRA12
        amount: 1
        points: 10
      - id: RMCWeaponLauncherDisposableFolded
        amount: 1
        points: 8
      - id: RMCWeaponMar50LMG
        amount: 1
        points: 11
      - id: RMCM2CMount
        amount: 1
        points: 19
    - name: Rifle Ammunition
      entries:
      - id: RMCMagazineRifleM16
        amount: 85
        points: 1
      - id: RMCMagazineRifleHunting
        amount: 25
        points: 1
      - id: RMCMagazineRifleMAR40
        amount: 35
        points: 1
      - id: RMCMagazineMar50LMG
        amount: 2
        points: 3
      - id: RMCMagazineLMGM60
        amount: 5
        points: 2
      - id: RMCMagazineRifleType71
        amount: 9
        points: 2
      - id: RMCMagazineRifleType71AP
        amount: 9
        points: 6
      - id: RMCMagazineM2C
        amount: 9
        points: 4
    - name: Shotgun Ammunition
      entries:
      - id: RMCBoxShotgunFlechette
        amount: 7
        points: 1
      - id: RMCBoxShotgunBuckshot
        amount: 6
        points: 1
      - id: RMCBoxShotgunSlugs
        amount: 6
        points: 1
    - name: Handgun Ammunition
      entries:
      - id: CMMagazinePistolM1984
        amount: 30
        points: 1
      - id: RMCMagazinePistolB92FS
        amount: 20
        points: 1
      - id: RMCMagazinePistolHoldout
        amount: 30
        points: 1
      - id: RMCSpeedLoaderM44
        amount: 30
        points: 1
      - id: RMCSpeedLoader44Marksman
        amount: 2
        points: 2
      - id: RMCMagazinePistolD18
        amount: 35
        points: 1
    - name: Explosives
      entries:
      - id: RMCGrenadeMolotov
        amount: 10
        points: 2
      - id: CMGrenadeSmoke
        amount: 5
        points: 2
      - id: AU14GrenadeNeuroRMC
        amount: 2
        points: 9
      - id: RMCGrenadeIED
        amount: 4
        points: 5
      - id: RMCExplosivePlastic
        amount: 2
        points: 8
      - id: RMCRocketHJRA12HE
        amount: 4
        points: 9
      - id: RMCRocketHJRA12AT
        amount: 5
        points: 11
    - name: Improvised Explosive Devices
      entries:
      - id: CMMultitool
        amount: 10
        points: 1
      - id: AU14RemoteSignallerAdvanced
        amount: 10
        points: 1
      - id: AU14IED
        amount: 6
        points: 6
      - id: AU14IEDVest
        amount: 2
        points: 10
      - id: AU14IEDLarge
        amount: 3
        points: 15
    - name: Protective Equipment
      entries:
      - id: ArmorHelmetPMCRiot
        amount: 5
        points: 3
      - id: AU14UACGHelmet
        amount: 5
        points: 3
      - id: RMCCoatMilitiaVest
        amount: 5
        points: 7
      - id: CMMaskGas
        amount: 5
        points: 3
      - id: CMUGasMaskFilter
        amount: 5
        points: 2
    - name: Special Equipment
      entries:
      - id: CMUCLFSynthSubversionKey
        amount: 1
        points: 20
      - id: AU14TattooInkCartridge
        amount: 10
        points: 6
      - id: AU14TattooGun
        amount: 3
        points: 8
    - name: Mortar
      entries:
      - id: RMCRangefinder
        amount: 5
        points: 3
      - id: RMCMortarKit
        amount: 1
        points: 20
      - id: RMCMortarShellFlare
        amount: 10
        points: 3
      - id: RMCMortarShellHE
        amount: 10
        points: 6
      - id: AU14MortarShellHEATMP
        amount: 10
        points: 8
      - id: RMCMortarShellIncendiary
        amount: 5
        points: 12
  - type: Transform
    anchored: false
    noRot: true
  - type: Physics
    bodyType: Dynamic



- type: clfSpawnConfig
  id: CLFSpawnConfig
  # Additional entity prototypes that CLF can spawn at during round start
  # These will be used alongside any entities with SafehouseMarkerComponent
  additionalItems:
  - AU14CrateCivilianClothingRandom
  - AU14CLFObjectiveWeaponsVendor
  - AU14CrateCivilianClothingRandom
  - AU14CrateCLFinitalTools
  - RMCCrateMedicalFirstAid
  - RMCComputerIntelCLF
  - ComputerObjectivesCLF
  - AU14AnalyzerMachineCLF
  - RMCLampTripod
  - RMCTechTreeConsoleCLF
  - CMFaxCLF
- type: entity
  name: Generic Safhouse Marker
  parent: MarkerBase
  id: safehousemarker
  components:
  - type: Sprite
    state: green
  - type: SafehouseMarker


- type: entity
  parent: RMCCrateBase
  id: AU14CrateCLFinitalTools
  name: Crate
  description: Contains several tools
  components:
  - type: Sprite
    state: crate
  - type: StorageFill
    contents:
    - id: RMCM54CMK1Case
      amount: 1
    - id: RMCM54CMK1CaseAP
      amount: 1
    - id: RMCGunCasePistolZHNK72
      amount: 1
    - id: RMCGunCasePistolMK80
      amount: 1
    - id: RMCGunCasePistolM44
      amount: 1
    - id: CMPackFlareBase
      amount: 3
    - id: AU14BaseDefibrillator
      amount: 1
    - id: RMCRangefinder
      amount: 2
    - id: AU14BeltUtilityFilled
      amount: 2
    - id: RMCBoxFlashlights
      amount: 2
    - id: AU14CLFHeadset
      amount: 5
    - id:  AU14TattooInkCartridge
      amount: 2
    - id: AU14TattooGun
      amount: 1


- type: entity
  parent: CMFax
  id: CMFaxCLF
  suffix: CLF
  components:
  - type: FaxMachine
    name: "Colony Liberation Front"
    notifyAdmins: true
# Inscribed M44 - Unique CLF Veteran sidearm
- type: entity
  parent: RMCWeaponRevolverM44Custom
  id: AU14WeaponRevolverM44Inscribed
  name: inscribed M44 combat revolver
  description: A well-worn M44 combat revolver with crude inscriptions scratched into the barrel and grip. The words 'FREEDOM OR DEATH' are etched along the side. This weapon has clearly seen many battles.
  components:
  - type: RevolverAmmoProvider
    proto: RMCCartridgeRevolver44
    capacity: 10
    chambers: [ True, True, True, True, True, True, True ]
    ammoSlots: [ null, null, null, null, null, null, null ]
  - type: RMCSelectiveFire
    baseFireRate: 6

- type: entity
  name: Tattoo Gun
  parent: BaseStorageItem
  id: AU14TattooGun
  description: Used to induct people into the CLF.
  components:
  - type: TattooGun
  - type: Sprite
    sprite: Objects/Weapons/Guns/Cannons/syringe_gun.rsi
    layers:
    - state: syringe_gun
  - type: Storage
    maxItemSize: Normal
    grid:
    - 0,0,1,1
    whitelist:
      tags:
      - TattooInk
  - type: ContainerAmmoProvider
    container: storagebase
  - type: Item
    size: Normal
  - type: ContainerContainer
    containers:
      storagebase: !type:Container
        ents: []

# Ink cartridge for the tattoo gun
- type: Tag
  id: TattooInk

- type: entity
  parent: BaseItem
  id: AU14TattooInkCartridge
  name: tattoo ink cartridge

  description: A small cartridge of dark ink for use with a tattoo gun.
  components:
  - type: Sprite
    sprite: Objects/Specific/Chemistry/syringe.rsi
    layers:
    - state: minisyringe1
      map: ["enum.SolutionContainerLayers.Fill"]
      visible: true
    - state: syringeproj

  - type: Item
    size: Tiny
  - type: Tag
    tags:
    - TattooInk



- type: entity
  parent: CMJumpsuitColonist
  id: AU14CMJumpsuitColonistCLF
  name: colonist uniform
  description: A stylish gray-green jumpsuit - standard issue for colonists. This one has a small earpiece clipped to the collar.
  suffix: CLF
  components:
  - type: UniformAccessoryHolder
    allowedCategories:
    - Tie
    - Patch
    - Medal
    - Armband
    - PridePin
    - Rank
    - Decor
    - Poncho
    - Mask
    - Utility
    startingAccessories:
    - AU14CLFHeadset

- type: entity
  parent: RMCJumpsuitCivilian
  id: AU14RMCJumpsuitCivilianCLF
  name: gray utility uniform
  description: A stylish gray jumpsuit, popularly issued to UN contract workers on the frontier. This one has a small earpiece clipped to the collar.
  suffix: CLF
  components:
  - type: UniformAccessoryHolder
    allowedCategories:
    - Tie
    - Patch
    - Medal
    - Armband
    - PridePin
    - Rank
    - Decor
    - Poncho
    - Mask
    - Utility
    startingAccessories:
    - AU14CLFHeadset

