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
+2 -2
View File
@@ -27,8 +27,8 @@ class Food < Consumable
player.inventory.add(@replace) unless @replace == -1
player.send_message("You eat the #{name}.", true)
player.send_message('It heals some health.', true) if new_curr > hitpoints_current
player.send_message("You eat the #{name}.")
player.send_message('It heals some health.') if new_curr > hitpoints_current
skill = Skill.new(hitpoints.experience, new_curr, hitpoints.maximum_level)
player.skill_set.set_skill(Skill::HITPOINTS, skill)
+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