Monster level is not always reflected correctly

Issue #5 resolved
Shawn Falkner-Horine created an issue

For a given team, the monster levels are not all reflected correctly -- specifically, half of them are displayed as one level less than their actual level in PADherder.

Two screenshots are attached below -- one shows team #118643 in PADherder with monster levels displayed, the other shows the corresponding levels that are displayed in PadSpike.

Lu Bu, Belial, Luci, and Sonia levels are correct. Persephone and Shiva levels are one less than they should be.

screenshot_pad.png

screenshot_padspike.png

Comments (3)

  1. Jean-Paul Cato repo owner

    Thank you for bringing this up, I'll look into it. Have you noticed it with any other teams?

  2. Wes Chao

    Found a way to reproduce this consistently:

    In PadHerder, manually add a Dark Liege, Vampire Duke to your monsters, with level 75. Add this monster to a team and load it in PadSpike. The level shows up as 74.

    If you increase the xp by 1, it correctly shows as 75. Decrease the xp by 1, it's back to 74.

    Plugging the formula for XP into Excel, we get the following values:

    1981865 = 74.99999772
    1981866 = 75.00001266
    

    Repeating this for L48 Persephone and L73 Shiva yields similar results:

    671580 = 48.99999375
    671581 = 49.00002234
    
    1850657 = 72.99999278
    1850658 = 73.00000834
    

    So...I don't really know what's going on here. I thought maybe the calculation is rounding off to four significant digits and taking the floor, but that isn't right since lowering the xp value by 1 would also cause it to round up. It isn't rounding to five significant digits, either, as that would produce different results for Persephone and Shiva. The only thing I can see that works is "round to five significant digits, if all 9s, round up, otherwise take the floor", but that sounds goofy, and why would they do it that way?

    I guess we could just ask Freddie how Padherder does it.

  3. Jean-Paul Cato repo owner

    Fixed, I think? There are a couple other XP Curve/XP Value combos that might fall through, so the XP to Level formula may need revisiting in the future. Rounding from 6 significant digits seems good enough for now, though.

  4. Log in to comment