| 206 | } |
| 207 | |
| 208 | static bool isFreeEgglayer(df::unit *unit) { |
| 209 | return Units::isActive(unit) |
| 210 | && !Units::isUndead(unit) |
| 211 | && Units::isFemale(unit) |
| 212 | && Units::isAdult(unit) |
| 213 | && unlikely_to_revert_to_wild(unit) |
| 214 | && Units::isOwnCiv(unit) |
| 215 | && Units::isEggLayer(unit) |
| 216 | && !isAssigned(unit) |
| 217 | && !Units::isGrazer(unit) // exclude grazing birds because they're messy |
| 218 | && !Units::isMerchant(unit) // don't steal merchant mounts |
| 219 | && !Units::isForest(unit); // don't steal birds from traders, they hate that |
| 220 | } |
| 221 | |
| 222 | static df::general_ref_building_civzone_assignedst * createCivzoneRef() { |
| 223 | return (df::general_ref_building_civzone_assignedst *) |
no test coverage detected