Updated HTML docs.

This commit is contained in:
Evennia docbuilder action 2024-04-07 19:56:57 +00:00
parent c1452798c5
commit 276deee6e5
27 changed files with 107 additions and 98 deletions

View file

@ -242,7 +242,7 @@ utilities that will be useful later. We will also learn how to write <em>tests</
</pre></div>
</div>
<p>Above, the <code class="docutils literal notranslate"><span class="pre">Ability</span></code> class holds some basic properties of a character sheet.</p>
<p>The <code class="docutils literal notranslate"><span class="pre">ABILITY_REVERSE_MAP</span></code> is a convenient map to go the other way &amp;mdas; if in some command we were to enter the string cha, we could use this mapping to directly convert your input to the correct <code class="docutils literal notranslate"><span class="pre">Ability</span></code>. For example:</p>
<p>The <code class="docutils literal notranslate"><span class="pre">ABILITY_REVERSE_MAP</span></code> is a convenient map to go the other way if in some command we were to enter the string cha, we could use this mapping to directly convert your input to the correct <code class="docutils literal notranslate"><span class="pre">Ability</span></code>. For example:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>ability = ABILITY_REVERSE_MAP.get(your_input)
</pre></div>
</div>