From fd8827b7a58a71239079a026a4f0c54b68fe328c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 15 Feb 2004 23:15:14 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix=20=C3=BCberh=C3=B6hte=20Magieresistenz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/magic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/kernel/magic.c b/src/common/kernel/magic.c index 345d80344..94d7b0779 100644 --- a/src/common/kernel/magic.c +++ b/src/common/kernel/magic.c @@ -1192,7 +1192,7 @@ magic_resistance(unit *target) double probability = target->race->magres; /* Magier haben einen Resistenzbonus vom Magietalent * 5%*/ - probability += effskill(target, SK_MAGIC)*0.5; + probability += effskill(target, SK_MAGIC)*0.05; /* Auswirkungen von Zaubern auf der Einheit */ c = get_curse(target->attribs, ct_find("magicresistance")); @@ -1237,7 +1237,7 @@ magic_resistance(unit *target) /* gesegneter Steinkreis gibt 30% dazu */ if (btype) probability += btype->magresbonus * 0.01; } - return (int)(probability*100); + return probability; } /* ------------------------------------------------------------- */