# SPDX-FileCopyrightText: 2024 Piras314 <p1r4s@proton.me>
# SPDX-FileCopyrightText: 2024 Scruq445 <storchdamien@gmail.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Fishbait <Fishbait@git.ml>
# SPDX-FileCopyrightText: 2025 fishbait <gnesse@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  id: CrateFunATV
  parent: CrateLivestock
  name: ATV crate
  description: An Absolutely Taxable Vehicle to help cargo with hauling.
  components:
  - type: StorageFill
    contents:
      - id: VehicleATV
      - id: VehicleKeyATV

- type: entity
  id: CrateFunSyndicateSegway
  parent: CrateLivestock
  name: Syndicate segway crate
  description: A crate containing a two-wheeler that will help you escape from the security officers. Or not.
  components:
    - type: StorageFill
      contents:
        - id: VehicleSyndicateSegway
        - id: VehicleKeySyndicateSegway


- type: entity
  id: CrateFunBingleLoot
  parent: CrateBingle
  name: Bingle loot
  components:
  - type: StorageFill
    contents:
    - id: PlushieBingle
      amount: 3
    - id: PlushieBingleSmall
    - id: PlushieBongle
    - id: PlushieBingleYakub
    - id: PlushieBinglePony

- type: entity
  id: CrateFunBingleAdmeme
  parent: CrateBingle
  suffix: Admeme voice triggered bingle crate
  name: Bingle
  components:
  - type: SpawnOnTrigger
    proto: MobBingle
  - type: TriggerOnVoice
    keyPhrase: Bingle
  - type: ActiveListener
    range: 4

- type: entity
  id: CrateFunDiscoBeachBall
  parent: CrateGenericSteel
  name: disco beach ball crate
  description: A crate containing a Disco Beach Ball that turns any beach trip into Studio 54.
  components:
  - type: StorageFill
    contents:
    - id: DiscoBeachBall
      amount: 1

- type: entity
  id: CrateWizardAnomCore
  name: Crate of Enchanting
  description: A box containing stolen anomaly cores, used for enchanting.
  parent: CratePirate
  components:
  #ONLY contains anomalies with enchantcomp.
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:AllSelector
        children:
        - !type:NestedSelector
          tableId: RandomAnomalyCoreEnchantTable 
        - !type:NestedSelector
          tableId: RandomAnomalyCoreInertEnchantTable
          rolls: 2

- type: entityTable
  id: RandomAnomalyCoreEnchantTable
  table: !type:GroupSelector
    children:
    - id: AnomalyCorePyroclastic
    - id: AnomalyCoreGravity
    - id: AnomalyCoreIce
    - id: AnomalyCoreFlesh
    - id: AnomalyCoreRock
    - id: AnomalyCoreLiquid
    - id: AnomalyCoreElectricity
    - id: AnomalyCoreFlora
    - id: AnomalyCoreSanta

- type: entityTable
  id: RandomAnomalyCoreInertEnchantTable
  table: !type:GroupSelector
    children:
    - id: AnomalyCorePyroclasticInert
    - id: AnomalyCoreGravityInert
    - id: AnomalyCoreIceInert
    - id: AnomalyCoreFleshInert
    - id: AnomalyCoreRockInert
    - id: AnomalyCoreLiquidInert
    - id: AnomalyCoreElectricityInert
    - id: AnomalyCoreFloraInert
    - id: AnomalyCoreSantaInert
