v1.3.0: fixed nature's bounty not respecting drop cap
This commit is contained in:
+2
@@ -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();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user