… | |
… | |
1194 | buf.printf ("It is made of: %s.\n", &materialname); |
1194 | buf.printf ("It is made of: %s.\n", &materialname); |
1195 | |
1195 | |
1196 | if (who) |
1196 | if (who) |
1197 | /* Where to wear this item */ |
1197 | /* Where to wear this item */ |
1198 | for (int i = 0; i < NUM_BODY_LOCATIONS; i++) |
1198 | for (int i = 0; i < NUM_BODY_LOCATIONS; i++) |
1199 | if (body_info [i]) |
1199 | if (slot[i].info) |
1200 | { |
1200 | { |
1201 | buf << "It goes "; |
1201 | buf << "It goes "; |
1202 | buf << (who->body_info[i] ? body_locations[i].use_name : body_locations[i].nonuse_name); |
1202 | buf << (who->slot[i].info ? body_locations[i].use_name : body_locations[i].nonuse_name); |
1203 | |
1203 | |
1204 | if (body_info[i] < -1 && who->body_info[i]) |
1204 | if (slot[i].info < -1 && who->slot[i].info) |
1205 | buf.printf ("(%d)", -body_info[i]); |
1205 | buf.printf ("(%d)", -slot[i].info); |
1206 | |
1206 | |
1207 | buf << ".\n"; |
1207 | buf << ".\n"; |
1208 | } |
1208 | } |
1209 | |
1209 | |
1210 | if (weight) |
1210 | if (weight) |