oops, committed some debugging code! Sorry :-)

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@10701 282e977c-c81d-0410-88c4-b93c2d0d6712
master
lalo 2008-11-24 08:37:17 +00:00
parent e22f56ee72
commit 44cd2d4c93
1 changed files with 11 additions and 16 deletions

View File

@ -36,19 +36,14 @@ faces = {
}
changer = Crossfire.WhoAmI()
try:
aname = Crossfire.ScriptParameters()
atype = getattr(Crossfire.AttackTypeNumber, aname.upper())
player = changer
while player.Archetype.Name != 'pl_dragon':
player = player.Above
force = player.CheckArchInventory('dragon_ability_force')
force.Exp = atype
player.Anim = animations[atype]
player.Face = faces[atype]
changer.Say("current title: %s" % player.Title)
player.Title = '%s hatchling' % aname
changer.Say("Your metabolism is now focused on me.")
except:
import sys
changer.Say('erorr: %s' % sys.exc_info()[1])
aname = Crossfire.ScriptParameters()
atype = getattr(Crossfire.AttackTypeNumber, aname.upper())
player = changer
while player.Archetype.Name != 'pl_dragon':
player = player.Above
force = player.CheckArchInventory('dragon_ability_force')
force.Exp = atype
player.Anim = animations[atype]
player.Face = faces[atype]
player.Title = '%s hatchling' % aname
changer.Say("Your metabolism is now focused on me.")