| 305 | } |
| 306 | |
| 307 | void PushButcherableUnit(df::unit *unit) { |
| 308 | if(Units::isFemale(unit)) { |
| 309 | if(Units::isBaby(unit) || Units::isChild(unit)) |
| 310 | fk_units.emplace(unit); |
| 311 | else |
| 312 | fa_units.emplace(unit); |
| 313 | } |
| 314 | else //treat sex n/a like it was male |
| 315 | { |
| 316 | if(Units::isBaby(unit) || Units::isChild(unit)) |
| 317 | mk_units.emplace(unit); |
| 318 | else |
| 319 | ma_units.emplace(unit); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | void PushProtectedUnit(df::unit *unit) { |
| 324 | if(Units::isFemale(unit)) { |
no outgoing calls
no test coverage detected