Bugfixes for the recent artifact gifting changes
This commit is contained in:
+1
-1
@@ -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
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user