1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2024-09-19 14:05:02 +01:00
notnotdnethack/include/gods.h
chris 420671e7b3 Bugfix: hell_safe_prayer allowed prayer by all but Neutrals
Oops. Clearly only partially completed.
2023-11-26 22:44:42 -05:00

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 */