-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from whatston3/2024-11-03-wallmount-radar-sugge…
…stions 2024 11 03 wallmount radar suggestions
- Loading branch information
Showing
24 changed files
with
362 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ponents/ComputerTabletopBoardComponent.cs → ...ponents/ComputerTabletopBoardComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Content.Server/_NF/Construction/Components/ComputerWallmountBoardComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Robust.Shared.Prototypes; | ||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; | ||
|
||
namespace Content.Server._NF.Construction.Components | ||
{ | ||
/// <summary> | ||
/// Used for construction graphs in building wallmount computers. | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class ComputerWallmountBoardComponent : Component | ||
{ | ||
[DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))] | ||
public string? Prototype { get; private set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
Resources/Prototypes/_NF/Entities/Structures/Machines/Computers/computers_wallmount.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Mass scanner telescreen | ||
- type: entity | ||
parent: [BaseStructureComputerWallmount, ComputerRadar] | ||
id: ComputerWallmountRadar | ||
components: | ||
- type: Sprite | ||
drawdepth: WallMountedItems | ||
sprite: _NF/Structures/Machines/computer_wallmount.rsi | ||
layers: | ||
- map: ["computerLayerBody"] | ||
state: computer_wallmount | ||
- map: ["computerLayerScreen"] | ||
state: screen_mass | ||
|
||
- type: entity | ||
parent: [BaseStructureComputerWallmount, ComputerAdvancedRadar] | ||
id: ComputerWallmountAdvancedRadar | ||
components: | ||
- type: Sprite | ||
drawdepth: WallMountedItems | ||
sprite: _NF/Structures/Machines/computer_wallmount.rsi | ||
layers: | ||
- map: ["computerLayerBody"] | ||
state: computer_wallmount | ||
- map: ["computerLayerScreen"] | ||
state: screen_radar |
76 changes: 76 additions & 0 deletions
76
Resources/Prototypes/_NF/Entities/Structures/Machines/Computers/frame_wallmount.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
- type: entity | ||
id: BaseStructureComputerWallmount | ||
parent: [BaseStructureWallmount, BaseStructure] | ||
suffix: Wallmount | ||
abstract: true | ||
components: | ||
- type: Anchorable | ||
- type: InteractionOutline | ||
- type: Construction | ||
graph: ComputerWallmount | ||
node: wallmount computer | ||
- type: Sprite | ||
sprite: _NF/Structures/Machines/computer_wallmount.rsi | ||
drawdepth: WallMountedItems | ||
layers: | ||
- map: [ "computerLayerBody" ] | ||
sprite: _NF/Structures/Machines/computer_wallmount.rsi | ||
state: computer_wallmount | ||
- map: [ "computerLayerScreen" ] | ||
sprite: _NF/Structures/Machines/computer_wallmount.rsi | ||
state: screen_generic | ||
- type: Damageable | ||
damageContainer: Inorganic | ||
damageModifierSet: Electronic | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 100 | ||
behaviors: | ||
- !type:PlaySoundBehavior | ||
sound: | ||
collection: GlassBreak | ||
- !type:ChangeConstructionNodeBehavior | ||
node: monitorBroken | ||
- !type:DoActsBehavior | ||
acts: ["Destruction"] | ||
- type: StaticPrice | ||
price: 100 | ||
|
||
- type: entity | ||
parent: BaseStructureComputerWallmount | ||
name: computer | ||
id: ComputerWallmountFrame | ||
components: | ||
- type: Construction | ||
graph: ComputerWallmount | ||
node: frameUnsecured | ||
containers: | ||
- board | ||
- type: Sprite | ||
drawdepth: WallMountedItems | ||
sprite: _NF/Structures/Machines/computer_wallmount.rsi | ||
layers: | ||
- state: computer_wallmount_frame | ||
map: [ "enum.ConstructionVisuals.Layer" ] | ||
- type: Appearance | ||
- type: GenericVisualizer | ||
visuals: | ||
enum.ConstructionVisuals.Key: | ||
enum.ConstructionVisuals.Layer: | ||
frameUnsecured: { state: computer_wallmount_frame } | ||
boardUnsecured: { state: computer_board_exposed } | ||
missingWires: { state: computer_needs_wires } | ||
monitorMissing: { state: computer_no_monitor } | ||
monitorUnsecured: { state: computer_monitor_unscrewed } | ||
|
||
- type: entity | ||
parent: [BaseStructureWallmount, ComputerBroken] | ||
id: ComputerWallmountBroken | ||
suffix: Wallmount | ||
components: | ||
- type: Sprite | ||
drawdepth: WallMountedItems | ||
sprite: _NF/Structures/Machines/computer_wallmount.rsi | ||
state: broken_wallmount |
91 changes: 0 additions & 91 deletions
91
Resources/Prototypes/_NF/Entities/Structures/Wallmounts/monitors_televisions.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.