some fish should lay their eggs in the water rather than on land

Generally, fish should lay their eggs in the water and
not on land, but the game was only allowing the opposite.

Eels are catadromous and lay their eggs in the Sargasso Sea,
not in the dungeon.
This commit is contained in:
nhmall
2019-02-26 19:49:24 -05:00
parent 5a432d0c97
commit be3092bed4
4 changed files with 24 additions and 6 deletions

View File

@@ -784,8 +784,12 @@ int mntmp;
if (is_vampire(youmonst.data))
pline(use_thec, monsterc, "change shape");
if (lays_eggs(youmonst.data) && flags.female)
pline(use_thec, "sit", "lay an egg");
if (lays_eggs(youmonst.data) && flags.female &&
!(youmonst.data == &mons[PM_GIANT_EEL]
|| youmonst.data == &mons[PM_ELECTRIC_EEL]))
pline(use_thec, "sit",
eggs_in_water(youmonst.data) ?
"spawn in the water" : "lay an egg");
}
/* you now know what an egg of your type looks like */