| 4488 | |
| 4489 | /* find any damage shopkeeper shkp could repair. returns NULL is none found */ |
| 4490 | staticfn struct damage * |
| 4491 | find_damage(struct monst *shkp) |
| 4492 | { |
| 4493 | struct damage *dam = svl.level.damagelist; |
| 4494 | |
| 4495 | if (shk_impaired(shkp)) |
| 4496 | return NULL; |
| 4497 | |
| 4498 | while (dam) { |
| 4499 | if (repairable_damage(dam, shkp)) |
| 4500 | return dam; |
| 4501 | |
| 4502 | dam = dam->next; |
| 4503 | } |
| 4504 | |
| 4505 | return NULL; |
| 4506 | } |
| 4507 | |
| 4508 | staticfn void |
| 4509 | discard_damage_struct(struct damage *dam) |
no test coverage detected