set 250 as minimum value for temp health boost

This commit is contained in:
Anthony Calosa
2022-08-14 09:32:37 +08:00
parent f1ccf6c3cd
commit 6ad81080fc
2 changed files with 3 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ public class InnScene extends UIScene {
public void enter() {
super.enter();
int tempHealthCost = Current.player().falseLifeCost();
if (tempHealthCost < 0) // if computed negative set 250 as minimum
tempHealthCost = 250;
boolean purchaseable = Current.player().getMaxLife() == Current.player().getLife() &&
tempHealthCost <= Current.player().getGold();

View File

@@ -382,6 +382,7 @@ public class Assets implements Disposable {
if (memoryPerFile.containsKey(fileName)) {
memoryPerFile.remove(fileName);
}
cardArtCache().clear();
}
public float getMemoryInMegabytes() {