From b8df23ba4a4720a881190ab513cd23fd89397848 Mon Sep 17 00:00:00 2001 From: Alestan Date: Tue, 17 Aug 2010 23:37:34 +0000 Subject: [PATCH] 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 --- python/Move_Fog.py | 4 ++-- python/Moving_Fog.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/Move_Fog.py b/python/Move_Fog.py index 07a82a5e9..ef41766b9 100644 --- a/python/Move_Fog.py +++ b/python/Move_Fog.py @@ -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) \ No newline at end of file + Crossfire.SetReturnValue(1) diff --git a/python/Moving_Fog.py b/python/Moving_Fog.py index e6af35dec..54a563d1c 100644 --- a/python/Moving_Fog.py +++ b/python/Moving_Fog.py @@ -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) \ No newline at end of file + z.Weight=int(z.Weight)/3