v1.3.0: fixed nature's bounty not respecting drop cap

This commit is contained in:
Evan Debenham
2022-06-13 00:59:48 -04:00
parent c62dfbceb1
commit 1fafb140cb
@@ -101,6 +101,7 @@ public class HighGrass {
Talent.NatureBerriesDropped dropped = Buff.affect(ch, Talent.NatureBerriesDropped.class); Talent.NatureBerriesDropped dropped = Buff.affect(ch, Talent.NatureBerriesDropped.class);
berriesAvailable -= dropped.count(); berriesAvailable -= dropped.count();
if (berriesAvailable > 0) {
int targetFloor = 2 + 2 * ((Hero) ch).pointsInTalent(Talent.NATURES_BOUNTY); int targetFloor = 2 + 2 * ((Hero) ch).pointsInTalent(Talent.NATURES_BOUNTY);
targetFloor -= berriesAvailable; targetFloor -= berriesAvailable;
targetFloor += (targetFloor >= 5) ? 3 : 2; targetFloor += (targetFloor >= 5) ? 3 : 2;
@@ -115,6 +116,7 @@ public class HighGrass {
dropped.countUp(1); dropped.countUp(1);
level.drop(new Berry(), pos).sprite.drop(); level.drop(new Berry(), pos).sprite.drop();
} }
}
} }
} }