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

Function getAmmoItem

plugins/siege-engine.cpp:576–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576static int getAmmoItem(lua_State *L)
577{
578 auto engine = find_engine(L, 1, false, true);
579 if (!engine)
580 Lua::Push(L, item_type::BOULDER);
581 else
582 Lua::Push(L, engine->ammo_item_type);
583 return 1;
584}
585
586static int setAmmoItem(lua_State *L)
587{

Callers

nothing calls this directly

Calls 2

find_engineFunction · 0.85
PushFunction · 0.85

Tested by

no test coverage detected