A few more tests.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@4453 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2006-02-14 22:35:24 +00:00
parent 5811388e40
commit b1fac09368
1 changed files with 16 additions and 0 deletions

View File

@ -98,6 +98,18 @@ def do_memory():
dict['s'] = x
def do_resist():
whoami.Say('Resistance test')
who = Crossfire.WhoIsActivator()
for r in range(25):
whoami.Say(' %d -> %d'%(r,who.GetResist(r)))
def do_basics():
whoami.Say('Basic test')
who = Crossfire.WhoIsActivator()
whoami.Say('type = %d'%who.Type)
whoami.Say( 'plugin test' )
topic = Crossfire.WhatIsMessage().split()
@ -117,5 +129,9 @@ elif topic[0] == 'ref':
do_activator()
elif topic[0] == 'memory':
do_memory()
elif topic[0] == 'resist':
do_resist()
elif topic[0] == 'basics':
do_basics()
else:
do_help()