Check if exp or sp is gained before sending reward message.

This commit is contained in:
MobiusDevelopment
2022-11-02 23:00:32 +00:00
parent 6fd8576181
commit 8e4340bed6
29 changed files with 29 additions and 29 deletions

View File

@@ -182,7 +182,7 @@ public class PlayerStat extends PlayableStat
sm = new SystemMessage(SystemMessageId.YOU_HAVE_ACQUIRED_S1_XP);
sm.addLong(finalExp);
}
else
else if ((finalExp > 0) || (finalSp > 0))
{
sm = new SystemMessage(SystemMessageId.YOU_HAVE_ACQUIRED_S1_XP_BONUS_S2_AND_S3_SP_BONUS_S4);
sm.addLong(finalExp);