Skip to content

Commit

Permalink
fix: fix Cradle sacrifices not increasing biomass and life energy at …
Browse files Browse the repository at this point in the history
…the same time
  • Loading branch information
Elenterius committed Jun 16, 2023
1 parent d7e3510 commit e993b0f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ public boolean addTribute(ITribute tribute) {
if (isFull()) return false;
if (tribute.isEmpty()) return false;

boolean consumeTribute = addBiomass(tribute.biomass()) || addLifeEnergy(tribute.lifeEnergy());
boolean addedBiomass = addBiomass(tribute.biomass());
boolean addedLifeEnergy = addLifeEnergy(tribute.lifeEnergy());

boolean consumeTribute = addedBiomass || addedLifeEnergy;
boolean isModifier = tribute.biomass() == 0 && tribute.lifeEnergy() == 0;

if (consumeTribute || isModifier) {
Expand Down

0 comments on commit e993b0f

Please sign in to comment.