cleric_vote.c

nightmare3_fluffos_v2/lib/domains/Praxis/standardOld/cleric_vote.c · 986 B

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

#include <std.h>
#include <voting.h>
#include <daemons.h>

inherit "/std/vote_room";

void create() {
    ::create();
    set_property("light", 1);
    set_property("no castle", 1);
    set_property("indoors", 1);
    set_short( "Voting hall of the clerics");
    set_long( (: this_object(), "new_long" :));
    set_items(
	(["list" : "During election time, it lists all candidates."]) );
    set_exits( 
	      (["west" : "/domains/Praxis/cleric_hall"]) );
}

string new_long() {
    if(VOTING_D->election_day()) 
      return "This is the room where Clerics can put in their bid for office. "
          "If you wish to run for office, just type in the command "
          "'enter' and you will be added to the list.  A list of candidates "
      "is posted on the wall.  Type 'list candidates' to see the list.";
    else return "This is the voting chamber of the Hall of Clerics.  "
      "Clerics will gather here for the next election: "+(string)VOTING_D->query_vote_date()+".";
}

Site Stats

Snippets: 1791
Codebases: 571