summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/Plague.c
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/System.c4g/Plague.c')
-rw-r--r--TemplePushing.c4s/System.c4g/Plague.c10
1 files changed, 5 insertions, 5 deletions
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");