From 3d9a6f57ac91a6b2f8c2c8759b0757278d576559 Mon Sep 17 00:00:00 2001 From: icekot8 <93311212+icekot8@users.noreply.github.com> Date: Fri, 12 Jan 2024 02:22:42 +0300 Subject: [PATCH] medsec hud is no longer a filler (#23934) * medsec hud * medsec hud * fix --- .../Prototypes/Entities/Clothing/Eyes/hud.yml | 14 +++++- .../Graphs/clothing/medsec_hud.yml | 43 +++++++++++++++++++ .../Recipes/Construction/clothing.yml | 11 +++++ Resources/Prototypes/tags.yml | 6 +++ 4 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 Resources/Prototypes/Recipes/Construction/Graphs/clothing/medsec_hud.yml diff --git a/Resources/Prototypes/Entities/Clothing/Eyes/hud.yml b/Resources/Prototypes/Entities/Clothing/Eyes/hud.yml index 1ab2fab0e6..5771d9f024 100644 --- a/Resources/Prototypes/Entities/Clothing/Eyes/hud.yml +++ b/Resources/Prototypes/Entities/Clothing/Eyes/hud.yml @@ -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 @@ -135,13 +141,19 @@ 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 index 0000000000..03a70cb7fe --- /dev/null +++ b/Resources/Prototypes/Recipes/Construction/Graphs/clothing/medsec_hud.yml @@ -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 diff --git a/Resources/Prototypes/Recipes/Construction/clothing.yml b/Resources/Prototypes/Recipes/Construction/clothing.yml index cd6321ae89..0e8bf31a8d 100644 --- a/Resources/Prototypes/Recipes/Construction/clothing.yml +++ b/Resources/Prototypes/Recipes/Construction/clothing.yml @@ -62,4 +62,15 @@ 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 diff --git a/Resources/Prototypes/tags.yml b/Resources/Prototypes/tags.yml index 460310a415..628d3158b3 100644 --- a/Resources/Prototypes/tags.yml +++ b/Resources/Prototypes/tags.yml @@ -563,6 +563,12 @@ - type: Tag id: Grenade +- type: Tag + id: HudMedical + +- type: Tag + id: HudSecurity + - type: Tag id: GuideEmbeded -- 2.51.2