It seems that the armor stats are hard coded in some xml files, but the weapons stats are not. Instead the weapons just list the crafting parts that make up each weapon. Is there something that I'm missing? Is there a way to calculate the stats from the crafted parts? I'm asking because I'm trying to make a personel database of all of the equipment in the game, and I don't want to have to copy each weapon and its stats from in-game. Any insights would be most grateful.