diff options
| author | Mittendrein Markus <maxmitti@gmx.net> | 2016-02-15 15:48:28 +0100 |
|---|---|---|
| committer | Mittendrein Markus <maxmitti@gmx.net> | 2016-02-15 15:48:28 +0100 |
| commit | e7a0b1bfcd41012d39541a80299ee7c4ce45456c (patch) | |
| tree | 8a4766314f3057c57f465154695f2e7845a2b121 /TemplePushing.c4s/System.c4g | |
| parent | bb2da76d30cd8c52af033683ada93f61e8028109 (diff) | |
| download | tempelschubsen-e7a0b1bfcd41012d39541a80299ee7c4ce45456c.tar.gz tempelschubsen-e7a0b1bfcd41012d39541a80299ee7c4ce45456c.zip | |
Plague makes damage continously instead of Random()
Diffstat (limited to 'TemplePushing.c4s/System.c4g')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/Plague.c | 10 |
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"); |
