001package com.fs.starfarer.api.impl.campaign.ghosts; 002 003public class GBIDespawn extends BaseGhostBehaviorInterrupt { 004 005 public GBIDespawn(float delay) { 006 super(delay); 007 } 008 009 @Override 010 public boolean shouldInterruptBehavior(SensorGhost ghost, GhostBehavior behavior) { 011 if (hasDelayRemaining()) return false; 012 013 ghost.clearScript(); 014 015 return true; 016 } 017 018 019}