sand.c

skylib_fluffos_v3/mudlib/obj/media/sand.c · 965 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/*  -*- LPC -*-  */
inherit "/obj/cont_medium";

/* One unit = 1 grain of sand.  About.  I'm roughing this
 * heavily.
 */
void setup()
{
  set_name("sand");
  set_short("sand");
  add_adjective( ({ "some", "grain", "pinch", "measure", "handful",
    "hatful", "beach", "of" }) );
  set_long("This is $pile_size$ of sand, $amount_size$.\n");
  add_property("determinate", "some ");
  set_weight_unit( ({ 1, 1000 }) ); /* 1000 grains in 50 grams? */
  set_value_scale( 0.00001 ); /* "cheap as sand" */
  set_medium_alias("BeachAndDesertSand");
  set_pile_name("pile");
  set_amount_types( ([
    "grain": ({ 1, "grains" }),
    "pinch": ({ 40, "pinches" }),
    "measure": ({ 200, "measures" }),
    "handful": ({ 10000, "handfuls" }),
    "hatful": ({ 50000, "hatfuls" }),
    "beach": ({ 1000000, "beaches" }),
    ]) );
  set_pile_types( ({
    40, "tiny",
    10000, "small",
    50000, "medium",
    200000, "large",
    "huge"
    }) );
  set_amount(12000);
}

Site Stats

Snippets: 1791
Codebases: 571