furniture_key.c

dw_fluffos_v1/lib/obj/misc/locks/furniture_key.c · 621 B

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

inherit "/std/key";

void set_lock_number(int num) {
   set_key("small furniture", "furniture_lock_" + num);
   set_long("A small key, it looks like it would be "
            "suitable for a piece of furniture.\n");
   set_value(10);
} /* set_lock_number() */

// This is the func name other keys and the shops use...
void set_key_number( int num ){
  set_lock_number(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