Quellcode durchsuchen

孵化钻石bug修复

cyzhao vor 1 Woche
Ursprung
Commit
663fd7c5ad

+ 1 - 1
Gameserver/App/base/CmdCode.php

@@ -458,7 +458,7 @@ class CmdCode {
     const store_pet_resetDispatchPet = 6438;
     
     /**
-     * 
+     * 6439 宠物休息
      */
     const store_pet_removeFightPosition = 6439;
 // </editor-fold>

+ 1 - 1
Gameserver/App/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-08 15:59:51
+ // 日期: 2025-05-23 17:43:35
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/App/model/Const/sm_fun_unlock.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-04-01 15:02:55
+ // 日期: 2025-05-23 09:50:16
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_gate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-08 15:57:50
+ // 日期: 2025-05-14 09:27:57
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_gate_unlock.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-08 15:57:50
+ // 日期: 2025-05-14 09:27:57
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_gem.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-08 10:38:30
+ // 日期: 2025-05-21 13:51:42
 ////////////////////
 
 

+ 11 - 1
Gameserver/App/model/Const/sm_glc2.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-04-09 15:06:40
+ // 日期: 2025-05-23 17:46:29
 ////////////////////
 
 
@@ -98,6 +98,11 @@ class sm_glc2
     */
     public $WorldBoss_RankRewardStatistics;
 
+    /**
+    * @var String 宠物品阶划分  
+    */
+    public $Pet_QualUnlockSkillId;
+
     /**
     * @var Int32 该区域最多展示8个灵宠  
     */
@@ -113,5 +118,10 @@ class sm_glc2
     */
     public $Pet_ExploreArea_UnlockInfo;
 
+    /**
+    * @var String 宠物品阶名称  
+    */
+    public $Pet_QualName;
+
 }
 

+ 1 - 1
Gameserver/App/model/Const/sm_globalsettings.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-04-14 18:03:14
+ // 日期: 2025-05-23 16:52:05
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_hero.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-04-02 15:27:00
+ // 日期: 2025-05-13 16:16:24
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_heroType_typeId.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-04-02 15:27:00
+ // 日期: 2025-05-13 16:16:24
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_item.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-07 14:19:44
+ // 日期: 2025-05-23 09:55:32
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_pet.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-07 14:16:56
+ // 日期: 2025-05-23 09:54:38
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_pet_skills.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-07 16:51:28
+ // 日期: 2025-05-22 10:57:12
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_plots.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-04-29 17:10:05
+ // 日期: 2025-05-14 11:07:59
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_predicate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-08 15:22:04
+ // 日期: 2025-05-21 17:19:53
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_skills.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-04-29 14:03:43
+ // 日期: 2025-05-09 11:25:49
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waveItem.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-07 16:39:27
+ // 日期: 2025-05-19 13:51:15
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waves.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-05-07 16:39:27
+ // 日期: 2025-05-19 13:51:15
 ////////////////////
 
 

+ 4 - 2
Gameserver/App/process/PetProc.php

@@ -390,8 +390,10 @@ class PetProc {
         $cost_Ts = $ins_breed->mo()->breedTs - $ts_shengyu;
         $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;
         ctx()->store()->breedEggLocation->$slotId = $ins_breed;