forked from 2009Scape/Server
Random Event Genie Lamp XP
This commit is contained in:
parent
c6b2d9cf23
commit
c67a3bc2d8
2 changed files with 7 additions and 2 deletions
|
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue