forked from 2009Scape/Server
Increased Pest Control reward points by 5x (10, 15, and 25 for each boat)
This commit is contained in:
parent
1ef61d8c33
commit
4cd703097c
1 changed files with 2 additions and 2 deletions
|
|
@ -133,14 +133,14 @@ public final class PestControlActivityPlugin extends ActivityPlugin {
|
|||
// type,
|
||||
// default
|
||||
} else if (success && p.getAttribute("pc_zeal", 0) >= 50) {
|
||||
int amount = type.ordinal() + 2;
|
||||
int amount = type.ordinal() == 0 ? 10 : type.ordinal() == 1 ? 15 : 25;
|
||||
p.getSavedData().getActivityData().increasePestPoints(amount);
|
||||
Item coins = new Item(995, p.getProperties().getCurrentCombatLevel() * 10);
|
||||
if (!p.getInventory().add(coins)) {
|
||||
GroundItemManager.create(coins, p);
|
||||
}
|
||||
// default, type, name
|
||||
p.getDialogueInterpreter().open(3781, true, 1, type.ordinal() == 0 ? "two" : type.ordinal() == 1 ? "three" : "four");
|
||||
p.getDialogueInterpreter().open(3781, true, 1, type.ordinal() == 0 ? "ten" : type.ordinal() == 1 ? "fifteen" : "twenty-five");
|
||||
} else {
|
||||
// default type, default
|
||||
p.getDialogueInterpreter().open(3781, true, 2, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue