fix Bridge init
This commit is contained in:
@@ -43,8 +43,12 @@ namespace OpenRA.Traits
|
||||
}
|
||||
|
||||
public int HP { get { return hp; } }
|
||||
public readonly int MaxHP;
|
||||
public float HPFraction { get { return hp*1f/MaxHP; } }
|
||||
public readonly int MaxHP;
|
||||
public float HPFraction
|
||||
{
|
||||
get { return hp * 1f / MaxHP; }
|
||||
set { hp = (int)(value * MaxHP); }
|
||||
}
|
||||
|
||||
public bool IsDead { get { return hp <= 0; } }
|
||||
public bool RemoveOnDeath = true;
|
||||
|
||||
Reference in New Issue
Block a user