This commit is contained in:
Regalis
2015-10-31 15:16:49 +02:00
parent bcc96cee97
commit b0deba514e
29 changed files with 348 additions and 81 deletions
+6 -1
View File
@@ -16,7 +16,7 @@ namespace Barotrauma
{
class SubmarineBody
{
const float DamageDepth = 0.0f;
public const float DamageDepth = -10000.0f;
const float PressureDamageMultiplier = 0.001f;
//structure damage = impact * damageMultiplier
@@ -77,6 +77,11 @@ namespace Barotrauma
get { return new Vector2(Borders.X + Borders.Width / 2, Borders.Y - Borders.Height / 2); }
}
public bool AtDamageDepth
{
get { return sub.Position.Y < DamageDepth; }
}
public SubmarineBody(Submarine sub)
{
this.sub = sub;