public void resourceSoldToPlayer(Resource.Type type) {
int currentPrice = this.currentPrices.get(type);
int increaseAmount = this.buyIncreaseAmounts.get(type);
int maxPriceAmount = this.maxPriceAmounts.get(type);
this.currentPrices.put(type, BZMaths.MIN(currentPrice + increaseAmount, maxPriceAmount));
}
public void resourcePurchasedFromPlayer(Resource.Type type) {
int currentPrice = this.currentPrices.get(type);
int decreaseAmount = this.sellDecreaseAmounts.get(type);
this.currentPrices.put(type, BZMaths.MAX(currentPrice - decreaseAmount, 0));