… | |
… | |
419 | */ |
419 | */ |
420 | const char * |
420 | const char * |
421 | query_weight (const object *op) |
421 | query_weight (const object *op) |
422 | { |
422 | { |
423 | static char buf[10]; |
423 | static char buf[10]; |
424 | sint32 i = (op->nrof ? op->nrof : 1) * op->weight + op->carrying; |
424 | sint32 i = op->total_weight (); |
425 | |
425 | |
426 | if (op->weight < 0) |
426 | if (op->weight < 0) |
427 | return " "; |
427 | return " "; |
428 | |
428 | |
429 | if (i % 1000) |
429 | if (i % 1000) |
… | |
… | |
1194 | } |
1194 | } |
1195 | |
1195 | |
1196 | void |
1196 | void |
1197 | examine (object *op, object *tmp) |
1197 | examine (object *op, object *tmp) |
1198 | { |
1198 | { |
1199 | std::string s = tmp->describe (op); |
1199 | std::string info = tmp->describe (op); |
1200 | |
1200 | op->contr->infobox (MSG_CHANNEL ("examine"), info.c_str ()); |
1201 | new_draw_info (NDI_UNIQUE, 0, op, s.c_str ()); |
|
|
1202 | } |
1201 | } |
1203 | |
1202 | |
1204 | /* |
1203 | /* |
1205 | * inventory prints object's inventory. If inv==NULL then print player's |
1204 | * inventory prints object's inventory. If inv==NULL then print player's |
1206 | * inventory. |
1205 | * inventory. |