Reverting previous solution to avoid name color update problems.

This commit is contained in:
MobiusDev
2015-03-25 13:54:30 +00:00
parent 1c13685dbb
commit 819415272a
3 changed files with 15 additions and 3 deletions

View File

@ -50,6 +50,10 @@ public class PcAppearance
/** The default title color is 0xECF9A2. */
private int _titleColor = DEFAULT_TITLE_COLOR;
/** Karma and Reputation colors */
private final int _redColor = 255;
private final int _greenColor = 65280;
public PcAppearance(byte face, byte hColor, byte hStyle, boolean sex)
{
_face = face;
@ -173,6 +177,14 @@ public class PcAppearance
public int getNameColor()
{
if (_owner.getKarma() > 0)
{
return _redColor;
}
if (_owner.getReputation() > 0)
{
return _greenColor;
}
return _nameColor;
}