Skip to content

Commit

Permalink
add outpost
Browse files Browse the repository at this point in the history
Tested-on: figaro i686 GNU/Linux
  • Loading branch information
shicks committed Dec 3, 2009
1 parent e657c0d commit 4f26643
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dominion/Cards.hs
Expand Up @@ -132,8 +132,10 @@ intrigueSets =
]

seaside :: [Card] -- outpost, treasury, smugglers, .....
seaside = [bazaar, caravan, embargo, fishingVillage, lookout, merchantShip,
nativeVillage, pearlDiver, salvager, tactician, warehouse, wharf]
seaside = [bazaar, caravan, embargo,
fishingVillage, lookout, merchantShip,
nativeVillage, outpost, pearlDiver,
salvager, tactician, warehouse, wharf]

seasideSets :: [(String,[Card])]
seasideSets =
Expand Down Expand Up @@ -678,6 +680,13 @@ nativeVillage = Card 0 2 "Native Village" "..." [action a]
intercalate ", " cs
nvMat = mat "nativeVillage"

outpost :: Card
outpost = Card 0 5 "Outpost" "..." [duration a]
where a = do self <- getSelf
cur <- getStack prevDuration
unless (any (sameName outpost) cur) $
withTurn $ modify $ \s -> s { nextTurnHook = \_->plusCard 3 }

pearlDiver :: Card
pearlDiver = Card 0 2 "Pearl Diver" "..." [action $ try a]
where a = do self <- getSelf
Expand Down

0 comments on commit 4f26643

Please sign in to comment.