ai, g: fix missing weap enum references
ai: take neutralflag check and nanoid inventory stuff out of TA ifdefs