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

@@ -1004,7 +1004,7 @@ hatch_egg(anything *arg, long timeout)
while it's in your inventory */
if ((yours && !silent)
|| (carried(egg) && mon->data->mlet == S_DRAGON)) {
if (tamedog(mon, (struct obj *) 0)) {
if (tamedog(mon, (struct obj *) 0, FALSE)) {
if (carried(egg) && mon->data->mlet != S_DRAGON)
mon->mtame = 20;
}