void configure() { ::configure(); set_creator("chaos"); set_name("ganesha's_challenge"); set_desc("Ganesha's Challenge"); set_hint( "The wanderers of the world of " + World_Name + " called Travelers can issue a challenge from their deity, Ganesha, to " "those who wish to undertake such a task. Find a Traveler, receive a challenge, and complete it." ); set_points(5); set_difficulties(({ 3, 3, 3 }));
void configure() { ::configure(); set_creator("chaos"); set_requirement_name("celebration"); set_requirement_rarity(Rarity_Very_Rare); set_requirement_value(Travelers_Requirement_Value_Low); set_requirement_initialize_description("speaking Ganesha's name aloud while intoxicated and with at least three other celebrants nearby who are also intoxicated"); set_requirement_overcome_description("celebrated in Ganesha's name"); add_requirement_hook(Do_Speak, #'travelers_requirement_celebration_do_speak); set_requirement_eligibility_condition(([ Condition_Type_Code : Condition_Type_Trait, Condition_Info : Trait_Diet, Condition_Value : Diet_Ametabolic, Condition_Flags : Condition_Flag_Inverse, ])); }
int main(int argc, char **argv) #endif { #if defined(THINK_C) argc = process_dvi_command_line(&argv); #endif progname = *argv; Argc = argc; Argv = argv; getargs(); /* read command line arguments */ #if defined(THINK_C) if (inputfromfile) { #endif #if defined(MSDOS) || defined(WIN32) if ((DVIfile = fopen(DVIfilename, "rb")) == NULL) #else # if defined(VMS) if ((DVIfile = fopen(DVIfilename, "r","ctx=rec")) == NULL) # else if ((DVIfile = fopen(DVIfilename, "r")) == NULL) # endif #endif errorexit(filop); /* can't open dvifile */ #if defined(THINK_C) } else DVIfile = stdin; #endif if (outputtofile) { /* open the outfile, if needed */ if ((output = fopen(OUTfilename, "w")) == NULL) errorexit(filcr); #if defined(THINK_C) else set_creator((unsigned char*) OUTfilename); #endif #if !defined(MSDOS) && !defined(VMS) && !defined(THINK_C) pager = FALSE; #endif } else { output = stdout; #if !defined(MSDOS) && !defined(VMS) && !defined(THINK_C) if (pager && isatty(fileno(output))) { /* try to pipe to a pager */ if ((output = popen(path, "w")) == NULL) /* get pipe to pager */ errorexit(pipcr); /* make output to output */ } else pager = FALSE; #endif } dvimain(); #if !defined(MSDOS) && !defined(VMS) && !defined(THINK_C) if (pager) pclose(output); /* close pipe to pager */ #endif exit(0); } /* main */