]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Update filing cabinet inventories (#36185)
authorIProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com>
Fri, 18 Apr 2025 17:37:56 +0000 (13:37 -0400)
committerGitHub <noreply@github.com>
Fri, 18 Apr 2025 17:37:56 +0000 (19:37 +0200)
* Entity tables, more folders, 1984 whitelist.

* add easter eggs

* oops typo

* undent

* adjust ranges

* absolute instead of relative prob

* woops forgot to 1984 a selector

Resources/Prototypes/Entities/Structures/Storage/filing_cabinets.yml

index 70c7647fcc87cb95e3ac1f40979ffbcb777e5e6f..e8856923e3f4689254885766bd5dbbb080518b14 100644 (file)
@@ -1,3 +1,42 @@
+- type: entityTable
+  id: FilingCabinetFillTable
+  table: !type:AllSelector
+    children:
+    - !type:GroupSelector
+      rolls: !type:RangeNumberSelector
+        range: 2, 4
+      children:
+      - id: BoxFolderBlue
+      - id: BoxFolderRed
+      - id: BoxFolderYellow
+      - id: BoxFolderWhite
+      - id: BoxFolderGrey
+      - id: BoxFolderBlack
+    - !type:GroupSelector
+      rolls: !type:RangeNumberSelector
+        range: 0, 3
+      children:
+      - id: Paper
+      - id: PaperOffice
+    - !type:GroupSelector
+      prob: .3
+      rolls: !type:ConstantNumberSelector
+        value: 2
+      children:
+      - id: Pen
+    - !type:GroupSelector
+      prob: 0.15
+      children:
+      - !type:AllSelector
+        weight: 0.2
+        children: 
+        - id: RubberStampApproved
+        - id: RubberStampDenied
+      - id: RubberStampGreytide
+        weight: 0.1
+      - id: LuxuryPen
+      - id: NanoTaskCartridge
+
 - type: entity
   parent: [ BaseStructureDynamic, BaseBagOpenClose ]
   id: BaseFilingCabinet
@@ -9,11 +48,6 @@
     grid:
     - 0,0,9,3
     maxItemSize: Normal
-    whitelist:
-      tags:
-        - Document
-        - Folder
-        - Write
   - type: Sprite
     sprite: Structures/Storage/cabinets.rsi
     noRot: true
   id: BaseBureaucraticStorageFill
   suffix: Filled
   components:
-  - type: StorageFill
-    contents:
-      - id: Pen
-        prob: 0.5
-      - id: PaperOffice
-        amount: 1
-        maxAmount: 3
-      - id: BoxFolderBlue
-        orGroup: Folder
-      - id: BoxFolderRed
-        orGroup: Folder
-      - id: BoxFolderYellow
-        orGroup: Folder
-      - id: BoxFolderWhite
-        orGroup: Folder
-      - id: BoxFolderGrey
-        orGroup: Folder
-      - id: BoxFolderBlack
-        orGroup: Folder
+  - type: EntityTableContainerFill
+    containers:
+      storagebase: !type:NestedSelector
+        tableId: FilingCabinetFillTable
 
 - type: entity
   parent: [BaseBureaucraticStorageFill, filingCabinet]