Commit 5cf887a
authored
Update instruments.lua
Lines 140–156 (order_instruments helper)
This helper implements bulk ordering for instruments. It gathers all instruments belonging to the player’s civilization that pass a given filter and errors if none match. Each matched instrument is then ordered by calling the existing order_instrument function with the normalized name, amount, and quiet flag. This helper is the shared backend for all bulk-order CLI commands.
Lines 180–188 (CLI options: all, handheld, building)
These CLI options enable bulk ordering. The all option orders every instrument for the player’s civilization, handheld orders only non-building instruments, and building orders only building-based instruments. Each option reads an amount (defaulting to one) and calls order_instruments with the appropriate filter.1 parent 178cfe1 commit 5cf887a
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
140 | 158 | | |
141 | 159 | | |
142 | 160 | | |
| |||
159 | 177 | | |
160 | 178 | | |
161 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
162 | 189 | | |
| 190 | + | |
0 commit comments