--- deliantra/server/include/object.h 2010/04/03 02:29:40 1.232 +++ deliantra/server/include/object.h 2010/04/04 20:00:05 1.234 @@ -35,7 +35,8 @@ typedef int tag_t; // also see common/item.C -enum { +enum +{ body_skill, body_combat, body_range, @@ -285,6 +286,16 @@ const_utf8_string query_short_name (const object *op); const_utf8_string query_name (const object *op); const_utf8_string query_base_name (const object *op, int plural); +sint64 query_cost (const object *tmp, object *who, int flag); +const char *query_cost_string (const object *tmp, object *who, int flag); + +int change_ability_duration (object *spell, object *caster); +int min_casting_level (object *caster, object *spell); +int casting_level (object *caster, object *spell); +sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); +int SP_level_dam_adjust (object *caster, object *spob); +int SP_level_duration_adjust (object *caster, object *spob); +int SP_level_range_adjust (object *caster, object *spob); struct object : zero_initialised, object_copy { @@ -605,6 +616,9 @@ return !!contr; } + /* elmex: this method checks whether the object is in a shop */ + MTH bool is_in_shop () const; + MTH bool affects_los () const { return glow_radius || flag [FLAG_BLOCKSVIEW];