| 2390 | |
| 2391 | |
| 2392 | static int units_getCasteRaw(lua_State *state) { |
| 2393 | df::caste_raw *craw = NULL; |
| 2394 | if (lua_gettop(state) <= 1) |
| 2395 | craw = Units::getCasteRaw(Lua::CheckDFObject<df::unit>(state, 1)); |
| 2396 | else // Use race, caste |
| 2397 | craw = Units::getCasteRaw(lua_tointeger(state, 1), lua_tointeger(state, 2)); |
| 2398 | |
| 2399 | Lua::PushDFObject(state, craw); |
| 2400 | return 1; |
| 2401 | } |
| 2402 | |
| 2403 | static int units_getStressCutoffs(lua_State *L) { |
| 2404 | lua_newtable(L); |
nothing calls this directly
no test coverage detected