Browse Source

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

cyzhao 5 months ago
parent
commit
93bcd3370f

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
  // 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;
             ctx()->gates->evolveMaxId_right = $id;
             TaskProc::OnCompleteNumSpecialQiLing();
             TaskProc::OnCompleteNumSpecialQiLing();
         }
         }
-
+        FightProc::Ranking_FightPower();
         UserProc::updateUserInfo();
         UserProc::updateUserInfo();
         $ret = array(
         $ret = array(
             'task' => ctx()->task,
             'task' => ctx()->task,

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

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

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

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