]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Revert "Remove handheld crew monitor (#24761)" (#25439)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 22 Feb 2024 11:00:35 +0000 (22:00 +1100)
committerGitHub <noreply@github.com>
Thu, 22 Feb 2024 11:00:35 +0000 (22:00 +1100)
* Revert "Remove handheld crew monitor (#24761)"

This reverts commit bbc6d29d21df618f7aaf51550da5d71d2e31da04.

# Conflicts:
# Resources/Prototypes/Catalog/Fills/Boxes/syndicate.yml
# Resources/Prototypes/Entities/Structures/Machines/lathe.yml
# Resources/Prototypes/Research/biochemical.yml
# Resources/migration.yml

* changes

* zeweh

* dergs

Resources/Maps/Test/dev_map.yml
Resources/Maps/centcomm.yml
Resources/Prototypes/Catalog/Fills/Lockers/heads.yml
Resources/Prototypes/Entities/Objects/Specific/Medical/handheld_crew_monitor.yml [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/scanner.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/syndihandheldcrewmonitor.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/syndihandheldcrewmonitor.rsi/syndiscanner.png [new file with mode: 0644]
Resources/migration.yml

index f00d7049a52111ece0b737f14b3c779cbd251a7f..85f35719fb0a77fc5e5583706d3191adfbbe5a6f 100644 (file)
@@ -3781,13 +3781,6 @@ entities:
     - type: Transform
       pos: -3.5805476,0.74100244
       parent: 179
-- proto: HandheldCrewMonitor
-  entities:
-  - uid: 1184
-    components:
-    - type: Transform
-      pos: 1.6819578,7.502847
-      parent: 179
 - proto: HandheldHealthAnalyzer
   entities:
   - uid: 513
index b64158f08b4f62df7468e02b7973db2c750b5668..7cbbe67413ffd14d1de7ab0b126aa154115f4e14 100644 (file)
@@ -27185,13 +27185,6 @@ entities:
     - type: Transform\r
       pos: -25.604141,8.625723\r
       parent: 1668\r
-- proto: HandheldCrewMonitor\r
-  entities:\r
-  - uid: 1461\r
-    components:\r
-    - type: Transform\r
-      pos: 13.504195,-12.438507\r
-      parent: 1668\r
 - proto: HandLabeler\r
   entities:\r
   - uid: 2228\r
index fb66b7349d1d0ccf4aeb7429d2ab6af7d1891b4d..bd9b499af2ad638eb07d66918540daa9bdfe3ba8 100644 (file)
       - id: ClothingHeadHatBeretCmo
       - id: ClothingOuterHardsuitMedical
       - id: Hypospray
+      - id: HandheldCrewMonitor
       - id: DoorRemoteMedical
       - id: RubberStampCMO
       - id: MedicalTechFabCircuitboard
       - id: ClothingBackpackDuffelSurgeryFilled
       - id: ClothingMaskSterile
       - id: Hypospray
+      - id: HandheldCrewMonitor
       - id: DoorRemoteMedical
       - id: RubberStampCMO
       - id: MedicalTechFabCircuitboard
diff --git a/Resources/Prototypes/Entities/Objects/Specific/Medical/handheld_crew_monitor.yml b/Resources/Prototypes/Entities/Objects/Specific/Medical/handheld_crew_monitor.yml
new file mode 100644 (file)
index 0000000..72e8373
--- /dev/null
@@ -0,0 +1,42 @@
+- type: entity
+  name: handheld crew monitor
+  parent:
+  - BaseItem
+  - PowerCellSlotSmallItem
+  # CMO-only bud, don't add more.
+  id: HandheldCrewMonitor
+  description: A hand-held crew monitor displaying the status of suit sensors.
+  components:
+  - type: Sprite
+    sprite: Objects/Specific/Medical/handheldcrewmonitor.rsi
+    state: scanner
+  - type: PowerCellDraw
+    drawRate: 0
+    useRate: 20
+  - type: ActivatableUIRequiresPowerCell
+  - type: ActivatableUI
+    key: enum.CrewMonitoringUIKey.Key
+    closeOnHandDeselect: false
+  - type: UserInterface
+    interfaces:
+      - key: enum.CrewMonitoringUIKey.Key
+        type: CrewMonitoringBoundUserInterface
+  - type: CrewMonitoringConsole
+  - type: DeviceNetwork
+    deviceNetId: Wireless
+    receiveFrequencyId: CrewMonitor
+  - type: WirelessNetworkConnection
+    range: 500
+  - type: StationLimitedNetwork
+  - type: StaticPrice
+    price: 500
+
+- type: entity
+  id: HandheldCrewMonitorEmpty
+  parent: HandheldCrewMonitor
+  suffix: Empty
+  components:
+  - type: ItemSlots
+    slots:
+      cell_slot:
+        name: power-cell-slot-component-slot-name-default
diff --git a/Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/icon.png b/Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/icon.png
new file mode 100644 (file)
index 0000000..4593188
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/icon.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/meta.json b/Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/meta.json
new file mode 100644 (file)
index 0000000..93459ed
--- /dev/null
@@ -0,0 +1,25 @@
+{
+    "version": 1,
+    "size": {
+        "x": 32,
+        "y": 32
+    },
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Taken from tgstation https://github.com/tgstation/tgstation/commit/ab4abf318f293a701754656dd4e9261eb70f8824#diff-9ab5c8a5e47ab7cfaeadd859a23e32b05de1fe839e99ea767fd7e340b6385d67",
+    "states": [
+        {
+            "name": "scanner",
+            "directions": 1,
+            "delays": [
+                [
+                    0.4,
+                    0.4
+                ]
+            ]
+        },
+        {
+            "name": "icon",
+            "directions": 1
+        }
+    ]
+}
diff --git a/Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/scanner.png b/Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/scanner.png
new file mode 100644 (file)
index 0000000..2f97a86
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/handheldcrewmonitor.rsi/scanner.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/syndihandheldcrewmonitor.rsi/meta.json b/Resources/Textures/Objects/Specific/Medical/syndihandheldcrewmonitor.rsi/meta.json
new file mode 100644 (file)
index 0000000..8a4d587
--- /dev/null
@@ -0,0 +1,21 @@
+{
+    "version": 1,
+    "size": {
+        "x": 32,
+        "y": 32
+    },
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Taken from tgstation https://github.com/tgstation/tgstation/commit/ab4abf318f293a701754656dd4e9261eb70f8824#diff-9ab5c8a5e47ab7cfaeadd859a23e32b05de1fe839e99ea767fd7e340b6385d67,this sprite made(resprite) by Fazansen(https://github.com/Fazansen)",
+    "states": [
+        {
+            "name": "syndiscanner",
+            "directions": 1,
+            "delays": [
+                [
+                    0.4,
+                    0.4
+                ]
+            ]
+        }
+    ]
+}
diff --git a/Resources/Textures/Objects/Specific/Medical/syndihandheldcrewmonitor.rsi/syndiscanner.png b/Resources/Textures/Objects/Specific/Medical/syndihandheldcrewmonitor.rsi/syndiscanner.png
new file mode 100644 (file)
index 0000000..9fa8cba
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/syndihandheldcrewmonitor.rsi/syndiscanner.png differ
index d220a8a19de3f1fdd152ae83af66a196321b7f46..4591a44e5de384b4f8e6cd61acffcb71836601fc 100644 (file)
@@ -175,8 +175,6 @@ ClothingBackpackSatchelSecurityFilledDetective: ClothingBackpackSatchelFilledDet
 FoodBoxDonkpocketGondola: FoodBoxDonkpocketPizza
 
 # 2024-01-31
-HandheldCrewMonitorEmpty: null
-HandheldCrewMonitor: null
 SpyCrewMonitor: null
 SpyCrewMonitorEmpty: null
 SyndiCrewMonitor: null