health_vial_lesser.c

skylib_fluffos_v3/mudlib/obj/vessels/health_vial_lesser.c · 695 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("pale green vial");
  set_adjectives(({"pale", "green"}));
  set_long("A slender cylinder of palest green, the "
           "crystal comprising this vial captures "
           "light delicately within it's slightly "
           "translucent surface.  Attached to the "
           "open end on a delicate filigree chain is "
           "a small, perfectly fitting crystal stopper.\n");
  set_max_volume(120);
}

int query_value() {
  if(!clonep(TO)) return 3400;
  if(sizeof(INV(TO)) == 0) return 10;
  if(!sizeof(filter(INV(TO),
              (: $1->query_property("healing_potion") :)))) {
    return 10;
  }
  return 3400;
}

Site Stats

Snippets: 1791
Codebases: 571