Track down the function which actually parses the entity text in d3dbsp and just filter the items/weapons via libcod (maybe add gsc parse entity callback for the gsc-only developers)