| 1174 | } |
| 1175 | |
| 1176 | staticfn void |
| 1177 | mon_invent_chain( |
| 1178 | winid win, |
| 1179 | const char *src, |
| 1180 | struct monst *chain, |
| 1181 | long *total_count, long *total_size) |
| 1182 | { |
| 1183 | char buf[BUFSZ]; |
| 1184 | long count = 0, size = 0; |
| 1185 | struct monst *mon; |
| 1186 | |
| 1187 | for (mon = chain; mon; mon = mon->nmon) |
| 1188 | count_obj(mon->minvent, &count, &size, TRUE, FALSE); |
| 1189 | |
| 1190 | if (count || size) { |
| 1191 | *total_count += count; |
| 1192 | *total_size += size; |
| 1193 | Sprintf(buf, template, src, count, size); |
| 1194 | putstr(win, 0, buf); |
| 1195 | } |
| 1196 | } |
| 1197 | |
| 1198 | staticfn void |
| 1199 | contained_stats( |
no test coverage detected