| 574 | } |
| 575 | |
| 576 | static 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 | |
| 586 | static int setAmmoItem(lua_State *L) |
| 587 | { |
nothing calls this directly
no test coverage detected