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/ambush.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/ambush.rb')
| -rw-r--r-- | lib/colonial_twilight/actions/fln/ambush.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/colonial_twilight/actions/fln/ambush.rb b/lib/colonial_twilight/actions/fln/ambush.rb new file mode 100644 index 0000000..9756c55 --- /dev/null +++ b/lib/colonial_twilight/actions/fln/ambush.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +require_relative 'fln_action' + +module ColonialTwilight + module Actions + module FLN + # Ambush 4.3.3 : max 2 + class Ambush < FlnAction + def initialize(space) + super(space, {}, cost: 0) + end + + # Activate only 1 Underground Guerrilla + # Remove 1 Government piece (Police first, then Troops, then Base) into casualties + # No Attrition + # -1 Commitment per French Base removed + def apply!(board) + raise NotImplementedError + end + + class << self + def special? + true + end + + # any space where an Attack is occurring with Underground Guerrillas. + def applicable?(space) + Attack.applicable?(space) && space.fln_underground.positive? + end + end + end + end + end +end |
