Remove message filtering

This commit is contained in:
Major-
2016-02-11 13:07:02 +00:00
parent c474908163
commit d6ac9eeeaa
13 changed files with 25 additions and 77 deletions
+3 -3
View File
@@ -30,12 +30,12 @@ class Potion < Consumable
if index != @doses.length # Consumable removes the old potion for us, so don't do it here.
player.inventory.add(@doses[index])
player.send_message("You drink some of your #{name} potion.", true)
player.send_message("You drink some of your #{name} potion.")
remaining = "You have #{@doses.length - index} dose#{'s' unless index == 3} of potion left."
player.send_message(remaining, true)
player.send_message(remaining)
else
player.send_message('You drink the last of your potion.', true)
player.send_message('You drink the last of your potion.')
player.inventory.add(Constants::EMPTY_VIAL_ID)
end