Page 1 of 1

Get basic ingredients of items

Posted: Mon Apr 18, 2016 9:50 pm
by Camv
I'm currently developing a mod and would like to iterate through a list of items/equipments and break everything down to the base materials.

More specific, I would like to go through all inventory items and retrieve the total amount of base materials (iron ore, copper ore etc) to get what the items are really "worth".

Is there a way to find the base materials when having an item name? I know the recipe with the same name has ingredients, but do I then need to break these ingredients down further? I've noticed in-game that all items also list base resource cost. Is it a easy way to retrieve that?

Thank you

Re: Get basic ingredients of items

Posted: Tue Apr 19, 2016 12:02 am
by seronis
The Galactic Trade mod does exactly this. Download and check its code