1
This commit is contained in:
parent
1547dd9441
commit
53cecf8359
@ -173,6 +173,12 @@ class Hero extends BaseModel {
|
||||
$def *= (1 + $qualityMeta['promote'] / 100.0);
|
||||
}
|
||||
}
|
||||
{
|
||||
$hp = round($hp, 2);
|
||||
$speed = round($speed, 2);
|
||||
$atk = round($atk, 2);
|
||||
$def = round($def, 2);
|
||||
}
|
||||
$heroLucky = $qualityMeta ? $qualityMeta['lucky'] : 0;
|
||||
$dto = array(
|
||||
'token_id' => $row['token_id'],
|
||||
|
@ -102,7 +102,7 @@ class AttrHelper {
|
||||
foreach ($randAttr as $attr){
|
||||
if ($attr['attr_id'] == $attrId &&
|
||||
$attr['type'] == kHAT_RATE_VAL) {
|
||||
return $attr['val'];
|
||||
return $attr['val'] / 100.0;
|
||||
}
|
||||
}
|
||||
return $defVal;
|
||||
|
Loading…
x
Reference in New Issue
Block a user