Selling weapons/ships for both credits and goods
I want to build a crafting system, where you can collect ingredients.
My wish is that you can trade these, credits and the original piece for an upgraded art ship/weapon.
So my question is: Is it possible to sell ships or weapons not only for credits, but additionally also for goods required?
Example: You can buy an eagle only for 500k, 50 cannonball missiles and have to have a falcon beforehand.