build/app.js
/**
   * Releases a ghost from the Ghost House after a delay
   */
Releases a ghost from the Ghost House after a delay
Releases a ghost from the Ghost House after a delay
releaseGhost() {
    if (this.idleGhosts.length > 0) {
      const delay = Math.max((8 - (this.level - 1) * 4) * 1000, 0);
      this.endIdleTimer = new Timer(() => {
        this.idleGhosts[0].endIdleMode();
        this.idleGhosts.shift();
      }, delay);
    }
  }
releaseGhost ( ) { if ( this . idleGhosts . length > 0 ) { const delay = Math . max ( ( 8 - ( this . level - 1 ) * 4 ) * 1000 , 0 ) ; this . endIdleTimer = new Timer ( ( ) => { this . idleGhosts [ 0 ] . endIdleMode ( ) ; this . idleGhosts . shift ( ) ; } , delay ) ; } }
Releases a ghost from the Ghost House after a delay
Releases a ghost from the Ghost House after a delay