werewolf 0.4.4.0 → 0.4.4.1
raw patch · 4 files changed
+47/−4 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +34/−0
- app/Werewolf/Commands/Help.hs +1/−1
- src/Game/Werewolf/Response.hs +11/−2
- werewolf.cabal +1/−1
CHANGELOG.md view
@@ -2,6 +2,13 @@ #### Upcoming +#### v0.4.4.1++*Revisions*++* Fixed grammar for the `currentStageMessages`. ([#83](https://github.com/hjwylde/werewolf/issues/83))+* Fixed the `heal` command help message to not require a `PLAYER` argument. ([#82](https://github.com/hjwylde/werewolf/issues/82))+ #### v0.4.4.0 *Minor*@@ -16,6 +23,13 @@ * Fixed the `noPlayerDevouredMessage` to be displayed after sunrise. ([#80](https://github.com/hjwylde/werewolf/issues/80)) * Removed `Show` instance for `Command` and used `Blind`. ([#78](https://github.com/hjwylde/werewolf/issues/78)) +#### v0.4.3.2++*Revisions*++* Fixed grammar for the `currentStageMessages`. ([#83](https://github.com/hjwylde/werewolf/issues/83))+* Fixed the `heal` command help message to not require a `PLAYER` argument. ([#82](https://github.com/hjwylde/werewolf/issues/82))+ #### v0.4.3.1 *Revisions*@@ -28,6 +42,13 @@ * Added the Defender role. ([#38](https://github.com/hjwylde/werewolf/issues/38)) +#### v0.4.2.3++*Revisions*++* Fixed grammar for the `currentStageMessages`. ([#83](https://github.com/hjwylde/werewolf/issues/83))+* Fixed the `heal` command help message to not require a `PLAYER` argument. ([#82](https://github.com/hjwylde/werewolf/issues/82))+ #### v0.4.2.2 *Revisions*@@ -46,6 +67,13 @@ * Added the Villager-Villager role. ([#37](https://github.com/hjwylde/werewolf/issues/37)) +#### v0.4.1.3++*Revisions*++* Fixed grammar for the `currentStageMessages`. ([#83](https://github.com/hjwylde/werewolf/issues/83))+* Fixed the `heal` command help message to not require a `PLAYER` argument. ([#82](https://github.com/hjwylde/werewolf/issues/82))+ #### v0.4.1.2 *Revisions*@@ -63,6 +91,12 @@ *Minor* * Added the Witch role. ([#5](https://github.com/hjwylde/werewolf/issues/5))++#### v0.4.0.1++*Revisions*++* Fixed grammar for the `currentStageMessages`. ([#83](https://github.com/hjwylde/werewolf/issues/83)) #### v0.4.0.0
app/Werewolf/Commands/Help.hs view
@@ -62,7 +62,7 @@ commandsMessages :: [Text] commandsMessages = [ "end - ends the current game."- , "heal PLAYER - heal a devoured player."+ , "heal - heal a devoured player." , "pass - pass on healing or poisoning a player." , "ping - pings the status of the current game publicly." , "poison PLAYER - poison a player."
src/Game/Werewolf/Response.hs view
@@ -280,10 +280,19 @@ currentStageMessages to GameOver = [gameIsOverMessage to] currentStageMessages _ Sunrise = [] currentStageMessages _ Sunset = []- -- TODO (hjw): pluralise this correctly for the Seer currentStageMessages to turn = [privateMessage to $ T.concat [- "It's currently the ", T.pack $ show turn, "' turn."+ "It's currently the ", showTurn turn, " turn." ]]+ where+ showTurn :: Stage -> Text+ showTurn DefendersTurn = "Defender's"+ showTurn GameOver = undefined+ showTurn SeersTurn = "Seer's"+ showTurn Sunrise = undefined+ showTurn Sunset = undefined+ showTurn VillagesTurn = "Village's"+ showTurn WerewolvesTurn = "Werewolves'"+ showTurn WitchsTurn = "Witch's" rolesInGameMessage :: Maybe Text -> [Role] -> Message rolesInGameMessage mTo roles = Message mTo $ T.concat [
werewolf.cabal view
@@ -1,5 +1,5 @@ name: werewolf-version: 0.4.4.0+version: 0.4.4.1 author: Henry J. Wylde maintainer: public@hjwylde.com