v0.9.1: fixed hunger able to be increased while well fed
This commit is contained in:
parent
d47a223b9e
commit
61372291ca
|
@ -127,6 +127,12 @@ public class Hunger extends Buff implements Hero.Doom {
|
|||
|
||||
public void affectHunger(float energy, boolean overrideLimits ) {
|
||||
|
||||
if (energy < 0 && target.buff(WellFed.class) != null){
|
||||
target.buff(WellFed.class).left += energy;
|
||||
BuffIndicator.refreshHero();
|
||||
return;
|
||||
}
|
||||
|
||||
level -= energy;
|
||||
if (level < 0 && !overrideLimits) {
|
||||
level = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user