mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
set 250 as minimum value for temp health boost
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -382,6 +382,7 @@ public class Assets implements Disposable {
|
||||
if (memoryPerFile.containsKey(fileName)) {
|
||||
memoryPerFile.remove(fileName);
|
||||
}
|
||||
cardArtCache().clear();
|
||||
}
|
||||
|
||||
public float getMemoryInMegabytes() {
|
||||
|
||||
Reference in New Issue
Block a user