Builtin/../item: Enable tool breaking sounds
authorAuke Kok <sofar@foo-projects.org>
Sat, 23 Jan 2016 05:52:50 +0000 (21:52 -0800)
committerparamat <mat.gregory@virginmedia.com>
Fri, 18 Nov 2016 06:15:08 +0000 (06:15 +0000)
commit4a0a6723afc5c5a14acd7cd833aea33cb53ac618
tree36f5d490bb58c8c78de6b2cff199f17d95b0eab9
parentafc48c802a81b95b11aef3ad0141a56f6a184979
Builtin/../item: Enable tool breaking sounds

If a tool wears out and is destroyed, it's itemstack count
goes to 0, and we can optionally play a breaking sound.

This patch implements playing a breaking sound when this
occurs. Sounds need to be added to the tool itemdef
registration as the sound name string in the .sound.breaks
member.
builtin/game/item.lua
doc/lua_api.txt