Add a throw_itself field to throwing.register_bow definition table

This commit is contained in:
upsilon
2017-06-20 17:03:14 +02:00
parent d33a8b69ca
commit 01c10dff75
2 changed files with 20 additions and 5 deletions

View File

@ -41,6 +41,9 @@ Definition: definition table, containing:
- itemstack: the itemstack of the bow
- should return true if the shot can be made, and false otherwise
- default for this is function(player, itemstack) return throwing.is_arrow(itemstack) end
* throw_itself (optional): whether the bow should throw itself instead of the arrow next to it in the inventory.
If present, allow_shot is ignored.
Default is false.
]]
-- Example: