package.c

dw_fluffos_v1/lib/obj/package.c · 650 B

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

/*  -*- LPC -*-  */
/*
 * $Locker:  $
 * $Id: package.c,v 1.1 1999/07/28 19:03:35 ceres Exp $
 * 
*/
/**
 * 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