|
@@ -95,10 +95,12 @@ class StoreProc {
|
|
|
//消耗武器
|
|
|
foreach ($wuqiList as $wuqiId) {
|
|
|
my_Assert(CommUtil::isPropertyExists($equipment, $wuqiId), ErrCode::store_weapon_err); # 玩家拥有此英雄
|
|
|
- StlUtil::dictRemove($user->store->equipment, $wuqiId);
|
|
|
- $baseExp = GameConfig::item_weapon_getItem($equipment->$wuqiId->typeId)->baseExp;
|
|
|
+ StlUtil::dictRemove($user->store->equipment, $wuqiId);
|
|
|
+ $mo = GameConfig::item_weapon_getItem($equipment->$wuqiId->typeId);
|
|
|
+ $baseExp = $mo->baseExp;
|
|
|
$needExp = GameConfig::weapon_levelexp_getItem(GameConfig::item_base_getItem($equipment->$wuqiId->typeId)->quality,$equipment->$wuqiId->level)->needExp;
|
|
|
$wuqiExp += ($baseExp+$needExp)*0.75;
|
|
|
+ $totalGold += $mo->costGold;
|
|
|
}
|
|
|
|
|
|
$equipVo = new Ins_Weapon($equipment->$uid);
|