--- deliantra/server/include/object.h 2009/09/01 21:59:55 1.205 +++ deliantra/server/include/object.h 2009/09/16 23:22:50 1.207 @@ -494,6 +494,8 @@ / dominant_material ()->density; } + MTH bool is_arch () const { return this == (const object *)(const archetype *)arch; } + MTH bool is_wiz () const { return flag [FLAG_WIZ]; } MTH bool is_weapon () const { return type == ARROW || type == BOW || type == WEAPON; } MTH bool is_armor () const { return type == ARMOUR || type == SHIELD || type == HELMET @@ -599,10 +601,10 @@ // returns the player that cna see this object, if any MTH object *visible_to () const; - MTH std::string long_desc (object *who = 0); + MTH std::string long_desc (object *who = 0); // query_name . " " . describe MTH std::string describe_monster (object *who = 0); MTH std::string describe_item (object *who = 0); - MTH std::string describe (object *who = 0); + MTH std::string describe (object *who = 0); // long description, without name MTH const char *query_weight () { return ::query_weight (this); } MTH const char *query_name () { return ::query_name (this); }