Begin gathering saveable game state into a structure. Not yet complete.

No logic changes.  A bunch of globals turn into fields (with the same names
except for lowercasing) in struct game_t.

Eventually this will allow drastic simplification of the save/load logic.
This commit is contained in:
Eric S. Raymond 2017-05-23 18:47:04 -04:00
parent dc9d9e467b
commit 42189d79d7
11 changed files with 260 additions and 231 deletions

View file

@ -1861,14 +1861,14 @@
142 though you get partial credit just for locating it. You lose points
142 for getting killed, or for quitting, though the former costs you more.
142 There are also points based on how much (if any) of the cave you've
142 managed to explore; in particular, there is a large bonus just for
142 managed to explore; in particular, there is a large game.bonus just for
142 getting in (to distinguish the beginners from the rest of the pack),
142 and there are other ways to determine whether you've been through some
142 of the more harrowing sections. If you think you've found all the
142 treasures, just keep exploring for a while. If nothing interesting
142 happens, you haven't found them all yet. If something interesting
142 *DOES* happen (incidentally, there *ARE* ways to hasten things along),
142 it means you're getting a bonus and have an opportunity to garner many
142 it means you're getting a game.bonus and have an opportunity to garner many
142 more points in the Master's section. I may occasionally offer hints
142 if you seem to be having trouble. If I do, I'll warn you in advance
142 how much it will affect your score to accept the hints. Finally, to