Skip to content

Commit

Permalink
Computer wirepanel (#32273)
Browse files Browse the repository at this point in the history
* Computer wirehacking

* Power wire now shocks

* deconstruction fix

* updated tests

* Better parenting

* maintenance panel sprite

* new sprite for maintenance panel open
  • Loading branch information
Errant-4 authored Sep 23, 2024
1 parent b6845de commit a7e29f2
Show file tree
Hide file tree
Showing 8 changed files with 203 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task DeconstructComputer()
await StartDeconstruction(ComputerId);

// Initial interaction turns id computer into generic computer
await InteractUsing(Screw);
await InteractUsing(Pry);
AssertPrototype(ComputerFrame);

// Perform deconstruction steps
Expand Down Expand Up @@ -69,7 +69,7 @@ public async Task ChangeComputer()
await SpawnTarget(ComputerId);

// Initial interaction turns id computer into generic computer
await InteractUsing(Screw);
await InteractUsing(Pry);
AssertPrototype(ComputerFrame);

// Perform partial deconstruction steps
Expand Down
1 change: 1 addition & 0 deletions Resources/Locale/en-US/wires/wire-names.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ wires-board-name-fatextractor = FatExtractor
wires-board-name-flatpacker = Flatpacker
wires-board-name-spaceheater = Space Heater
wires-board-name-jukebox = Jukebox
wires-board-name-computer = Computer
# names that get displayed in the wire hacking hud & admin logs.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
state: generic
- map: ["computerLayerKeys"]
state: generic_keys
- map: [ "enum.WiresVisualLayers.MaintenancePanel" ]
state: generic_panel_open
- type: Appearance
- type: GenericVisualizer
visuals:
Expand All @@ -40,6 +42,10 @@
computerLayerKeys:
True: { visible: true, shader: unshaded }
False: { visible: true, shader: shaded }
enum.WiresVisuals.MaintenancePanelState:
enum.WiresVisualLayers.MaintenancePanel:
True: { visible: false }
False: { visible: true }
- type: LitOnPowered
- type: PointLight
radius: 1.5
Expand All @@ -61,3 +67,26 @@
- type: LightningTarget
priority: 1
- type: RequireProjectileTarget
- type: Electrified
enabled: false
usesApcPower: true
- type: WiresPanel
- type: WiresVisuals
- type: Wires
boardName: wires-board-name-computer
layoutId: Computer
#
# This is overwritten by children, so needs to be defined there
# - type: UserInterface
# interfaces:
# enum.WiresUiKey.Key:
# type: WiresBoundUserInterface

- type: entity
parent: BaseComputer
id: BaseComputerAiAccess
components:
- type: StationAiWhitelist
- type: Wires
boardName: wires-board-name-computer
layoutId: ComputerAi
Loading

0 comments on commit a7e29f2

Please sign in to comment.