fixes issue #148 - add consumable delays

This commit is contained in:
thispixel
2016-02-01 11:26:31 +00:00
parent f8db197c13
commit 1c6091251a
3 changed files with 15 additions and 9 deletions
+3 -1
View File
@@ -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