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
+1
View File
@@ -1484,6 +1484,7 @@ when hero who is poly'd into metallivore form eats a tin, bypass "smells like
digging in ice was handled inconsistently, particularly if done at the span digging in ice was handled inconsistently, particularly if done at the span
spot in front of closed drawbridge spot in front of closed drawbridge
angry god may remove an intrinsic angry god may remove an intrinsic
blessed scroll of taming increases tameness of already tame creatures
Fixes to 3.7.0-x General Problems Exposed Via git Repository Fixes to 3.7.0-x General Problems Exposed Via git Repository
+6
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 */ not tame the target, so call it even if taming gets resisted */
if (!resist(mtmp, sobj->oclass, 0, NOTELL) || mtmp->isshk) if (!resist(mtmp, sobj->oclass, 0, NOTELL) || mtmp->isshk)
(void) tamedog(mtmp, (struct obj *) 0, FALSE); (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)) if ((!was_peaceful && mtmp->mpeaceful) || (!was_tame && mtmp->mtame))
return 1; return 1;
} }