check.rb

rbmud-0.2/commands/check.rb · 321 B

From the archive RbMUD-0.2.tar.bz2

Download the archive   « Back to the archive contents

#!/usr/bin/env ruby
# $Revision: 1.2 $
# $Date: 2003/12/04 22:18:34 $
# $Author: jefus $

# check.rb
# testing command to perform a skill check
#
# check <situation modifier> <skill name>

def Commands.do_check(doer, args)
	if args
		modifier, skill = args.split(/ /, 2)
		doer.checkSkill(skill, modifier.to_i)
	end
end

Site Stats

Snippets: 1791
Codebases: 571