Skip to content

Commit

Permalink
Salvage Loot Spawner
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Sep 13, 2024
1 parent f0b887a commit 37b9f09
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 18 deletions.
44 changes: 26 additions & 18 deletions Resources/Prototypes/Catalog/Fills/Crates/salvage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,38 +96,46 @@
- id: WeaponRevolverMateba
prob: 0.0001

- type: entity
parent: CrateGenericSteel
id: CratePartsT2
name: tier 2 parts crate
description: Contains 5 random tier 2 parts for upgrading machines.
components:
- type: StorageFill
contents:
- id: SalvagePartsT2Spawner
amount: 5

- type: entity
parent: CrateGenericSteel
id: CratePartsT3
name: tier 3 parts crate
description: Contains 5 random tier 3 parts for upgrading machines.
# TODO add contents.
#components:
#- type: StorageFill
# contents:
# - id: SalvagePartsT3Spawner
# amount: 5
components:
- type: StorageFill
contents:
- id: SalvagePartsT3Spawner
amount: 5

- type: entity
parent: CrateGenericSteel
id: CratePartsT3T4
name: tier 3/4 parts crate
description: Contains 5 random tier 3 or 4 parts for upgrading machines.
# TODO add contents.
#components:
# type: StorageFill
# contents:
# - id: SalvagePartsT3T4Spawner
# amount: 5
components:
- type: StorageFill
contents:
- id: SalvagePartsT3T4Spawner
amount: 5

- type: entity
parent: CrateGenericSteel
id: CratePartsT4
name: tier 4 parts crate
description: Contains 5 random tier 4 parts for upgrading machines.
# TODO add contents.
#components:
#- type: StorageFill
# contents:
# - id: SalvagePartsT4Spawner
# amount: 5
components:
- type: StorageFill
contents:
- id: SalvagePartsT4Spawner
amount: 5
22 changes: 22 additions & 0 deletions Resources/Prototypes/Entities/Markers/Spawners/Random/salvage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,25 @@
- MobFleshLoverSalvage
chance: 1
offset: 0.2

- type: entity
name: Salvage Loot Spawner
id: SalvageLootSpawner
parent: MarkerBase
components:
- type: Sprite
layers:
- state: red
- sprite: Structures/Storage/Crates/generic.rsi
state: icon
- type: RandomSpawner
rarePrototypes:
- CratePartsT2
- CratePartsT3
- CratePartsT3T4
- CratePartsT4
rareChance: 0.4
prototypes:
- CrateSalvageAssortedGoodies
chance: 0.9
offset: 0.0

0 comments on commit 37b9f09

Please sign in to comment.