Increased Pest Control reward points by 5x (10, 15, and 25 for each boat)

This commit is contained in:
randy 2024-11-06 11:03:21 -07:00
parent 1ef61d8c33
commit 4cd703097c

View file

@ -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);