summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight/actions/fln/terror.rb
blob: b812bb4c4a44ffb93a619ac60595ddf9149f8533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true

require_relative 'fln_action'

module ColonialTwilight
  module Actions
    module FLN
      # Terror 3.3.4
      class Terror < FlnAction
        def initialize(space, mode)
          super(space, mode, cost: 1)
        end

        # flip 1 Underground Guerrilla to Active.
        # place 1 Terror marker if none (max 12 on the map), set to Neutral
        def apply!(board)
          raise NotImplementedError
        end

        class << self
          def op?
            true
          end

          # Populated not Resettled space with Underground Guerrillas.
          def applicable?(space)
            !space.country? && space.pop.positive? && space.fln_underground.positive? # && !space.resettled?
          end
        end
      end
    end
  end
end