dandcvs / KGAutoPlay

20 stars 12 forks source link

Kitten assignation #25

Open zweq opened 3 years ago

zweq commented 3 years ago

The logic of assigning kittens has been puzzling me. After maxing out pretty much everything, the kittens are mostly assigned as farmers, scholars or hunters. There's usually just a single priest. However,

On a related note, in the assignation code the || 100 in the following confuses me:

(gamePage.resPool.get("coal").value / gamePage.resPool.get("coal").maxValue || 100) < (gamePage.workshop.get("geodesy").researched ? gamePage.resPool.get("gold").value / gamePage.resPool.get("gold").maxValue : 100) ? ["coal", "geologist",gamePage.resPool.get("coal").value < gamePage.resPool.get("coal").maxValue * 0.99 ? 1 : 15,15] : ["gold", "geologist",gamePage.resPool.get("gold").value < gamePage.resPool.get("gold").maxValue * 0.99 ? 1 : 15,15]