bank_vault.c
ds2.4.1/lib/domains/Praxis/bank_vault.c · 661 B
From the archive ds2.4.1.zip
Download the archive « Back to the archive contents
#include <lib.h>
inherit LIB_ROOM;
void create() {
::create();
SetProperty("light", 2);
SetProperty("indoors", 1);
SetShort( "The bank vault");
SetLong(
"The Praxis Bank keeps all cash it has on hand in this otherwise "
"empty vault. The door on the south end leads to the lobby.");
SetExits(
(["south" : "/domains/Praxis/bank"]) );
}
void reset() {
object money;
::reset();
if(!present("money")) {
money = new("/std/lib/pile");
money->SetCurrency("platinum", random(10));
money->SetCurrency("gold", random(100));
money->SetCurrency("electrum", random(200));
money->move(this_object());
}
}