Numbers do not change

● ARCHIVED · READ-ONLY
Started by Red_Nova 6 posts View original ↗
  1. For some reason, if an actor's HP or MP is at or below 20, the current value does not change. Here's an example:

    Spoiler
    d0a9c14b6328dd855fec677c7625f248.png

    Any idea how to fix this?
  2. What scripts are you using?
  3. Oops, should have mentioned that. Sorry!

    Other than what comes with the Luna Base (the new version that came out with the 10/24 update), nothing new. 
  4. Ok we found the bug (I can't believe we missed that) and we'll be trying to implement a patch soon!
  5. Okay here's the fix!


    On Battle Luna, Line 1632, change

    Code:
    rate = [(@number.to_i - real_number.to_i).abs, rate.to_i].min
    to
    Code:
    rate = [(@number.to_i - real_number.to_i).abs, rate.ceil].min
    Reasons for the bug: if max HP is less than 20, the rate (which is currently 0.05) will give a number less than 1, which to_i will floor to 0
  6. Works perfectly! Thanks!