diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-03-22 13:05:39 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-03-22 13:05:39 +0100 |
commit | b11197ae79d621c50d89f6a092a3f95f954712f0 (patch) | |
tree | 44b20f31bc6b4f946d2f4fb6c19afdce558a34f2 /src/gods.cc | |
parent | fb2a78c52a32026a57fd9cc7763a783456199dd7 (diff) |
Inline various GOD macros
Diffstat (limited to 'src/gods.cc')
-rw-r--r-- | src/gods.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gods.cc b/src/gods.cc index be877905..abb10c13 100644 --- a/src/gods.cc +++ b/src/gods.cc @@ -93,7 +93,7 @@ void follow_god(int god, bool_ silent) p_ptr->pgod = god; /* Melkor offer Udun magic */ - GOD(GOD_MELKOR) + if (p_ptr->pgod == GOD_MELKOR) { s_info[SKILL_UDUN].hidden = FALSE; if (!silent) msg_print("You feel the dark powers of Melkor in you. You can now use the Udun skill."); @@ -203,3 +203,8 @@ int find_god(cptr name) } return -1; } + +bool praying_to(int god) +{ + return (p_ptr->pgod == god) && p_ptr->praying; +} |