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:
11
src/read.c
11
src/read.c
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user