@@ -180,10 +180,10 @@ local function is_valid_animal(unit)
180180end
181181local function count_live_animals (race_creature_id )
182182 local count_adults = count_adults_for_race (race_creature_id )
183- if count_adults then print_detalis ((' we are counting adults for %s' ):format (race_creature_id )) end
183+ if count_adults then print_detalis ((' we are counting adults for %s' ):format (race_creature_id )) end
184184 local count_children = count_children_for_race (race_creature_id )
185- if count_children then print_detalis ((' we are counting children and babies for %s' ):format (race_creature_id )) end
186-
185+ if count_children then print_detalis ((' we are counting children and babies for %s' ):format (race_creature_id )) end
186+
187187 local count = 0
188188 if not count_adults and not count_children then
189189 return count
@@ -192,15 +192,15 @@ local function count_live_animals(race_creature_id)
192192 for _ ,unit in ipairs (df .global .world .units .active ) do
193193 if race_creature_id == df .creature_raw .find (unit .race ).creature_id
194194 and is_valid_animal (unit )
195- and ( (count_adults and dfhack .units .isAdult (unit ))
195+ and ( (count_adults and dfhack .units .isAdult (unit ))
196196 or (count_children and ( dfhack .units .isChild (unit ) or dfhack .units .isBaby (unit )))
197197 ) then
198198 count = count + 1
199199 end
200200 end
201201 print_detalis ((' found %s life animals' ):format (count ))
202202 return count
203- end
203+ end
204204
205205
206206local function handle_eggs (eggs )
@@ -248,7 +248,7 @@ local function handle_eggs(eggs)
248248 )
249249 )
250250 end
251-
251+
252252 print_detalis ((" end handle_eggs" ))
253253end
254254
@@ -357,7 +357,7 @@ target_eggs_count_per_race = default_table
357357elseif not command or command == " status" then
358358 print_status ()
359359 print_local (dump (target_eggs_count_per_race ))
360- else
360+ else
361361 handle_error ((' Command "%s" is not recognized' ):format (command ))
362362end
363363persist_state ()
0 commit comments