Use gate pass per point config for reward.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment 2019-10-14 14:17:48 +00:00
parent efa09e6ce2
commit c75df52d4d

View File

@ -234,7 +234,7 @@ public class OlympiadManagerLink implements IBypassHandler
if (passes > 0)
{
player.getVariables().remove(Olympiad.UNCLAIMED_OLYMPIAD_PASSES_VAR);
final ItemInstance item = player.getInventory().addItem("Olympiad", GATE_PASS, passes, player, target);
final ItemInstance item = player.getInventory().addItem("Olympiad", GATE_PASS, passes * Config.ALT_OLY_GP_PER_POINT, player, target);
final InventoryUpdate iu = new InventoryUpdate();
iu.addModifiedItem(item);
player.sendPacket(iu);