diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 21 |
1 files changed, 7 insertions, 14 deletions
@@ -27,7 +27,6 @@ function check_attack_res(c, a) { return if (c.rules && c.rules["ignore_reserve"]) return - let pc = null let dead = [] let last = a.target_list[a.target_list.length-1] for (let tid of a.target_list) { @@ -516,10 +515,6 @@ function card_has_rule(c, name) { return false } -function card_number(c) { - return data.cards[c].number -} - function card_name(c) { return data.cards[c].name } @@ -881,7 +876,7 @@ function placed_any_dice_on_wing(w) { return false } -function is_straight_4_or_3(c) { +function is_straight_4_or_3(_) { if (game.scenario === S28_CULPS_HILL) { if (game.rolled >= 5) return 4 @@ -1748,7 +1743,7 @@ states.s47_browne_and_schwerin = { view.prompt = "Remove " + card_name(game.target2) + "." gen_action_card(game.target2) }, - card(c) { + card(_) { remove_card(game.target2) game.target2 = -1 end_turn() @@ -1760,7 +1755,7 @@ states.s48_artillery_duel = { view.prompt = "Artillery Duel: Remove " + card_name(game.target2) + "." gen_action_card(game.target2) }, - card(c) { + card(_) { remove_card(game.target2) game.target2 = -1 end_turn() @@ -2106,7 +2101,7 @@ states.s25_stony_hill = { view.prompt = "Rout Stony Hill!" gen_action_card(S25_STONY_HILL) }, - card(c) { + card(_) { rout_card(S25_STONY_HILL) game.morale[0] -- game.morale[1] ++ @@ -2601,8 +2596,6 @@ states.attack_choose_target = { } function goto_attack(target) { - let a = current_action() - let take_from = card_has_rule(game.selected, "take_from") if (take_from) { for (let from of take_from) @@ -3378,7 +3371,7 @@ states.screen = { end_reaction() }, - card(c) { + card(_) { this.screen() }, } @@ -3452,7 +3445,7 @@ states.absorb = { pay_for_action(game.target) end_reaction() }, - card(c) { + card(_) { this.absorb() }, } @@ -3524,7 +3517,7 @@ states.counterattack = { pay_for_action(game.target) end_reaction() }, - card(c) { + card(_) { this.counterattack() }, } |