]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
medsec hud is no longer a filler (#23934)
authoricekot8 <93311212+icekot8@users.noreply.github.com>
Thu, 11 Jan 2024 23:22:42 +0000 (02:22 +0300)
committerGitHub <noreply@github.com>
Thu, 11 Jan 2024 23:22:42 +0000 (16:22 -0700)
* medsec hud

* medsec hud

* fix

Resources/Prototypes/Entities/Clothing/Eyes/hud.yml
Resources/Prototypes/Recipes/Construction/Graphs/clothing/medsec_hud.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Construction/clothing.yml
Resources/Prototypes/tags.yml

index 1ab2fab0e6c4514c9be6fd5b78f3c5d7ce261502..5771d9f0244f566a50c67c3e75b9645d80893876 100644 (file)
@@ -29,6 +29,9 @@
   - type: ShowHealthIcons
     damageContainers: 
     - Biological
+  - type: Tag
+    tags:
+    - HudMedical
 
 - type: entity
   parent: ClothingEyesBase
@@ -41,6 +44,9 @@
   - type: Clothing
     sprite: Clothing/Eyes/Hud/sec.rsi
   - type: ShowSecurityIcons
+  - type: Tag
+    tags:
+    - HudSecurity
 
 - type: entity
   parent: ClothingEyesBase
   parent: ClothingEyesBase
   id: ClothingEyesHudMedSec
   name: medsec hud
-  description: Filler
+  description: An eye display that looks like a mixture of medical and security huds.
   components:
   - type: Sprite
     sprite: Clothing/Eyes/Hud/medsec.rsi
   - type: Clothing
     sprite: Clothing/Eyes/Hud/medsec.rsi
+  - type: Construction
+    graph: HudMedSec
+    node: medsecHud
   - type: ShowSecurityIcons
+  - type: ShowHealthBars
+    damageContainers: 
+    - Biological
 
 - type: entity
   parent: ClothingEyesBase
diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/clothing/medsec_hud.yml b/Resources/Prototypes/Recipes/Construction/Graphs/clothing/medsec_hud.yml
new file mode 100644 (file)
index 0000000..03a70cb
--- /dev/null
@@ -0,0 +1,43 @@
+- type: constructionGraph
+  id: HudMedSec
+  start: start
+  graph:
+    - node: start
+      edges:
+        - to: medsecHud
+          steps:
+            - tag: HudMedical
+              name: medical hud
+              icon:
+                sprite: Clothing/Eyes/Hud/med.rsi
+                state: icon
+              doAfter: 5
+            - tag: HudSecurity
+              name: security hud
+              icon:
+                sprite: Clothing/Eyes/Hud/sec.rsi
+                state: icon
+              doAfter: 5
+            - material: Cable
+              amount: 5
+              doAfter: 5
+            - tag: Radio
+              name: radio
+              icon:
+                sprite: Objects/Devices/communication.rsi
+                state: walkietalkie
+              doAfter: 5
+            - tag: CapacitorStockPart
+              name: capacitor
+              icon:
+                sprite: Objects/Misc/stock_parts.rsi
+                state: capacitor
+              doAfter: 5
+            - tag: CapacitorStockPart
+              name: capacitor
+              icon:
+                sprite: Objects/Misc/stock_parts.rsi
+                state: capacitor
+              doAfter: 5
+    - node: medsecHud
+      entity: ClothingEyesHudMedSec
index cd6321ae89d2a9296d34bbd373d78de66d5a630f..0e8bf31a8d7e6eaafb03ecc265d32328315509aa 100644 (file)
   category: construction-category-clothing
   description: A pair of clown shoes upgraded with banana peels.
   icon: { sprite: Clothing/Shoes/Specific/clown_banana.rsi, state: icon }
+  objectType: Item
+
+- type: construction
+  name: medsec hud
+  id: ClothingEyesHudMedSec
+  graph: HudMedSec
+  startNode: start
+  targetNode: medsecHud
+  category: construction-category-clothing
+  description: Two huds joined by arms
+  icon: { sprite: Clothing/Eyes/Hud/medsec.rsi, state: icon }
   objectType: Item
\ No newline at end of file
index 460310a41574db8ec105377324b31c97abe583a7..628d3158b314e444a14c125a79bbcd3ad834de45 100644 (file)
 - type: Tag
   id: Grenade
 
+- type: Tag
+  id: HudMedical
+
+- type: Tag
+  id: HudSecurity
+
 - type: Tag
   id: GuideEmbeded