'selectsaved' extension
Instead of a menu listing a - hero1 b - hero2 n - New game q - Quit show a - hero1-role1-race1-gend1-algn1 b - hero2-role2-race2-gend2-algn2 n - New game q - Quit or a - - hero1-role1-race1-gend1-algn1 b - X hero2-role2-race2-gend2-algn2 c - D wizard-role3-race3-gend3-algn3 n - New game q - Quit when any game in the list wasn't saved during normal play. (Those are sorted by character name; the playmode is just coincidence.) The dash for 'normal' doesn't look great but -/X/D are codes used in entries written to paniclog. The whole playmode prefix doesn't look particularly good but I suspect that most players relying on restore via menu won't see it. It should work when the character name has dashes in it but that hasn't been properly tested. The gender and alignment suffices reflect their value at the time of save rather than at the start of the game. That might be considered a bug but it was easiest. Increments EDITLEVEL; existing save and bones files are invalidated.
This commit is contained in:
@@ -2618,7 +2618,7 @@ extern int dorecover(NHFILE *) NONNULLARG1;
|
||||
extern void restcemetery(NHFILE *, struct cemetery **) NONNULLARG12;
|
||||
extern void trickery(char *) NO_NNARGS;
|
||||
extern void getlev(NHFILE *, int, xint8) NONNULLARG1;
|
||||
extern void get_plname_from_file(NHFILE *, char *) NONNULLARG12;
|
||||
extern void get_plname_from_file(NHFILE *, char *, boolean) NONNULLARG12;
|
||||
#ifdef SELECTSAVED
|
||||
extern int restore_menu(winid);
|
||||
#endif
|
||||
|
||||
@@ -431,6 +431,8 @@ extern struct nomakedefs_s nomakedefs;
|
||||
#define PL_CSIZ 32 /* sizeof pl_character */
|
||||
#define PL_FSIZ 32 /* fruit name */
|
||||
#define PL_PSIZ 63 /* player-given names for pets, other monsters, objects */
|
||||
/* room for "name-role-race-gend-algn" plus 1 character playmode code */
|
||||
#define PL_NSIZ_PLUS (PL_NSIZ + 4 * (1 + 4) + 1) /* 53 */
|
||||
|
||||
#define MAXDUNGEON 16 /* current maximum number of dungeons */
|
||||
#define MAXLEVEL 32 /* max number of levels in one dungeon */
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* Incrementing EDITLEVEL can be used to force invalidation of old bones
|
||||
* and save files.
|
||||
*/
|
||||
#define EDITLEVEL 107
|
||||
#define EDITLEVEL 108
|
||||
|
||||
/*
|
||||
* Development status possibilities.
|
||||
|
||||
Reference in New Issue
Block a user