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(); } } },