Forráskód Böngészése

词条配置数据刷到后端

cyzhao 1 éve
szülő
commit
434424a87a

+ 15 - 191
Gameserver/App/configs/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-03-28 16:16:40
+ // 日期: 2024-04-10 14:40:02
 ////////////////////
 
 namespace loyalsoft;
@@ -159,22 +159,6 @@ class GameConfig {
         return self::get_hash_item('clientVersionHistory', $itemid);
     }
     /**
-    * 分区列表
-    * @return \zonelist
-    */
-    public static function zonelist()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'zonelist');
-    }
-    /**
-    * @return \sm_zonelist zonelist item数据 
-    */
-    public static function zonelist_getItem($itemid)
-    { 
-        return self::get_hash_item('zonelist', $itemid);
-    }
-    /**
     * 错误信息表
     * @return \errmsg
     */
@@ -207,54 +191,6 @@ class GameConfig {
         return self::get_hash_item('activity_day7', $itemid);
     }
     /**
-    * 公共兑换码
-    * @return \token_PublicGift
-    */
-    public static function token_PublicGift()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'token_PublicGift');
-    }
-    /**
-    * @return \sm_token_PublicGift token_PublicGift item数据 
-    */
-    public static function token_PublicGift_getItem($itemid)
-    { 
-        return self::get_hash_item('token_PublicGift', $itemid);
-    }
-    /**
-    * 活动: 体力加油站
-    * @return \activity_tiligift
-    */
-    public static function activity_tiligift()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'activity_tiligift');
-    }
-    /**
-    * @return \sm_activity_tiligift activity_tiligift item数据 
-    */
-    public static function activity_tiligift_getItem($itemid)
-    { 
-        return self::get_hash_item('activity_tiligift', $itemid);
-    }
-    /**
-    * 活动: 等级礼包
-    * @return \activity_levelgift
-    */
-    public static function activity_levelgift()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'activity_levelgift');
-    }
-    /**
-    * @return \sm_activity_levelgift activity_levelgift item数据 
-    */
-    public static function activity_levelgift_getItem($itemid)
-    { 
-        return self::get_hash_item('activity_levelgift', $itemid);
-    }
-    /**
     * 章节表
     * @return \gate
     */
@@ -399,36 +335,36 @@ class GameConfig {
         return self::get_hash_item('shop_supply', $itemid);
     }
     /**
-    * 商城军备
-    * @return \shop_junbei
+    * 词条配置表
+    * @return \predicate
     */
-    public static function shop_junbei()
+    public static function predicate()
     { 
         static $a = null; 
-        return self::initValue($a, 'shop_junbei');
+        return self::initValue($a, 'predicate');
     }
     /**
-    * @return \sm_shop_junbei shop_junbei item数据 
+    * @return \sm_predicate predicate item数据 
     */
-    public static function shop_junbei_getItem($itemid)
+    public static function predicate_getItem($itemid)
     { 
-        return self::get_hash_item('shop_junbei', $itemid);
+        return self::get_hash_item('predicate', $itemid);
     }
     /**
-    * 挑战表
-    * @return \gate_challenge
+    * 商城军备
+    * @return \shop_junbei
     */
-    public static function gate_challenge()
+    public static function shop_junbei()
     { 
         static $a = null; 
-        return self::initValue($a, 'gate_challenge');
+        return self::initValue($a, 'shop_junbei');
     }
     /**
-    * @return \sm_gate_challenge gate_challenge item数据 
+    * @return \sm_shop_junbei shop_junbei item数据 
     */
-    public static function gate_challenge_getItem($itemid)
+    public static function shop_junbei_getItem($itemid)
     { 
-        return self::get_hash_item('gate_challenge', $itemid);
+        return self::get_hash_item('shop_junbei', $itemid);
     }
     /**
     * 进化表
@@ -463,118 +399,6 @@ class GameConfig {
         return self::get_hash_item('active_day7_accumulate', $itemid);
     }
     /**
-    * 装备合成(进化)品阶表
-    * @return \equip_evolve
-    */
-    public static function equip_evolve()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'equip_evolve');
-    }
-    /**
-    * @return \sm_equip_evolve equip_evolve item数据 
-    */
-    public static function equip_evolve_getItem($rarity, $qual, $posId)
-    { 
-        return self::get_hash_item('equip_evolve', "$rarity-$qual-$posId");
-    }
-    /**
-    * 装备合成表
-    * @return \equip_compose
-    */
-    public static function equip_compose()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'equip_compose');
-    }
-    /**
-    * @return \sm_equip_compose equip_compose item数据 
-    */
-    public static function equip_compose_getItem($itemid)
-    { 
-        return self::get_hash_item('equip_compose', $itemid);
-    }
-    /**
-    * 成就功能
-    * @return \achieve
-    */
-    public static function achieve()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'achieve');
-    }
-    /**
-    * @return \sm_achieve achieve item数据 
-    */
-    public static function achieve_getItem($itemid)
-    { 
-        return self::get_hash_item('achieve', $itemid);
-    }
-    /**
-    * 任务表
-    * @return \task_step
-    */
-    public static function task_step()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'task_step');
-    }
-    /**
-    * @return \sm_task_step task_step item数据 
-    */
-    public static function task_step_getItem($itemid)
-    { 
-        return self::get_hash_item('task_step', $itemid);
-    }
-    /**
-    * 任务卡
-    * @return \taskcard
-    */
-    public static function taskcard()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'taskcard');
-    }
-    /**
-    * @return \sm_taskcard taskcard item数据 
-    */
-    public static function taskcard_getItem($itemid)
-    { 
-        return self::get_hash_item('taskcard', $itemid);
-    }
-    /**
-    * 每日任务累计
-    * @return \task_accumulate_daily
-    */
-    public static function task_accumulate_daily()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'task_accumulate_daily');
-    }
-    /**
-    * @return \sm_task_accumulate_daily task_accumulate_daily item数据 
-    */
-    public static function task_accumulate_daily_getItem($itemid)
-    { 
-        return self::get_hash_item('task_accumulate_daily', $itemid);
-    }
-    /**
-    * 周常任务累计
-    * @return \task_accumulate_week
-    */
-    public static function task_accumulate_week()
-    { 
-        static $a = null; 
-        return self::initValue($a, 'task_accumulate_week');
-    }
-    /**
-    * @return \sm_task_accumulate_week task_accumulate_week item数据 
-    */
-    public static function task_accumulate_week_getItem($itemid)
-    { 
-        return self::get_hash_item('task_accumulate_week', $itemid);
-    }
-    /**
     * 宝石表
     * @return \gem
     */

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-04-09 16:00:42
+ // 日期: 2024-04-10 14:40:02
 ////////////////////
 
 /**
@@ -333,6 +333,22 @@ class GameConfig {
         return self::get_hash_item('shop_supply', $itemid);
     }
     /**
+    * 词条配置表
+    * @return \predicate
+    */
+    public static function predicate()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'predicate');
+    }
+    /**
+    * @return \sm_predicate predicate item数据 
+    */
+    public static function predicate_getItem($itemid)
+    { 
+        return self::get_hash_item('predicate', $itemid);
+    }
+    /**
     * 商城军备
     * @return \shop_junbei
     */

+ 117 - 0
Gameserver/App/model/Const/sm_predicate.php

@@ -0,0 +1,117 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-03-28 16:18:24
+////////////////////
+
+
+/**
+ * Static Model predicate 词条配置表
+ */
+class sm_predicate
+{
+
+    /**
+    * @var Int32 唯一id  
+    */
+    public $id;
+
+    /**
+    * @var String 名称  
+    */
+    public $name;
+
+    /**
+    * @var String 词条描述  
+    */
+    public $desc;
+
+    /**
+    * @var String 附加对象: "none" 无, 角色 'hero', 怪'monster', 技能'skill', 装备'equip', 关卡'gate' default(none) 
+    */
+    public $attachTarget;
+
+    /**
+    * @var String 行为类型:
+    *      // 无 
+    *      none,
+    *  // 大概命名规律:  add(+面板值)/and(+基础值)/mul(+倍率值):
+    *      // 增加面板生命: 参数1=>增加数值
+    *      addHp,
+    *      //  增加基础生命(享受加成倍率):  参数1=>增加数值
+    *      andHp
+    *      // 增加生命: 参数1=>倍率
+    *      mulHp,
+    *   **** 
+    *      /// 每x秒恢复x%生命值: 参数1: x秒, 参数2: 恢复生命倍率x
+    *      recoverHpPerSecs,
+    *      /// 有x%几率直接击败非首领型怪物:
+    *      directKillMonster,
+    *      // 满血复活1次
+    *      reliveWithFullHp,
+    *      // 额外复活机会
+    *      extraReliveTime,
+    *      // 复活后添加buff
+    *      afterReliveAddBuff default(none) 
+    */
+    public $actionType;
+
+    /**
+    * @var Single 行为参数1: default(0) 
+    */
+    public $actionParam1;
+
+    /**
+    * @var Single 行为参数2: default(0) 
+    */
+    public $actionParam2;
+
+    /**
+    * @var Single 行为参数3:  
+    */
+    public $actionParam3;
+
+    /**
+    * @var String 类型key(同一种类判定)  
+    */
+    public $uniqueKey;
+
+    /**
+    * @var String 词条前置条件类型:'none','attack', 'hpGreatThan', 'hpBelowThan', 其它待补充 default(none) 
+    */
+    public $preConditionType;
+
+    /**
+    * @var Single 词条前置条件参数: default(0) 
+    */
+    public $preConditionParam;
+
+    /**
+    * @var String 后置行为类型 default(none) 
+    */
+    public $postActionType;
+
+    /**
+    * @var Single 后置行为参数 default(0) 
+    */
+    public $postActionParam;
+
+    /**
+    * @var String 后置行为条件 default(none) 
+    */
+    public $postConditionType;
+
+    /**
+    * @var Single 后置行为条件参数 default(0) 
+    */
+    public $postConditionParam;
+
+    /**
+    * @var String 进化模块里的消息描述信息  
+    */
+    public $desc2;
+
+}
+

+ 1 - 1
Gameserver/App/model/User/Ins_Gem.php

@@ -59,7 +59,7 @@ class Ins_Gem {
      * @return sm_predicate
      */
     public function predicateMo() {
-        $mo = GameConfig::gem_getItem($this->predicateId);
+        $mo = GameConfig::predicate_getItem($this->predicateId);
         my_Assert(null != $mo, ErrCode::err_const_no);
         return $mo;
     }

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

@@ -289,8 +289,7 @@ class StoreProc {
         foreach ($composeArr as $value) {
             $resultArr[] = $value->uid;
         }
-        
-        krsort($resultArr);
+
         ctx($user);    
         UserProc::updateUserInfo();
         return Resp::ok(array(