Question for AutoEquip: get WorkTypeDef of StatDef

Started by soulkata, September 16, 2015, 11:59:05 AM

Previous topic - Next topic

soulkata

Hi

I am writing the AutoEquip mod, and I gave a pretty good idea for the mod: Prioritize the stats of the priority jobs! Ex. if the "handle" has a "1" in the priority queue, the "Taming Animal Change" stat is automatically selected.

But after half hour of ILSping I still don't know a automatic way to get the used StatDef of a WorkTypeDef... Any ideas?

1000101

#1
There is no way really as each of the different jobs can encode the information differently.

ie, doing bills at tables, the stats required are in the recipe.  Designators like mining are hard-coded in the toils.

However, some StatDefs define <skillNeedFactors> which gives you the SkillDef and from there you can associate WorkTypeDefs.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

soulkata