Update trap.lua

Use a table insted of 4 if/elseif statments.
IMO damage is a more appropriate name than "combat", and transformTo instead of "toItem".