forked from Mirrors/openclonk
17 lines
357 B
C
17 lines
357 B
C
/*-- CrystalShield --*/
|
|
|
|
|
|
protected func Initialize()
|
|
{
|
|
AddEffect("Selfdestruction",this,100,4+Random(2),this,this->GetID());
|
|
return;
|
|
}
|
|
|
|
func FxSelfdestructionTimer(object target, effect, int timer)
|
|
{
|
|
CreateParticle("Magic",RandomX(-4,4),RandomX(-4,4),0,0,12+Random(10),target->GetClrModulation());
|
|
if(timer>175) target->RemoveObject();
|
|
return 1;
|
|
}
|
|
|