Skip to content

Commit d319835

Browse files
authored
Revert "turmoil"
1 parent b22c175 commit d319835

File tree

11 files changed

+5
-223
lines changed

11 files changed

+5
-223
lines changed

resources/public/i18n/en.ftl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -718,16 +718,6 @@ ingame-settings_sort-heap = Sort Heap
718718
719719
ingame-settings_stack-cards = Stack cards
720720
721-
lobby_turmoil = Turmoil
722-
723-
lobby_turmoil-details = The fickle winds of fate shall decide your future.
724-
725-
lobby_turmoil-theme = "FINUKA DISPOSES"
726-
727-
lobby_turmoil-info = This lobby is running in turmoil mode. The winds of fate shall decide your path to the future.
728-
729-
lobby_span-turmoil = (turmoil)
730-
731721
lobby_aborted = Connection aborted
732722
733723
lobby_api-access = Allow API access to game information

src/clj/game/core/actions.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@
628628
[state _ {:keys [card]}]
629629
(if-let [card (get-card state card)]
630630
(if (expendable? state card)
631-
(swap! state assoc-in [:corp :install-list] (conj (installable-servers state card) "Cast as a Sorcery")) ;;april fools we can make this "cast as a sorcery"
631+
(swap! state assoc-in [:corp :install-list] (conj (installable-servers state card) "Expend")) ;;april fools we can make this "cast as a sorcery"
632632
(swap! state assoc-in [:corp :install-list] (installable-servers state card)))
633633
(swap! state dissoc-in [:corp :install-list])))
634634

src/clj/game/core/set_up.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
(defn- init-game-state
8080
"Initialises the game state"
81-
[{:keys [players gameid timer spectatorhands api-access save-replay room turmoil] :as game}]
81+
[{:keys [players gameid timer spectatorhands api-access save-replay room] :as game}]
8282
(let [corp (some #(when (corp? %) %) players)
8383
runner (some #(when (runner? %) %) players)
8484
corp-deck (create-deck (:deck corp))
@@ -106,7 +106,6 @@
106106
(inst/now)
107107
{:timer timer
108108
:spectatorhands spectatorhands
109-
:turmoil turmoil
110109
:api-access api-access
111110
:save-replay save-replay}
112111
(new-corp (:user corp) corp-identity corp-options (map #(assoc % :zone [:deck]) corp-deck) corp-deck-id corp-quote)

src/clj/game/core/turmoil.clj

Lines changed: 0 additions & 173 deletions
This file was deleted.

src/clj/game/core/turns.clj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
[game.core.say :refer [system-msg]]
1616
[game.core.set-aside :refer [clean-set-aside!]]
1717
[game.core.toasts :refer [toast]]
18-
[game.core.turmoil :as turmoil]
1918
[game.core.update :refer [update!]]
2019
[game.core.winning :refer [flatline]]
2120
[game.macros :refer [continue-ability req wait-for]]
@@ -74,10 +73,6 @@
7473
(swap! state assoc :click-states [])
7574
(swap! state assoc :turn-state (dissoc @state :log :history :turn-state))
7675

77-
;; resolve turmoil (april fools)
78-
(when (get-in @state [:options :turmoil])
79-
(turmoil/shuffle-cards-for-side state side))
80-
8176
(when (= side :corp)
8277
(swap! state update-in [:turn] inc))
8378

src/clj/web/lobby.clj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@
8585
user :user
8686
{:keys [gameid now
8787
allow-spectator api-access format mute-spectators password room save-replay
88-
precon gateway-type side singleton spectatorhands timer title open-decklists
89-
turmoil]
88+
precon gateway-type side singleton spectatorhands timer title open-decklists]
9089
:or {gameid (random-uuid)
9190
now (inst/now)}} :options}]
9291
(let [player {:user user
@@ -110,7 +109,6 @@
110109
:mute-spectators mute-spectators
111110
:password (when (not-empty password) (bcrypt/encrypt password))
112111
:room room
113-
:turmoil turmoil
114112
:save-replay save-replay
115113
:spectatorhands spectatorhands
116114
:singleton (when (some #{format} `("standard" "startup" "casual" "eternal")) singleton)
@@ -191,7 +189,6 @@
191189
:save-replay
192190
:singleton
193191
:spectators
194-
:turmoil
195192
:corp-spectators
196193
:runner-spectators
197194
:spectatorhands

src/cljs/nr/game_row.cljs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,12 @@
191191
(when (and open-decklists (not precon))
192192
[:span.open-decklists (str " " (tr [:lobby_open-decklists-b] "(open decklists)"))]))
193193

194-
(defn game-format [{fmt :format singleton? :singleton turmoil? :turmoil precon :precon open-decklists :open-decklists}]
194+
(defn game-format [{fmt :format singleton? :singleton precon :precon open-decklists :open-decklists}]
195195
[:div {:class "game-format"}
196196
[:span.format-label (tr [:lobby_format "Format"]) ": "]
197197
[:span.format-type (tr-format (slug->format fmt "Unknown"))]
198198
[precon-span precon]
199199
[:span.format-singleton (str (when singleton? (str " " (tr [:lobby_singleton-b "(singleton)"]))))]
200-
[:span.turmoil (when turmoil? (str " " (tr [:lobby_span-turmoil "(turmoil)"])))]
201200
[open-decklists-span precon open-decklists]
202201
[precon-under-span precon]])
203202

src/cljs/nr/gameboard/board.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@
444444
^{:key label}
445445
[card-menu-item (label-fn label)
446446
#(do (close-card-menu)
447-
(if (= "Cast as a Sorcery" label)
447+
(if (= "Expend" label)
448448
(send-command "expend" {:card card :server label})
449449
(send-command "play" {:card card :server label})))])
450450
servers))]])))

src/cljs/nr/new_game.cljs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
:save-replay
1919
:side
2020
:singleton
21-
:turmoil
2221
:spectatorhands
2322
:precon
2423
:gateway-type
@@ -80,12 +79,6 @@
8079
:on-change #(swap! options assoc :singleton (.. % -target -checked))}]
8180
(tr [:lobby_singleton "Singleton"])])
8281

83-
(defn turmoil-mode [options]
84-
[:span [:label
85-
[:input {:type "checkbox" :checked (:turmoil @options)
86-
:on-change #(swap! options assoc :turmoil (.. % -target -checked))}]
87-
(tr [:lobby_turmoil "Turmoil"])]])
88-
8982
(defn open-decklists [options]
9083
[:label
9184
[:input {:type "checkbox" :checked (:open-decklists @options)
@@ -131,13 +124,8 @@
131124
^{:key k}
132125
[:option {:value k} (tr-format v)]))]
133126
[singleton-only options fmt-state]
134-
[turmoil-mode options]
135127
[gateway-constructed-choice fmt-state gateway-type]
136128
[precon-choice fmt-state precon]
137-
[:div.infobox.blue-shade
138-
{:style {:display (if (:turmoil @options) "block" "none")}}
139-
[:p (tr [:lobby_turmoil-details "The fickle winds of fate shall decide your future."])]
140-
[:p (tr [:lobby_turmoil-theme "\"FINUKA DISPOSES\""])]]
141129
[:div.infobox.blue-shade
142130
{:style {:display (if (:singleton @options) "block" "none")}}
143131
[:p (tr [:lobby_singleton-details "This will restrict decklists to only those which do not contain any duplicate cards. It is recommended you use the listed singleton-based identities."])]
@@ -258,7 +246,6 @@
258246
:protected false
259247
:save-replay (not= "casual" (:room @lobby-state))
260248
:singleton false
261-
:turmoil false
262249
:spectatorhands false
263250
:open-decklists false
264251
:timed false

src/cljs/nr/pending_game.cljs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@
9999
[:div.infobox.blue-shade
100100
[:p (tr [:lobby_singleton-restriction "This lobby is running in singleton mode. This means decklists will be restricted to only those which do not contain any duplicate cards."])]]))
101101

102-
(defn turmoil-info-box [current-game]
103-
(when (:turmoil-mode @current-game)
104-
[:div.infobox.blue-shade
105-
[:p (tr [:lobby_turmoil-info "This lobby is running in turmoil mode. The winds of fate shall decide your path to the future."])]]))
106-
107102
(defn swap-sides-button [user gameid players]
108103
(when (first-user? @players @user)
109104
(if (< 1 (count @players))
@@ -210,7 +205,6 @@
210205
[:h2 (:title @current-game)]
211206
[precon-info-box current-game]
212207
[singleton-info-box current-game]
213-
[turmoil-info-box current-game]
214208
(when-not (or (every? :deck @players)
215209
(not (is-constructed? current-game)))
216210
[:div.flash-message

0 commit comments

Comments
 (0)