Tool parts have half original material cost if reused
Alternate tool build/modification priority fix

Tool modification now takes priority over tool building
Also fixed a bug with output being incorrect in some occasions