mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
Make potion-making give experience; Change version number.
This commit is contained in:
@@ -53,7 +53,7 @@ class Ingredient
|
||||
end
|
||||
|
||||
# An ingredient which needs to be grinded before being usable for Herblore.
|
||||
class GrindedIngredient < Ingredient
|
||||
class GroundIngredient < Ingredient
|
||||
include HerbloreMethod
|
||||
|
||||
attr_reader :raw
|
||||
@@ -227,7 +227,7 @@ end
|
||||
|
||||
# Appends a grinded ingredient to the ItemOnItemEvent handler interception.
|
||||
def append_grinded(id, raw)
|
||||
grinded = GrindedIngredient.new(id, raw)
|
||||
grinded = GroundIngredient.new(id, raw)
|
||||
append_herblore_item(grinded, PESTLE_MORTAR, raw)
|
||||
return grinded
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<plugin>
|
||||
<id>skill-herblore</id>
|
||||
<version>1</version>
|
||||
<version>0.9</version>
|
||||
<name>Herblore</name>
|
||||
<description>Adds the Herblore skill.</description>
|
||||
<authors>
|
||||
|
||||
@@ -272,7 +272,7 @@ class FinishedMixingAction < MixingAction
|
||||
name = @potion.item.definition.name.sub('(3)', '')
|
||||
|
||||
player.send_message("You add the #{ingredient} to the mixture to make an #{name}.", true)
|
||||
player.skill_set.add_experience(@potion.experience)
|
||||
player.skill_set.add_experience(HERBLORE_ID, @potion.experience)
|
||||
|
||||
inventory = player.inventory
|
||||
|
||||
|
||||
Reference in New Issue
Block a user