fine tuned fog duration and speed

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13638 282e977c-c81d-0410-88c4-b93c2d0d6712
master
Alestan 2010-08-17 23:37:34 +00:00
parent 57f99c5e1d
commit b8df23ba4a
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ if Params=="Fog":
Rand=random.randint(0,8)
if Rand!=0:
whoami.Move(Rand)
whoami.Speed*=1.5
whoami.Weight-=1
if whoami.Weight>=0:
Crossfire.SetReturnValue(1)
Crossfire.SetReturnValue(1)

View File

@ -27,8 +27,8 @@ if Params=="GenerateFog":
for i in range(Fogs):
z=whoami.CreateObject("temp_fog")
z.Speed+=0.01
z.Weight=(3+random.randint(1,10+int(math.sqrt(FogsTmp))))*1
z.Speed+=0.05
z.Weight=(0+random.randint(1,15+int(math.sqrt(FogsTmp))))*1
Rand=random.randint(1,2+int(FogsTmp/10))
z.Speed*=Rand
z.Weight*=int(Rand/10)+1
@ -38,4 +38,4 @@ if Params=="GenerateFog":
y.Title="Python"
y.Slaying="/python/Move_Fog.py"
z.Speed/=3
z.Weight=int(z.Weight/3)
z.Weight=int(z.Weight)/3