hero-as-gremlin enhancements

When hero is poly'd into a gremlin, using #monster at a fountain
location will clone a gremlin pet.  Do the same at a pool location
(might not match the movie but if not, most likely because the
situation never came up).  Also, do the same for #sit at either
fountain or pool.
This commit is contained in:
PatR
2024-09-25 01:19:07 -07:00
parent 2471306112
commit f5d889852b
2 changed files with 21 additions and 5 deletions

View File

@@ -915,8 +915,13 @@ domonability(void)
if (IS_FOUNTAIN(levl[u.ux][u.uy].typ)) {
if (split_mon(&gy.youmonst, (struct monst *) 0))
dryup(u.ux, u.uy, TRUE);
} else
} else if (is_pool(u.ux, u.uy)) {
/* is_pool: might be wearing water walking boots or amulet of
magical breathing */
(void) split_mon(&gy.youmonst, (struct monst *) 0);
} else {
There("is no fountain here.");
}
} else if (is_unicorn(uptr)) {
use_unicorn_horn((struct obj **) 0);
return ECMD_TIME;