| 1122 | } |
| 1123 | |
| 1124 | static df::unit_wound* getWound(df::unit* attacker, df::unit* defender) { |
| 1125 | for (auto wound : defender->body.wounds) { |
| 1126 | if ( wound->age <= 1 && wound->attacker_unit_id == attacker->id ) { |
| 1127 | return wound; |
| 1128 | } |
| 1129 | } |
| 1130 | return nullptr; |
| 1131 | } |
| 1132 | |
| 1133 | static void manageUnitAttackEvent(color_ostream& out) { |
| 1134 | if (!df::global::world) |
no outgoing calls
no test coverage detected