From d3b6653a28b12350df276b2b05c7b38f827f712d Mon Sep 17 00:00:00 2001 From: alestan Date: Mon, 16 Aug 2010 01:24:16 +0000 Subject: [PATCH] added temp_moving_fog and made steam bolt create it instead of temp_fog, adjusted script that handles temp_moving_fog git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13621 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/pshop/Ice.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python/pshop/Ice.py b/python/pshop/Ice.py index 2d2cb4645..956c4dc2a 100755 --- a/python/pshop/Ice.py +++ b/python/pshop/Ice.py @@ -1,10 +1,10 @@ -import Crossfire,random,math +import Crossfire,random,math,sys +sys.stdout=sys.stderr=open('/tmp/Ice.out','a') import CFDataBase CFDB=CFDataBase.CFDataBase("PShop") Params=Crossfire.ScriptParameters() - def GetObjectByName(object, Name): while object.Name!=Name: object=object.Above @@ -125,7 +125,8 @@ elif Params=="PuddleDeath": whoami=Crossfire.WhoAmI() Fogs=int(whoami.Weight/1000) - + Fogs=max(Fogs,1) + print Fogs a=whoami.Inventory while a !=None: a.Remove() @@ -147,6 +148,7 @@ elif Params=="PuddleDeath": for i in range(Fogs): z=whoami.CreateObject("temp_fog") + z.Speed+=0.1 z.Weight=(3+random.randint(1,10+int(math.sqrt(FogsTmp)))) Rand=random.randint(1,2+int(FogsTmp/10)) z.Speed*=Rand