summaryrefslogtreecommitdiff
path: root/server/lib/core/commands/amd_remove_minus_1_command.dart
blob: 506c6fd273edeb74f18206a38c85d6793427ef83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import '../game_methods.dart';
import '../state/game_state.dart';
import 'command_l10n.dart';

class AMDRemoveMinus1Command extends Command {
  String name;
  final GameState _gameState;

  AMDRemoveMinus1Command(this.name, {required GameState gameState})
    : _gameState = gameState;

  @override
  void execute() {
    final deck = GameMethods.getModifierDeck(name, _gameState);
    deck.removeMinusOne(stateAccess);
  }

  @override
  String describe() {
    return commandL10n.cmdRemoveMinusOne;
  }
}