life_vial_lesser.c

skylib_fluffos_v3/mudlib/obj/vessels/life_vial_lesser.c · 627 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

inherit BOTTLE_OBJ;

void setup() {
  set_name("vial");
  set_short("green vial");
  set_adjectives(({"green"}));
  set_long("This slim green vial seems to be made of a green crystal "
           "shard.  It has a stopper chained to one end.\n");
  set_max_volume(150);
  add_property("stealing_is_bad", 1);
}

int query_value() {
  if(!clonep(TO)) {
    return 90000;
  }
  if(sizeof(INV(TO)) != 1) {
    remove_property("stealing_is_bad");
    return 10;
  }
  if(!INV(TO)[0]->query_property("life_potion")) {
    remove_property("stealing_is_bad");
    return 10;
  }
  add_property("stealing_is_bad", 1);
  return 90000;
}

Site Stats

Snippets: 1791
Codebases: 571