assume goalie is active on creation of rookie

This commit is contained in:
Jonathan Lamothe 2020-02-14 00:07:29 -05:00
parent 747bdf8f32
commit dff11a8316

View File

@ -52,7 +52,11 @@ getRookieFlagC = Controller
C.drawString "Is this goalie a rookie? (Y/N)"
return C.CursorInvisible
, handleController = \e -> do
modify $ progMode.createGoalieStateL.cgsRookieFlag .~ ynHandler e
modify $ case ynHandler e of
Just True -> progMode.createGoalieStateL
%~ (cgsRookieFlag ?~ True)
. (cgsActiveFlag ?~ True)
rf -> progMode.createGoalieStateL.cgsRookieFlag .~ rf
return True
}