</code></pre></div></div><ul><li>returns the set rest value of the map after using the <codeclass="highlighter-rouge">set_can_rest_on_map</code> function</li><li>Returns -1 if the rest value of the map was not previously set (i.e. no data for the map in <codeclass="highlighter-rouge">sfalldb.sav</code>)</li><li>the <codeclass="highlighter-rouge">can_rest_here values</code> from <codeclass="highlighter-rouge">maps.txt</code> are ignored.</li></ul><hr/><h3class="d-inline-block"id="set_can_rest_on_map"><ahref="#set_can_rest_on_map"class="anchor-heading"aria-labelledby="set_can_rest_on_map"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>set_can_rest_on_map</strong></h3><pclass="label label-green">sfall.h</p><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">set_can_rest_on_map</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">mapNum</span><spanclass="p">,</span><spanclass="kt">int</span><spanclass="n">elev</span><spanclass="p">,</span><spanclass="kt">bool</span><spanclass="n">value</span><spanclass="p">)</span>
</code></pre></div></div><p>Allows/disallows to rest on the map for the specified level, overrides the <codeclass="highlighter-rouge">can_rest_here</code> values in <codeclass="highlighter-rouge">maps.txt</code>.</p><ul><li><codeclass="highlighter-rouge">mapNum</code> is the map index from <codeclass="highlighter-rouge">maps.txt</code></li><li>passing -1 to the elev argument will set the rest value for all map elevations</li><li>the set rest value will be stored in <codeclass="highlighter-rouge">sfalldb.sav</code> file (in savegame)</li></ul></div></div><divclass="search-overlay"></div></div></body></html>