| 1782 | } |
| 1783 | |
| 1784 | static bool recent_report_any(df::unit *unit) |
| 1785 | { |
| 1786 | FOR_ENUM_ITEMS(unit_report_type, slot) |
| 1787 | { |
| 1788 | if (recent_report(unit, slot)) |
| 1789 | return true; |
| 1790 | } |
| 1791 | return false; |
| 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 |