Browse Source

npc buildings dont accumulate gold

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
e708bb02f5
  1. 5
      src/engine/objects/Building.java

5
src/engine/objects/Building.java

@ -1000,7 +1000,10 @@ public class Building extends AbstractWorldObject { @@ -1000,7 +1000,10 @@ public class Building extends AbstractWorldObject {
public final boolean setStrongboxValue(int newValue) {
boolean success = true;
if(this.isOwnerIsNPC()) {
newValue = 0;
this.setStrongboxValue(0);
}
try {
DbManager.BuildingQueries.SET_PROPERTY(this, "currentGold", newValue);
this._strongboxValue = newValue;

Loading…
Cancel
Save