Build 0.19.11.0

This commit is contained in:
Markus Isberg
2022-10-06 17:13:27 +03:00
parent 91f2f6f4f7
commit 05c7b1f869
13 changed files with 42 additions and 7 deletions
@@ -47,6 +47,9 @@ namespace Barotrauma
public readonly Point Size;
/// <summary>
/// The depth at which the level starts at, in in-game coordinates. E.g. if this was set to 100 000 (= 1000 m), the nav terminal would display the depth as 1000 meters at the top of the level.
/// </summary>
public readonly int InitialDepth;
/// <summary>
@@ -59,6 +62,9 @@ namespace Barotrauma
public bool EventsExhausted { get; set; }
/// <summary>
/// The crush depth of a non-upgraded submarine in in-game coordinates. Note that this can be above the top of the level!
/// </summary>
public float CrushDepth
{
get
@@ -66,6 +72,10 @@ namespace Barotrauma
return Math.Max(Size.Y, Level.DefaultRealWorldCrushDepth / Physics.DisplayToRealWorldRatio) - InitialDepth;
}
}
/// <summary>
/// The crush depth of a non-upgraded submarine in "real world units" (meters from the surface of Europa). Note that this can be above the top of the level!
/// </summary>
public float RealWorldCrushDepth
{
get