Skip to content

Commit

Permalink
Merge pull request #4637 from NoahTheDuke/nb/fix-merge-errors
Browse files Browse the repository at this point in the history
Remove mongo from circleci
  • Loading branch information
NoahTheDuke authored Dec 2, 2019
2 parents d55afd2 + 6d9d915 commit eecd3ea
Show file tree
Hide file tree
Showing 12 changed files with 1,326 additions and 1,338 deletions.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ jobs:
build:
docker:
- image: circleci/clojure:lein-2.7.1
- image: mongo:3.4.4
environment:
LEIN_ROOT: nbd
JVM_OPTS: -Xmx3200m
Expand Down
5 changes: 2 additions & 3 deletions src/clj/game/cards/identities.clj
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@
:leave-play (effect (gain :hand-size 1)
(gain :runner :hand-size 1))}

; "Earth Station: SEA Headquarters"
"Earth Station: On the Grid"
"Earth Station: SEA Headquarters"
(let [flip-effect (effect (update! (if (:flipped card)
(do (system-msg state :corp "flip their identity to Earth Station: SEA Headquarters")
(assoc card
Expand Down Expand Up @@ -621,7 +620,7 @@
:effect (effect (clear-wait-prompt :corp))})
card nil)))}]}

"Hoshiko Shiro"
"Hoshiko Shiro: Next Level Shut-In"
(let [flip-effect (effect (update! (if (:flipped card)
(assoc card
:flipped false
Expand Down
114 changes: 57 additions & 57 deletions test/clj/game_test/cards/agendas.clj
Original file line number Diff line number Diff line change
Expand Up @@ -288,26 +288,26 @@
(is (empty (:prompt (get-runner))) "Bacterial Programming prompts finished")
(is (not (:run @state))))))

(deftest bellona
;; Bellona
(testing "basic test"
(do-game
(new-game {:corp {:deck ["Bellona"]}})
(play-from-hand state :corp "Bellona" "New remote")
(let [bell (get-content state :remote1 0)]
(advance state bell 2)
(take-credits state :corp)
(core/lose state :runner :credit 1)
(run-empty-server state "Server 1")
(click-prompt state :runner "No action")
(is (zero? (count (:scored (get-runner)))) "Runner could not steal Bellona")
(is (= 4 (:credit (get-runner))) "Runner couldn't afford to steal, so no credits spent")
(take-credits state :runner)
(advance state bell 3)
(changes-val-macro 5 (:credit (get-corp))
"Got 5 credits from Bellona"
(core/score state :corp {:card (refresh bell)}))
(is (= 3 (:agenda-point (get-corp))) "Scored Bellona for 3 points")))))
; (deftest bellona
; ;; Bellona
; (testing "basic test"
; (do-game
; (new-game {:corp {:deck ["Bellona"]}})
; (play-from-hand state :corp "Bellona" "New remote")
; (let [bell (get-content state :remote1 0)]
; (advance state bell 2)
; (take-credits state :corp)
; (core/lose state :runner :credit 1)
; (run-empty-server state "Server 1")
; (click-prompt state :runner "No action")
; (is (zero? (count (:scored (get-runner)))) "Runner could not steal Bellona")
; (is (= 4 (:credit (get-runner))) "Runner couldn't afford to steal, so no credits spent")
; (take-credits state :runner)
; (advance state bell 3)
; (changes-val-macro 5 (:credit (get-corp))
; "Got 5 credits from Bellona"
; (core/score state :corp {:card (refresh bell)}))
; (is (= 3 (:agenda-point (get-corp))) "Scored Bellona for 3 points")))))

(deftest better-citizen-program
;; Better Citizen Program
Expand Down Expand Up @@ -3035,43 +3035,43 @@
(is (= innermost (get-in @state [:run :position])) "Run position unchanged because ice was installed 'behind' the runner")
(is (= corp-credits (:credit (get-corp))) "Install was free"))))))

(deftest transport-monopoly
(testing "Basic functionality"
(do-game
(new-game {:corp {:deck ["Transport Monopoly" "Hedge Fund"]}
:runner {:deck [(qty "Dirty Laundry" 3)]}})
(play-and-score state "Transport Monopoly")
(take-credits state :corp)
(let [tm (get-scored state :corp 0)]
(changes-val-macro -2 (:credit (get-runner))
"Did not gain 5c from DL"
(play-from-hand state :runner "Dirty Laundry")
(click-prompt state :runner "HQ")
(card-ability state :corp (refresh tm) 0)
(run-continue state)
(run-successful state)
(click-prompt state :runner "No action")) ; accessed Hedge Fund
(changes-val-macro 3 (:credit (get-runner))
"Gained 5c from DL"
(play-from-hand state :runner "Dirty Laundry")
(click-prompt state :runner "HQ")
(run-continue state)
(run-successful state)
(click-prompt state :runner "No action"))))) ; accessed Hedge Fund
(testing "Omar interaction"
(do-game
(new-game {:corp {:deck ["Transport Monopoly" "Hedge Fund"]}
:runner {:id "Omar Keung: Conspiracy Theorist"
:deck [(qty "Sure Gamble" 3)]}})
(play-and-score state "Transport Monopoly")
(take-credits state :corp)
(let [tm (get-scored state :corp 0)
omar (get-in @state [:runner :identity])]
(card-ability state :runner omar 0)
(card-ability state :corp (refresh tm) 0)
(run-successful state)
(is (empty? (-> (get-runner) :register :successful-run)))
(is (empty? (:prompt (get-runner))) "No omar prompt")))))
; (deftest transport-monopoly
; (testing "Basic functionality"
; (do-game
; (new-game {:corp {:deck ["Transport Monopoly" "Hedge Fund"]}
; :runner {:deck [(qty "Dirty Laundry" 3)]}})
; (play-and-score state "Transport Monopoly")
; (take-credits state :corp)
; (let [tm (get-scored state :corp 0)]
; (changes-val-macro -2 (:credit (get-runner))
; "Did not gain 5c from DL"
; (play-from-hand state :runner "Dirty Laundry")
; (click-prompt state :runner "HQ")
; (card-ability state :corp (refresh tm) 0)
; (run-continue state)
; (run-successful state)
; (click-prompt state :runner "No action")) ; accessed Hedge Fund
; (changes-val-macro 3 (:credit (get-runner))
; "Gained 5c from DL"
; (play-from-hand state :runner "Dirty Laundry")
; (click-prompt state :runner "HQ")
; (run-continue state)
; (run-successful state)
; (click-prompt state :runner "No action"))))) ; accessed Hedge Fund
; (testing "Omar interaction"
; (do-game
; (new-game {:corp {:deck ["Transport Monopoly" "Hedge Fund"]}
; :runner {:id "Omar Keung: Conspiracy Theorist"
; :deck [(qty "Sure Gamble" 3)]}})
; (play-and-score state "Transport Monopoly")
; (take-credits state :corp)
; (let [tm (get-scored state :corp 0)
; omar (get-in @state [:runner :identity])]
; (card-ability state :runner omar 0)
; (card-ability state :corp (refresh tm) 0)
; (run-successful state)
; (is (empty? (-> (get-runner) :register :successful-run)))
; (is (empty? (:prompt (get-runner))) "No omar prompt")))))

(deftest underway-renovation
;; Underway Renovation
Expand Down
Loading

0 comments on commit eecd3ea

Please sign in to comment.