cmd_stand.rb

znmud-0.0.1/cmd/zombie/cmd_stand.rb · 613 B

From the archive znmud-minimal-0.0.1.tar.gz

Download the archive   « Back to the archive contents

#
# file::    cmd_stand.rb

# This source code copyright (C) 2009 Craig Smith
# All rights reserved.
#
# Released under the terms of the TeensyMUD Public License
# See LICENSE file for additional information.
#

module Cmd

  bindtextdomain("cmd")

  # The stand command
  def cmd_stand(args)
	case @position
	when :standing, :fighting
		sendto _("You are already standing.")
	when :sleeping
		sendto _("Maybe you should sit up first.")
	else
		@position = :standing
		@mode = :playing
		sendto _("You stand up.")
		sendroom _("%{name} stands up." % {:name => name})
	end
  end

end

Site Stats

Snippets: 1791
Codebases: 571