MCPcopy Create free account
hub / github.com/DFHack/dfhack / was_expelled

Function was_expelled

plugins/preserve-rooms.cpp:420–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420static bool was_expelled(df::historical_figure *hf) {
421 if (!hf || !hf->info || !hf->info->whereabouts)
422 return false;
423 auto army = df::army::find(hf->info->whereabouts->army_id);
424 if (!army || !army->controller)
425 return false;
426 return army->controller->goal == df::army_controller_goal_type::MOVE_TO_SITE;
427}
428
429// handles when units disappear from their assignments compared to the last scan
430static void handle_missing_assignments(color_ostream &out,

Callers 1

Calls 1

findFunction · 0.50

Tested by

no test coverage detected