summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight/actions/fln/oas.rb
blob: 6d38e0f9891fd18742ad650e05bf4ba51d4c7e9e (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
      # OAS 5.3.1
      class Oas < FlnAction
        def initialize(space, mode)
          super(space, mode, cost: 0)
        end

        # add 1 Terror, set to Neutral
        # GOV lose Commitment equal to Population, FLN lose Resources equal to twice Population.
        def apply!(board)
          raise NotImplementedError
        end

        class << self
          def special?
            true
          end

          # 1 populated space with no Terror not Country.
          def applicable?(space)
            !space.country? && space.pop.positive? && space.terror.zero?
          end
        end
      end
    end
  end
end