Greasy Fork is available in English.
Kittens tools (visual)
< 脚本 Kittens tools 的反馈
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(); } } },
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.
登录以发布留言。
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(); } } },