(WIP) basic production-related functions
Port gdi04a to New Lua
Port gdi04b to New Lua