implemented editGoalieLtWinsPrompt
This commit is contained in:
parent
13acbbdf35
commit
dd34429f59
|
@ -31,6 +31,7 @@ module Mtlstats.Actions.EditGoalie
|
|||
, editGoalieLtGames
|
||||
, editGoalieLtMins
|
||||
, editGoalieLtGoals
|
||||
, editGoalieLtWins
|
||||
) where
|
||||
|
||||
import Control.Monad (void)
|
||||
|
@ -128,6 +129,14 @@ editGoalieLtGoals
|
|||
-> ProgState
|
||||
editGoalieLtGoals goals = editGoalie (gLifetime.gsGoalsAllowed .~ goals) EGLifetime
|
||||
|
||||
-- | Edits a goalie's lifetime wins
|
||||
editGoalieLtWins
|
||||
:: Int
|
||||
-- ^ The number of wins
|
||||
-> ProgState
|
||||
-> ProgState
|
||||
editGoalieLtWins = undefined
|
||||
|
||||
editGoalie :: (Goalie -> Goalie) -> EditGoalieMode -> ProgState -> ProgState
|
||||
editGoalie f mode s = fromMaybe s $ do
|
||||
gid <- s^.progMode.editGoalieStateL.egsSelectedGoalie
|
||||
|
|
|
@ -104,4 +104,5 @@ editGoalieLtGoalsPrompt = numPrompt "Lifetime goals allowed: " $
|
|||
|
||||
-- | Prompt to edit a goalie's lifetime wins
|
||||
editGoalieLtWinsPrompt :: Prompt
|
||||
editGoalieLtWinsPrompt = undefined
|
||||
editGoalieLtWinsPrompt = numPrompt "Lifetime wins: " $
|
||||
modify . editGoalieLtWins
|
||||
|
|
Loading…
Reference in New Issue
Block a user