Misc tests.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@5212 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
db96bfd6ba
commit
e6b72931d4
|
@ -115,7 +115,8 @@ def do_resist():
|
||||||
def do_basics():
|
def do_basics():
|
||||||
whoami.Say('Basic test')
|
whoami.Say('Basic test')
|
||||||
who = Crossfire.WhoIsActivator()
|
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():
|
def do_time():
|
||||||
cftime = Crossfire.GetTime()
|
cftime = Crossfire.GetTime()
|
||||||
|
@ -152,6 +153,14 @@ def do_misc():
|
||||||
else:
|
else:
|
||||||
whoami.Say("Empty inv??")
|
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():
|
def do_exp():
|
||||||
who = Crossfire.WhoIsActivator()
|
who = Crossfire.WhoIsActivator()
|
||||||
if ( len(topic) < 2 ):
|
if ( len(topic) < 2 ):
|
||||||
|
@ -232,5 +241,7 @@ elif topic[0] == 'const':
|
||||||
do_const()
|
do_const()
|
||||||
elif topic[0] == 'move':
|
elif topic[0] == 'move':
|
||||||
do_move()
|
do_move()
|
||||||
|
elif topic[0] == 'inv':
|
||||||
|
do_inventory()
|
||||||
else:
|
else:
|
||||||
do_help()
|
do_help()
|
||||||
|
|
Loading…
Reference in New Issue