diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-09-14 06:03:01 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-09-14 17:30:47 +0200 |
commit | 47fb7807d77c92fa6e72017501d9355d780adf40 (patch) | |
tree | 8a4d73b5cedc967742b3711951b47673002b0b34 /src/xtra1.cc | |
parent | f2de788fc3929f3cf05e9f3a69818393e7054dc5 (diff) |
Remove TR4_ANTIMAGIC_{30,20,10} flags
They're only used for the Antimagic realm of leveling items and we
might as well use ANTIMAGIC_50 there, given the rarity of the flag.
Diffstat (limited to 'src/xtra1.cc')
-rw-r--r-- | src/xtra1.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/xtra1.cc b/src/xtra1.cc index 25cf66e7..87ecd62f 100644 --- a/src/xtra1.cc +++ b/src/xtra1.cc @@ -2691,37 +2691,6 @@ void apply_flags(u32b f1, u32b f2, u32b f3, u32b f4, u32b f5, u32b esp, s16b pva if (tmp > 0) p_ptr->antimagic_dis += tmp; } - if (f4 & (TR4_ANTIMAGIC_30)) - { - s32b tmp; - - tmp = 7 + get_skill_scale(SKILL_ANTIMAGIC, 33) - antimagic_mod; - if (tmp > 0) p_ptr->antimagic += tmp; - - tmp = 1 + get_skill_scale(SKILL_ANTIMAGIC, 2) - antimagic_mod / 15; - if (tmp > 0) p_ptr->antimagic_dis += tmp; - } - - if (f4 & (TR4_ANTIMAGIC_20)) - { - s32b tmp; - - tmp = 5 + get_skill_scale(SKILL_ANTIMAGIC, 15) - antimagic_mod; - if (tmp > 0) p_ptr->antimagic += tmp; - - p_ptr->antimagic_dis += 2; - } - - if (f4 & (TR4_ANTIMAGIC_10)) - { - s32b tmp; - - tmp = 1 + get_skill_scale(SKILL_ANTIMAGIC, 9) - antimagic_mod; - if (tmp > 0) p_ptr->antimagic += tmp; - - p_ptr->antimagic_dis += 1; - } - if (f4 & (TR4_AUTO_ID)) { p_ptr->auto_id = TRUE; |