|
@@ -390,8 +390,10 @@ class PetProc {
|
|
$cost_Ts = $ins_breed->mo()->breedTs - $ts_shengyu;
|
|
$cost_Ts = $ins_breed->mo()->breedTs - $ts_shengyu;
|
|
$costNum = intval($cost_Ts/60/10);
|
|
$costNum = intval($cost_Ts/60/10);
|
|
|
|
|
|
- my_Assert(ctx()->baseInfo->cash >= $costNum*$cash_one, ErrCode::notenough_cash_msg);
|
|
|
|
- ctx()->base()->Consume_Cash($costNum*$cash_one);
|
|
|
|
|
|
+ $costCash = $ins_breed->mo()->fastBreed_cost - $costNum*$cash_one;
|
|
|
|
+
|
|
|
|
+ my_Assert(ctx()->baseInfo->cash >= $costCash, ErrCode::notenough_cash_msg);
|
|
|
|
+ ctx()->base()->Consume_Cash($costCash);
|
|
|
|
|
|
$ins_breed->endTs = 0;
|
|
$ins_breed->endTs = 0;
|
|
ctx()->store()->breedEggLocation->$slotId = $ins_breed;
|
|
ctx()->store()->breedEggLocation->$slotId = $ins_breed;
|