Skip to content

Commit d9dfc0b

Browse files
authored
Merge pull request #7762 from NBKelly/dont-pass-prio-on-rez
option to enable/disable auto-pass prio on rez
2 parents 8cfb960 + 7ce0ce0 commit d9dfc0b

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

src/clj/web/auth.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
:alt-arts :card-resolution :deckstats :gamestats :card-zoom :pin-zoom
165165
:card-back :stacked-cards :ghost-trojans :display-encounter-info
166166
:sides-overlap :archives-sorted :heap-sorted
167-
:labeled-cards :labeled-unrezzed-cards :bespoke-sounds])
167+
:labeled-cards :labeled-unrezzed-cards :bespoke-sounds :pass-on-rez])
168168

169169
(defn update-profile-handler
170170
[{db :system/db

src/cljs/nr/account.cljs

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
(swap! app-state assoc-in [:options :pin-zoom] (:pin-zoom @s))
4747
(swap! app-state assoc-in [:options :show-alt-art] (:show-alt-art @s))
4848
(swap! app-state assoc-in [:options :card-resolution] (:card-resolution @s))
49+
(swap! app-state assoc-in [:options :pass-on-rez] (:pass-on-rez @s))
4950
(swap! app-state assoc-in [:options :player-stats-icons] (:player-stats-icons @s))
5051
(swap! app-state assoc-in [:options :stacked-cards] (:stacked-cards @s))
5152
(swap! app-state assoc-in [:options :ghost-trojans] (:ghost-trojans @s))
@@ -68,6 +69,7 @@
6869
(.setItem js/localStorage "log-width" (:log-width @s))
6970
(.setItem js/localStorage "log-top" (:log-top @s))
7071
(.setItem js/localStorage "log-player-highlight" (:log-player-highlight @s))
72+
(.setItem js/localStorage "pass-on-rez" (:pass-on-rez @s))
7173
(.setItem js/localStorage "player-stats-icons" (:player-stats-icons @s))
7274
(.setItem js/localStorage "stacked-cards" (:stacked-cards @s))
7375
(.setItem js/localStorage "ghost-trojans" (:ghost-trojans @s))
@@ -623,6 +625,7 @@
623625
:ghost-trojans (get-in @app-state [:options :ghost-trojans])
624626
:display-encounter-info (get-in @app-state [:options :display-encounter-info])
625627
:sides-overlap (get-in @app-state [:options :sides-overlap])
628+
:pass-on-rez (get-in @app-state [:options :pass-on-rez])
626629
:log-timestamps (get-in @app-state [:options :log-timestamps])
627630
:player-stats-icons (get-in @app-state [:options :player-stats-icons])
628631
:runner-board-order (get-in @app-state [:options :runner-board-order])

src/cljs/nr/gameboard/board.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,8 @@
14991499
[cond-button
15001500
(str (tr [:game.rez "Rez"]) " " (get-title ice))
15011501
(not (rezzed? ice))
1502-
#(send-command "rez" {:card ice :press-continue true})]
1502+
#(send-command "rez" {:card ice
1503+
:press-continue (get-in @app-state [:options :pass-on-rez])})]
15031504

15041505
(or (= "encounter-ice" (:phase @run))
15051506
@encounters)

src/cljs/nr/gameboard/settings.cljs

+9
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@
4040
:on-change #(swap! app-state assoc-in [:options :display-encounter-info] (.. % -target -checked))}]
4141
(tr [:ingame-settings.display-encounter-info "Always display encounter info"])]]]
4242

43+
[:section
44+
[:h4 (tr [:ingame-settings.game-settings "Gameplay Settings"])]
45+
[:div
46+
[:label [:input {:type "checkbox"
47+
:value true
48+
:checked (get-in @app-state [:options :pass-on-rez])
49+
:on-change #(swap! app-state assoc-in [:options :pass-on-rez] (.. % -target -checked))}]
50+
(tr [:ingame-settings.game-settings "Pass priority when rezzing ice"])]]]
51+
4352
[:section
4453
[:h4 (tr [:ingame-settings.card-sorting "Sorting"])]
4554
[:div

0 commit comments

Comments
 (0)