# SPDX-FileCopyrightText: 2022 Mervill <mervills.email@gmail.com>
# SPDX-FileCopyrightText: 2022 T-Stalker <43253663+DogZeroX@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Veritius <veritiusgaming@gmail.com>
# SPDX-FileCopyrightText: 2022 mirrorcult <lunarautomaton6@gmail.com>
# SPDX-FileCopyrightText: 2023 Puro <103608145+PuroSlavKing@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Aiden <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2024 Aidenkrz <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2024 Alice "Arimah" Heurlin <30327355+arimah@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Ed <96445749+TheShuEd@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Errant <35878406+Errant-4@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Flareguy <78941145+Flareguy@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 HS <81934438+HolySSSS@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Hanz <41141796+Hanzdegloker@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 IProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Ilya246 <57039557+Ilya246@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Mr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Nairod <110078045+Nairodian@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 PJBot <pieterjan.briers+bot@gmail.com>
# SPDX-FileCopyrightText: 2024 Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
# SPDX-FileCopyrightText: 2024 Plykiya <58439124+Plykiya@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Rouge2t7 <81053047+Sarahon@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Tayrtahn <tayrtahn@gmail.com>
# SPDX-FileCopyrightText: 2024 Truoizys <153248924+Truoizys@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 TsjipTsjip <19798667+TsjipTsjip@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Ubaser <134914314+UbaserB@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Vasilis <vasilis@pikachu.systems>
# SPDX-FileCopyrightText: 2024 beck-thompson <107373427+beck-thompson@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 deltanedas <39013340+deltanedas@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 deltanedas <@deltanedas:kde.org>
# SPDX-FileCopyrightText: 2024 lzk <124214523+lzk228@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 osjarw <62134478+osjarw@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 plykiya <plykiya@protonmail.com>
# SPDX-FileCopyrightText: 2024 ~DreamlyJack~ <148849095+DreamlyJack@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Арт <123451459+JustArt1m@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  id: Dresser
  parent: BaseStructure
  name: dresser
  description: Wooden dresser, can store things inside itself, ideal for underwear, and someone's kidneys?...
  components:
  - type: Sprite
    sprite: Structures/Furniture/furniture.rsi
    state: dresser
  - type: Damageable
    damageModifierSet: Wood
    damageContainer: StructuralInorganic
  - type: Destructible
    thresholds:
    - trigger: # Excess damage, don't spawn entities
        !type:DamageTrigger
        damage: 100
      behaviors:
      - !type:DoActsBehavior
        acts: ["Destruction"]
    - trigger:
        !type:DamageTrigger
        damage: 50
      behaviors:
      - !type:SpawnEntitiesBehavior
        spawn:
          MaterialWoodPlank1:
            min: 3
            max: 3
      - !type:DoActsBehavior
        acts: [ "Destruction" ]
  - type: Storage
    grid:
    - 0,0,6,3
    maxItemSize: Normal
  - type: ContainerContainer
    containers:
      storagebase: !type:Container
  - type: UserInterface
    interfaces:
      enum.StorageUiKey.Key:
        type: StorageBoundUserInterface
  - type: InteractionOutline
  - type: Clickable
  - type: Tag
    tags:
    - Wooden
  - type: Anchorable
  - type: Rotatable
  - type: Construction
    graph: Dresser
    node: dresser

- type: entity
  id: DresserFilled
  parent: Dresser
  suffix: Filled
  components:
  - type: StorageFill
    contents:
      - id: ClothingNeckLGBTPin
        prob: 0.06
        orGroup: dressermainloot
      - id: ClothingUniformJumpsuitColorGrey
        prob: 0.06
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtColorGrey
        prob: 0.06
        orGroup: dressermainloot
      - id: ClothingUniformJumpsuitColorWhite
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtColorWhite
        prob: 0.05
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpsuitColorPink
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtColorPink
        prob: 0.05
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpsuitLoungewear
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtBlackElegantDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtRedElegantDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtGreenElegantDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtBlueElegantDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtPurpleElegantDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtCyanStripedDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtRedStripedDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtGreenStripedDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtPinkStripedDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtOrangeStripedDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtPurpleTurtleneckDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtRedTurtleneckDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtGreenTurtleneckDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtBlueTurtleneckDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtYellowTurtleneckDress
        prob: 0.05
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtYellowOldDress
        prob: 0.05
        orGroup: dressermainloot
      - id: Pen # It`s pen.
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingUniformJumpsuitColorBlue
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtColorBlue
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpsuitColorYellow
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtColorYellow
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpsuitColorGreen
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtColorGreen
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpsuitColorOrange
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpskirtColorOrange
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpsuitColorRed
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtColorRed
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpsuitColorPurple
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtColorPurple
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpsuitColorDarkBlue
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtColorDarkBlue
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUniformJumpsuitColorTeal
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpskirtColorTeal
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingShoesColorBlack
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingNeckScarfStripedRed
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingNeckScarfStripedBlue
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingNeckScarfStripedGreen
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingHeadHatGreysoft
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingHeadHatCorpsoft
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingHeadHatBunny
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingOuterHoodieBlack
        prob: 0.03
        orGroup: dressersecondloot
      - id: BedsheetNT
        prob: 0.03
        orGroup: dresserthirdloot
      - id: BedsheetGrey
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingOuterWinterClown
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingOuterCoatBomber
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingEyesEyepatch
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingHeadHatPaper
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingMaskBreath
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingHeadHatWitch
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingOuterCoatLab
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingHeadHatFedoraGrey
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpsuitHawaiBlue
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingHeadHatAnimalHeadslime
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingMultipleHeadphones
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingUnderSocksCoder
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingUnderSocksBee
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingHeadHatAnimalMonkey
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingShoesWizard
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingOuterDameDane
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingHeadHatShrineMaidenWig
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingOuterPoncho
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingShoesBootsWork
        prob: 0.03
        orGroup: dressermainloot
      - id: ClothingOuterWinterCoat
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingMaskFox
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingEyesGlassesGar
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingOuterCoatGentle
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingHeadHatBeret
        prob: 0.03
        orGroup: dresserthirdloot
      - id: PlushieLizard
        prob: 0.03
        orGroup: dresserthirdloot
      - id: ClothingOuterSuitShrineMaiden
        prob: 0.03
        orGroup: dressersecondloot
      - id: ClothingOuterClownPriest
        prob: 0.02
        orGroup: dressersecondloot
      - id: ClothingHeadHatXmasCrown
        prob: 0.02
        orGroup: dresserthirdloot
      - id: ClothingMaskNeckGaiter
        prob: 0.02
        orGroup: dressersecondloot
      - id: ClothingHeadHatBeretBrigmedic
        prob: 0.02
        orGroup: dresserthirdloot
      - id: ClothingMaskGas
        prob: 0.008
        orGroup: dressersecondloot
      - id: CablecuffsBroken
        prob: 0.008
        orGroup: dressersecondloot
      - id: ClothingOuterVestHazard
        prob: 0.008
        orGroup: dressersecondloot
      - id: ClothingHandsGlovesLatex
        prob: 0.008
        orGroup: dressermainloot
      - id: ClothingHandsGlovesColorWhite
        prob: 0.008
        orGroup: dressermainloot
      - id: ClothingHandsGlovesBoxingYellow
        prob: 0.008
        orGroup: dressermainloot
      - id: ClothingOuterGhostSheet
        prob: 0.008
        orGroup: dressersecondloot
      - id: ClothingUniformJumpskirtJanimaid
        prob: 0.005
        orGroup: dressermainloot
      - id: ClothingUniformJumpskirtJanimaidmini
        prob: 0.005
        orGroup: dressermainloot
      - id: ClothingNeckScarfStripedSyndieRed
        prob: 0.005
        orGroup: dressermainloot
      - id: ClothingOuterCoatJensen
        prob: 0.005
        orGroup: dressersecondloot
      - id: ClothingMaskMuzzle
        prob: 0.003
        orGroup: dressersecondloot
      - id: ClothingHandsGlovesColorYellowBudget
        prob: 0.002
        orGroup: dressermainloot
      - id: ClothingHeadPyjamaSyndicatePink
        prob: 0.002
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpsuitPyjamaSyndicatePink
        prob: 0.002
        orGroup: dressermainloot
      - id: ClothingHeadHatTacticalMaidHeadband
        prob: 0.001
        orGroup: dresserthirdloot
      - id: FoodTinMRE
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodCornTrash
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodTinPeachesMaintTrash
        prob: 0.010
        orGroup: dressermainloot
      - id: PaperRolling1
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodTinPeachesTrash
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodFrozenPopsicleTrash
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodPlateTrash
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodFrozenSnowconeTrash
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodTinBeansTrash
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodTinMRETrash
        prob: 0.010
        orGroup: dressermainloot
      - id: TrashBananaPeel
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodPlateSmallTrash
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodBowlBigTrash
        prob: 0.010
        orGroup: dressermainloot
      - id: FoodTinMRE
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodCornTrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodTinPeachesMaintTrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: PaperRolling1
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodTinPeachesTrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodFrozenPopsicleTrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodPlateTrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodFrozenSnowconeTrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodTinBeansTrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodTinMRETrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: TrashBananaPeel
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodPlateSmallTrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodBowlBigTrash
        prob: 0.010
        orGroup: dressersecondloot
      - id: FoodTinMRE
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodCornTrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodTinPeachesMaintTrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: PaperRolling1
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodTinPeachesTrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodFrozenPopsicleTrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodPlateTrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodFrozenSnowconeTrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodTinBeansTrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodTinMRETrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: TrashBananaPeel
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodPlateSmallTrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: FoodBowlBigTrash
        prob: 0.010
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpskirtTacticalMaid
        prob: 0.001
        orGroup: dressermainloot
      - id: ClothingUniformJumpsuitNanotrasen
        prob: 0.001
        orGroup: dressermainloot
      - id: Shiv
        prob: 0.001
        orGroup: dressersecondloot
      - id: BikeHorn
        prob: 0.001
        orGroup: dressersecondloot
      - id: DrinkWaterBottleFull
        prob: 0.001
        orGroup: dressersecondloot
      - id: BrokenBottle
        prob: 0.001
        orGroup: dressersecondloot
      - id: FoodMeatRotten
        prob: 0.001
        orGroup: dressersecondloot
      - id: ClothingOuterSkub
        prob: 0.0008
        orGroup: dressersecondloot
      - id: ClothingNeckCloakMoth
        prob: 0.0003
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpsuitPrisoner
        prob: 0.0003
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpskirtPrisoner
        prob: 0.0003
        orGroup: dresserthirdloot
      - id: ClothingOuterWinterCentcom
        prob: 0.0001
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpskirtOfLife
        prob: 0.0001
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpsuitSyndieFormal
        prob: 0.0001
        orGroup: dresserthirdloot
      - id: ClothingUniformJumpskirtSyndieFormalDress
        prob: 0.0001
        orGroup: dresserthirdloot
      - id: ClothingOuterWinterSyndie
        prob: 0.0001
        orGroup: dresserthirdloot
      - id: ClothingHeadHatRichard
        prob: 0.0001
        orGroup: dresserthirdloot
      - id: ClothingOuterDogi
        prob: 0.00001
        orGroup: dressersecondloot
      - id: HeadHuman
        prob: 0.00001
        orGroup: dressersecondloot
      - id: OrganHumanKidneys
        prob: 0.00001
        orGroup: dressersecondloot