diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2026-03-16 09:21:52 +0100 |
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2026-03-16 09:21:52 +0100 |
| commit | 8c110fcb70ea0351b4c9faf39608cf4c3780dd54 (patch) | |
| tree | bb435674110730b27fc3ffcfeba382ac6a0485b9 /lib/colonial_twilight/actions/action.rb | |
| parent | 7c914bbe1aaf7f7dbde6e612a01bb991876c217f (diff) | |
| download | colonial-twilight-8c110fcb70ea0351b4c9faf39608cf4c3780dd54.zip colonial-twilight-8c110fcb70ea0351b4c9faf39608cf4c3780dd54.tar.gz | |
GameAction : reorder constructor parameters
Diffstat (limited to 'lib/colonial_twilight/actions/action.rb')
| -rw-r--r-- | lib/colonial_twilight/actions/action.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/colonial_twilight/actions/action.rb b/lib/colonial_twilight/actions/action.rb index 4b7ea6c..3d41766 100644 --- a/lib/colonial_twilight/actions/action.rb +++ b/lib/colonial_twilight/actions/action.rb @@ -3,12 +3,12 @@ module ColonialTwilight module Actions class GameAction - def initialize(faction:, space:, cost: 0, mode: nil) + def initialize(faction, space, mode, cost) @data = { faction: faction, space: space, - cost: cost, - mode: mode + mode: mode, + cost: cost } validate! end |
