brass_door_key.c

dw_fluffos_v1/lib/obj/misc/locks/brass_door_key.c · 485 B

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

inherit "/std/key";

void set_key_number(int num) {
   set_key("small brass", "door_lock_" + num);
   set_long("A small brass key.  It has a serial number " +
            num + " engraved on it.\n");
   set_value(10);
} /* set_key_num() */

mapping query_static_auto_load() {
   return int_query_static_auto_load();
} /* query_static_auto_load() */

/**
 * Allows the keys to be duplicated if it returns 1.
 * @return always returns 1
 */
int query_duplicatable_key() {
   return 1;
}

Site Stats

Snippets: 1791
Codebases: 571