mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2024-11-21 16:55:06 +00:00
420671e7b3
Oops. Clearly only partially completed.
36 lines
No EOL
1.3 KiB
C
36 lines
No EOL
1.3 KiB
C
/* gods.h */
|
|
/* NetHack Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef GODS_H
|
|
#define GODS_H
|
|
|
|
#include "align.h"
|
|
|
|
struct god {
|
|
const char * name;
|
|
aligntyp alignment;
|
|
int holiness;
|
|
int minionlist[20];
|
|
int anger;
|
|
int sacrifices; /* TODO: how much of a positive balance you have with this god for sac gifts */
|
|
};
|
|
|
|
struct crowning {
|
|
int godnum; /* god that grants this crowning */
|
|
int crowninggift; /* artifact */
|
|
const char * title; /* title displayed in enlightenment and dumplog */
|
|
const char * announcement; /* godvoice() announcement -- if godvoice is not used, 0 and special-cased */
|
|
const char * livelogstr; /* livelog string */
|
|
int title_mod; /* what should %s in the title be filled with? */
|
|
#define CRWN_TTL_LORD 1 /* Lord / Lady */
|
|
#define CRWN_TTL_KING 2 /* King / Queen */
|
|
#define CRWN_TTL_PRIE 3 /* Priest / Priestess */
|
|
#define CRWN_TTL_NAME 4 /* playername */
|
|
};
|
|
|
|
#define is_sarnath_god(godnum) (godnum == GOD_TAMASH || godnum == GOD_LOBON || godnum == GOD_ZO_KALAR)
|
|
#define hell_safe_prayer(p_god) (galign(p_god) == A_VOID || p_god == GOD_LOLTH || (u.ualign.god == p_god && uarmh && uarmh->oartifact == ART_MITRE_OF_HOLINESS))
|
|
|
|
|
|
#endif /* GODS_H */ |