--- deliantra/server/common/object.C 2007/05/01 05:48:20 1.143 +++ deliantra/server/common/object.C 2007/05/03 10:39:46 1.144 @@ -451,6 +451,17 @@ this->owner = owner; } +void +object::set_weapon (object *ob) +{ + if (current_weapon == ob) + return; + + current_weapon = ob; + new_draw_info_format (NDI_UNIQUE, 0, this, "You switch to your %s.", &ob->name); + update_stats (); +} + /* Zero the key_values on op, decrementing the shared-string * refcounts and freeing the links. */