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

Function units_getCasteRaw

library/LuaApi.cpp:2392–2401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2390
2391
2392static 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
2403static int units_getStressCutoffs(lua_State *L) {
2404 lua_newtable(L);

Callers

nothing calls this directly

Calls 2

lua_gettopFunction · 0.85
PushDFObjectFunction · 0.85

Tested by

no test coverage detected