APC construction updated, uses electronics (#10987)
* APC construction and deconstruction Construction action GivePrototype * APC needs screwing + sprites * apc framework, working construction recipe * Energy swords hot * APC changes * APC construction/deconstruction * removed comments * Revert "Energy swords hot" This reverts commit 75228483abb3cc6252118b319bc8949d5198362d. * Renamed function for clarity * Fixed the last step not showing in the construction menu * Some fixes * Update Content.Server/Power/EntitySystems/ApcSystem.cs Co-authored-by: Jacob Tong <10494922+ShadowCommander@users.noreply.github.com> * Update Content.Server/Construction/Completions/GivePrototype.cs Co-authored-by: Jacob Tong <10494922+ShadowCommander@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Power/apc.yml Co-authored-by: Jacob Tong <10494922+ShadowCommander@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Power/apc.yml Co-authored-by: Jacob Tong <10494922+ShadowCommander@users.noreply.github.com> * Update Content.Server/Power/Components/ApcElectronicsComponent.cs Co-authored-by: Jacob Tong <10494922+ShadowCommander@users.noreply.github.com> * Update Content.Client/Power/APC/ApcVisualizer.cs Co-authored-by: Jacob Tong <10494922+ShadowCommander@users.noreply.github.com> Co-authored-by: CommieFlowers <rasmus.cedergren@hotmail.com> Co-authored-by: Jacob Tong <10494922+ShadowCommander@users.noreply.github.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
name: APC electronics
|
||||
description: Circuit used in APC construction.
|
||||
components:
|
||||
- type: ApcElectronics
|
||||
- type: Sprite
|
||||
sprite: Objects/Misc/module.rsi
|
||||
state: charger_APC
|
||||
|
||||
@@ -93,6 +93,61 @@
|
||||
acts: [ "Destruction" ]
|
||||
- type: StationInfiniteBatteryTarget
|
||||
|
||||
# APC under construction
|
||||
- type: entity
|
||||
noSpawn: true
|
||||
id: APCFrame
|
||||
name: APC frame
|
||||
description: A control terminal for the area's electrical systems, lacking the electronics.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: Clickable
|
||||
- type: InteractionOutline
|
||||
- type: Transform
|
||||
anchored: true
|
||||
- type: Sprite
|
||||
drawdepth: WallMountedItems
|
||||
netsync: false
|
||||
sprite: Structures/Power/apc.rsi
|
||||
state: apcframe
|
||||
- type: Construction
|
||||
graph: APC
|
||||
node: apcFrame
|
||||
- type: WallMount
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 200
|
||||
behaviors: #excess damage, don't spawn entities.
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 50
|
||||
behaviors:
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
SheetSteel1:
|
||||
min: 1
|
||||
max: 1
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
# Constructed APC
|
||||
- type: entity
|
||||
parent: BaseAPC
|
||||
id: APCConstructed
|
||||
suffix: Open
|
||||
components:
|
||||
- type: Apc
|
||||
voltage: Apc
|
||||
open: true
|
||||
|
||||
# APCs in use
|
||||
- type: entity
|
||||
parent: BaseAPC
|
||||
|
||||
@@ -1,13 +1,43 @@
|
||||
- type: constructionGraph
|
||||
- type: constructionGraph
|
||||
id: APC
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: apc
|
||||
- to: apcFrame
|
||||
steps:
|
||||
- material: Steel
|
||||
amount: 3
|
||||
|
||||
- node: apcFrame
|
||||
entity: APCFrame
|
||||
edges:
|
||||
- to: apc
|
||||
steps:
|
||||
- component: ApcElectronics
|
||||
name: "APC electronics"
|
||||
doAfter: 2
|
||||
- to: start
|
||||
completed:
|
||||
- !type:GivePrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 3
|
||||
- !type:DeleteEntity {}
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 2
|
||||
|
||||
- node: apc
|
||||
entity: BaseAPC
|
||||
entity: APCConstructed
|
||||
edges:
|
||||
- to: apcFrame
|
||||
completed:
|
||||
- !type:GivePrototype
|
||||
prototype: APCElectronics
|
||||
amount: 1
|
||||
conditions:
|
||||
- !type:ApcPanel
|
||||
open: true
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 4
|
||||
|
||||
Reference in New Issue
Block a user