From 2b89cc2fb9b42c444613acf60c04555406ca041c Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 5 Aug 2017 22:15:54 +0100 Subject: [PATCH] Fix heroes unlocking 1 level after they are meant to --- .../arcade/game/games/moba/progression/ui/MobaRolePage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/moba/progression/ui/MobaRolePage.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/moba/progression/ui/MobaRolePage.java index de2fb9774..7346445e7 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/moba/progression/ui/MobaRolePage.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/moba/progression/ui/MobaRolePage.java @@ -88,11 +88,11 @@ public class MobaRolePage extends ShopPageBase HeroKit kit = kits.get(i++); String packageName = _host.getProgression().getPackageName(kit); boolean hasUnlocked = _plugin.GetDonation().Get(_player).ownsUnknownSalesPackage(packageName); - boolean canUnlock = _host.getProgression().getLevel(_player, kit) >= kit.getUnlockLevel(); + boolean canUnlock = _host.getProgression().getLevel(_player, kit) >= kit.getUnlockLevel() - 1; ItemBuilder builder = new ItemBuilder(Material.STAINED_CLAY); builder.setTitle(C.cGreen + kit.GetName()); - builder.addLore("", "Unlocks at " + _role.getName() + " Level " + C.cGreen + (i * 10)); + builder.addLore("", "Unlocks at " + _role.getName() + " Level " + C.cGreen + kit.getUnlockLevel()); if (hasUnlocked) {