Additional StatusUpdate changes for Beast Points.
This commit is contained in:
@@ -5626,10 +5626,17 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
if ((oldValue == null) || (oldValue != newValue))
|
if ((oldValue == null) || (oldValue != newValue))
|
||||||
{
|
{
|
||||||
su.addUpdate(type, newValue);
|
su.addUpdate(type, newValue);
|
||||||
if ((type == StatusUpdateType.MAX_DP) && isPlayer())
|
if (isPlayer())
|
||||||
|
{
|
||||||
|
if ((type == StatusUpdateType.MAX_DP))
|
||||||
{
|
{
|
||||||
su.addUpdate(StatusUpdateType.CUR_DP, getActingPlayer().getDeathPoints());
|
su.addUpdate(StatusUpdateType.CUR_DP, getActingPlayer().getDeathPoints());
|
||||||
}
|
}
|
||||||
|
else if ((type == StatusUpdateType.MAX_BP))
|
||||||
|
{
|
||||||
|
su.addUpdate(StatusUpdateType.CUR_BP, getActingPlayer().getBeastPoints());
|
||||||
|
}
|
||||||
|
}
|
||||||
return newValue;
|
return newValue;
|
||||||
}
|
}
|
||||||
return oldValue;
|
return oldValue;
|
||||||
|
@@ -54,6 +54,7 @@ public class StatusUpdate implements IClientOutgoingPacket
|
|||||||
case CUR_MP:
|
case CUR_MP:
|
||||||
case CUR_CP:
|
case CUR_CP:
|
||||||
case CUR_DP:
|
case CUR_DP:
|
||||||
|
case CUR_BP:
|
||||||
{
|
{
|
||||||
_isVisible = true;
|
_isVisible = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user