--- deliantra/server/include/object.h 2007/04/30 04:25:30 1.112 +++ deliantra/server/include/object.h 2007/05/03 10:39:46 1.115 @@ -276,6 +276,7 @@ MTH void set_owner (object *owner); MTH void set_speed (float speed); + MTH void set_weapon (object *ob); MTH void open_container (object *new_container); MTH void close_container () @@ -297,8 +298,7 @@ // info must hold 256 * 3 bytes currently const char *debug_desc (char *info) const; - MTH const char *debug_desc () const; - const char *debug_desc2 () const; // another debug_desc, pure convinience function + MTH const char *debug_desc () const; // uses at least 3 round-robin buffers const char *flag_desc (char *desc, int len) const; int number_of () const @@ -334,6 +334,7 @@ MTH bool is_arrow () const { return type == ARROW || (type == SPELL_EFFECT && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } + MTH bool is_range () const { return type == BOW || type == ROD || type == WAND || type == HORN; } MTH bool has_active_speed () const { return FABS(speed) >= MIN_ACTIVE_SPEED; }