]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Move artifact random spawners to entity table spawners. (#42422)
authorSnappingOpossum <snappingopossum@outlook.com>
Thu, 15 Jan 2026 04:27:16 +0000 (15:27 +1100)
committerGitHub <noreply@github.com>
Thu, 15 Jan 2026 04:27:16 +0000 (04:27 +0000)
* Move artifact random spawners to entity tables

* That's a pretty big thing to miss

* This is embarassing

* Apply review

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

index 0135361044dbc4858d02a0c3868356bf0a62ecb7..faf230817bcd43bf51201a65abc0e7e89bf55a24 100644 (file)
@@ -1,24 +1,31 @@
-- type: entity
+- type: entityTable
+  id: RandomArtifactTable
+  table: !type:GroupSelector
+    children:
+    - id: ComplexXenoArtifact
+      weight: 2
+    - id: ComplexXenoArtifactItem
+
+- type: entity
+  parent: MarkerBase
   id: RandomArtifactSpawner
   name: random artifact spawner
-  parent: MarkerBase
   components:
-    - type: Sprite
-      layers:
-        - state: red
-        - sprite: Objects/Specific/Xenoarchaeology/xeno_artifacts.rsi
-          state: ano01
-    - type: RandomSpawner
-      prototypes:
-        - ComplexXenoArtifact
-        - ComplexXenoArtifact
-        - ComplexXenoArtifactItem
-      chance: 1
+  - type: Sprite
+    layers:
+    - state: red
+    - sprite: Objects/Specific/Xenoarchaeology/xeno_artifacts.rsi
+      state: ano01
+  - type: EntityTableSpawner
+    table: !type:NestedSelector
+      tableId: RandomArtifactTable
 
 - type: entity
   id: RandomArtifactSpawner20
   name: random artifact spawner [20]
   parent: RandomArtifactSpawner
   components:
-    - type: RandomSpawner
-      chance: 0.2
+  - type: EntityTableSpawner
+    table: !type:NestedSelector
+      tableId: RandomArtifactTable
+      prob: 0.2