Added Karma, harming players reduces it

This commit is contained in:
juanjp600
2017-12-03 21:51:12 -03:00
parent 4a1eea8c30
commit 6841bb154b
3 changed files with 30 additions and 1 deletions
@@ -29,6 +29,13 @@ namespace Barotrauma.Networking
public string Name;
public byte ID;
private float karma = 1.0f;
public float Karma
{
get { return karma; }
set { karma = Math.Min(Math.Max(value,0.0f),1.0f); DebugConsole.NewMessage(Name+"'s karma set to "+karma,Microsoft.Xna.Framework.Color.Yellow); }
}
public byte TeamID = 0;
public Character Character;