v0.2.3: small code tweak

This commit is contained in:
Evan Debenham 2014-12-02 02:20:52 -05:00
parent 486cdcf2b7
commit 0014888514

View File

@ -160,15 +160,17 @@ public class ShopPainter extends Painter {
if (hourglass != null){
int bags = 0;
//creates the given float percent of the remaining bags to be dropped.
//this way players who get the hourglass late can still max it, usually.
switch (Dungeon.depth) {
case 21:
bags = (int)Math.ceil(( 5-hourglass.sandBags) * 0.80f ); break;
case 16:
bags = (int)Math.ceil(( 5-hourglass.sandBags) * 0.50f ); break;
case 11:
bags = (int)Math.ceil(( 5-hourglass.sandBags) * 0.25f ); break;
case 6:
bags = (int)Math.ceil(( 5-hourglass.sandBags) * 0.20f ); break;
case 11:
bags = (int)Math.ceil(( 5-hourglass.sandBags) * 0.25f ); break;
case 16:
bags = (int)Math.ceil(( 5-hourglass.sandBags) * 0.50f ); break;
case 21:
bags = (int)Math.ceil(( 5-hourglass.sandBags) * 0.80f ); break;
}