File tree Expand file tree Collapse file tree 11 files changed +5
-223
lines changed
Expand file tree Collapse file tree 11 files changed +5
-223
lines changed Original file line number Diff line number Diff line change @@ -718,16 +718,6 @@ ingame-settings_sort-heap = Sort Heap
718718
719719ingame-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-
731721lobby_aborted = Connection aborted
732722
733723lobby_api-access = Allow API access to game information
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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))
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)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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]]
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
Original file line number Diff line number Diff line change 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
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)
191189 :save-replay
192190 :singleton
193191 :spectators
194- :turmoil
195192 :corp-spectators
196193 :runner-spectators
197194 :spectatorhands
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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))]])))
Original file line number Diff line number Diff line change 1818 :save-replay
1919 :side
2020 :singleton
21- :turmoil
2221 :spectatorhands
2322 :precon
2423 :gateway-type
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)
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." ])]
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
Original file line number Diff line number Diff line change 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))
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
You can’t perform that action at this time.
0 commit comments