# region cash
- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialRandom
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootNpcMaterialRandom

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcJewelry
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableStorageFillStashJewelry

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcCoins
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableStorageFillStashCoins

# region materials (random)
# basic, random
- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialBasicRandomLow
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialBasicRandom

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialBasicRandomMedium
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialBasicRandom
      rolls: !type:RangeNumberSelector
        range: 2, 3

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialBasicRandomHigh
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialBasicRandom
      rolls: !type:RangeNumberSelector
        range: 3, 5

# valuable, random
- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialValuableRandomLow
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialValuableRandom

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialValuableRandomMedium
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialValuableRandom
      rolls: !type:RangeNumberSelector
        range: 2, 3

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialValuableRandomHigh
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialValuableRandom
      rolls: !type:RangeNumberSelector
        range: 3, 5

# random
- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialRandomLow
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootNpcMaterialRandom

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialRandomMedium
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootNpcMaterialRandom
      rolls: !type:RangeNumberSelector
        range: 2, 3

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialRandomHigh
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootNpcMaterialRandom
      rolls: !type:RangeNumberSelector
        range: 3, 5

# region materials (full)
# basic, full
- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialBasicFullLow
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialBasicFull

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialBasicFullMedium
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialBasicFull
      rolls: !type:RangeNumberSelector
        range: 2, 3

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialBasicFullHigh
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialBasicFull
      rolls: !type:RangeNumberSelector
        range: 3, 5

# valuable, full
- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialValuableFullLow
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialValuableFull

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialValuableFullMedium
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialValuableFull
      rolls: !type:RangeNumberSelector
        range: 2, 3

- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcMaterialValuableFullHigh
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootGeneralMaterialValuableFull
      rolls: !type:RangeNumberSelector
        range: 3, 5

# region boss loot
- type: entity
  parent: MarkerBasePlaceFree
  id: SpawnDungeonLootNpcBossLootShared
  categories: [ HideSpawnMenu ]
  components:
  - type: EntityTableSpawner
    offset: 0.1
    deleteSpawnerAfterSpawn: false
    table: !type:NestedSelector
      tableId: TableDungeonLootNpcBossLootShared
