Make potion-making give experience; Change version number.

This commit is contained in:
Major-
2014-02-15 22:38:09 +00:00
parent 953e4cb3db
commit 2ed1477d2c
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -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>
+1 -1
View File
@@ -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