Kaynağa Gözat

战力公式变化 战力检测添加

cyzhao 5 ay önce
ebeveyn
işleme
93bcd3370f

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-26 18:08:51
+ // 日期: 2024-12-26 18:10:41
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/App/process/FightProc.php

@@ -237,7 +237,7 @@ class FightProc {
             ctx()->gates->evolveMaxId_right = $id;
             TaskProc::OnCompleteNumSpecialQiLing();
         }
-
+        FightProc::Ranking_FightPower();
         UserProc::updateUserInfo();
         $ret = array(
             'task' => ctx()->task,

+ 3 - 0
Gameserver/App/process/HeroProc.php

@@ -88,6 +88,7 @@ class HeroProc {
         }
         StlUtil::dictRemove(ctx()->heros->Dic, $heroId);
 
+        FightProc::Ranking_FightPower();
         UserProc::updateUserInfo();
         return Resp::ok(array(
                     'store' => ctx()->store,
@@ -202,6 +203,8 @@ class HeroProc {
         list($newHeroId) = req()->paras;                                        # 切换英雄id
         my_Assert(CommUtil::isPropertyExists(ctx()->heros->Dic, $newHeroId), "尚未获得此英雄!");
         ctx()->heros->CurrentHeroId = $newHeroId;
+        
+        FightProc::Ranking_FightPower();
         return Resp::ok();
     }
 

+ 3 - 1
Gameserver/App/process/StoreProc.php

@@ -507,7 +507,7 @@ class StoreProc {
         $ins_equip = new Ins_Equip($equipDic->$uid);
         $posId = $ins_equip->mo()->position;
         ctx()->store(true)->equipLocation->$posId = $uid;
-
+        FightProc::Ranking_FightPower();
         UserProc::updateUserInfo();
         return Resp::ok(array());
     }
@@ -525,6 +525,7 @@ class StoreProc {
         $posId = $ins_equip->mo()->position;
         StlUtil::dictRemove(ctx()->store(true)->equipLocation, $posId);
 
+        FightProc::Ranking_FightPower();
         UserProc::updateUserInfo();
         return Resp::ok(array());
     }
@@ -580,6 +581,7 @@ class StoreProc {
             $xilianStoneNum = ctx()->store->items->$xilianStoneId;
         }
 
+        FightProc::Ranking_FightPower();
         UserProc::updateUserInfo();
         return Resp::ok(array(
                     'xilianStoneId' => $xilianStoneId,