diff options
author | DracoOmega <draco_omega@live.com> | 2014-01-21 17:18:34 -0330 |
---|---|---|
committer | DracoOmega <draco_omega@live.com> | 2014-01-21 17:58:53 -0330 |
commit | 45c03679f2dcbba166789f4c2e1491967487b437 (patch) | |
tree | dd8cb9b87f84410d7c23bf2993db5541b6ccb1c7 /crawl-ref/source/traps.cc | |
parent | 7281e07c72da1369f2fa67981bef978277339819 (diff) | |
download | crawl-ref-45c03679f2dcbba166789f4c2e1491967487b437.tar.gz crawl-ref-45c03679f2dcbba166789f4c2e1491967487b437.zip |
Don't making flying creatures/monsters completely immune to being netted
Not only does this seem rather unintuitive, there's actually specific
code to handle what happens when flying creatures get netted, except
that can never actually happen normally. (Well, they CAN get netted if
confused, but even then sometimes 'dart out from beneath the net')
The logic looked to me like it might have meant to give them a CHANCE
to evade due to flight, unless confused, rather than always evade due
to flight and sometimes do it even WHEN confused. At any rate, I don't
think it never working against flying things is very clear or a good idea.
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index ffb4ec041e..003aa3baac 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -347,7 +347,7 @@ void monster_caught_in_net(monster* mon, bolt &pbolt) return; } - if (mon->flight_mode() && (!mons_is_confused(mon) || one_chance_in(3))) + if (mon->flight_mode() && !mons_is_confused(mon) && one_chance_in(3)) { simple_monster_message(mon, " darts out from under the net!"); return; @@ -379,7 +379,7 @@ bool player_caught_in_net() if (you.body_size(PSIZE_BODY) >= SIZE_GIANT) return false; - if (you.flight_mode() && (!you.confused() || one_chance_in(3))) + if (you.flight_mode() && !you.confused() && one_chance_in(3)) { mpr("You dart out from under the net!"); return false; |