This commit is contained in:
hujiabin 2024-04-29 17:34:41 +08:00
parent 2b0ccc73b1
commit 71bd866466

View File

@ -258,6 +258,7 @@ class HeroController 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);