Daze fix

Discussion in 'General Modification' started by Raaagh, Aug 11, 2004.

Remove all ads!
  1. Raaagh

    Raaagh Member

    Joined:
    Dec 4, 2003
    Messages:
    46
    Likes Received:
    0
    The following line has to be added:

    target_level = target.obj.stat_level_get( stat_level )

    and change:

    if target.obj.get_size < STAT_SIZE_LARGE:

    into:

    if target_level < 5

    I don't know if python's less than tag checks for less than or less/equal than. But, that should fix the bug in the spell.

    If you want a single line fix, then you can just change "if target.obj.get_size < STAT_SIZE_LARGE:" into "if target.obj.stat_level_get( stat_level ) < 5". It should work, since I pretty much ripped the code from the average level function in utilities.py.

    Hope this helps.
     
  2. Raaagh

    Raaagh Member

    Joined:
    Dec 4, 2003
    Messages:
    46
    Likes Received:
    0
    Whoops. Turns out that the daze fix was already fixed. Heh.

    Speaking of which, haste.py was found in toee4.dat, but it doesn't appear in the override directory. Am I to assume that the game automatically extracts data from toee4? (The obvious answer would be yes :p)
     
    Last edited: Aug 11, 2004
Our Host!