This commit is contained in:
aozhiwei 2022-06-14 20:11:06 +08:00
parent 1547dd9441
commit 1b56aa5456

View File

@ -227,7 +227,8 @@ class HeroController extends BaseAuthedController {
if ($currQualityMeta) {
$nextQualityMeta = mt\HeroQuality::getByQuality($heroDb['quality'] + 1);
if ($nextQualityMeta) {
$rnd = rand(1, 100);
//$rnd = rand(1, 100);
$rnd = 1000;
if ($rnd > $nextQualityMeta['success_rate']) {
Hero::update($costHeroUniId,
array(