mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
[events] Implement Harvesting doubles event
This commit is contained in:
parent
ea0c55deb5
commit
097f87b431
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ package org.crandor.game.content.skill.free.gather;
|
|||
|
||||
import org.crandor.ServerConstants;
|
||||
import org.crandor.game.content.skill.Skills;
|
||||
import org.crandor.game.events.GlobalEventManager;
|
||||
import org.crandor.game.world.repository.Repository;
|
||||
import org.crandor.game.world.update.flag.context.Animation;
|
||||
|
||||
|
|
@ -498,7 +499,7 @@ public enum SkillingResource {
|
|||
* @return The rewardAmount.
|
||||
*/
|
||||
public int getRewardAmount() {
|
||||
return rewardAmount;
|
||||
return GlobalEventManager.get().isActive("Harvesting doubles") ? rewardAmount * 2 : rewardAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue