diff options
| author | Alexander Gavrilov | 2012-05-20 21:57:45 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-05-20 21:57:45 +0400 |
| commit | b992b04f0bb7ffef8e7fb152967d438f398543d7 (patch) | |
| tree | 0b6dd0e193642d95df53ffb05f7fe9c3a63d0595 /plugins/lua | |
| parent | d28d240dbdce9ef38081826c76dad4268259a380 (diff) | |
| download | dfhack-b992b04f0bb7ffef8e7fb152967d438f398543d7.tar.gz dfhack-b992b04f0bb7ffef8e7fb152967d438f398543d7.tar.bz2 dfhack-b992b04f0bb7ffef8e7fb152967d438f398543d7.tar.xz | |
Remove stuff that shouldn't be in the core, and expose to lua what's left.
Specifically, any "if (verbose) { Core::printerr("blah") }" kind
of stuff definitely doesn't belong in the common API functions.
Also, ref->getUnit() is very expensive.
On the other hand, checks for crash-inducing conflicts with the
ui should be in the core api, and not in client plugins.
Diffstat (limited to 'plugins/lua')
| -rw-r--r-- | plugins/lua/sort/items.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/lua/sort/items.lua b/plugins/lua/sort/items.lua index 2e1b3fd1..13b62ff9 100644 --- a/plugins/lua/sort/items.lua +++ b/plugins/lua/sort/items.lua @@ -19,14 +19,7 @@ orders.type = { orders.description = { key = function(item) - return dfhack.with_temp_object( - df.new "string", - function(str,item) - item:getItemDescription(str,0) - return str.value - end, - item - ) + return dfhack.items.getDescription(item,0) end } |
