I was considering what would be a better method to obtain goods like guns around endgame, or tier three to equal the rarity of pirate ships. This would also add a system to sell materials to a merchant for pixels, instead of just selling to NPCs. Maybe even have the NPCs buy your goods at a reduced price instead of looting glitch castles, and selling the chests for a couple thousand pixels. The level of the weapons should be determined by the total defense/health of the character, and what sector of space the ship is in at the time to prevent people exploiting to reach this item quickly and have the best guns.
This already exists. There are spawners that can be found that function just like the gaurd and race spawners you craft. The ones you find create various merchants. Drop them in your ship and you have a merchant that will travel the galaxy with you..