1
This commit is contained in:
commit
771e73c47c
@ -104,6 +104,7 @@ class FragmentController extends BaseAuthedController
|
|||||||
$this->_decItems($costItems);
|
$this->_decItems($costItems);
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
$propertyChgService->addBagChg();
|
$propertyChgService->addBagChg();
|
||||||
|
$propertyChgService->addUserChg();
|
||||||
|
|
||||||
$hashChance = \mt\Manufacture::hashChance($manufactureMeta['chance']);
|
$hashChance = \mt\Manufacture::hashChance($manufactureMeta['chance']);
|
||||||
$weight = isset($hashChance[$itemNum]) ? $hashChance[$itemNum] : 0;
|
$weight = isset($hashChance[$itemNum]) ? $hashChance[$itemNum] : 0;
|
||||||
@ -193,6 +194,7 @@ class FragmentController extends BaseAuthedController
|
|||||||
$this->_decItems($costItems);
|
$this->_decItems($costItems);
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
$propertyChgService->addBagChg();
|
$propertyChgService->addBagChg();
|
||||||
|
$propertyChgService->addUserChg();
|
||||||
$hashChance = \mt\Manufacture::hashChance($manufactureMeta['chance']);
|
$hashChance = \mt\Manufacture::hashChance($manufactureMeta['chance']);
|
||||||
$weight = isset($hashChance[$itemNum]) ? $hashChance[$itemNum] : 0;
|
$weight = isset($hashChance[$itemNum]) ? $hashChance[$itemNum] : 0;
|
||||||
$rnd = rand(1,100);
|
$rnd = rand(1,100);
|
||||||
|
@ -258,6 +258,7 @@ class HeroController extends BaseAuthedController {
|
|||||||
$this->_decItems($costItems);
|
$this->_decItems($costItems);
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
$propertyChgService->addBagChg();
|
$propertyChgService->addBagChg();
|
||||||
|
$propertyChgService->addUserChg();
|
||||||
$hashChance = \mt\Manufacture::hashChance($manufactureMeta['chance']);
|
$hashChance = \mt\Manufacture::hashChance($manufactureMeta['chance']);
|
||||||
$weight = isset($hashChance[$itemNum]) ? $hashChance[$itemNum] : 0;
|
$weight = isset($hashChance[$itemNum]) ? $hashChance[$itemNum] : 0;
|
||||||
$rnd = rand(1,100);
|
$rnd = rand(1,100);
|
||||||
|
@ -473,7 +473,7 @@ class InGameMallController extends BaseAuthedController {
|
|||||||
\mt\Item::CHIP_TYPE,
|
\mt\Item::CHIP_TYPE,
|
||||||
\mt\Item::FRAGMENT_TYPE,
|
\mt\Item::FRAGMENT_TYPE,
|
||||||
\mt\Item::BATTLE_REWARD_BOX,
|
\mt\Item::BATTLE_REWARD_BOX,
|
||||||
\mt\Item::GOLD_SYN,
|
// \mt\Item::GOLD_SYN,
|
||||||
))){
|
))){
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
|
@ -72,7 +72,10 @@ class User extends BaseModel {
|
|||||||
public static function show($row)
|
public static function show($row)
|
||||||
{
|
{
|
||||||
$heroDb = Hero::find($row['hero_id']);
|
$heroDb = Hero::find($row['hero_id']);
|
||||||
|
$heroId = 0;
|
||||||
|
if ($heroDb){
|
||||||
$heroId = $heroDb['hero_id'];
|
$heroId = $heroDb['hero_id'];
|
||||||
|
}
|
||||||
$honorInfo = array();
|
$honorInfo = array();
|
||||||
if ($row['address']){
|
if ($row['address']){
|
||||||
$honorInfo = UserHonor::info($row['address']);
|
$honorInfo = UserHonor::info($row['address']);
|
||||||
|
@ -225,6 +225,7 @@ class RoomBattleDataService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//宝箱掉落
|
//宝箱掉落
|
||||||
|
if ($rewardMeta['chestLootProb'] > 0){
|
||||||
$rand = $rewardMeta['chestLootProb'] * 100;
|
$rand = $rewardMeta['chestLootProb'] * 100;
|
||||||
$rnd = rand(1,100);
|
$rnd = rand(1,100);
|
||||||
if ($rnd <= $rand){
|
if ($rnd <= $rand){
|
||||||
@ -233,8 +234,7 @@ class RoomBattleDataService extends BaseService {
|
|||||||
array_push($reward,$item);
|
array_push($reward,$item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user