From ed84ccef19ccd35e41950c30c3ef9a694d974d2b Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 27 Jan 2015 14:08:28 -0500 Subject: [PATCH] Make barriers more resistant to dispel barrier in towns with strong barriers (Previously the only effect of strong barriers was that monsters can't break them.) --- src/boe.party.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boe.party.cpp b/src/boe.party.cpp index fedb164a7..d2cf2e9fc 100644 --- a/src/boe.party.cpp +++ b/src/boe.party.cpp @@ -1514,7 +1514,7 @@ void cast_town_spell(location where) { case eSpell::DISPEL_BARRIER: if((univ.town.is_fire_barr(where.x,where.y)) || (univ.town.is_force_barr(where.x,where.y))) { - r1 = get_ran(1,1,100) - 5 * adj + 5 * (univ.town.difficulty / 10); + r1 = get_ran(1,1,100) - 5 * adj + 5 * (univ.town.difficulty / 10) + 25 * univ.town->strong_barriers; if(univ.town.is_fire_barr(where.x,where.y)) r1 -= 8; if(r1 < (120 - combat_percent[min(19,univ.party[who_cast].level)])) {