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.
登录(不可用)以发布留言。
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
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(); } } },