32 lines
742 B
C
32 lines
742 B
C
#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());
|
|
}
|
|
}
|
|
void init(){
|
|
::init();
|
|
}
|