From aab662e500470368f645c012f6e223673d8bcea6 Mon Sep 17 00:00:00 2001 From: ceik Date: Thu, 19 Mar 2020 15:53:25 -0500 Subject: [PATCH] Fixed the amount of coins the star awards --- Server/src/plugin/interaction/object/ShootingStarPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/plugin/interaction/object/ShootingStarPlugin.java b/Server/src/plugin/interaction/object/ShootingStarPlugin.java index c42f7372c..7834a9aec 100644 --- a/Server/src/plugin/interaction/object/ShootingStarPlugin.java +++ b/Server/src/plugin/interaction/object/ShootingStarPlugin.java @@ -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(50.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 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);