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-b93c2d0d6712master
parent
08905d61ba
commit
d3b6653a28
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue