</code></pre></div></div> <ul> <li>returns the set rest value of the map after using the <code class="language-plaintexthighlighter-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="language-plaintext highlighter-rouge">sfalldb.sav</code>)</li><li>the <codeclass="language-plaintext highlighter-rouge">can_rest_here values</code> from <codeclass="language-plaintext 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="language-plaintext highlighter-rouge">can_rest_here</code> values in <codeclass="language-plaintext highlighter-rouge">maps.txt</code>.</p><ul><li><codeclass="language-plaintext highlighter-rouge">mapNum</code> is the map index from <codeclass="language-plaintext 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="language-plaintext highlighter-rouge">sfalldb.sav</code> file (in savegame)</li></ul></main><hr><footer><divclass="d-xs-block d-md-none"><divclass="mt-4 fs-2"> This site uses <ahref="https://github.com/just-the-docs/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll. </div></div></footer></div></div><divclass="search-overlay"></div></div></body></html>