# These define Meteor Walls separate from Asteroid walls so they have different properties
- type: entity
  id: MeteorRock
  parent: AsteroidRock
  name: meteorite rock
  description: What remains of a meteorite.
  components:
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 12 #This change makes meteorite walls easier to destroy for cleanup
      behaviors:
      - !type:DoActsBehavior
        acts: ["Destruction"]
      - !type:PlaySoundBehavior
        sound:
          path: /Audio/Effects/break_stone.ogg
          params:
            volume: -6

# Ore veins
- type: entity
  id: MeteorRockCoal
  parent: MeteorRock
  description: An ore vein rich with coal.
  suffix: Coal
  components:
    - type: OreVein
      oreChance: 1.0
      currentOre: OreCoal
    - type: Sprite
      layers:
        - state: rock_asteroid
        - map: [ "enum.EdgeLayer.South" ]
          state: rock_asteroid_south
        - map: [ "enum.EdgeLayer.East" ]
          state: rock_asteroid_east
        - map: [ "enum.EdgeLayer.North" ]
          state: rock_asteroid_north
        - map: [ "enum.EdgeLayer.West" ]
          state: rock_asteroid_west
        - state: rock_coal

- type: entity
  id: MeteorRockGold
  parent: MeteorRock
  description: An ore vein rich with gold.
  suffix: Gold
  components:
    - type: OreVein
      oreChance: 1.0
      currentOre: OreGold
    - type: Sprite
      layers:
        - state: rock_asteroid
        - map: [ "enum.EdgeLayer.South" ]
          state: rock_asteroid_south
        - map: [ "enum.EdgeLayer.East" ]
          state: rock_asteroid_east
        - map: [ "enum.EdgeLayer.North" ]
          state: rock_asteroid_north
        - map: [ "enum.EdgeLayer.West" ]
          state: rock_asteroid_west
        - state: rock_gold

- type: entity
  id: MeteorRockDiamond
  parent: MeteorRock
  description: An ore vein rich with diamonds.
  suffix: Diamond
  components:
    - type: OreVein
      oreChance: 1.0
      currentOre: OreDiamond
    - type: Sprite
      layers:
        - state: rock_asteroid
        - map: [ "enum.EdgeLayer.South" ]
          state: rock_asteroid_south
        - map: [ "enum.EdgeLayer.East" ]
          state: rock_asteroid_east
        - map: [ "enum.EdgeLayer.North" ]
          state: rock_asteroid_north
        - map: [ "enum.EdgeLayer.West" ]
          state: rock_asteroid_west
        - state: rock_diamond

- type: entity
  id: MeteorRockPlasma
  parent: MeteorRock
  description: An ore vein rich with plasma.
  suffix: Plasma
  components:
    - type: OreVein
      oreChance: 1.0
      currentOre: OrePlasma
    - type: Sprite
      layers:
        - state: rock_asteroid
        - map: [ "enum.EdgeLayer.South" ]
          state: rock_asteroid_south
        - map: [ "enum.EdgeLayer.East" ]
          state: rock_asteroid_east
        - map: [ "enum.EdgeLayer.North" ]
          state: rock_asteroid_north
        - map: [ "enum.EdgeLayer.West" ]
          state: rock_asteroid_west
        - state: rock_phoron

- type: entity
  id: MeteorRockQuartz
  parent: MeteorRock
  description: An ore vein rich with quartz.
  suffix: Quartz
  components:
    - type: OreVein
      oreChance: 1.0
      currentOre: OreSpaceQuartz
    - type: Sprite
      layers:
        - state: rock_asteroid
        - map: [ "enum.EdgeLayer.South" ]
          state: rock_asteroid_south
        - map: [ "enum.EdgeLayer.East" ]
          state: rock_asteroid_east
        - map: [ "enum.EdgeLayer.North" ]
          state: rock_asteroid_north
        - map: [ "enum.EdgeLayer.West" ]
          state: rock_asteroid_west
        - state: rock_quartz

- type: entity
  id: MeteorRockSilver
  parent: MeteorRock
  description: An ore vein rich with silver.
  suffix: Silver
  components:
    - type: OreVein
      oreChance: 1.0
      currentOre: OreSilver
    - type: Sprite
      layers:
        - state: rock_asteroid
        - map: [ "enum.EdgeLayer.South" ]
          state: rock_asteroid_south
        - map: [ "enum.EdgeLayer.East" ]
          state: rock_asteroid_east
        - map: [ "enum.EdgeLayer.North" ]
          state: rock_asteroid_north
        - map: [ "enum.EdgeLayer.West" ]
          state: rock_asteroid_west
        - state: rock_silver
# Tin name is a holdover from the asteroid.yml prototype.
- type: entity
  id: MeteorRockTin
  parent: MeteorRock
  description: An ore vein rich with iron.
  suffix: Iron
  components:
    - type: OreVein
      oreChance: 1.0
      currentOre: OreSteel
    - type: Sprite
      layers:
        - state: rock_asteroid
        - map: [ "enum.EdgeLayer.South" ]
          state: rock_asteroid_south
        - map: [ "enum.EdgeLayer.East" ]
          state: rock_asteroid_east
        - map: [ "enum.EdgeLayer.North" ]
          state: rock_asteroid_north
        - map: [ "enum.EdgeLayer.West" ]
          state: rock_asteroid_west
        - state: rock_tin

- type: entity
  id: MeteorRockUranium
  parent: MeteorRock
  description: An ore vein rich with uranium.
  suffix: Uranium
  components:
    - type: OreVein
      oreChance: 1.0
      currentOre: OreUranium
    - type: Sprite
      layers:
        - state: rock_asteroid
        - map: [ "enum.EdgeLayer.South" ]
          state: rock_asteroid_south
        - map: [ "enum.EdgeLayer.East" ]
          state: rock_asteroid_east
        - map: [ "enum.EdgeLayer.North" ]
          state: rock_asteroid_north
        - map: [ "enum.EdgeLayer.West" ]
          state: rock_asteroid_west
        - state: rock_uranium
    # - type: RadiationSource # Frontier: upstream cherry-pick 35330 :^)
    #   intensity: 2.3
    #   slope: 0.1

- type: entity
  id: MeteorRockBananium
  parent: MeteorRock
  description: An ore vein rich with bananium.
  suffix: Bananium
  components:
    - type: OreVein
      oreChance: 1.0
      currentOre: OreBananium
    - type: Sprite
      layers:
        - state: rock_asteroid
        - map: [ "enum.EdgeLayer.South" ]
          state: rock_asteroid_south
        - map: [ "enum.EdgeLayer.East" ]
          state: rock_asteroid_east
        - map: [ "enum.EdgeLayer.North" ]
          state: rock_asteroid_north
        - map: [ "enum.EdgeLayer.West" ]
          state: rock_asteroid_west
        - state: rock_bananium
