openclonk/planet/Arena.ocf/FrozenFortress.ocs/System.ocg/StoneDoor.c

16 lines
285 B
C

// Stone door destructible, and auto control for the base.
#appendto StoneDoor
protected func Damage()
{
// Destroy if damage above strength.
if (GetDamage() > GetStrength())
{
CastObjects(Ice, 5, 20);
return RemoveObject();
}
// Change appearance.
DoGraphics();
return;
}