mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-05-09 00:35:19 +01:00
Show extinct monsters in ctrl-x/attributes geno listing
This commit is contained in:
parent
6a8abdcb19
commit
d5939790ba
3 changed files with 16 additions and 3 deletions
|
@ -903,6 +903,7 @@ E void FDECL(do_containerconts, (struct obj *,BOOLEAN_P,BOOLEAN_P,BOOLEAN_P,BOOL
|
|||
#endif
|
||||
E void FDECL(terminate, (int));
|
||||
E int NDECL(num_genocides);
|
||||
E int NDECL(num_extinct);
|
||||
E void FDECL(list_genocided, (int,BOOLEAN_P,BOOLEAN_P,BOOLEAN_P));
|
||||
|
||||
/* ### engrave.c ### */
|
||||
|
|
12
src/end.c
12
src/end.c
|
@ -1959,6 +1959,18 @@ num_genocides()
|
|||
return n;
|
||||
}
|
||||
|
||||
/* number of monster species which have been genocided */
|
||||
int
|
||||
num_extinct()
|
||||
{
|
||||
int i, n = 0;
|
||||
|
||||
for (i = LOW_PM; i < NUMMONS; ++i)
|
||||
if ((mvitals[i].mvflags & G_GONE) && !(mons[i].geno & G_UNIQ)) ++n;
|
||||
|
||||
return n;
|
||||
}
|
||||
|
||||
void
|
||||
list_genocided(defquery, ask, want_dump, show_extinct)
|
||||
int defquery;
|
||||
|
|
|
@ -372,8 +372,8 @@ minimal_enlightenment()
|
|||
//spirits_enlightenment();
|
||||
}
|
||||
|
||||
if (num_genocides() != 0) {
|
||||
Sprintf(buf, "Show genocided monsters.");
|
||||
if (num_genocides() != 0 || num_extinct() != 0) {
|
||||
Sprintf(buf, "Show genocided or extinct monsters.");
|
||||
any.a_int = DOATTRIB_GENOCIDE;
|
||||
add_menu(tmpwin, NO_GLYPH, &any,
|
||||
'g', 0, ATR_NONE, buf,
|
||||
|
@ -3049,7 +3049,7 @@ mutations_enlightenment()
|
|||
STATIC_OVL void
|
||||
genocide_enlightenment()
|
||||
{
|
||||
list_genocided('y', FALSE, FALSE, FALSE);
|
||||
list_genocided('y', FALSE, FALSE, TRUE);
|
||||
}
|
||||
|
||||
/*enlighten.c*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue