Lua changes

Added item:getType() & monster:getType()
Optimized table creation for some functions.