mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18: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();
|
||||
}
|
||||
|
||||
public void heal(int amount) {
|
||||
life = Math.min(life + amount, maxLife);
|
||||
onLifeTotalChangeList.emit();
|
||||
public boolean fullHeal() {
|
||||
if (life < maxLife) {
|
||||
life = Math.max(maxLife, life);
|
||||
onLifeTotalChangeList.emit();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void potionOfFalseLife() {
|
||||
|
||||
Reference in New Issue
Block a user