| 554 | } |
| 555 | |
| 556 | static int dfhack_matinfo_getCraftClass(lua_State *state) |
| 557 | { |
| 558 | MaterialInfo info; |
| 559 | if (decode_matinfo(state, &info, true)) |
| 560 | lua_pushinteger(state, info.getCraftClass()); |
| 561 | else |
| 562 | lua_pushnil(state); |
| 563 | return 1; |
| 564 | } |
| 565 | |
| 566 | static int dfhack_matinfo_matches(lua_State *state) |
| 567 | { |
nothing calls this directly
no test coverage detected