diff options
Diffstat (limited to 'src/gods.c')
-rw-r--r-- | src/gods.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -147,6 +147,23 @@ int wisdom_scale(int max) } /* + * Get deity info for a given god index. + * Returns NULL for the "atheist" god. + */ +deity_type *god_at(byte god_idx) +{ + assert(god_idx >= 0); + assert(god_idx < MAX_GODS); + + if (god_idx == 0) + { + return NULL; + } + + return &deity_info[god_idx]; +} + +/* * Check if god is enabled for the current module */ bool_ god_enabled(struct deity_type *deity) |