We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf1431e commit 7d0ded1Copy full SHA for 7d0ded1
1 file changed
autotraining.lua
@@ -207,8 +207,7 @@ function addTraining(unit)
207
for _, squad in ipairs(getTrainingSquads()) do
208
for i=1,9,1 do
209
if ( squad.positions[i].occupant == -1 ) then
210
- dfhack.military.addToSquad(unit.id,squad.id,i)
211
- return true
+ return dfhack.military.addToSquad(unit.id,squad.id,i)
212
end
213
214
@@ -220,8 +219,7 @@ function removeTraining(unit)
220
219
221
222
if ( unit.hist_figure_id == squad.positions[i].occupant ) then
223
- dfhack.military.removeFromSquad(unit.id)
224
+ return dfhack.military.removeFromSquad(unit.id)
225
226
227
0 commit comments