1
This commit is contained in:
parent
f66f39b768
commit
b67cf87cfc
@ -520,7 +520,7 @@ class GunController extends BaseAuthedController {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
$rnd = rand(1, 100);
|
$rnd = rand(1, 100);
|
||||||
$probability = \services\FormulaService::Weapon_Advanced_Probability($gunDb['quality'] + 1)*100;
|
$probability = \services\FormulaService::Weapon_Advanced_Probability($gunDb['quality'])*100;
|
||||||
if ($rnd > $probability) {
|
if ($rnd > $probability) {
|
||||||
Gun::update($gunUniId,
|
Gun::update($gunUniId,
|
||||||
array(
|
array(
|
||||||
|
@ -353,7 +353,7 @@ class HeroController extends BaseAuthedController {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
$rnd = rand(1, 100);
|
$rnd = rand(1, 100);
|
||||||
$probability = \services\FormulaService::Hero_Advanced_Probability($heroDb['quality'] + 1)*100;
|
$probability = \services\FormulaService::Hero_Advanced_Probability($heroDb['quality'])*100;
|
||||||
if ($rnd > $probability) {
|
if ($rnd > $probability) {
|
||||||
Hero::update($heroUniId,
|
Hero::update($heroUniId,
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user