Delta-v/Content.Server/Atmos/EntitySystems
Pieter-Jan Briers b5138b245e Fix barotrauma calculations
The math for our pressure damage (barotrauma) system is directly taken from TG. The constants are the same and the math is almost the same. However there are two errors.

1. Pressure damage started being applied within the WARNING bounds, rather than the HAZARD bounds. This means you started taking low pressure damage at 50 kPa instead of the intended 20 kPa, and also the HUD icon didn't show "danger" like it should even if you were already taking damage.

2. The calculations for high pressure damage were wrong. These are supposed to be linearly scaled, but the function was wrong so the scaling didn't actually work properly (especially when considering the fixed bounds above). This appears to be the case because the function was taken from an incorrect comment in the original source, rather than the real math.

Both of these issues are now fixed to match the TG behavior. Note that this somewhat nerfs pressure damage in non-extreme circumstances. e.g. a room at 40 kPa now gives NO pressure damage, whereas previously it would do full space damage.

The description of the pressure alerts is wrong for "low" severity, but I can't be arsed to fix that right now. Alerts don't have a way to change the description depending on severity...
2024-03-17 22:37:28 +01:00
..
AirFilterSystem.cs Revert "Fix chat bubbles (#25643)" (#25645) 2024-02-28 00:51:20 +11:00
AirtightSystem.cs Revert "Fix chat bubbles (#25643)" (#25645) 2024-02-28 00:51:20 +11:00
AtmosDebugOverlaySystem.cs Improve atmos debug overlay (#22520) 2023-12-15 14:18:00 -08:00
AtmosExposedSystem.cs Fix a bunch of compiler warnings (#10518) 2022-08-13 22:28:34 -07:00
AtmosObstructionEnumerator.cs Content changes for mapgrid kill (#12567) 2022-11-22 13:12:04 +11:00
AtmosPlaqueSystem.cs Remove usages of obsolete MetaDataComponent setters (#19582) 2023-08-28 19:20:31 +10:00
AtmosphereSystem.API.cs Adds a new `AtmosphereSystem.GetTileMixture()` override (#21804) 2023-11-29 10:03:44 +11:00
AtmosphereSystem.BreathTool.cs Remove 700 usages of Component.Owner (#21100) 2023-10-19 12:34:31 -07:00
AtmosphereSystem.CVars.cs Random spontaneous cleanup PR (#25131) 2024-02-13 16:48:39 -05:00
AtmosphereSystem.Commands.cs Remove 700 usages of Component.Owner (#21100) 2023-10-19 12:34:31 -07:00
AtmosphereSystem.ExcitedGroup.cs Refactors the AtmosphereSystem public-facing API to allow for multiple atmos backends. (#8134) 2022-07-04 09:51:34 -05:00
AtmosphereSystem.Gases.cs Revert "Add YAML gas reactions (#22803)" (#22939) 2023-12-24 23:50:42 -07:00
AtmosphereSystem.GridAtmosphere.cs Fix index out of range exception in atmosphere system (#22770) 2023-12-20 18:08:48 +11:00
AtmosphereSystem.HighPressureDelta.cs Revert "Fix chat bubbles (#25643)" (#25645) 2024-02-28 00:51:20 +11:00
AtmosphereSystem.Hotspot.cs Remove obsolete transform call (#24217) 2024-02-02 00:39:43 +11:00
AtmosphereSystem.LINDA.cs Gas tile overlay state handling changes (#12691) 2022-12-19 06:25:27 +11:00
AtmosphereSystem.Map.cs Draw MapAtmosphere gasses (#17688) 2023-06-28 21:22:03 +10:00
AtmosphereSystem.Monstermos.cs Obsolete `Logger` cleanup for `EntitySystem`s part 2 (#26159) 2024-03-17 18:31:09 +11:00
AtmosphereSystem.Processing.cs Convert atmos device events to ref events (#22843) 2023-12-21 17:48:18 -08:00
AtmosphereSystem.Superconductivity.cs Refactors the AtmosphereSystem public-facing API to allow for multiple atmos backends. (#8134) 2022-07-04 09:51:34 -05:00
AtmosphereSystem.Utils.cs Tile prying removes decals (#13363) 2023-01-07 02:24:50 -08:00
AtmosphereSystem.cs Remove obsolete transform call (#24217) 2024-02-02 00:39:43 +11:00
AutomaticAtmosSystem.cs Obsolete `Logger` cleanup for `EntitySystem`s (#25941) 2024-03-10 01:15:13 +01:00
BarotraumaSystem.cs Fix barotrauma calculations 2024-03-17 22:37:28 +01:00
FirestarterSystem.cs Firestarter fixes (#24647) 2024-02-01 00:01:52 +11:00
FlammableSystem.cs Diona Nymphs & Splitting (#24630) 2024-02-16 18:54:44 -08:00
GasAnalyzerSystem.cs Improve gas analyzer interface (#22779) 2023-12-20 09:56:57 -08:00
GasTankSystem.cs Lock Anomaly generator to research access (#24464) 2024-02-01 19:45:24 +11:00
GasTileOverlaySystem.cs Random spontaneous cleanup PR (#25131) 2024-02-13 16:48:39 -05:00
HeatExchangerSystem.cs Random spontaneous cleanup PR (#25131) 2024-02-13 16:48:39 -05:00