diff options
author | Zefram <zefram@fysh.org> | 2014-04-30 10:45:45 +0100 |
---|---|---|
committer | Zefram <zefram@fysh.org> | 2014-04-30 10:45:45 +0100 |
commit | b3d83bc953905190e60eaf60c1dba3cec3def1a7 (patch) | |
tree | 5743566bfe88500b2aa938f3eb8212cb538cc15c /register.lua | |
parent | d1e554b73d4ce4d80474f019b5af102f340bcafa (diff) |
Support item-dependent refill behaviour
The refill slot was only putting as many items as possible in a
stack, which does nothing for tools. Tools could benefit from repair,
recharging, or other behaviour depending on the type of tool. Change the
default refill behaviour to repair mechanical wear as well as fully
stacking. Because other kinds of refill will require knowledge of the
metadata format, they can't be directly handled here. So add an on_refill
hook, that tool definitions can supply to plug in appropriate behaviour.
Diffstat (limited to 'register.lua')
0 files changed, 0 insertions, 0 deletions