Skip to content

Commit

Permalink
im so good at this
Browse files Browse the repository at this point in the history
  • Loading branch information
MilonPL committed Sep 21, 2024
1 parent 6afc235 commit aaf92ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
18 changes: 2 additions & 16 deletions Content.Server/DeltaV/MedSecHud/MedSecHudSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,8 @@ private void UpdateVisuals(EntityUid uid, MedSecHudComponent component)
{
if (component.MedicalMode)
{
// We can't use EnsureComp<T> because the overlay doesn't update
// It sucks, I know
var healthBarsComponent = new ShowHealthBarsComponent
{
DamageContainers = new List<string> { "Biological" },
};

_entities.AddComponent(uid, healthBarsComponent, true);

var healthIconsComponent = new ShowHealthIconsComponent
{
DamageContainers = new List<string> { "Biological" },
};

_entities.AddComponent(uid, healthIconsComponent, true);

EnsureComp<ShowHealthBarsComponent>(uid);
EnsureComp<ShowHealthIconsComponent>(uid);
RemComp<ShowJobIconsComponent>(uid);
RemComp<ShowMindShieldIconsComponent>(uid);
RemComp<ShowCriminalRecordIconsComponent>(uid);
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/DeltaV/Actions/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
components:
- type: InstantAction
itemIconStyle: BigAction
useDelay: 30 # Prevent people from spamming it
useDelay: 10 # Prevent people from spamming it
icon:
sprite: Clothing/Eyes/Hud/medsec.rsi
state: icon
Expand Down
8 changes: 5 additions & 3 deletions Resources/Prototypes/Entities/Clothing/Eyes/hud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@
- type: ShowThirstIcons

- type: entity
parent: [ClothingEyesBase, BaseSecurityCommandContraband]
parent: [ClothingEyesBase, ShowMedicalIcons, BaseSecurityCommandContraband] # DeltaV - Switching between hud modes
id: ClothingEyesHudMedSec
name: medsec hud
description: An eye display that looks like a mixture of medical and security huds.
# DeltaV - Description tweaks.
description: An eye display that looks like a mixture of medical and security huds. The glass looks like it was hastily tinted with a black sharpie.
components:
- type: Sprite
sprite: Clothing/Eyes/Hud/medsec.rsi
Expand All @@ -167,7 +168,8 @@
- type: Tag
tags:
- HudMedicalSecurity
- type: MedSecHud
- type: MedSecHud # DeltaV - Switching between hud modes
- type: FlashImmunity # DeltaV - Flash protection

- type: entity
parent: [ClothingEyesBase, ShowSecurityIcons, ShowMedicalIcons]
Expand Down

0 comments on commit aaf92ee

Please sign in to comment.