 { EntityScript } = require('src/lib/LazerScript')
 MineCannon = require('./mine_cannon').default
 { TurretInActive, TurretActive } = require('./turret')
-{ Swirler, Shooter, CrewShooters, Stalker, ScraperFlyer } = require('../stage1/army_drone')
+{ Swirler, Shooter, CrewShooters, Stalker, ScraperFlyer, DroneFlyer } = require('../stage1/army_drone')
 
 class Cabin1Inactive extends EntityScript
   spawn: (options) ->

      @placeEnemiesOnShip()
      @executeStageOne()
      @executeStageTwo()
    )

        # @sequence(

      )
    )

  releaseDronesFromHatchTwo: (dronePattern) ->
    @sequence(
      @action 'open2'
      @wait(500)
      @parallel(
        @placeSquad DroneFlyer,
          amount: 8,
          delay: 500
          options:
            startAt: 'ShipHatch1'
            hatchReveal: 'ShipHatch1'
            dx: 25
            dy: 20
            debug: true,
            path: @getPath(dronePattern)
        @sequence(
          @wait(1200)
          @action 'close2'
        )
      )
    )


  executeStageTwo: ->
    @sequence(
      @moveTo(x: -0.1, easing: "easeInOutQuad")
      @while(
        @placeSquad TurretActive,
          amount: 1
          delay: 0
          options:
            attach: 'TurretPlace'
        @releaseDronesFromHatchOne(Math.round(Math.random() * 3 + 1))
      )
    )

  executeStageThree: =>
    @sequence(
      @placeSquad TurretActive,
        amount: 1
        delay: 0
        options:
          attach: 'TurretPlace'
      @releaseDronesFromHatchTwo() 
    )

  execute: ->
