viewing paste Unknown #20845 | Text

Posted on the
1 2 3 4 5 6 7
                                        {
                                                //Overflow check. [Skotlex]
                                                unsigned int ratio = skillratio + 100*(8 + st->sp/10);
                                                //You'd need something like 6K SP to reach this max, so should be fine for most purposes.
                                                if (ratio > 60000) ratio = 60000; //We leave some room here in case skillratio gets further increased.
                                                skillratio = (unsigned short)ratio;
                                        }
Viewed 601 times, submitted by unknown.