Fixed the amount of coins the star awards

This commit is contained in:
ceik 2020-03-19 17:22:32 -05:00
parent aab662e500
commit f342510204

View file

@ -742,7 +742,7 @@ public class ShootingStarPlugin extends OptionHandler {
int cosmicRunes = (int) (Math.ceil(0.76 * dust) * AMPLIFIER);
int astralRunes = (int) (Math.ceil(0.26 * dust) * AMPLIFIER);
int goldOre = (int) (Math.ceil(0.1 * dust) * AMPLIFIER);
int coins = (int) (Math.ceil((dust * 40) > 90000 ? 90000 : 40.0 * dust) * AMPLIFIER); // limits the amount of gp per turn-in to 90k, same as 2009 rs, and minimum from all stardust from a level 1 star works out to 50k, same as rs in 2009
int coins = (int) (Math.ceil(250.0 * dust) * AMPLIFIER); // limits the amount of gp per turn-in to 90k, same as 2009 rs, and minimum from all stardust from a level 1 star works out to 50k, same as rs in 2009
player.getInventory().add(new Item(COSMIC_RUNE, cosmicRunes), player);
player.getInventory().add(new Item(ASTRAL_RUNE, astralRunes), player);
player.getInventory().add(new Item(GOLD_ORE, goldOre), player);