implemented resetGoalData

This commit is contained in:
Jonathan Lamothe
2019-10-02 01:47:47 -04:00
parent 4f70c84c6b
commit 7da4c54e65
2 changed files with 30 additions and 2 deletions

View File

@@ -199,4 +199,7 @@ awardAssist n ps = ps
-- | Resets the entered data for the current goal
resetGoalData :: ProgState -> ProgState
resetGoalData = undefined
resetGoalData ps = ps & progMode.gameStateL
%~ (goalBy .~ Nothing)
. (assistsBy .~ [])
. (confirmGoalDataFlag .~ False)