Quote:
Originally Posted by loramin
[You must be logged in to view images. Log in or Register.]
P.S. The relevant file (for anyone who is curious) is "Magelo_body.php" in the " Magelo" folder. Even if you don't know PHP, but you have some programming background, the code is fairly straightforward and most programmers should be able to understand it.
For instance, here's the function to calculate total HP; as you can see it is fugly PHP code [You must be logged in to view images. Log in or Register.] ... but it is straightforward :
Code:
function get_total_hp($level, $class, $sta, $item_hp)
{
$lmod = Magelo::get_class_level_factor($level,$class);
$post_255 = 0;
if ($sta-255/2 > 0)
$post_255 = ($sta-255/2);
$base_hp = (5)+($level*$lmod/10) + ((($sta-$post_255)*$level*$lmod/3000)) +
(($post_255*$level)*$lmod/6000);
$nd = 10000;
$max_hp = $base_hp + $item_hp;
$max_hp = ($max_hp * $nd) / 10000;
return round($max_hp);
}
|
That's interesting; it looks like it's trying to soft-cap sta at 255, but due to an error soft caps it at 127.5.
One of the wiki pages I found claimed STA soft caps at 255, but I ignored it because I don't believe stats have any effect post 255 in era, a belief the posters in this thread implicitly share.
But, the code seems (without knowing php) to have an error: it calculates the post_255 sta as sta - 255/2 instead of sta - 255. This puts the soft cap at 127.5 instead of 255.
Lobnor posted 181 sta, 2068
magelo hp, and 2148 game hp. Lets run the numbers on him.
(181 - 127.5) = 53.5 sta that will only give half return on the
magelo but full in game.
And (53.5 * 3) / 2 = 80.25; sure enough 2068 + 80.25 = 2148.25.