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
+1 -1
View File
@@ -169,7 +169,7 @@ mk_artifact(
continue; continue;
if ((a->spfx & SPFX_NOGEN) || unique) if ((a->spfx & SPFX_NOGEN) || unique)
continue; continue;
if (a->gift_value > max_giftvalue) if (a->gift_value > max_giftvalue && !Role_if(a->role))
continue; continue;
if (!by_align) { if (!by_align) {
+1 -1
View File
@@ -1786,7 +1786,7 @@ bestow_artifact(uchar max_giftvalue)
/* The player can gain an artifact */ /* The player can gain an artifact */
/* The chance goes down as the number of artifacts goes up */ /* The chance goes down as the number of artifacts goes up */
if (wizard) if (wizard)
do_bestow = y_n("Gift an artifact?"); do_bestow = y_n("Gift an artifact?") == 'y';
else else
do_bestow = !rn2(6 + (2 * u.ugifts * nartifacts)); do_bestow = !rn2(6 + (2 * u.ugifts * nartifacts));
} }