|
@@ -247,6 +247,8 @@ class FightProc {
|
|
|
|
|
|
my_Assert(ctx()->baseInfo->gold >= $mo->needGold_unlock, ErrCode::notenough_gold_msg);
|
|
my_Assert(ctx()->baseInfo->gold >= $mo->needGold_unlock, ErrCode::notenough_gold_msg);
|
|
ctx()->baseInfo->Consume_Gold($mo->needGold_unlock);
|
|
ctx()->baseInfo->Consume_Gold($mo->needGold_unlock);
|
|
|
|
+ ctx()->gates->evolveMaxId_left = $id;
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
$dic = GameConfig::evolve();
|
|
$dic = GameConfig::evolve();
|
|
foreach ($dic as $key => $value) {
|
|
foreach ($dic as $key => $value) {
|
|
@@ -262,11 +264,11 @@ class FightProc {
|
|
$costNum = $cost[1];
|
|
$costNum = $cost[1];
|
|
my_Assert(StlUtil::dictHasProperty(ctx()->store->items, $costId) && ctx()->store->items->$costId >= $costNum, ErrCode::notenough_item);
|
|
my_Assert(StlUtil::dictHasProperty(ctx()->store->items, $costId) && ctx()->store->items->$costId >= $costNum, ErrCode::notenough_item);
|
|
}
|
|
}
|
|
|
|
+ ctx()->gates->evolveMaxId_right = $id;
|
|
// my_Assert(ctx()->baseInfo->gold>=$mo->needGold_unlock, ErrCode::notenough_gold_msg);
|
|
// my_Assert(ctx()->baseInfo->gold>=$mo->needGold_unlock, ErrCode::notenough_gold_msg);
|
|
}
|
|
}
|
|
|
|
|
|
- ctx()->gates->evolveUnlockRecord[] = $id;
|
|
|
|
-
|
|
|
|
|
|
+
|
|
UserProc::updateUserInfo();
|
|
UserProc::updateUserInfo();
|
|
$ret = array(
|
|
$ret = array(
|
|
'store' => ctx()->store,
|
|
'store' => ctx()->store,
|