package.c

skylib_fluffos_v3/mudlib/obj/package.c · 549 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/**
 * Basic inheritable for a package. The main difference between this and
 * /obj/baggage is that the value of this is the sum of the values of the
 * items in the package.
 *
 * @author ceres
 */
inherit "/obj/baggage";

int query_value() {
  int value;
  object ob;

  value = ::query_value();

  foreach(ob in all_inventory())
    value += ob->query_value();

  return value;
}

/** @ignore yes */
mixed query_static_auto_load() {
  if ( base_name(this_object()) + ".c" == __FILE__ )
    return int_query_static_auto_load();
  return ([ ]);
}

Site Stats

Snippets: 1791
Codebases: 571