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