|
|
@ -143,8 +143,8 @@ enum dwarf_state {
|
|
|
|
// Baby or Child, can't work
|
|
|
|
// Baby or Child, can't work
|
|
|
|
CHILD,
|
|
|
|
CHILD,
|
|
|
|
|
|
|
|
|
|
|
|
// Doing something that precludes working, may be busy for a while
|
|
|
|
// Doing something that precludes working, may be busy for a while
|
|
|
|
OTHER
|
|
|
|
OTHER
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// I presume this is the number of states in the following enumeration.
|
|
|
|
// I presume this is the number of states in the following enumeration.
|
|
|
@ -844,9 +844,9 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
|
|
|
|
|
|
|
|
|
|
|
|
// Scan a dwarf's miscellaneous traits for on break or migrant status.
|
|
|
|
// Scan a dwarf's miscellaneous traits for on break or migrant status.
|
|
|
|
// If either of these are present, disable hauling because we want them
|
|
|
|
// If either of these are present, disable hauling because we want them
|
|
|
|
// to try to find real jobs first }
|
|
|
|
// to try to find real jobs first
|
|
|
|
for (auto p = dwarfs[dwarf]->status.misc_traits.begin(); p < dwarfs[dwarf]->status.misc_traits.end(); p++)
|
|
|
|
for (auto p = dwarfs[dwarf]->status.misc_traits.begin(); p < dwarfs[dwarf]->status.misc_traits.end(); p++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ((*p)->id == misc_trait_type::Migrant)
|
|
|
|
if ((*p)->id == misc_trait_type::Migrant)
|
|
|
|
is_migrant = true;
|
|
|
|
is_migrant = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|