Delta-v/Content.Server/Construction
chromiumboy 636819f4e3
Hacking protections for airlocks (#18894)
* Adds the ability to better protect to the internal wiring of airlocks
- Achieved by opening the maintenance panel, adding either steel or plasteel to the airlock, then welding the plate in place
- To access the wiring, the plating must be cut with a welder and then pried out with a crowbar

* Code revisions
- Cleaned up the code
- Cutting the security grille can now shock you
- Atmospherics and Security dept airlocks start with a medium level of protection (a welded steel plate)
- Command dept airlocks start with a high level of protection (a welded plasteel plate and electrified security grille)

* Code revision
- Accounted for a potentially null string

* Update Content.Server/Construction/Completions/AttemptElectrocute.cs

Co-authored-by: Slava0135 <40753025+Slava0135@users.noreply.github.com>

* Update ChangeWiresPanelSecurityLevel.cs

Adjusted scope

* Update Content.Shared/Wires/SharedWiresSystem.cs

Co-authored-by: Slava0135 <40753025+Slava0135@users.noreply.github.com>

* Update Content.Shared/Wires/SharedWiresSystem.cs

Co-authored-by: Slava0135 <40753025+Slava0135@users.noreply.github.com>

* Update ChangeWiresPanelSecurityLevel.cs

Removed get / setter and added [ValidatePrototypeId] attribute

* Update ChangeWiresPanelSecurityLevel.cs

Set security level to "Level0" as the default

* Update airlock.yml

Removed 'super max' level of security

* Update WiresPanelSecurityLevelPrototype.cs

* Update WiresSystem.cs

Added check for WiresAccessible to OnInteractUsing

* Update AttemptElectrocute.cs

File scoped namespace

* Update ChangeWiresPanelSecurityLevel.cs

File scoped namespace

* Update AirlockSystem.cs

File scoped namespace

* Update SharedWiresSystem.cs

Removed boiler plate 'OnGetState' and 'OnHandleState'

* Update WiresPanelComponent.cs

Implemented AutoGenerateComponentState

* Removed unnecessary usage references

* use TryCloseAll when wires not accessible

* minor changes to AttemmptElectrocute

* lets try all 7 levels

* fix indent in airlock graph

* fix indent 2

---------

Co-authored-by: Slava0135 <40753025+Slava0135@users.noreply.github.com>
Co-authored-by: Slava0135 <super.novalskiy_0135@inbox.ru>
2023-08-10 11:33:03 +03:00
..
Commands Replace GridEntityId with Owner (#12743) 2022-12-12 14:59:02 +11:00
Completions Hacking protections for airlocks (#18894) 2023-08-10 11:33:03 +03:00
Components RPED can now add parts to in-progress machine frames (#16633) 2023-08-07 20:26:24 -04:00
Conditions Split Door Bolt functionality out of AirlockDoor (#16354) 2023-05-31 10:23:35 -04:00
NodeEntities Construction graph improvements (#17960) 2023-07-13 20:23:52 +10:00
ConstructionSystem.Computer.cs Construction warning cleanup (#12256) 2022-10-30 17:48:53 +11:00
ConstructionSystem.Graph.cs Construction graph improvements (#17960) 2023-07-13 20:23:52 +10:00
ConstructionSystem.Guided.cs Revert "Revert "Replace `ResourcePath` with `ResPath` (#15308)" (#155… (#15566) 2023-04-20 20:16:01 +10:00
ConstructionSystem.Initial.cs Drop stored entities from containers used in crafting recipes (#18564) 2023-08-02 10:32:51 -08:00
ConstructionSystem.Interactions.cs Anchorable shared (#17422) 2023-06-29 22:35:54 +10:00
ConstructionSystem.Machine.cs Fix thruster postmapinit (#15623) 2023-04-21 20:04:20 +10:00
ConstructionSystem.Pathfinding.cs Cleanup the namespaces (#8132) 2022-05-13 17:59:03 +10:00
ConstructionSystem.cs More DoAfter Changes (#14609) 2023-04-02 21:13:48 -04:00
MachineFrameSystem.cs Fix some machine construction bugs. (#18179) 2023-07-30 03:29:59 +10:00
PartExchangerSystem.cs RPED can now add parts to in-progress machine frames (#16633) 2023-08-07 20:26:24 -04:00
RefiningSystem.cs welder stuff (#17476) 2023-06-27 21:46:48 -04:00