Skip to content

Commit

Permalink
make Health.MaxHP not readonly; some people want to frob it at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisforbes committed May 16, 2012
1 parent 881b4ba commit bc7aa9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Game/Traits/Health.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Health(ActorInitializer init, HealthInfo info)
}

public int HP { get { return hp; } }
public readonly int MaxHP;
public int MaxHP;

public bool IsDead { get { return hp <= 0; } }
public bool RemoveOnDeath = true;
Expand Down

0 comments on commit bc7aa9a

Please sign in to comment.