Option to create the character deaf

Allows creating your character permanently deaf,
for that added challenge.

Breaks saves.
This commit is contained in:
Pasi Kallinen
2023-04-11 13:19:46 +03:00
parent 699473e03f
commit ffb61612e3
12 changed files with 29 additions and 9 deletions

View File

@@ -215,6 +215,8 @@ static int optfn_##a(int, int, boolean, char *, char *);
#endif
NHOPTB(dark_room, Advanced, 0, opt_out, set_in_game,
On, Yes, No, No, NoAlias, &flags.dark_room, Term_False)
NHOPTB(deaf, Advanced, 0, opt_in, set_in_config,
Off, Yes, No, No, "permadeaf", &u.uroleplay.deaf, Term_False)
#ifdef BACKWARD_COMPAT
NHOPTC(DECgraphics, Advanced, 70, opt_in, set_in_config,
Yes, Yes, No, No, NoAlias,

View File

@@ -17,7 +17,7 @@
* Incrementing EDITLEVEL can be used to force invalidation of old bones
* and save files.
*/
#define EDITLEVEL 80
#define EDITLEVEL 81
/*
* Development status possibilities.

View File

@@ -160,6 +160,7 @@ struct u_conduct { /* number of times... */
struct u_roleplay {
boolean blind; /* permanently blind */
boolean nudist; /* has not worn any armor, ever */
boolean deaf; /* permanently deaf */
long numbones; /* # of bones files loaded */
};

View File

@@ -114,7 +114,7 @@
/* Timeout, plus a worn mask */
#define HDeaf u.uprops[DEAF].intrinsic
#define EDeaf u.uprops[DEAF].extrinsic
#define Deaf (HDeaf || EDeaf)
#define Deaf (HDeaf || EDeaf || u.uroleplay.deaf)
#define HFumbling u.uprops[FUMBLING].intrinsic
#define EFumbling u.uprops[FUMBLING].extrinsic