diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2026-03-15 21:42:14 +0100 |
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2026-03-15 21:42:14 +0100 |
| commit | f0c2066e3ffffe3212658313cd6e30d85028412c (patch) | |
| tree | 7fffcf8fcde438d1a565e154a52909fa6c054832 /lib/colonial_twilight/actions/fln/extort.rb | |
| parent | e4e09f936d38a89082f40354fdf451ad875baffa (diff) | |
| download | colonial-twilight-f0c2066e3ffffe3212658313cd6e30d85028412c.zip colonial-twilight-f0c2066e3ffffe3212658313cd6e30d85028412c.tar.gz | |
implement FLN action & operations
Diffstat (limited to 'lib/colonial_twilight/actions/fln/extort.rb')
| -rw-r--r-- | lib/colonial_twilight/actions/fln/extort.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/colonial_twilight/actions/fln/extort.rb b/lib/colonial_twilight/actions/fln/extort.rb new file mode 100644 index 0000000..58b4e18 --- /dev/null +++ b/lib/colonial_twilight/actions/fln/extort.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +require_relative 'fln_action' + +module ColonialTwilight + module Actions + module FLN + # Extort 4.3.1 + class Extort < FlnAction + def initialize(space, mode) + super(space, mode, cost: 0) + end + + # flip 1 Underground Guerrilla to Active + # add 1 Resources to FLN track per space. + def apply!(board) + raise NotImplementedError + end + + class << self + def special? + true + end + + # any space with Population, Underground Guerrillas, and FLN Control + # also Morocco/Tunisia if Independent and have Underground Guerrillas + def applicable?(space) + space.fln_underground.positive? && + (space.country? ? space.independent? : space.pop.positive? && space.fln_control?) + end + end + end + end + end +end |
