forked from 2009Scape/Server
Increased the Herb:Tar ratio from 1:15 to 1:45
Salamanders burn through ammo, and herbs are a lot of work to come by. This increases how much ammo you get per herb by 3x.
This commit is contained in:
parent
da071b795d
commit
df3fc6c973
1 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ public final class HerbTarPulse extends SkillPulse<Item> {
|
|||
/**
|
||||
* Represents the swamp tar item.
|
||||
*/
|
||||
private static final Item SWAMP_TAR = new Item(1939, 15);
|
||||
private static final Item SWAMP_TAR = new Item(1939, 45);
|
||||
|
||||
/**
|
||||
* Represents the tar to make.
|
||||
|
|
@ -65,7 +65,7 @@ public final class HerbTarPulse extends SkillPulse<Item> {
|
|||
return false;
|
||||
}
|
||||
if (!player.getInventory().containsItem(SWAMP_TAR)) {
|
||||
player.getPacketDispatch().sendMessage("You need at least 15 swamp tar in order to do this.");
|
||||
player.getPacketDispatch().sendMessage("You need at least 45 swamp tar in order to do this.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
@ -83,7 +83,7 @@ public final class HerbTarPulse extends SkillPulse<Item> {
|
|||
return false;
|
||||
}
|
||||
if (player.getInventory().containsItem(SWAMP_TAR) && player.getInventory().containsItem(tar.getIngredient()) && player.getInventory().remove(SWAMP_TAR) && player.getInventory().remove(tar.getIngredient())) {
|
||||
final Item item = new Item(tar.getTar().getId(), 15);
|
||||
final Item item = new Item(tar.getTar().getId(), 45);
|
||||
player.getInventory().add(item);
|
||||
player.getSkills().addExperience(Skills.HERBLORE, tar.getExperience(), true);
|
||||
player.getPacketDispatch().sendMessage("You add the " + tar.getIngredient().getName().toLowerCase().replace("clean", "").trim() + " to the swamp tar.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue