Rest

Functions


get_can_rest_on_map

sfall.h

int 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.

  • the set rest value will be stored in sfalldb.sav file (in savegame)

Arguments:

  • mapNum: the map index from maps.txt
  • elev: passing -1 will set the rest value for all map elevations

This site uses Just the Docs, a documentation theme for Jekyll.