keep tameness at or above its existing level

Resolves #1380
This commit is contained in:
nhmall
2025-02-16 07:30:22 -05:00
parent 1da02b1025
commit 679094ff93

View File

@@ -44,7 +44,9 @@ free_edog(struct monst *mtmp)
void
initedog(struct monst *mtmp, boolean everything)
{
mtmp->mtame = is_domestic(mtmp->data) ? 10 : 5;
schar minimumtame = is_domestic(mtmp->data) ? 10 : 5;
mtmp->mtame = max(minimumtame, mtmp->mtame);
mtmp->mpeaceful = 1;
mtmp->mavenge = 0;
set_malign(mtmp); /* recalc alignment now that it's tamed */