Skip to content

Commit

Permalink
Adds Prescription huds (#859)
Browse files Browse the repository at this point in the history
* Adds prescription huds.

THATS RIGHT.
TO THOSE 3 PLAYERS THAT USE NEARSIGHTED.
YOU CAN NOW SMASH TOGETHER A BRAND NEW TOOL TO HELP YOUR AID DURING WORKING HOURS.
*WOW, SO AMAZING.*

(For legal reasons, said advertisement was not trying to cause any mental or physical harm or legal obligations with medical and security industry who made said huds.)

* forgot to delete these

* Update Resources/Prototypes/DeltaV/Entities/Clothing/Eyes/hud.yml

Co-authored-by: DEATHB4DEFEAT <[email protected]>
Signed-off-by: Adrian16199 <[email protected]>

* Apply suggestions from code review

Co-authored-by: DEATHB4DEFEAT <[email protected]>
Signed-off-by: Adrian16199 <[email protected]>

---------

Signed-off-by: Adrian16199 <[email protected]>
Co-authored-by: DEATHB4DEFEAT <[email protected]>
  • Loading branch information
Adrian16199 and DEATHB4DEFEAT authored Mar 1, 2024
1 parent 2083d88 commit a79d53c
Show file tree
Hide file tree
Showing 13 changed files with 178 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Resources/Prototypes/DeltaV/Entities/Clothing/Eyes/hud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
- type: entity
parent: ClothingEyesBase
id: ClothingEyesPrescriptionMedHud
name: prescription medical hud
description: A poorly done and rushed mix between half of a pair of prescription glasses and a medical HUD allowing you to see clearly out of one eye and view the health of people out of the other!
components:
- type: Sprite
sprite: DeltaV/Clothing/Eyes/Hud/prescmedhud.rsi
- type: Clothing
sprite: DeltaV/Clothing/Eyes/Hud/prescmedhud.rsi
- type: Construction
graph: PrescriptionMedHud
node: prescmedhud
- type: ShowHealthBars
damageContainers:
- Biological
- type: ShowHealthIcons
damageContainers:
- Biological
- type: Tag
tags:
- HudMedical
- GlassesNearsight

- type: entity
parent: ClothingEyesBase
id: ClothingEyesPrescriptionHudSecurity
name: prescription security hud
description: A poorly done and rushed mix between half of a pair of prescription glasses and a security HUD allowing you to see clearly out of one eye and inspect the employee's ID and warning status in the other!
components:
- type: Sprite
sprite: DeltaV/Clothing/Eyes/Hud/prescsechud.rsi
- type: Clothing
sprite: DeltaV/Clothing/Eyes/Hud/prescsechud.rsi
- type: ShowSecurityIcons
- type: Construction
graph: PrescriptionSecHud
node: prescsechud
- type: Tag
tags:
- HudSecurity
- GlassesNearsight
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
- type: constructionGraph
id: PrescriptionMedHud
start: start
graph:
- node: start
edges:
- to: prescmedhud
steps:
- tag: HudMedical
name: medical hud
icon:
sprite: Clothing/Eyes/Hud/med.rsi
state: icon
doAfter: 5
- tag: GlassesNearsight
name: glasses
icon:
sprite: Clothing/Eyes/Glasses/glasses.rsi
state: icon
doAfter: 5
- material: Cable
amount: 5
doAfter: 5
- tag: DrinkSpaceGlue
name: space glue
icon:
sprite: Objects/Consumable/Drinks/glue-tube.rsi
state: icon
doAfter: 5
- node: prescmedhud
entity: ClothingEyesPrescriptionMedHud

- type: constructionGraph
id: PrescriptionSecHud
start: start
graph:
- node: start
edges:
- to: prescsechud
steps:
- tag: HudSecurity
name: security hud
icon:
sprite: Clothing/Eyes/Hud/med.rsi
state: icon
doAfter: 5
- tag: GlassesNearsight
name: glasses
icon:
sprite: Clothing/Eyes/Glasses/glasses.rsi
state: icon
doAfter: 5
- material: Cable
amount: 5
doAfter: 5
- tag: DrinkSpaceGlue
name: space glue
icon:
sprite: Objects/Consumable/Drinks/glue-tube.rsi
state: icon
doAfter: 5
- node: prescsechud
entity: ClothingEyesPrescriptionHudSecurity
21 changes: 21 additions & 0 deletions Resources/Prototypes/DeltaV/Recipes/Construction/clothing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- type: construction
name: prescription medhud
id: ClothingEyesPrescriptionMedHud
graph: PrescriptionMedHud
startNode: start
targetNode: prescmedhud
category: construction-category-clothing
description: Prescription medhud, merged glasses and medhud together by sheer luck and cables with glue.
icon: { sprite: DeltaV/Clothing/Eyes/Hud/prescmedhud.rsi, state: icon }
objectType: Item

- type: construction
name: prescription sechud
id: ClothingEyesPrescriptionHudSecurity
graph: PrescriptionSecHud
startNode: start
targetNode: prescsechud
category: construction-category-clothing
description: Prescription sechud, merged glasses and sechud together by sheer luck and cables with glue.
icon: { sprite: DeltaV/Clothing/Eyes/Hud/prescsechud.rsi, state: icon }
objectType: Item
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Medhud Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/5a73e8f825ff279e82949b9329783a9e3070e2da and prescription glasses from commit https://github.com/tgstation/tgstation/commit/5a73e8f825ff279e82949b9329783a9e3070e2da modified by Adrian16199",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-EYES",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Sechud Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/5a73e8f825ff279e82949b9329783a9e3070e2da and prescription glasses from commit https://github.com/tgstation/tgstation/commit/5a73e8f825ff279e82949b9329783a9e3070e2da modified by Adrian16199",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-EYES",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}

0 comments on commit a79d53c

Please sign in to comment.