# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aidenkrz <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2025 Aineias1 <dmitri.s.kiselev@gmail.com>
# SPDX-FileCopyrightText: 2025 FaDeOkno <143940725+FaDeOkno@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
# SPDX-FileCopyrightText: 2025 McBosserson <148172569+McBosserson@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Milon <plmilonpl@gmail.com>
# SPDX-FileCopyrightText: 2025 PeccNeck <74548962+PeccNeck@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Piras314 <p1r4s@proton.me>
# SPDX-FileCopyrightText: 2025 Rouden <149893554+Roudenn@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 TheBorzoiMustConsume <197824988+TheBorzoiMustConsume@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Unlumination <144041835+Unlumy@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 deltanedas <39013340+deltanedas@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 deltanedas <@deltanedas:kde.org>
# SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 gluesniffler <linebarrelerenthusiast@gmail.com>
# SPDX-FileCopyrightText: 2025 username <113782077+whateverusername0@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 whateverusername0 <whateveremail>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  abstract: true
  parent: BaseItem
  id: BaseShelterCapsule
  components:
  - type: Sprite
    sprite: _Lavaland/Objects/Specific/Salvage/capsule.rsi
    state: capsule
  - type: Item
    size: Tiny
  - type: UseDelay
    delay: 5 # avoid spamming popups when you know it will fail to spawn a room
  - type: ShelterCapsule

- type: entity
  parent: BaseShelterCapsule
  id: ShelterCapsule
  name: bluespace shelter capsule
  description: An emergency shelter stored within a pocket of bluespace.
  components:
  - type: ShelterCapsule
    deployTime: 5.0
    preloadedGrid: ShelterCapsule5x5
    boxSize: 5,5
    offset: -2.5,-2.5

- type: entity
  parent: BaseShelterCapsule
  id: ShelterCapsuleLuxury
  name: luxury bluespace shelter capsule
  description: An exorbitantly expensive luxury suite stored within a pocket of bluespace.
  components:
  - type: ShelterCapsule
    deployTime: 8.0
    preloadedGrid: ShelterCapsule7x7
    boxSize: 7,7
    offset: -3.5,-3.5

# Grids
- type: preloadedGrid
  id: ShelterCapsule5x5
  path: /Maps/_Lavaland/Shelters/shelter_5x5.yml
  copies: 0

- type: preloadedGrid
  id: ShelterCapsule7x7
  path: /Maps/_Lavaland/Shelters/shelter_7x7.yml
  copies: 0
