/* money.c
Copyright (C) 1994-2000 Annihilator
This program is a part of ES2 mudlib. Permission is granted to use,
modify, copy or distribute this program provided this copyright notice
remains intact and subject to the restriction that this program MAY
NOT be used in any way for monetary gain.
Details of terms and conditions is available in the Copyright.ES2 file.
If you don't receive this file along with this program, write to the
primary author of ES2 mudlib: Annihilator
*/
inherit COMBINED_ITEM;
int value() { return query_amount() * (int)query("base_value"); }
string query_autoload() { return query_amount() + ""; }
void autoload(string param)
{
int amt;
if( sscanf(param, "%d", amt)==1 )
set_amount(amt);
}
void setup()
{
set("value", (: value :));
::setup();
}