mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
add simple check for full heal
This commit is contained in:
@@ -447,9 +447,13 @@ public class AdventurePlayer implements Serializable, SaveFileContent {
|
|||||||
o.run();
|
o.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void heal(int amount) {
|
public boolean fullHeal() {
|
||||||
life = Math.min(life + amount, maxLife);
|
if (life < maxLife) {
|
||||||
onLifeTotalChangeList.emit();
|
life = Math.max(maxLife, life);
|
||||||
|
onLifeTotalChangeList.emit();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void potionOfFalseLife() {
|
public void potionOfFalseLife() {
|
||||||
|
|||||||
Reference in New Issue
Block a user