diff options
author | Griffin Smith <grfn@gws.fyi> | 2021-11-06T15·44-0400 |
---|---|---|
committer | grfn <grfn@gws.fyi> | 2021-11-06T15·52+0000 |
commit | ff6c008d7884975f3dc0295a75b9383fd2c3a2ed (patch) | |
tree | 7b84c368db6c152f9e871cae8b9faa676262e1a1 /users/grfn/xanthous/src/Xanthous/Game/Arbitrary.hs | |
parent | 099f36e5ee8b18126e006219153e3cf6fb6e7a50 (diff) |
feat(gs/xanthous): Default to the current save file r/3008
When saving, default to the save file that was loaded for the game if any. To support this, this also makes text prompts support a default, which will be used if no value is input. Change-Id: I72a826499d6e987b939e3465a2d29167e53416be Reviewed-on: https://cl.tvl.fyi/c/depot/+/3801 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/xanthous/src/Xanthous/Game/Arbitrary.hs')
-rw-r--r-- | users/grfn/xanthous/src/Xanthous/Game/Arbitrary.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/users/grfn/xanthous/src/Xanthous/Game/Arbitrary.hs b/users/grfn/xanthous/src/Xanthous/Game/Arbitrary.hs index bb9b64b0b303..679bfe54597f 100644 --- a/users/grfn/xanthous/src/Xanthous/Game/Arbitrary.hs +++ b/users/grfn/xanthous/src/Xanthous/Game/Arbitrary.hs @@ -43,6 +43,7 @@ instance Arbitrary GameState where _debugState <- arbitrary let _autocommand = NoAutocommand _memo <- arbitrary + _savefile <- arbitrary pure $ GameState {..} |