Another tamedog message

Give a different message when a peaceful creature was tamed.
Allow suppressing this and the previous message, when the caller
handles messaging.
This commit is contained in:
Pasi Kallinen
2024-03-24 10:48:26 +02:00
parent 71c78449e5
commit f131942dd2
13 changed files with 21 additions and 15 deletions

View File

@@ -1037,7 +1037,7 @@ revive(struct obj *corpse, boolean by_hero)
}
/* tame the revived monster if its ghost was tame */
if (ghost->mtame && !mtmp->mtame) {
if (tamedog(mtmp, (struct obj *) 0)) {
if (tamedog(mtmp, (struct obj *) 0, FALSE)) {
/* ghost's edog data is ignored */
mtmp->mtame = ghost->mtame;
}