Misc tests.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@5212 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2006-12-26 22:49:08 +00:00
parent db96bfd6ba
commit e6b72931d4
1 changed files with 12 additions and 1 deletions

View File

@ -115,7 +115,8 @@ def do_resist():
def do_basics():
whoami.Say('Basic test')
who = Crossfire.WhoIsActivator()
whoami.Say('type = %d'%who.Type)
whoami.Say(' your type is %d'%who.Type)
whoami.Say(' your level is %d'%who.Level)
def do_time():
cftime = Crossfire.GetTime()
@ -152,6 +153,14 @@ def do_misc():
else:
whoami.Say("Empty inv??")
def do_inventory():
whoami.Say('You have:');
who = Crossfire.WhoIsActivator()
inv = who.Inventory
while inv:
whoami.Say('%s (type = %d, subtype = %d)'%(inv.Name, inv.Type, inv.Subtype))
inv = inv.Below
def do_exp():
who = Crossfire.WhoIsActivator()
if ( len(topic) < 2 ):
@ -232,5 +241,7 @@ elif topic[0] == 'const':
do_const()
elif topic[0] == 'move':
do_move()
elif topic[0] == 'inv':
do_inventory()
else:
do_help()