Use minimum level of salvagable properly

This commit is contained in:
Shane Freeder 2020-02-09 22:47:17 +00:00
parent 11ca0d9ff1
commit 4f161812aa
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C

View File

@ -82,11 +82,11 @@ public class SalvageManager extends SkillManager {
return;
}
/*int skillLevel = getSkillLevel();
int minimumSalvageableLevel = salvageable.getMinimumLevel();*/
/*int skillLevel = getSkillLevel();*/
int minimumSalvageableLevel = salvageable.getMinimumLevel();
// Level check
if (!RankUtils.hasUnlockedSubskill(player, SubSkillType.SALVAGE_SCRAP_COLLECTOR)) {
if (getSkillLevel() < minimumSalvageableLevel) {
NotificationManager.sendPlayerInformation(player, NotificationType.REQUIREMENTS_NOT_MET, "Salvage.Skills.Adept.Level", String.valueOf(RankUtils.getUnlockLevel(SubSkillType.SALVAGE_ARCANE_SALVAGE)), StringUtils.getPrettyItemString(item.getType()));
return;
}