Random Event Genie Lamp XP

This commit is contained in:
downthecrop 2021-11-28 19:03:01 +00:00 committed by Ceikry
parent c726174631
commit 83b66d26ac
2 changed files with 7 additions and 2 deletions

View file

@ -46,7 +46,11 @@ public final class LampPlugin extends OptionHandler {
player.sendMessage("Your need at least" + lamp.getLevelRequirement() + " " + Skills.SKILL_NAME[skill] + " to do this.");
return;
}
player.getSkills().addExperience(skill,lamp.getExp());
if(lamp == Lamps.GENIE_LAMP){
player.getSkills().addExperience(skill,player.getSkills().getLevel(skill)*10);
} else {
player.getSkills().addExperience(skill,lamp.getExp());
}
player.getInventory().remove((Item) player.getAttribute("lamp"));
}