Menu

#21 spell_holy_strength fix

open
nobody
Bugfixes (17)
5
2004-08-04
2004-08-04
No

spell_holy_strength was improperly altered in May,
resulting in completely random strength affects.

this is the fix.

Discussion

  • rick peplinski

    rick peplinski - 2004-08-04

    based on magic3.c 1.92

     
  • Gavin Hurlbut

    Gavin Hurlbut - 2004-08-04

    Logged In: YES
    user_id=19513

    This patch is not a bug fix, but rather changes how holy
    strength works entirely. Please don't call something a fix
    when it's actually a reimplement. :)

    Could you explain the intent of the new implementation so we
    can know if it fits in?

    Thanks.

     
  • rick peplinski

    rick peplinski - 2004-08-05

    updated help topic for the spell changes made to spell_holy_strength()

     
  • rick peplinski

    rick peplinski - 2004-08-05

    Logged In: YES
    user_id=910688

    Sorry, I got excited and bit off more than I should have.

    Anyway, the change follows an alignment based bonus rather
    than a straight 1d8.

    basically, divide the victim's alignment by 100 (currently is
    SELF_ONLY so paladin should be only target), rounding down
    (1000 align = 10, 940 align = 9, etc). This is the base
    modifier.

    If by some chance, the number is negative, there is a
    strength penalty applied.

    divide the base modifier by 1/2 rounded down, this is the
    strength modifier.
    the strength modifier is automatically granted by the spell and
    number(1,strength modifier) is added to it. That is the bonus
    granted by the spell.

    So, if you had a 1000 alignment, your range would be 6-10
    strength points. (1000 / 100 = 10 / 2 = 5 + 1d5)
    If you had a 999 alignment, your range would be 5-8
    (999/100 = 9 / 2 = 4 + 1d4)
    If you had a 700 alignment, your range would be 4-6 (700 /
    1000 = 7 / 2 = 3 + 1d3)

    Say that a paladin is routinely running in the 900's for
    alignment, the 1d8 average modifier he previously would have
    had would be 4.5 strength points. Now he would have 6.5,
    but still top out at 8 max.

    Essentially, I didn't really care about the amount of the
    modifier, I just wanted the paladin's spell to tie into the
    alignment somehow.

    Updated help topic is submitted.

     

Log in to post a comment.