must be in safezone to gain level up gold

This commit is contained in:
2025-02-15 06:29:42 -06:00
parent d6fa7dba9d
commit 3b5c0e6210
+1 -1
View File
@@ -3084,7 +3084,7 @@ public class PlayerCharacter extends AbstractCharacter {
checkGuildStatus();
//give gold for level up if level is under or equal to 20 and over 10
if(!this.isBoxed && this.level > 10 && this.level <= 20) {
if(!this.isBoxed && this.level > 10 && this.level <= 20 && this.safeZone) {
int gold = (int) ((100000 * (this.level - 10) / 55.0) );
this.charItemManager.addGoldToInventory(gold, false);
this.charItemManager.updateInventory();