| 1792 | } |
| 1793 | |
| 1794 | static bool add_proper_report(df::unit *unit, bool is_sparring, df::report *report, bool update_alert = false) |
| 1795 | { // Add report to proper category based on is_sparring and unit current job |
| 1796 | if (is_sparring) |
| 1797 | return Gui::addCombatReport(unit, unit_report_type::Sparring, report, update_alert); |
| 1798 | else if (unit && unit->job.current_job && unit->job.current_job->job_type == job_type::Hunt) |
| 1799 | return Gui::addCombatReport(unit, unit_report_type::Hunting, report, update_alert); |
| 1800 | else |
| 1801 | return Gui::addCombatReport(unit, unit_report_type::Combat, report, update_alert); |
| 1802 | } |
| 1803 | |
| 1804 | static bool add_recent_reports(df::unit *unit, df::report *report, bool update_alert = false) |
| 1805 | { // Attempt to add report to all recent categories |
no outgoing calls
no test coverage detected