diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-09 09:52:57 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-09 09:52:57 +0100 |
commit | f0e2857d68a36f3db08912de918905e2c53225f3 (patch) | |
tree | 55d91e9bd2252d8f5e9284a31fbcc14573813048 | |
parent | c86e6321a7a31791cd57ae59110cfd7af50974b8 (diff) |
Remove pval from antimagic field strength calculation.
It doesn't make sense that an invisible item modifier
(e.g. pval on a plain Dark Sword found lying in the dungeon)
affects the anti-magic field strength. Another example
is the unenchanted Boomerang of Unmagic from Theme -- it
also has an invisible non-zero PVAL.
Signed-off-by: Bardur Arantsson <bardur@scientician.net>
-rw-r--r-- | changes.txt | 3 | ||||
-rw-r--r-- | src/xtra1.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/changes.txt b/changes.txt index 94767f8b..c740e5b3 100644 --- a/changes.txt +++ b/changes.txt @@ -1,6 +1,7 @@ T.o.M.E 2.3.7 (ah) -- +- Remove item pval from antimagic field strength calculation since it + may be both non-zero and invisible (to the player). T.o.M.E 2.3.6 (ah) diff --git a/src/xtra1.c b/src/xtra1.c index a091f768..37fa8cfe 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -2620,7 +2620,7 @@ void apply_flags(u32b f1, u32b f2, u32b f3, u32b f4, u32b f5, u32b esp, s16b pva if (f4 & (TR4_PRECOGNITION)) p_ptr->precognition = TRUE; - antimagic_mod = to_h + to_d + pval + to_a; + antimagic_mod = to_h + to_d + to_a; if (f4 & (TR4_ANTIMAGIC_50)) { |