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