Kittens tools

Kittens tools (visual)

< Feedback on Kittens tools

Question/comment

§
Posted: 2019-01-17

iron to steel and plate still incorrect

your function ironToSteelOrPlates lock the funcion ironToPlates and only repeat the funcion ironToSteel use this for solve the problem:

ironToSteelOrPlates: function() { var iron = game.resPool.get("iron"); var coal = game.resPool.get("coal"); if (iron.value >= iron.maxValue || coal.value >= coal.maxValue) { var minPlate = _Helpers.getMinCraft('plate'); if (coal.value >= coal.maxValue && _Helpers.isResourceUnlocked('steel')) { _BotLogic.ironToSteel(); } else if (iron.value >= iron.maxValue && _Helpers.isResourceUnlocked('plate')) { _BotLogic.ironToPlates(); } } },

§
Posted: 2019-01-18

Fixed in 1.167:

added for steel: coal.value >= coal.maxValue added for plates: iron.value >= iron.maxValue

so now steel if only Coal at max, plates if Iron at max.

Post reply

Sign in to post a reply.