Reverting previous solution to avoid name color update problems.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user