This commit is contained in:
aozhiwei 2022-06-15 10:27:14 +08:00
parent 1547dd9441
commit 53cecf8359
2 changed files with 7 additions and 1 deletions

View File

@ -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'],

View File

@ -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;