From 43b9ac1c8a4a7a2726a3b0220492f1ea8f690dc5 Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Thu, 22 Mar 2007 00:02:43 +0000 Subject: [PATCH] A few tests. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@5842 282e977c-c81d-0410-88c4-b93c2d0d6712 --- test/python.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/test/python.py b/test/python.py index 88ab28628..cb39e4141 100644 --- a/test/python.py +++ b/test/python.py @@ -37,11 +37,22 @@ def do_arch(): which = random.randint(0,len(archs)) arch = archs[which] whoami.Say('random = %s'%arch.Name) + head = '' + more = '' + next = '' + if (arch.Head): + head = arch.Head.Name + if (arch.More): + more = arch.More.Name + if (arch.Next): + next = arch.Next.Name + whoami.Say(' head = %s, more = %s, clone = %s, next = %s'%(head, more, arch.Clone.Name, next)) arch = who.Archetype whoami.Say('your archetype is %s'%arch.Name) def do_maps(): + whoami.Say('Current map is %s'%who.Map.Name) maps = Crossfire.GetMaps() whoami.Say('%d maps loaded'%len(maps)) for map in maps: @@ -121,6 +132,13 @@ def do_basics(): whoami.Say('Basic test') whoami.Say(' your type is %d'%who.Type) whoami.Say(' your level is %d'%who.Level) + whoami.Say(' your nrof is %d'%who.Quantity) + whoami.Say(' your weight is %d'%who.Weight) + whoami.Say(' your name is %s'%who.Name) + whoami.Say(' your archname is %s'%who.ArchName) + whoami.Say(' your title is %s'%who.Title) + whoami.Say(' your ip is %s'%who.IP) + whoami.Say(' my name is %s'%whoami.Name) def do_time(): cftime = Crossfire.GetTime() @@ -165,7 +183,7 @@ def do_inventory(): def do_exp(): if ( len(topic) < 2 ): - whoami.Say("Your exp is %d"%who.Exp) + whoami.Say("Your exp is %d, perm is %d, mult is %d"%(who.Exp, who.PermExp, who.ExpMult)) whoami.Say("Syntax is: exp [option] [skill]") else: value = int(topic[1])