ldmud-3.3.719/
ldmud-3.3.719/doc/
ldmud-3.3.719/doc/efun.de/
ldmud-3.3.719/doc/efun/
ldmud-3.3.719/doc/man/
ldmud-3.3.719/doc/other/
ldmud-3.3.719/mud/
ldmud-3.3.719/mud/heaven7/
ldmud-3.3.719/mud/lp-245/
ldmud-3.3.719/mud/lp-245/banish/
ldmud-3.3.719/mud/lp-245/doc/
ldmud-3.3.719/mud/lp-245/doc/examples/
ldmud-3.3.719/mud/lp-245/doc/sefun/
ldmud-3.3.719/mud/lp-245/log/
ldmud-3.3.719/mud/lp-245/obj/Go/
ldmud-3.3.719/mud/lp-245/players/lars/
ldmud-3.3.719/mud/lp-245/room/death/
ldmud-3.3.719/mud/lp-245/room/maze1/
ldmud-3.3.719/mud/lp-245/room/sub/
ldmud-3.3.719/mud/lp-245/secure/
ldmud-3.3.719/mud/sticklib/
ldmud-3.3.719/mud/sticklib/src/
ldmud-3.3.719/mudlib/deprecated/
ldmud-3.3.719/mudlib/uni-crasher/
ldmud-3.3.719/pkg/
ldmud-3.3.719/pkg/debugger/
ldmud-3.3.719/pkg/diff/
ldmud-3.3.719/pkg/misc/
ldmud-3.3.719/src/
ldmud-3.3.719/src/autoconf/
ldmud-3.3.719/src/ptmalloc/
ldmud-3.3.719/src/util/
ldmud-3.3.719/src/util/erq/
ldmud-3.3.719/src/util/indent/hosts/next/
ldmud-3.3.719/src/util/xerq/
ldmud-3.3.719/src/util/xerq/lpc/
ldmud-3.3.719/src/util/xerq/lpc/www/
ldmud-3.3.719/test/generic/
ldmud-3.3.719/test/inc/
ldmud-3.3.719/test/t-0000398/
ldmud-3.3.719/test/t-0000548/
ldmud-3.3.719/test/t-030925/
ldmud-3.3.719/test/t-040413/
ldmud-3.3.719/test/t-041124/
ldmud-3.3.719/test/t-language/
/* death.c */
/* Mrpr 901120 */

inherit "obj/monster";

/*
 * Function name: init
 * Description:   Init Death
 */
void  init()
{

	::init();
	add_action("take_it", "take");

}

/*
 * Function name: reset
 * Description:   Reset Death
 */
void reset(int arg)
{

	::reset(arg);

	if (arg)
		return;

	set_name("death");
	set_alias("moot"); /* ME m(w)t */
	set_living_name("moot"); /* ME m(w)t */
	set_level(999);
	set_race("immortal");
	set_short("Death, clad in black");
	set_ac(50);
	set_wc(50);

}

/*
 * Function name: long
 * Description:   Long description
 */
int long(string str)
{
	
	if (str == "death" || str == "moot")
	{
		write("Death seems to have taken Jane Fonda's exercise and diet program much too\n" +
			"seriously. A clear case of Anorexia Neurosa. Except for a wicked looking scythe\n" +
			"he's dressed in a black hooded robe that suits him admireably well. There's\n" +
			"something about his eyes as well, or maybe the lack of eyes, that you \n" +
			"feel you'd better not investigate too closely.\n");
		return 1;
	}

	if (str == "scythe")
	{
		write("An extremly sharpened scythe. It's so sharp that gusts of wind actually try\n" +
			"to turn away from the edge rather than be sliced in two by the wicked looking\n" +
			"blade. It does strange things with light as well as unlucky photons split into\n" +
			"their sub-components when they hit the blade.\n");
		return 1;
	}

	if (str == "robe")
	{
		write("A black hooded robe with numerous pockets. It doesn't seem to fit you very\n" +
			"well however. It seems to have been tailored for a very lean customer.\n" +
			"VERY lean actually...\n");
		return 1;
	}

	return 0;

}

/*
 * Function name: id
 * Description:   Identifies death and his belongings.
 */
int id(string str)
{

	return str == "death" || str == "moot" || str == "scythe" || str == "robe";

}

/*
 * Function name: take_it
 * Description:   Try to take something from death.
 */
int take_it(string str)
{

	string name;
	int extra;

	name = capitalize(this_player()->query_real_name());
	extra = random(90) + 10;

	if (str == "scythe" || str == "robe")
	{

		write("You take a firm grip on the " + str + " and try to pull it towards you.\n" +
			"Death frowns, raps you smartly across your fingers with a bony hand and says:\n" +
			"STUPID MORTAL. YOU JUST EARNED " + extra + " EXTRA YEARS IN PURGATORY!\n");

		return 1;

	}

}