Skip to content

Commit

Permalink
Computers
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Sep 17, 2023
1 parent f3ed8c0 commit 86936f7
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -687,11 +687,26 @@

- type: entity
id: ComputerCargoOrders
parent: BaseComputer
parent: BaseStructureComputer
name: cargo request computer
description: Used to order supplies and approve requests.
placement:
mode: SnapgridCenter
components:
- type: MeleeSound
soundGroups:
Brute:
path:
"/Audio/Effects/glass_hit.ogg"
- type: Computer
- type: ApcPowerReceiver
powerLoad: 200
- type: ExtensionCableReceiver
- type: ActivatableUIRequiresPower
- type: Sprite
netsync: false
noRot: true
sprite: Structures/Machines/computers.rsi
layers:
- map: ["computerLayerBody"]
state: computer
Expand All @@ -708,8 +723,6 @@
interfaces:
- key: enum.CargoConsoleUiKey.Orders
type: CargoOrderConsoleBoundUserInterface
- type: Computer
board: CargoRequestComputerCircuitboard
- type: PointLight
radius: 1.5
energy: 1.6
Expand All @@ -728,6 +741,12 @@
- type: GuideHelp
guides:
- Cargo
- type: Anchorable
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 0

- type: entity
id: ComputerCargoBounty
Expand Down
7 changes: 6 additions & 1 deletion Resources/Prototypes/Entities/Structures/cargo_telepad.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- type: entity
id: CargoTelepad
parent: [ BaseMachinePowered, ConstructibleMachine ]
parent: BaseMachinePowered
name: cargo telepad
description: Beam in the pizzas and dig in.
components:
Expand Down Expand Up @@ -47,3 +47,8 @@
board: CargoTelepadMachineCircuitboard
- type: Appearance
- type: CollideOnAnchor
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 0
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@
state: shipyard_blackmarket
- map: ["computerLayerKeys"]
state: blackmarket_key
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]

- type: entity
name: cargo sale computer
Expand Down
16 changes: 2 additions & 14 deletions Resources/Prototypes/_NF/Entities/Structures/atms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:DoActsBehavior
acts: ["Destruction"]
damage: 0

- type: entity
name: black market atm
Expand Down Expand Up @@ -331,13 +325,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:DoActsBehavior
acts: ["Destruction"]
damage: 0

- type: entity
name: wallmount withdraw-only bank atm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,7 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 75
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
acts: ["Destruction"]
damage: 0
- type: ApcPowerReceiver
powerLoad: 1000 # TODO if we keep this make it spike power draw when teleporting
powerDisabled: true
Expand Down

0 comments on commit 86936f7

Please sign in to comment.