Add support for edited clients; Properly support chat filtering; Fix issue #11; Make certain Mining messages filterable.

This commit is contained in:
Major-
2014-02-15 22:40:00 +00:00
parent 2ed1477d2c
commit 9d82797bd6
7 changed files with 99 additions and 11 deletions
+3 -3
View File
@@ -38,7 +38,7 @@ class MiningAction < DistancedAction
# the ore
def start_mine(pickaxe)
@started = true
mob.send_message "You swing your pick at the rock."
mob.send_message("You swing your pick at the rock.", true)
mob.turn_to @position
mob.play_animation pickaxe.animation
@counter = pickaxe.pulses
@@ -51,14 +51,14 @@ class MiningAction < DistancedAction
# verify the mob can mine with their pickaxe
if not (pickaxe != nil and level >= pickaxe.level)
mob.send_message "You do not have a pickaxe for which you have the level to use."
mob.send_message('You do not have a pickaxe for which you have the level to use.')
stop
return
end
# verify the mob can mine the ore
if ore.level > level
mob.send_message "You do not have the required level to mine this rock."
mob.send_message('You do not have the required level to mine this rock.')
stop
return
end