… | |
… | |
431 | object_freezer freezer; |
431 | object_freezer freezer; |
432 | op->write (freezer); |
432 | op->write (freezer); |
433 | return freezer.as_string (); |
433 | return freezer.as_string (); |
434 | } |
434 | } |
435 | |
435 | |
|
|
436 | char * |
|
|
437 | object::as_string () |
|
|
438 | { |
|
|
439 | return dump_object (this); |
|
|
440 | } |
|
|
441 | |
436 | /* |
442 | /* |
437 | * get_nearest_part(multi-object, object 2) returns the part of the |
443 | * get_nearest_part(multi-object, object 2) returns the part of the |
438 | * multi-object 1 which is closest to the second object. |
444 | * multi-object 1 which is closest to the second object. |
439 | * If it's not a multi-object, it is returned. |
445 | * If it's not a multi-object, it is returned. |
440 | */ |
446 | */ |
… | |
… | |
555 | update_stats (); |
561 | update_stats (); |
556 | |
562 | |
557 | new_draw_info_format (NDI_UNIQUE, 0, this, |
563 | new_draw_info_format (NDI_UNIQUE, 0, this, |
558 | "You try to balance all your items at once, " |
564 | "You try to balance all your items at once, " |
559 | "but the %s is just too much for your body. " |
565 | "but the %s is just too much for your body. " |
560 | "[You need to unapply some items first.]", &ob->name); |
566 | "[You need to unapply some items first - use the 'body' command to see " |
|
|
567 | "how many items you cna wera on a specific body part.]", &ob->name); |
561 | return false; |
568 | return false; |
562 | } |
569 | } |
563 | |
570 | |
564 | //new_draw_info_format (NDI_UNIQUE, 0, this, "You switch to your %s.", &ob->name); |
571 | //new_draw_info_format (NDI_UNIQUE, 0, this, "You switch to your %s.", &ob->name); |
565 | } |
572 | } |