Random Event Genie Lamp XP

This commit is contained in:
downthecrop
2021-11-28 19:03:01 +00:00
committed by Ceikry
parent c6b2d9cf23
commit c67a3bc2d8
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -60,4 +60,5 @@
< ---- ABOVE Released NOVEMBER 22, 2021 https://gitlab.com/2009scape/2009scape/-/tags/Nov-22-2021 ---- >
- Animations for passing through Isafdar Dense Forest added
- Implement Wire Traps, Leaf Traps, and Stick Traps in Isafdar
- Quest point cape/hood no longer unequip on login if wearing QP hood
- Quest point cape/hood no longer unequip on login if wearing QP hood
- Random Event Genie lamps now scale exp correctly
@@ -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"));
}