From aaf35991589f4d2dc1c23a91c1859b646bfec007 Mon Sep 17 00:00:00 2001 From: Fate Date: Sat, 31 Jan 2009 10:09:07 -0700 Subject: Made levelling up in life magic practical. --- conf/magic.conf.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conf') diff --git a/conf/magic.conf.template b/conf/magic.conf.template index f1690473..092402a6 100644 --- a/conf/magic.conf.template +++ b/conf/magic.conf.template @@ -63,10 +63,10 @@ PROCEDURE sfx_generic(target) = PROCEDURE set_var(name, mask, shift, value) = set_script_variable(caster, name, script_int(caster, name) & (neg (mask << shift)) | ((value & mask) << shift)); -PROCEDURE gain_heal_xp(value, gain) = # `gain' influences the likelihood of an increase +PROCEDURE gain_heal_xp(value, gain) = # `value' influences the likelihood of an increase last_heal_xp = (script_int(caster, SCRIPT_XP) >> SCRIPT_HEALSPELL_SHIFT) & SCRIPT_HEALSPELL_MASK; IF (target <> caster - && value > (20 + last_heal_xp + random(last_heal_xp + 1) + random(last_heal_xp + 1))) + && value > (10 + last_heal_xp + random(last_heal_xp + 1) + random(last_heal_xp + 1))) THEN ( heal_xp = last_heal_xp + gain; IF (heal_xp > SCRIPT_HEALSPELL_MASK) -- cgit v1.2.3-60-g2f50