summaryrefslogtreecommitdiff
path: root/Lua API.html
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-12 18:17:42 +0400
committerAlexander Gavrilov2012-09-12 18:17:42 +0400
commit7c71aeab5f44c7fce106a0efc07c1ea2860e4638 (patch)
treedb2c792ddd19b323c7a8156435f7c3daaea54a98 /Lua API.html
parent448d7e3633efd5171feaa3c3a0cdc4afbfafe105 (diff)
downloaddfhack-7c71aeab5f44c7fce106a0efc07c1ea2860e4638.tar.gz
dfhack-7c71aeab5f44c7fce106a0efc07c1ea2860e4638.tar.bz2
dfhack-7c71aeab5f44c7fce106a0efc07c1ea2860e4638.tar.xz
Add function for making item projectiles.
Diffstat (limited to 'Lua API.html')
-rw-r--r--Lua API.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lua API.html b/Lua API.html
index 7886fbc2..168f7dcc 100644
--- a/Lua API.html
+++ b/Lua API.html
@@ -1213,6 +1213,9 @@ Returns <em>false</em> in case of error.</p>
<li><p class="first"><tt class="docutils literal">dfhack.items.moveToInventory(item,unit,use_mode,body_part)</tt></p>
<p>Move the item to the unit inventory. Returns <em>false</em> if impossible.</p>
</li>
+<li><p class="first"><tt class="docutils literal">dfhack.items.makeProjectile(item)</tt></p>
+<p>Turns the item into a projectile, and returns the new object, or <em>nil</em> if impossible.</p>
+</li>
</ul>
</div>
<div class="section" id="maps-module">