Bugfixes for the recent artifact gifting changes

This commit is contained in:
Alex Smith
2024-12-12 06:58:43 +00:00
parent c2c797fa35
commit 3d8081c748
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ mk_artifact(
continue;
if ((a->spfx & SPFX_NOGEN) || unique)
continue;
if (a->gift_value > max_giftvalue)
if (a->gift_value > max_giftvalue && !Role_if(a->role))
continue;
if (!by_align) {

View File

@@ -1786,7 +1786,7 @@ bestow_artifact(uchar max_giftvalue)
/* The player can gain an artifact */
/* The chance goes down as the number of artifacts goes up */
if (wizard)
do_bestow = y_n("Gift an artifact?");
do_bestow = y_n("Gift an artifact?") == 'y';
else
do_bestow = !rn2(6 + (2 * u.ugifts * nartifacts));
}