| 2401 | } |
| 2402 | |
| 2403 | static int units_getStressCutoffs(lua_State *L) { |
| 2404 | lua_newtable(L); |
| 2405 | for (size_t i = 0; i < Units::stress_cutoffs.size(); i++) |
| 2406 | Lua::TableInsert(L, i, Units::stress_cutoffs[i]); |
| 2407 | return 1; |
| 2408 | } |
| 2409 | |
| 2410 | static int units_assignTrainer(lua_State *L) { |
| 2411 | auto unit = Lua::CheckDFObject<df::unit>(L, 1); |
nothing calls this directly
no test coverage detected