84 LOG(
llevError,
"ERROR: Tried to add null god to list!\n");
116 for (i = RANDOM()%(god->
id)+1; god; god = god->
next)
121 LOG(
llevError,
"get_rand_god(): can't find a random god!\n");
134 if (godlnk && godlnk->
arch)
146 for (god =
first_god; god; god = godnext) {
164 fprintf(stderr,
"\n");
168 int tmpvar, gifts = 0;
170 fprintf(stderr,
"GOD: %s\n", god->
name);
171 fprintf(stderr,
" avatar stats:\n");
173 fprintf(stderr,
" lvl:%d speed:%4.2f\n", god->
level, god->
speed);
175 fprintf(stderr,
" enemy: %s\n", god->
title ? god->
title :
"NONE");
180 fprintf(stderr,
" lvl:%d speed:%4.2f\n", serv->
level, serv->
speed);
183 fprintf(stderr,
" servant: NONE\n");
184 fprintf(stderr,
" aligned_race(s): %s\n", god->
race);
185 fprintf(stderr,
" enemy_race(s): %s\n", (god->
slaying ? god->
slaying :
"none"));
187 fprintf(stderr,
"%s", tmpbuf);
188 snprintf(tmpbuf,
sizeof(tmpbuf),
" attacktype:");
190 strcat(tmpbuf,
"\n ");
193 strcat(tmpbuf,
"\n aura:");
195 strcat(tmpbuf,
"\n paths:");
197 strcat(tmpbuf,
"\n ");
201 strcat(tmpbuf,
"\n ");
205 strcat(tmpbuf,
"\n ");
208 fprintf(stderr,
"%s\n", tmpbuf);
209 fprintf(stderr,
" Desc: %s", god->
msg ? god->
msg :
"---\n");
210 fprintf(stderr,
" Priest gifts/limitations: ");
221 if (god->
last_heal) { gifts = 1; fprintf(stderr,
"\n hp regenerate at %d", god->
last_heal); }
222 if (god->
last_sp) { gifts = 1; fprintf(stderr,
"\n sp regenerate at %d", god->
last_sp); }
223 if (god->
last_eat) { gifts = 1; fprintf(stderr,
"\n digestion is %s (%d)", god->
last_eat < 0 ?
"slowed" :
"faster", god->
last_eat); }
224 if (god->
last_grace) { gifts = 1; fprintf(stderr,
"\n grace regenerates at %d", god->
last_grace); }
225 if (god->
stats.
luck) { gifts = 1; fprintf(stderr,
"\n luck is %d", god->
stats.
luck); }
226 if (!gifts) fprintf(stderr,
"NONE");
227 fprintf(stderr,
"\n\n");
#define DESCRIBE_PATH(retbuf, variable, name)
void free_string(sstring str)
struct archt * other_arch
void describe_resistance(const object *op, int newline, char *buf, size_t size)
#define DESCRIBE_ABILITY(retbuf, variable, name)
godlink * get_rand_god(void)
const object * pntr_to_god_obj(godlink *godlnk)
EXTERN godlink * first_god
#define QUERY_FLAG(xyz, p)
static void add_god_to_list(archetype *god_arch)
int snprintf(char *dest, int max, const char *format,...)
static godlink * init_godslist(void)
sstring add_string(const char *str)
void LOG(LogLevel logLevel, const char *format,...)
#define FLAG_REFL_MISSILE
EXTERN archetype * first_archetype