… | |
… | |
447 | */ |
447 | */ |
448 | while (owner->owner) |
448 | while (owner->owner) |
449 | owner = owner->owner; |
449 | owner = owner->owner; |
450 | |
450 | |
451 | this->owner = owner; |
451 | this->owner = owner; |
|
|
452 | } |
|
|
453 | |
|
|
454 | void |
|
|
455 | object::set_weapon (object *ob) |
|
|
456 | { |
|
|
457 | if (current_weapon == ob) |
|
|
458 | return; |
|
|
459 | |
|
|
460 | current_weapon = ob; |
|
|
461 | new_draw_info_format (NDI_UNIQUE, 0, this, "You switch to your %s.", &ob->name); |
|
|
462 | update_stats (); |
452 | } |
463 | } |
453 | |
464 | |
454 | /* Zero the key_values on op, decrementing the shared-string |
465 | /* Zero the key_values on op, decrementing the shared-string |
455 | * refcounts and freeing the links. |
466 | * refcounts and freeing the links. |
456 | */ |
467 | */ |