mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 00:38:46 +00:00
fixes issue #148 - add consumable delays
This commit is contained in:
@@ -13,13 +13,15 @@ module Constants
|
||||
# The id of an empty vial.
|
||||
EMPTY_VIAL_ID = 229
|
||||
|
||||
# The delay between drinking potions
|
||||
POTION_DELAY = 2
|
||||
end
|
||||
|
||||
# A drinkable potion.
|
||||
class Potion < Consumable
|
||||
|
||||
def initialize(id, name, doses)
|
||||
super(name, id, Constants::DRINK_POTION_SOUND)
|
||||
super(name, id, Constants::DRINK_POTION_SOUND, Constants::POTION_DELAY)
|
||||
@doses = doses
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user