MCPcopy Create free account
hub / github.com/DFHack/dfhack / units_getStressCutoffs

Function units_getStressCutoffs

library/LuaApi.cpp:2403–2408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2401}
2402
2403static 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
2410static int units_assignTrainer(lua_State *L) {
2411 auto unit = Lua::CheckDFObject<df::unit>(L, 1);

Callers

nothing calls this directly

Calls 2

TableInsertFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected