public override void Destroy(DestroyMode mode = DestroyMode.Vanish) { ListerDroids.DeregisterDroid(this); base.Destroy(mode); if (mode == DestroyMode.Kill) { Messages.Message(this.LabelBase + " was destroyed!", MessageSound.Negative); if (meta.ExplodeOnDeath) { GenExplosion.DoExplosion(this.Position, meta.ExplosionRadius, DamageDefOf.Bomb, this); } } }
public override void DeSpawn() { ListerDroids.DeregisterDroid(this); base.DeSpawn(); }