mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 00:38:46 +00:00
@@ -1,6 +1,7 @@
|
|||||||
require 'java'
|
require 'java'
|
||||||
|
|
||||||
java_import 'org.apollo.game.action.Action'
|
java_import 'org.apollo.game.action.Action'
|
||||||
|
java_import 'org.apollo.util.LanguageUtil'
|
||||||
|
|
||||||
# A herb is an ingredient that requires identification before being used.
|
# A herb is an ingredient that requires identification before being used.
|
||||||
class Herb < Ingredient
|
class Herb < Ingredient
|
||||||
@@ -55,9 +56,10 @@ class HerbIdentificationAction < Action
|
|||||||
identified = @herb.item
|
identified = @herb.item
|
||||||
|
|
||||||
inventory.add(identified)
|
inventory.add(identified)
|
||||||
|
|
||||||
|
article = LanguageUtil.getIndefiniteArticle(identified.definition.name)
|
||||||
player.skill_set.add_experience(Skill::HERBLORE, @herb.experience)
|
player.skill_set.add_experience(Skill::HERBLORE, @herb.experience)
|
||||||
player.send_message("You identify the herb as a #{identified.definition.name}.", true)
|
player.send_message("This herb is #{article} #{identified.definition.name}.", true)
|
||||||
# TODO: 'as an' in some cases
|
|
||||||
end
|
end
|
||||||
|
|
||||||
stop
|
stop
|
||||||
@@ -77,7 +79,7 @@ end
|
|||||||
|
|
||||||
# Herbs
|
# Herbs
|
||||||
|
|
||||||
GUAM_LEAF = append_herb(249, 199, 1, 2.5) # 3, 2.5
|
GUAM_LEAF = append_herb(249, 199, 1, 2.5)
|
||||||
MARRENTILL = append_herb(251, 201, 5, 3.8)
|
MARRENTILL = append_herb(251, 201, 5, 3.8)
|
||||||
TARROMIN = append_herb(253, 203, 11, 5)
|
TARROMIN = append_herb(253, 203, 11, 5)
|
||||||
HARRALANDER = append_herb(255, 205, 20, 6.3)
|
HARRALANDER = append_herb(255, 205, 20, 6.3)
|
||||||
|
|||||||
Reference in New Issue
Block a user