Browse Source

must be in safezone to gain level up gold

lakebane
FatBoy-DOTC 7 days ago
parent
commit
3b5c0e6210
  1. 2
      src/engine/objects/PlayerCharacter.java

2
src/engine/objects/PlayerCharacter.java

@ -3084,7 +3084,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -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();

Loading…
Cancel
Save