Blessed scroll of taming increases tameness of pets

This commit is contained in:
Pasi Kallinen
2024-12-05 16:44:05 +02:00
parent 4b15085bb1
commit 9b4f38eebe
2 changed files with 7 additions and 0 deletions

View File

@@ -1038,6 +1038,12 @@ maybe_tame(struct monst *mtmp, struct obj *sobj)
not tame the target, so call it even if taming gets resisted */
if (!resist(mtmp, sobj->oclass, 0, NOTELL) || mtmp->isshk)
(void) tamedog(mtmp, (struct obj *) 0, FALSE);
if (sobj->blessed && was_tame && mtmp->mtame) {
int new_tame = min(10, ACURR(A_CHA) / 2);
if (mtmp->mtame < new_tame)
mtmp->mtame = new_tame;
}
if ((!was_peaceful && mtmp->mpeaceful) || (!was_tame && mtmp->mtame))
return 1;
}