Rest


get_can_rest_on_map

sfall.h

get_can_rest_on_map(int mapNum, int elev)

Returns the set rest value of the map after using the set_can_rest_on_map function. Returns -1 if the rest value of the map was not previously set (i.e. no data for the map in sfalldb.sav). The can_rest_here values in maps.txt are ignored.

This is a macro, you need to include sfall.h to use it.


set_can_rest_on_map

sfall.h

void set_can_rest_on_map(int mapNum, int elev, bool value)

Allows/disallows to rest on the map for the specified level, overrides the can_rest_here values in maps.txt.

  • mapNum is the map index from maps.txt
  • passing -1 to the elev argument will set the rest value for all map elevations
  • the set rest value will be stored in sfalldb.sav file (in savegame)

This is a macro, you need to include sfall.h to use it.