This commit is contained in:
hujiabin 2024-04-29 11:58:26 +08:00
parent fe7b3cad6b
commit 3b2a2fda02

View File

@ -104,6 +104,7 @@ class FragmentController extends BaseAuthedController
$this->_decItems($costItems);
$propertyChgService = new services\PropertyChgService();
$propertyChgService->addBagChg();
$propertyChgService->addUserChg();
$hashChance = \mt\Manufacture::hashChance($manufactureMeta['chance']);
$weight = isset($hashChance[$itemNum]) ? $hashChance[$itemNum] : 0;
@ -193,6 +194,7 @@ class FragmentController extends BaseAuthedController
$this->_decItems($costItems);
$propertyChgService = new services\PropertyChgService();
$propertyChgService->addBagChg();
$propertyChgService->addUserChg();
$hashChance = \mt\Manufacture::hashChance($manufactureMeta['chance']);
$weight = isset($hashChance[$itemNum]) ? $hashChance[$itemNum] : 0;
$rnd = rand(1,100);