diff --git a/webapp/controller/GunController.class.php b/webapp/controller/GunController.class.php index 7edba0fb..92e514c9 100644 --- a/webapp/controller/GunController.class.php +++ b/webapp/controller/GunController.class.php @@ -520,7 +520,7 @@ class GunController extends BaseAuthedController { ) ); $rnd = rand(1, 100); - $probability = \services\FormulaService::Weapon_Advanced_Probability($gunDb['quality'])*100; + $probability = \services\FormulaService::Weapon_Advanced_Probability($gunDb['quality'] + 1)*100; if ($rnd > $probability) { Gun::update($gunUniId, array( diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index a7016c06..67d1affc 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -353,7 +353,7 @@ class HeroController extends BaseAuthedController { ) ); $rnd = rand(1, 100); - $probability = \services\FormulaService::Hero_Advanced_Probability($heroDb['quality'])*100; + $probability = \services\FormulaService::Hero_Advanced_Probability($heroDb['quality'] + 1)*100; if ($rnd > $probability) { Hero::update($heroUniId, array( diff --git a/webapp/models/Gun.php b/webapp/models/Gun.php index 24b3f855..e2013850 100644 --- a/webapp/models/Gun.php +++ b/webapp/models/Gun.php @@ -202,8 +202,8 @@ class Gun extends BaseModel { 'offer_reward_state' => 0, ); $dto['durability_max'] = strval(round(FormulaService::Weapon_NFT_Maximum_Durability($dto['quality'],$dto['lucky']),3)); - $dto['pvp_ceg_uplimit'] = FormulaService::getWeaponPvpDailyCegUpLimit($dto); - $dto['pve_ceg_uplimit'] = FormulaService::getWeaponPveDailyCegUpLimit($dto); + $dto['pvp_ceg_uplimit'] = strval( round(FormulaService::getWeaponPvpDailyCegUpLimit($dto),2) ); + $dto['pve_ceg_uplimit'] = strval( round(FormulaService::getWeaponPveDailyCegUpLimit($dto),2) ); return $dto; } diff --git a/webapp/models/Hero.php b/webapp/models/Hero.php index f44eb300..af547a4b 100644 --- a/webapp/models/Hero.php +++ b/webapp/models/Hero.php @@ -213,9 +213,8 @@ class Hero extends BaseModel { 'offer_reward_state' => 0, ); $dto['hero_tili_max'] = strval(round(FormulaService::Hero_NFT_Maximum_Physical_Strength($dto['quality'],$dto['lucky']),3)); - $dto['pvp_ceg_uplimit'] = strval(FormulaService::getHeroPvpDailyCegUpLimit($dto)); - $dto['pve_ceg_uplimit'] = strval(FormulaService::getHeroPveDailyCegUpLimit($dto)); - + $dto['pvp_ceg_uplimit'] =strval( round(FormulaService::getHeroPvpDailyCegUpLimit($dto),2) ); + $dto['pve_ceg_uplimit'] = strval( round(FormulaService::getHeroPveDailyCegUpLimit($dto),2) ); return $dto; }