Add petless conduct

Breaks saves.
This commit is contained in:
Pasi Kallinen
2023-04-11 14:07:46 +03:00
parent ffb61612e3
commit 8b32ae98e9
7 changed files with 22 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ initedog(struct monst *mtmp)
EDOG(mtmp)->revivals = 0;
EDOG(mtmp)->mhpmax_penalty = 0;
EDOG(mtmp)->killed_by_u = 0;
u.uconduct.pets++;
}
static int
@@ -152,6 +153,7 @@ make_familiar(struct obj *otmp, coordxy x, coordxy y, boolean quietly)
/* 0,1,2: b=80%,10,10; nc=10%,80,10; c=10%,10,80 */
if (chance > 0) {
mtmp->mtame = 0; /* not tame after all */
u.uconduct.pets--; /* doesn't count as creating a pet */
if (chance == 2) { /* hostile (cursed figurine) */
if (!quietly)
You("get a bad feeling about this.");