Link Search Menu Expand Document

Rest

Functions


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 from maps.txt are ignored.

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)