changed encode/decode methods to those by poke to fix decoding of upgraded weapons and tweaked some stuff