From e7a0b1bfcd41012d39541a80299ee7c4ce45456c Mon Sep 17 00:00:00 2001 From: Mittendrein Markus Date: Mon, 15 Feb 2016 15:48:28 +0100 Subject: Plague makes damage continously instead of Random() --- TemplePushing.c4s/System.c4g/Plague.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'TemplePushing.c4s/System.c4g') diff --git a/TemplePushing.c4s/System.c4g/Plague.c b/TemplePushing.c4s/System.c4g/Plague.c index ec7268e..e70560f 100644 --- a/TemplePushing.c4s/System.c4g/Plague.c +++ b/TemplePushing.c4s/System.c4g/Plague.c @@ -8,7 +8,7 @@ protected func Slay() { var pClonk; while(pClonk=FindObject(0,-iRand/6,-iRand/6,iRand/3,iRand/3,OCF_Alive(),0,0,0, pClonk)) if(GetActionTarget() != pClonk) - AddEffect("Poison",pClonk,182,10,0,GetID(), fSnake, GetActionTarget()); + AddEffect("Poison",pClonk,182,5,0,GetID(), fSnake, GetActionTarget()); RemoveObject(); } @@ -27,11 +27,11 @@ func FxPoisonTimer(pClonk, iEffectNumber, iEffectTime) CreateParticle("PSpark", GetX(pClonk), GetY(pClonk), 0, -1, EffectVar(0, pClonk, iEffectNumber)*5+50, RGBa(fSnake*55, 55, 0), pClonk, 1); if(GBackLiquid(GetX(pClonk), GetY(pClonk))) return(-1); - var pFrom = GetCursor(EffectVar(2, pClonk, iEffectNumber)); - if(!Random(5)) + if(!(iEffectTime % 25)) { - if(pFrom) pFrom->DoEnergy(-2, pClonk); - else DoEnergy(-2, pClonk); + var pFrom = GetCursor(EffectVar(2, pClonk, iEffectNumber)); + if(pFrom) pFrom->DoEnergy(-1, pClonk); + else DoEnergy(-1, pClonk); } var obj; var iRadius = EffectCall(pClonk,iEffectNumber,"MaxRange"); -- cgit v1.2.3-54-g00ecf