# SPDX-FileCopyrightText: 2022 ChilbroBaggins <107660393+ChilbroBaggins@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Jeff <velcroboy333@hotmail.com>
# SPDX-FileCopyrightText: 2022 Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
# SPDX-FileCopyrightText: 2023 Velcroboy <107660393+ChilbroBaggins@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 potato1234_x <79580518+potato1234x@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: MIT

- type: entity
  id: RandomFoodBakedWhole
  name: random baked food spawner
  suffix: Whole
  parent: MarkerBase
  placement:
    mode: PlaceFree  # Reserve: Better spawners
  components:
  - type: Transform
    anchored: false  # Reserve: Better spawners
  - type: Sprite
    layers:
      - state: red
      - sprite: Objects/Consumable/Food/Baked/pie.rsi
        state: plain
  - type: RandomSpawner
    prototypes:
      - FoodBreadVolcanic
      - FoodBreadPlain
      - FoodBreadMeat
      - FoodBreadCorn
      - FoodBreadSausage
      - FoodBreadBanana
      - FoodBreadTofu
      - FoodBreadCreamcheese
      - FoodBreadBaguette
      - FoodCakeBlueberry
      - FoodCakePlain
      - FoodCakeCheese
      - FoodCakeCarrot
      - FoodCakeOrange
      - FoodCakeLime
      - FoodCakeLemon
      - FoodCakeChocolate
      - FoodCakeApple
      - FoodCakeSlime
      - FoodCakePumpkin
      - FoodCakeChristmas
      - FoodCakeBirthday
      - FoodCakeVanilla
      - FoodCakeBerryDelight
      - FoodCakeCotton
      - FoodPieApple
      - FoodPieBaklava
      - FoodPieBananaCream
      - FoodPieClafoutis
      - FoodPieCherry
      - FoodPieMeat
      - FoodPieFrosty
      - FoodBakedBrownieBatch
    chance: 0.8
    offset: 0.0
    rarePrototypes:
      - FoodBreadMeatSpider
      - FoodBreadMimana
      - FoodCakeBrain
      - FoodCakeClown
      - FoodCakeSpaceman
      - FoodPieXeno
      - FoodPieAmanita
      - FoodPiePlump
      - FoodBreadMeatXeno
      - FoodPieXeno
      - FoodBakedCannabisBrownieBatch
    rareChance: 0.05
