Add boolean option "bones"

Setting bones off prevents saving and loading bones files.
This commit is contained in:
Pasi Kallinen
2015-03-10 19:48:04 +02:00
parent f0a335da2a
commit d5abd07dad
5 changed files with 7 additions and 1 deletions

View File

@@ -287,6 +287,7 @@ can_make_bones()
{
register struct trap *ttmp;
if (!flags.bones) return FALSE;
if (ledger_no(&u.uz) <= 0 || ledger_no(&u.uz) > maxledgerno())
return FALSE;
if (no_bones_level(&u.uz))
@@ -533,6 +534,7 @@ getbones()
if(discover) /* save bones files for real games */
return(0);
if (!flags.bones) return (0);
/* wizard check added by GAN 02/05/87 */
if(rn2(3) /* only once in three times do we find bones */
&& !wizard