]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
let borgs wear hat (#22555)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Fri, 15 Dec 2023 22:33:51 +0000 (22:33 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2023 22:33:51 +0000 (15:33 -0700)
* let borgs wear hat

* special borg offset

* attack of the short people

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml
Resources/Prototypes/Entities/Mobs/Cyborgs/borg_chassis.yml
Resources/Prototypes/InventoryTemplates/borg.yml [new file with mode: 0644]

index 56f49df391d7788761a6fb24c8a1df575b2bdba0..1bf9d6e4bf385330f2c7339f92e3aaadb0ce5de7 100644 (file)
@@ -67,6 +67,8 @@
       type: SiliconLawBoundUserInterface
     - key: enum.BorgUiKey.Key
       type: BorgBoundUserInterface
+    - key: enum.StrippingUiKey.Key
+      type: StrippableBoundUserInterface
   - type: ActivatableUI
     key: enum.BorgUiKey.Key
   - type: SiliconLawBound
     stunTime: 5
     emagLaws: SyndicateStatic
   - type: IonStormTarget
+  - type: Strippable
+  - type: InventorySlots
+  - type: Inventory
+    templateId: borg
   - type: Hands
     showInHands: false
   - type: IntrinsicRadioReceiver
index e0e1133770332ccf48f19900155f52a4bf70105c..eb6673fea2d0f832f6e0b124ffa0a358dfd11a9c 100644 (file)
@@ -65,6 +65,8 @@
     - Science
   - type: AccessReader
     access: [["Cargo"], ["Salvage"], ["Command"], ["Research"]]
+  - type: Inventory
+    templateId: borgTall
 
 - type: entity
   id: BorgChassisEngineer
     - Science
   - type: AccessReader
     access: [["Engineering"], ["Command"], ["Research"]]
+  - type: Inventory
+    templateId: borgShort
 
 - type: entity
   id: BorgChassisJanitor
     - Science
   - type: AccessReader
     access: [["Service"], ["Command"], ["Research"]]
+  - type: Inventory
+    templateId: borgShort
 
 - type: entity
   id: BorgChassisMedical
     - Science
   - type: AccessReader
     access: [["Medical"], ["Command"], ["Research"]]
+  - type: Inventory
+    templateId: borgDutch
 
 - type: entity
   id: BorgChassisService
     - Science
   - type: AccessReader
     access: [["Service"], ["Command"], ["Research"]]
+  - type: Inventory
+    templateId: borgTall
diff --git a/Resources/Prototypes/InventoryTemplates/borg.yml b/Resources/Prototypes/InventoryTemplates/borg.yml
new file mode 100644 (file)
index 0000000..9d7a3dd
--- /dev/null
@@ -0,0 +1,47 @@
+- type: inventoryTemplate
+  id: borg
+  slots:
+  - name: head
+    slotTexture: head
+    slotFlags: HEAD
+    slotGroup: MainHotbar
+    uiWindowPos: 0,0
+    strippingWindowPos: 0,0
+    displayName: Head
+    offset: 0, -0.09375
+
+- type: inventoryTemplate
+  id: borgShort
+  slots:
+  - name: head
+    slotTexture: head
+    slotFlags: HEAD
+    slotGroup: MainHotbar
+    uiWindowPos: 0,0
+    strippingWindowPos: 0,0
+    displayName: Head
+    offset: 0, -0.1875
+
+- type: inventoryTemplate
+  id: borgTall
+  slots:
+  - name: head
+    slotTexture: head
+    slotFlags: HEAD
+    slotGroup: MainHotbar
+    uiWindowPos: 0,0
+    strippingWindowPos: 0,0
+    displayName: Head
+
+# taller than tall
+- type: inventoryTemplate
+  id: borgDutch
+  slots:
+  - name: head
+    slotTexture: head
+    slotFlags: HEAD
+    slotGroup: MainHotbar
+    uiWindowPos: 0,0
+    strippingWindowPos: 0,0
+    displayName: Head
+    offset: 0, 0.09375