# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entityTable
  id: LavalandMobs
  table: !type:GroupSelector
    children:
    - !type:GroupSelector
      weight: 50
      children:
      - id: MobGoliathRandom
      - id: MobHivelord
    - !type:GroupSelector
        weight: 35
        children:
        - id: MobCarpDungeon
    - !type:GroupSelector
      weight: 15
      children:
      - id: MobWatcherIcewing
      - id: MobWatcherLavaland
      #- id: LavalandTendrilLegion


- type: entity
  name: lavaland mob spawner
  id: SpawnerRandomMobLavaland
  parent: MarkerBase
  suffix: Lavaland
  components:
  - type: Sprite
    layers:
    - state: red
    - sprite: Mobs/Aliens/Asteroid/goliath.rsi
      state: goliath
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: LavalandMobs
  placement:
    mode: AlignTileAny


- type: entity
  id: MobGoliathRandom
  parent: MarkerBase
  name: Goliath
  suffix: Random
  components:
  - type: Sprite
    sprite: Mobs/Aliens/Asteroid/goliath.rsi
    state: goliath
  - type: EntityTableSpawner
    table: !type:GroupSelector
      children:
      - id: MobLavalandGoliath
        weight: 99
      - id: MobLavalandGoliathAncient
        weight: 1
