]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Atmos dP Guidebook Entry (#40194)
authorArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Sun, 7 Sep 2025 15:10:39 +0000 (08:10 -0700)
committerGitHub <noreply@github.com>
Sun, 7 Sep 2025 15:10:39 +0000 (17:10 +0200)
* Add Atmos dP guidebook

* Update Resources/ServerInfo/Guidebook/Engineering/DeltaPressure.xml

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Server/Atmos/Components/DeltaPressureComponent.cs
Resources/Locale/en-US/guidebook/guides.ftl
Resources/Prototypes/Guidebook/engineering.yml
Resources/ServerInfo/Guidebook/Engineering/DeltaPressure.xml [new file with mode: 0644]

index f90c133dea70192ba968e947bf981a6b92fe687c..8031cd876da45c427ea1c71b66e4848819fb3bab 100644 (file)
@@ -1,6 +1,7 @@
 using Content.Server.Atmos.EntitySystems;
 using Content.Shared.Damage;
 using Content.Shared.FixedPoint;
+using Content.Shared.Guidebook;
 
 namespace Content.Server.Atmos.Components;
 
@@ -87,6 +88,7 @@ public sealed partial class DeltaPressureComponent : Component
     /// The minimum difference in pressure between any side required for the entity to start taking damage.
     /// </summary>
     [DataField]
+    [GuidebookData]
     public float MinPressureDelta = 7500;
 
     /// <summary>
index b55193fef627ca51536beabf63ff3a1edaf0a1c5..a148c3aba8993bc74acf7b7325e46e28941f30a6 100644 (file)
@@ -37,6 +37,7 @@ guide-entry-gasminingandstorage = Gas Mining and Storage
 guide-entry-atmosphericupsets = Atmospheric Upsets
 guide-entry-fires = Fires
 guide-entry-spacing = Spacing
+guide-entry-deltapressure = Delta Pressure
 guide-entry-atmostools = Atmos Tools
 guide-entry-gasses = Gasses
 guide-entry-botany = Botany
index 96e049a3999c5d1be2400eee33f79c1aa73fc245..24dc623086fba0e7468a488b58af651aa45201e5 100644 (file)
   children:
   - Fires
   - Spacing
+  - DeltaPressure
 
 - type: guideEntry
   id: Fires
   name: guide-entry-spacing
   text: "/ServerInfo/Guidebook/Engineering/Spacing.xml"
 
+- type: guideEntry
+  id: DeltaPressure
+  name: guide-entry-deltapressure
+  text: "/ServerInfo/Guidebook/Engineering/DeltaPressure.xml"
+
 - type: guideEntry
   id: AtmosTools
   name: guide-entry-atmostools
diff --git a/Resources/ServerInfo/Guidebook/Engineering/DeltaPressure.xml b/Resources/ServerInfo/Guidebook/Engineering/DeltaPressure.xml
new file mode 100644 (file)
index 0000000..7773512
--- /dev/null
@@ -0,0 +1,69 @@
+<Document>
+  # Delta Pressure
+  Delta Pressure, or ΔP, is the difference in pressure between two areas.
+  This difference in pressure can exert a force on objects between the two areas, dealing [bold]pressure damage[/bold] to some objects in its way.
+
+  Various objects made out of glass, such as Windows, Windoors, and Shutters can experience pressure damage if the ΔP between the two sides is high enough.
+  This damage can cause these objects to shatter, allowing gas to flow freely between the two areas.
+
+  Different types of objects have different thresholds for how much ΔP they can withstand before shattering.
+  Generally, the stronger the glass, the higher the threshold. Objects that are thin will also have lower thresholds.
+
+  Objects like walls, airlocks, and firelocks are not affected by ΔP.
+
+  ## Standard Glass and Objects
+  <Box>
+    <GuideEntityEmbed Entity="Window" Caption=""/>
+    <GuideEntityEmbed Entity="WindowDirectional" Caption=""/>
+    <GuideEntityEmbed Entity="Windoor" Caption=""/>
+    <GuideEntityEmbed Entity="ShuttersWindow" Caption=""/>
+    <GuideEntityEmbed Entity="InflatableWall" Caption=""/>
+  </Box>
+
+  Standard full-size glass and other weak objects can withstand a ΔP of up to [color=orange][protodata="Window" comp="DeltaPressure" member="MinPressureDelta"/] kPa[/color] before starting to crack.
+
+  Quarter-size glass, such as directional windows, can withstand a ΔP of up to [color=orange][protodata="WindowDirectional" comp="DeltaPressure" member="MinPressureDelta"/] kPa[/color] before starting to crack.
+
+  ## Reinforced Glass and Objects
+  <Box>
+    <GuideEntityEmbed Entity="ReinforcedWindow" Caption=""/>
+    <GuideEntityEmbed Entity="WindowReinforcedDirectional" Caption=""/>
+    <GuideEntityEmbed Entity="WindoorSecure" Caption=""/>
+    <GuideEntityEmbed Entity="ShuttleWindow" Caption=""/>
+  </Box>
+
+  Reinforced full-size glass can withstand a ΔP of up to [color=orange][protodata="ReinforcedWindow" comp="DeltaPressure" member="MinPressureDelta"/] kPa[/color] before starting to crack.
+
+  Reinforced quarter-size glass can withstand a ΔP of up to [color=orange][protodata="WindowReinforcedDirectional" comp="DeltaPressure" member="MinPressureDelta"/] kPa[/color] before starting to crack.
+
+  ## Plasma/Uranium Glass
+  <Box>
+    <GuideEntityEmbed Entity="PlasmaWindow" Caption=""/>
+    <GuideEntityEmbed Entity="PlasmaWindowDirectional" Caption=""/>
+    <GuideEntityEmbed Entity="WindoorPlasma" Caption=""/>
+    <GuideEntityEmbed Entity="UraniumWindow" Caption=""/>
+    <GuideEntityEmbed Entity="UraniumWindowDirectional" Caption=""/>
+    <GuideEntityEmbed Entity="WindoorUranium" Caption=""/>
+  </Box>
+
+  Plasma glass and uranium glass can withstand a ΔP of up to [color=orange][protodata="PlasmaWindow" comp="DeltaPressure" member="MinPressureDelta"/] kPa[/color] before starting to crack.
+
+  Plasma and uranium quarter-size glass can withstand a ΔP of up to [color=orange][protodata="PlasmaWindowDirectional" comp="DeltaPressure" member="MinPressureDelta"/] kPa[/color] before starting to crack.
+
+  ## Reinforced Plasma/Uranium Glass
+
+  <Box>
+    <GuideEntityEmbed Entity="ReinforcedPlasmaWindow" Caption=""/>
+    <GuideEntityEmbed Entity="PlasmaReinforcedWindowDirectional" Caption=""/>
+    <GuideEntityEmbed Entity="WindoorSecurePlasma" Caption=""/>
+    <GuideEntityEmbed Entity="ReinforcedUraniumWindow" Caption=""/>
+    <GuideEntityEmbed Entity="UraniumReinforcedWindowDirectional" Caption=""/>
+    <GuideEntityEmbed Entity="WindoorSecureUranium" Caption=""/>
+
+  </Box>
+
+  Reinforced plasma glass and uranium glass can withstand a ΔP of up to [color=orange][protodata="ReinforcedPlasmaWindow" comp="DeltaPressure" member="MinPressureDelta"/] kPa[/color] before starting to crack.
+
+  Reinforced plasma and uranium quarter-size glass can withstand a ΔP of up to [color=orange][protodata="PlasmaReinforcedWindowDirectional" comp="DeltaPressure" member="MinPressureDelta"/] kPa[/color] before starting to crack.
+
+</Document>