summaryrefslogtreecommitdiff
path: root/src/files.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-09 11:44:28 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-09 11:44:56 +0200
commit88a95bb6561ba7474f420fee1c73eeea18dfb1e4 (patch)
treef35a7e605e19cb33f1c71e50cbe1ae1df9c04a57 /src/files.c
parent4d4de63ce360e1b4fe6248b6e18ebd48f618d504 (diff)
Lua: Display character bonuses from gods properly
Diffstat (limited to 'src/files.c')
-rw-r--r--src/files.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/files.c b/src/files.c
index 4e1a1984..c52beef9 100644
--- a/src/files.c
+++ b/src/files.c
@@ -1595,6 +1595,48 @@ void player_flags(u32b *f1, u32b *f2, u32b *f3, u32b *f4, u32b *f5, u32b *esp)
if (p_ptr->grace > 10000) (*f1) |= TR1_STR;
}
+ GOD(GOD_AULE)
+ {
+ if (p_ptr->grace > 5000)
+ {
+ (*f2) |= TR2_RES_FIRE;
+ }
+ }
+
+ GOD(GOD_MANDOS)
+ {
+ (*f2) |= TR2_RES_NETHER;
+
+ if ((p_ptr->grace > 10000) &&
+ (p_ptr->praying == TRUE))
+ {
+ (*f3) |= TR3_NO_TELE;
+ }
+
+ if ((p_ptr->grace > 20000) &&
+ (p_ptr->praying == TRUE))
+ {
+ (*f4) |= TR4_IM_NETHER;
+ }
+ }
+
+ GOD(GOD_ULMO)
+ {
+ (*f5) |= TR5_WATER_BREATH;
+
+ if ((p_ptr->grace > 1000) &&
+ (p_ptr->praying == TRUE))
+ {
+ (*f2) |= TR2_RES_POIS;
+ }
+
+ if ((p_ptr->grace > 15000) &&
+ (p_ptr->praying == TRUE))
+ {
+ (*f5) |= TR5_MAGIC_BREATH;
+ }
+ }
+
/* Classes */
for (i = 1; i <= p_ptr->lev; i++)
{