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

Method addCombatReportAuto

library/modules/Gui.cpp:1974–1988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1972}
1973
1974bool Gui::addCombatReportAuto(df::unit *unit, df::announcement_flags mode, df::report *report)
1975{
1976 if (!unit || !report)
1977 return false;
1978
1979 bool ok = false;
1980
1981 if (mode.bits.UNIT_COMBAT_REPORT)
1982 ok |= add_proper_report(unit, unit->flags2.bits.sparring, report, true);
1983
1984 if (mode.bits.UNIT_COMBAT_REPORT_ALL_ACTIVE)
1985 ok |= add_recent_reports(unit, report, true);
1986
1987 return ok;
1988}
1989
1990bool Gui::addCombatReportAuto(df::unit *unit, df::announcement_flags mode, int report_index)
1991{

Callers

nothing calls this directly

Calls 3

add_proper_reportFunction · 0.85
add_recent_reportsFunction · 0.85
vector_getFunction · 0.85

Tested by

no test coverage detected