mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 00:38:11 +00:00
Remove message filtering
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user