Skip to content

Commit 87ff3a2

Browse files
New and Modified Map Spawners (#34424)
* Added spanwers and modified others * adjusted values to be more in line with what I want * this comment may have caused that test fail * oh my god another typo * Modified door crate to be engineering flavored * reduced the pride vendor odds Webedit lmao
1 parent e094b79 commit 87ff3a2

File tree

7 files changed

+252
-140
lines changed

7 files changed

+252
-140
lines changed

Resources/Prototypes/Catalog/Fills/Crates/engineering.yml

+29-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150

151151
- type: entity
152152
id: CrateAirlockKit
153-
parent: CrateGenericSteel
153+
parent: CrateEngineering
154154
name: airlock kit
155155
description: A kit for building 6 airlocks, doesn't include tools.
156156
components:
@@ -215,3 +215,31 @@
215215
- type: StorageFill
216216
contents:
217217
- id: SpaceHeaterFlatpack
218+
219+
- type: entityTable
220+
id: RandomTechBoardTable
221+
table: !type:GroupSelector
222+
children:
223+
- id: AirAlarmElectronics
224+
- id: FireAlarmElectronics
225+
- id: DoorElectronics
226+
- id: FirelockElectronics
227+
- id: APCElectronics
228+
- id: SignalTimerElectronics
229+
- id: SMESMachineCircuitboard
230+
- id: SubstationMachineCircuitboard
231+
- id: SpaceVillainArcadeComputerCircuitboard
232+
- id: BlockGameArcadeComputerCircuitboard
233+
234+
- type: entity
235+
id: CrateTechBoardRandom
236+
parent: CrateEngineering
237+
name: surplus boards
238+
description: Surplus boards from somewhere.
239+
components:
240+
- type: EntityTableContainerFill
241+
containers:
242+
entity_storage: !type:NestedSelector
243+
tableId: RandomTechBoardTable
244+
rolls: !type:RangeNumberSelector
245+
range: 3, 7

Resources/Prototypes/Catalog/Fills/Crates/materials.yml

+46
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,52 @@
107107
- id: SheetPaper
108108
amount: 3
109109

110+
- type: entityTable
111+
id: RandomMaterialCrateTable
112+
table: !type:GroupSelector
113+
children:
114+
- !type:GroupSelector # regular materials, 10
115+
weight: 35
116+
children:
117+
- id: SheetGlass10
118+
- id: SheetSteel10
119+
- id: SheetPlastic10
120+
- !type:GroupSelector # regular materials, stack
121+
weight: 30
122+
children:
123+
- id: SheetGlass
124+
- id: SheetSteel
125+
- id: SheetPlastic
126+
- !type:GroupSelector # secondary materials, stack
127+
weight: 30
128+
children:
129+
- id: MaterialCloth
130+
- id: SheetPlasteel
131+
- id: MaterialWoodPlank
132+
- id: PartRodMetal
133+
- !type:GroupSelector # tertiary materials, singles
134+
weight: 5
135+
children:
136+
- id: SheetPlasma1
137+
- id: SheetUranium1
138+
- id: IngotGold1
139+
- id: IngotSilver1
140+
141+
- type: entity
142+
id: CrateMaterialRandom
143+
parent: CrateGenericSteel
144+
name: surplus materials
145+
description: Surplus materials from somewhere.
146+
components:
147+
- type: EntityTableContainerFill
148+
containers:
149+
entity_storage: !type:NestedSelector
150+
tableId: RandomMaterialCrateTable
151+
rolls: !type:RangeNumberSelector
152+
range: 1, 3
153+
# for some reason, the selector here adds 1 to whatever value it generates,
154+
# so this is actually 2-4
155+
110156
#- type: entity
111157
# id: CrateMaterialHFuelTank
112158
# name: fueltank crate

Resources/Prototypes/Catalog/Fills/Lockers/misc.yml

+3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@
159159
- !type:NestedSelector
160160
tableId: SyndieMaintLoot
161161
prob: 0.05
162+
# Recursive
163+
- id: ClosetMaintenanceFilledRandom
164+
prob: 0.01
162165

163166
- type: entity
164167
id: ClosetMaintenanceFilledRandom

Resources/Prototypes/Entities/Markers/Spawners/Random/crates.yml

+117-114
Original file line numberDiff line numberDiff line change
@@ -3,136 +3,139 @@
33
id: CrateEmptySpawner
44
parent: MarkerBase
55
components:
6-
- type: Sprite
7-
layers:
8-
- state: red
9-
- sprite: Structures/Storage/Crates/generic.rsi
10-
state: icon
11-
- type: RandomSpawner
12-
prototypes:
13-
- CrateGenericSteel
14-
- CratePlastic
15-
- CrateFreezer
16-
- CrateHydroponics
17-
- CrateMedical
18-
- CrateRadiation
19-
- CrateInternals
20-
- CrateElectrical
21-
- CrateEngineering
22-
- CrateScience
23-
- CrateSurgery
24-
chance: 0.7
25-
offset: 0.0
6+
- type: Sprite
7+
layers:
8+
- state: red
9+
- sprite: Structures/Storage/Crates/generic.rsi
10+
state: icon
11+
- type: RandomSpawner
12+
prototypes:
13+
- CrateGenericSteel
14+
- CratePlastic
15+
- CrateFreezer
16+
- CrateHydroponics
17+
- CrateMedical
18+
- CrateRadiation
19+
- CrateInternals
20+
- CrateElectrical
21+
- CrateEngineering
22+
- CrateScience
23+
- CrateSurgery
24+
chance: 0.7
25+
offset: 0.0
2626

2727
- type: entity
2828
name: Filled Crate Spawner
2929
id: CrateFilledSpawner
3030
suffix: Low Value
3131
parent: MarkerBase
3232
components:
33-
- type: Sprite
34-
layers:
35-
- state: red
36-
- sprite: Structures/Storage/Crates/o2.rsi
37-
state: icon
38-
- type: RandomSpawner
39-
prototypes:
40-
- CrateServiceReplacementLights
41-
- CrateServiceBureaucracy
42-
- CrateChemistrySupplies
43-
- CrateMaterialGlass
44-
- CrateMaterialSteel
45-
- CrateMaterialPlastic
46-
- CrateMaterialWood
47-
- CrateMaterialPlasteel
48-
- CrateFunArtSupplies
49-
- CrateEngineeringCableLV
50-
- CrateEngineeringCableMV
51-
- CrateEngineeringCableHV
52-
- CrateEngineeringCableBulk
53-
- CrateEmergencyFire
54-
- CrateEmergencyInternals
55-
- CrateEmergencyInflatablewall
56-
- CrateHydroponicsTools
57-
- CrateHydroponicsSeeds
58-
chance: 0.7
59-
rarePrototypes:
60-
- CrateMaterialPlasma
61-
- CrateHydroponicsSeedsExotic
62-
rareChance: 0.1
63-
offset: 0.0
33+
- type: Sprite
34+
layers:
35+
- state: red
36+
- sprite: Structures/Storage/Crates/o2.rsi
37+
state: icon
38+
- type: RandomSpawner
39+
prototypes:
40+
- CrateServiceReplacementLights
41+
- CrateServiceBureaucracy
42+
- CrateChemistrySupplies
43+
- CrateMaterialGlass
44+
- CrateMaterialSteel
45+
- CrateMaterialPlastic
46+
- CrateMaterialWood
47+
- CrateMaterialPlasteel
48+
- CrateMaterialRandom
49+
- CrateFunArtSupplies
50+
- CrateEngineeringCableLV
51+
- CrateEngineeringCableMV
52+
- CrateEngineeringCableHV
53+
- CrateEngineeringCableBulk
54+
- CrateTechBoardRandom
55+
- CrateEmergencyFire
56+
- CrateEmergencyInternals
57+
- CrateEmergencyInflatablewall
58+
- CrateHydroponicsTools
59+
- CrateHydroponicsSeeds
60+
- PetCarrier
61+
chance: 0.7
62+
rarePrototypes:
63+
- CrateMaterialPlasma
64+
- CrateHydroponicsSeedsExotic
65+
rareChance: 0.1
66+
offset: 0.0
6467

6568
- type: entity
6669
name: random engineering crate spawner
6770
id: LootSpawnerRandomCrateEngineering
6871
parent: MarkerBase
6972
components:
70-
- type: Sprite
71-
layers:
72-
- state: red
73-
- sprite: Structures/Storage/Crates/engineering.rsi
74-
state: icon
75-
- type: RandomSpawner
76-
rarePrototypes:
77-
- CrateEngineeringSingularityGenerator
78-
- CrateEngineeringTeslaGenerator
79-
- CrateEngineeringTeslaGroundingRod
80-
- CrateEngineeringParticleAccelerator
81-
- CrateRCD
82-
- CrateEngineeringGear
83-
rareChance: 0.2
84-
prototypes:
85-
- CrateEngineering
86-
- CrateElectrical
87-
- CrateEngineeringElectricalSupplies
88-
- CrateRCDAmmo
89-
- CrateEngineeringCableLV
90-
- CrateEngineeringCableMV
91-
- CrateEngineeringCableHV
92-
- CrateEngineeringCableBulk
93-
- CrateEngineeringSingularityContainment
94-
- CrateEngineeringSingularityCollector
95-
- CrateEngineeringTeslaCoil
96-
- CrateEngineeringSingularityEmitter
97-
- CrateEngineeringGyroscope
98-
- CrateEngineeringThruster
99-
- CrateEngineeringToolbox
100-
- CrateEngineeringShuttle
101-
- CrateEngineeringSolar
102-
- CrateEngineeringJetpack
103-
- CrateEmergencyRadiation
104-
- CrateRadiation
105-
chance: 0.9
106-
offset: 0.0
73+
- type: Sprite
74+
layers:
75+
- state: red
76+
- sprite: Structures/Storage/Crates/engineering.rsi
77+
state: icon
78+
- type: RandomSpawner
79+
rarePrototypes:
80+
- CrateEngineeringSingularityGenerator
81+
- CrateEngineeringTeslaGenerator
82+
- CrateEngineeringTeslaGroundingRod
83+
- CrateEngineeringParticleAccelerator
84+
- CrateRCD
85+
- CrateEngineeringGear
86+
rareChance: 0.2
87+
prototypes:
88+
- CrateEngineering
89+
- CrateElectrical
90+
- CrateEngineeringElectricalSupplies
91+
- CrateRCDAmmo
92+
- CrateEngineeringCableLV
93+
- CrateEngineeringCableMV
94+
- CrateEngineeringCableHV
95+
- CrateEngineeringCableBulk
96+
- CrateEngineeringSingularityContainment
97+
- CrateEngineeringSingularityCollector
98+
- CrateEngineeringTeslaCoil
99+
- CrateEngineeringSingularityEmitter
100+
- CrateEngineeringGyroscope
101+
- CrateEngineeringThruster
102+
- CrateEngineeringToolbox
103+
- CrateEngineeringShuttle
104+
- CrateEngineeringSolar
105+
- CrateEngineeringJetpack
106+
- CrateEmergencyRadiation
107+
- CrateRadiation
108+
chance: 0.9
109+
offset: 0.0
107110

108111
- type: entity
109112
name: random security crate spawner
110113
id: LootSpawnerRandomCrateSecurity
111114
parent: MarkerBase
112115
components:
113-
- type: Sprite
114-
layers:
115-
- state: red
116-
- sprite: Structures/Storage/Crates/sec_gear.rsi
117-
state: icon
118-
- type: RandomSpawner
119-
rarePrototypes: #Very useful stuff we probably don't want random people getting on space ruins often, even if there are hurdles to open it
120-
- CrateArmoryShotgun
121-
- CrateArmorySMG
122-
- CrateSecurityRiot
123-
- CrateSecurityNonlethal
124-
rareChance: 0.1
125-
prototypes:
126-
- CrateWeaponSecure
127-
- CrateArmoryLaser
128-
- CrateArmoryPistols
129-
- CrateTrainingBombs
130-
- CrateTrackingImplants
131-
- CrateSecurityTrackingMindshieldImplants
132-
- CrateSecurityHelmet
133-
- CrateSecurityArmor
134-
- CrateRestraints
135-
- CrateEmergencyExplosive
136-
- CrateSecurityBiosuit
137-
chance: 0.9
138-
offset: 0.0
116+
- type: Sprite
117+
layers:
118+
- state: red
119+
- sprite: Structures/Storage/Crates/sec_gear.rsi
120+
state: icon
121+
- type: RandomSpawner
122+
rarePrototypes: #Very useful stuff we probably don't want random people getting on space ruins often, even if there are hurdles to open it
123+
- CrateArmoryShotgun
124+
- CrateArmorySMG
125+
- CrateSecurityRiot
126+
- CrateSecurityNonlethal
127+
rareChance: 0.1
128+
prototypes:
129+
- CrateWeaponSecure
130+
- CrateArmoryLaser
131+
- CrateArmoryPistols
132+
- CrateTrainingBombs
133+
- CrateTrackingImplants
134+
- CrateSecurityTrackingMindshieldImplants
135+
- CrateSecurityHelmet
136+
- CrateSecurityArmor
137+
- CrateRestraints
138+
- CrateEmergencyExplosive
139+
- CrateSecurityBiosuit
140+
chance: 0.9
141+
offset: 0.0

0 commit comments

Comments
 (0)