Doctor PDA functions as a health analyzer (#7031)
This commit is contained in:
@@ -8,14 +8,9 @@ using Content.Server.Traitor.Uplink.Components;
|
||||
using Content.Server.PDA.Ringer;
|
||||
using Content.Server.UserInterface;
|
||||
using Content.Shared.Containers.ItemSlots;
|
||||
using Content.Shared.Instruments;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.PDA;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Content.Shared.Interaction.Events;
|
||||
|
||||
namespace Content.Server.PDA
|
||||
{
|
||||
@@ -31,7 +26,6 @@ namespace Content.Server.PDA
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<PDAComponent, ActivateInWorldEvent>(OnActivateInWorld);
|
||||
SubscribeLocalEvent<PDAComponent, LightToggleEvent>(OnLightToggle);
|
||||
}
|
||||
|
||||
@@ -44,20 +38,6 @@ namespace Content.Server.PDA
|
||||
ui.OnReceiveMessage += (msg) => OnUIMessage(pda, msg);
|
||||
}
|
||||
|
||||
private void OnUse(EntityUid uid, PDAComponent pda, UseInHandEvent args)
|
||||
{
|
||||
if (args.Handled)
|
||||
return;
|
||||
args.Handled = OpenUI(pda, args.User);
|
||||
}
|
||||
|
||||
private void OnActivateInWorld(EntityUid uid, PDAComponent pda, ActivateInWorldEvent args)
|
||||
{
|
||||
if (args.Handled)
|
||||
return;
|
||||
args.Handled = OpenUI(pda, args.User);
|
||||
}
|
||||
|
||||
protected override void OnItemInserted(EntityUid uid, PDAComponent pda, EntInsertedIntoContainerMessage args)
|
||||
{
|
||||
base.OnItemInserted(uid, pda, args);
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
- type: StorageFill
|
||||
contents:
|
||||
- id: HandheldHealthAnalyzer
|
||||
prob: 0.6
|
||||
- id: ClothingHandsGlovesLatex
|
||||
- id: ClothingHeadsetMedical
|
||||
# - id: ClothingEyesHudMedical #Removed until working properly
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
animationDuration: 1.8
|
||||
spriteName: medical
|
||||
startingInventory:
|
||||
HandheldHealthAnalyzer: 4
|
||||
HandheldHealthAnalyzer: 3
|
||||
Brutepack: 5
|
||||
Ointment: 5
|
||||
EpinephrineChemistryBottle: 3
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
mask: /Textures/Effects/LightMasks/cone.png
|
||||
autoRot: true
|
||||
- type: Ringer
|
||||
- type: ActivatableUI
|
||||
key: enum.PDAUiKey.Key
|
||||
- type: UserInterface
|
||||
interfaces:
|
||||
- key: enum.PDAUiKey.Key
|
||||
@@ -45,6 +47,8 @@
|
||||
type: RingerBoundUserInterface
|
||||
- key: enum.InstrumentUiKey.Key
|
||||
type: InstrumentBoundUserInterface
|
||||
- key: enum.HealthAnalyzerUiKey.Key
|
||||
type: HealthAnalyzerBoundUserInterface
|
||||
- type: PDA
|
||||
penSlot:
|
||||
startingItem: Pen
|
||||
@@ -355,7 +359,7 @@
|
||||
parent: BasePDA
|
||||
id: CMOPDA
|
||||
name: chief medical officer PDA
|
||||
description: Extraordinarily shiny and sterile.
|
||||
description: Extraordinarily shiny and sterile. Has a built-in health analyzer.
|
||||
components:
|
||||
- type: PDA
|
||||
id: CMOIDCard
|
||||
@@ -365,12 +369,14 @@
|
||||
state: pda-cmo
|
||||
- type: Icon
|
||||
state: pda-cmo
|
||||
- type: HealthAnalyzer
|
||||
scanDelay: 1
|
||||
|
||||
- type: entity
|
||||
parent: BasePDA
|
||||
id: MedicalPDA
|
||||
name: medical PDA
|
||||
description: Shiny and sterile.
|
||||
description: Shiny and sterile. Has a built-in health analyzer.
|
||||
components:
|
||||
- type: PDA
|
||||
id: MedicalIDCard
|
||||
@@ -380,6 +386,8 @@
|
||||
state: pda-medical
|
||||
- type: Icon
|
||||
state: pda-medical
|
||||
- type: HealthAnalyzer
|
||||
scanDelay: 1.2
|
||||
|
||||
- type: entity
|
||||
parent: BasePDA
|
||||
|
||||
Reference in New Issue
Block a user