ceiling and surface relocations and adjustments

relocate surface(), ceiling(), and avoid_ceiling() to dungeon.c
adjacent to has_ceiling() etc.

astral and fire, like airlevel and waterlevel return FALSE
for has_ceiling()

if a caller does happen to call ceiling() on fire level,
return "flames above"

if a caller does happen to call ceiling() on quest level,
return a more-generic "expanse above", instead of the
word "ceiling"

add "stairs" return to surface()

remove recent update to engrave.c to special-case "stairs"
since surface() will return that now
This commit is contained in:
nhmall
2023-03-27 18:09:13 -04:00
parent f74628b9d1
commit 2855f71764
4 changed files with 92 additions and 89 deletions

View File

@@ -52,17 +52,6 @@ static boolean create_particular_parse(char *,
struct _create_particular_data *);
static boolean create_particular_creation(struct _create_particular_data *);
boolean
avoid_ceiling(d_level *lev)
{
if (In_quest(lev) || Is_astralevel(lev)
|| Is_firelevel(lev) || !has_ceiling(lev))
return TRUE;
return FALSE;
}
static boolean
learnscrolltyp(short scrolltyp)
{