assume player is active on creation of rookie

This commit is contained in:
Jonathan Lamothe 2020-02-14 00:01:23 -05:00
parent 9b07c6d249
commit 747bdf8f32

View File

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