You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically what the title says, make it so the clear production button for factories removes all items in queue except current in production.
If current is only item in queue, remove it.
Motivation
It is the case that often players want to clear queue but keep progress on current unit being built. This makes it so while keeping it easy to support the remove all items case (just issue the command twice)
The text was updated successfully, but these errors were encountered:
badosu
changed the title
Commands: stop production queue should clear all items except last, double should clear last
Commands: stop production queue should clear all items except current, double should clear current
Nov 1, 2023
Basically what the title says, make it so the clear production button for factories removes all items in queue except current in production.
If current is only item in queue, remove it.
Motivation
It is the case that often players want to clear queue but keep progress on current unit being built. This makes it so while keeping it easy to support the remove all items case (just issue the command twice)
Proposed fix
Check if
#commands > 1
and skip the first removal on the loop by starting the index from 2 instead. Here: https://github.com/badosu/Beyond-All-Reason/blob/badosu%2Frework-gridmenu/luarules/gadgets/cmd_factory_stop_production.lua#L78-L80The text was updated successfully, but these errors were encountered: