diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-08 19:14:45 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-08 19:14:45 +0000 |
commit | 2408978589f3e2b17fb874dc88137a7c0747af7c (patch) | |
tree | 81cc0c2c718b6f34e37800ae0d130de461fe8b3d /crawl-ref/source | |
parent | 4e0609a0e27bcb3757d564df6a23a04c7f94cec7 (diff) | |
download | crawl-ref-2408978589f3e2b17fb874dc88137a7c0747af7c.tar.gz crawl-ref-2408978589f3e2b17fb874dc88137a7c0747af7c.zip |
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5602 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/player.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/xom.cc | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index d439f3fd12..0033a257f9 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -1423,7 +1423,7 @@ int player_res_electricity(bool calc_unid) if (you.attribute[ATTR_TRANSFORMATION] == TRAN_AIR) re += 2; // multiple levels currently meaningless - if (you.attribute[ATTR_DIVINE_LIGHTNING_PROTECTION] > 0) + if (you.attribute[ATTR_DIVINE_LIGHTNING_PROTECTION]) re = 3; else if (re > 1) re = 1; diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index 88e8bb6db0..13bb3f4dcf 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -725,8 +725,7 @@ static bool xom_is_good(int sever) } else if (random2(sever) <= 11) { - if (player_in_a_dangerous_place()) - if (you.hp <= random2(201)) + if (you.hp <= random2(201) && player_in_a_dangerous_place()) you.attribute[ATTR_DIVINE_LIGHTNING_PROTECTION] = 1; mpr("The area is suffused with divine lightning!"); |