cyzhao преди 1 година
родител
ревизия
cb3e2703e7
променени са 43 файла, в които са добавени 884 реда и са изтрити 168 реда
  1. 14 7
      Gameserver/App/base/CmdCode.php
  2. 81 1
      Gameserver/App/model/Const/GameConfig.php
  3. 1 1
      Gameserver/App/model/Const/sm_achieve.php
  4. 67 0
      Gameserver/App/model/Const/sm_achieve_new.php
  5. 1 1
      Gameserver/App/model/Const/sm_active_day7_accumulate.php
  6. 1 1
      Gameserver/App/model/Const/sm_activity_day7.php
  7. 1 1
      Gameserver/App/model/Const/sm_activity_levelgift.php
  8. 1 1
      Gameserver/App/model/Const/sm_activity_tiligift.php
  9. 1 1
      Gameserver/App/model/Const/sm_clientVersionHistory.php
  10. 6 1
      Gameserver/App/model/Const/sm_equip.php
  11. 1 1
      Gameserver/App/model/Const/sm_equip_compose.php
  12. 1 1
      Gameserver/App/model/Const/sm_equip_evolve.php
  13. 6 1
      Gameserver/App/model/Const/sm_equip_levelupgrade.php
  14. 1 1
      Gameserver/App/model/Const/sm_errmsg.php
  15. 1 1
      Gameserver/App/model/Const/sm_evolve.php
  16. 1 1
      Gameserver/App/model/Const/sm_gate.php
  17. 1 1
      Gameserver/App/model/Const/sm_gate_challenge.php
  18. 47 0
      Gameserver/App/model/Const/sm_gate_sbox.php
  19. 47 0
      Gameserver/App/model/Const/sm_gem.php
  20. 117 0
      Gameserver/App/model/Const/sm_globalsettings.php
  21. 94 13
      Gameserver/App/model/Const/sm_hero.php
  22. 37 0
      Gameserver/App/model/Const/sm_heroattr.php
  23. 1 1
      Gameserver/App/model/Const/sm_item.php
  24. 164 0
      Gameserver/App/model/Const/sm_plots.php
  25. 1 1
      Gameserver/App/model/Const/sm_service_schedule.php
  26. 1 1
      Gameserver/App/model/Const/sm_shop_cash.php
  27. 1 1
      Gameserver/App/model/Const/sm_shop_daily.php
  28. 1 1
      Gameserver/App/model/Const/sm_shop_gategift.php
  29. 1 1
      Gameserver/App/model/Const/sm_shop_gold.php
  30. 1 1
      Gameserver/App/model/Const/sm_shop_junbei.php
  31. 1 1
      Gameserver/App/model/Const/sm_shop_supply.php
  32. 1 1
      Gameserver/App/model/Const/sm_sysmail.php
  33. 1 1
      Gameserver/App/model/Const/sm_task_accumulate_daily.php
  34. 1 1
      Gameserver/App/model/Const/sm_task_accumulate_week.php
  35. 1 1
      Gameserver/App/model/Const/sm_task_step.php
  36. 1 1
      Gameserver/App/model/Const/sm_taskcard.php
  37. 1 1
      Gameserver/App/model/Const/sm_token_PublicGift.php
  38. 1 1
      Gameserver/App/model/Const/sm_zonelist.php
  39. 42 0
      Gameserver/App/model/User/E_EquipPosition.php
  40. 38 3
      Gameserver/App/model/User/Info_Store.php
  41. 10 3
      Gameserver/App/model/User/Ins_Equip.php
  42. 40 0
      Gameserver/App/model/User/Ins_Gem.php
  43. 47 112
      Gameserver/App/process/StoreProc.php

+ 14 - 7
Gameserver/App/base/CmdCode.php

@@ -133,12 +133,14 @@ class CmdCode {
     /**
      * 装备
      */
-    const cmd_store_equip = 6402;
+    const cmd_store_gemSet = 6402;
+    //const cmd_store_equip = 6402;
 
     /**
      * 卸下装备
      */
-    const cmd_store_RemoveEquip = 6403;
+    const cmd_store_gemRemove = 6403;
+    //const cmd_store_RemoveEquip = 6403;
 
     /**
      * 装备升级
@@ -161,14 +163,19 @@ class CmdCode {
     const store_comsumeTili = 6407;
     
     /**
-     * 装备降级
+     * 移除装备可以升级的提示
      */
-    const store_equip_fallLevel = 6408;
-    
+    const store_equip_removeEquipUpgradeTip = 6410;
+
+    /**
+     * 移除新宝石提示
+     */
+    const store_equip_removeNewGemTip = 6411;
+
     /**
-     * 装备降品
+     * 所有装备的一键升级
      */
-    const store_equip_fallQual = 6409;
+    const store_allEquipUpgrade = 6412;
 
     // </editor-fold>
     // <editor-fold defaultstate="collapsed" desc="商城操作码 - 65xx">

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-10-13 15:54:41
+ // 日期: 2024-03-28 16:16:40
 ////////////////////
 
 /**
@@ -573,6 +573,86 @@ class GameConfig {
         return self::get_hash_item('task_accumulate_week', $itemid);
     }
     /**
+    * 宝石表
+    * @return \gem
+    */
+    public static function gem()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'gem');
+    }
+    /**
+    * @return \sm_gem gem item数据 
+    */
+    public static function gem_getItem($itemid)
+    { 
+        return self::get_hash_item('gem', $itemid);
+    }
+    /**
+    * 秘宝表
+    * @return \gate_sbox
+    */
+    public static function gate_sbox()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'gate_sbox');
+    }
+    /**
+    * @return \sm_gate_sbox gate_sbox itemArray 
+    */
+    public static function gate_sbox_getItemArray($key)
+    { 
+        return self::get_hash_item('gate_sbox', $key);
+    }
+    /**
+    * 最新的成就
+    * @return \achieve_new
+    */
+    public static function achieve_new()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'achieve_new');
+    }
+    /**
+    * @return \sm_achieve_new achieve_new item数据 
+    */
+    public static function achieve_new_getItem($itemid)
+    { 
+        return self::get_hash_item('achieve_new', $itemid);
+    }
+    /**
+    * 人物属性
+    * @return \heroattr
+    */
+    public static function heroattr()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'heroattr');
+    }
+    /**
+    * @return \sm_heroattr heroattr item数据 
+    */
+    public static function heroattr_getItem($itemid)
+    { 
+        return self::get_hash_item('heroattr', $itemid);
+    }
+    /**
+    * 剧情对话
+    * @return \plots
+    */
+    public static function plots()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'plots');
+    }
+    /**
+    * @return \sm_plots plots item数据 
+    */
+    public static function plots_getItem($itemid)
+    { 
+        return self::get_hash_item('plots', $itemid);
+    }
+    /**
     * 当前版本(时间戳)
     * @return \ver
     */

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-10-12 15:09:43
+ // 日期: 2024-03-20 15:21:14
 ////////////////////
 
 

+ 67 - 0
Gameserver/App/model/Const/sm_achieve_new.php

@@ -0,0 +1,67 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-03-28 14:31:23
+////////////////////
+
+
+/**
+ * Static Model achieve_new 最新的成就
+ */
+class sm_achieve_new
+{
+
+    /**
+    * @var Int32 索引 default(0) 
+    */
+    public $id;
+
+    /**
+    * @var String 名称  
+    */
+    public $name;
+
+    /**
+    * @var Int32 解锁内容类型 1英雄 2主动技能 3被动技能 4地图 5装备 6金币 default(0) 
+    */
+    public $type;
+
+    /**
+    * @var Int32 事件件码指令(详见文档) default(0) 
+    */
+    public $cmd;
+
+    /**
+    * @var String 参数 (若参数为多个,需要自己跟策划约定好解析规则)这里面都是用的==判断  
+    */
+    public $paras;
+
+    /**
+    * @var Int32 条件计数 (max)(>=max) default(1) 
+    */
+    public $num;
+
+    /**
+    * @var String 解锁内容 1技能 2英雄 3地图 4装备 5金币  
+    */
+    public $prizes;
+
+    /**
+    * @var String 描述  
+    */
+    public $des;
+
+    /**
+    * @var String 图标  
+    */
+    public $icon;
+
+    /**
+    * @var String 其他  
+    */
+    public $etc;
+
+}
+

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-12 16:12:08
+ // 日期: 2024-03-20 15:21:14
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-12 17:58:18
+ // 日期: 2024-03-20 15:21:16
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-06-28 18:04:50
+ // 日期: 2024-03-20 15:21:16
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-06-28 17:36:03
+ // 日期: 2024-03-20 15:21:16
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-06-28 17:36:03
+ // 日期: 2024-03-20 15:21:16
 ////////////////////
 
 

+ 6 - 1
Gameserver/App/model/Const/sm_equip.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-26 11:34:52
+ // 日期: 2024-03-27 10:01:07
 ////////////////////
 
 
@@ -68,5 +68,10 @@ class sm_equip
     */
     public $qual_predicateId;
 
+    /**
+    * @var Int32 该部位升级消耗的图纸id default(0) 
+    */
+    public $costTuzhiId;
+
 }
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-08-31 10:40:29
+ // 日期: 2024-03-20 15:21:16
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-26 11:34:52
+ // 日期: 2024-03-20 15:21:16
 ////////////////////
 
 

+ 6 - 1
Gameserver/App/model/Const/sm_equip_levelupgrade.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-18 12:04:51
+ // 日期: 2024-03-26 17:42:29
 ////////////////////
 
 
@@ -28,5 +28,10 @@ class sm_equip_levelupgrade
     */
     public $needItemNum;
 
+    /**
+    * @var Int32 每升一级增肌攻击力的数值 default(0) 
+    */
+    public $attckNum;
+
 }
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-06-28 18:04:50
+ // 日期: 2024-03-20 15:21:16
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-08-23 11:20:07
+ // 日期: 2024-03-20 15:21:15
 ////////////////////
 
 

+ 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 
- // 日期: 2023-10-07 15:04:52
+ // 日期: 2024-03-20 15:21:16
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-08-21 17:37:03
+ // 日期: 2024-03-20 15:21:16
 ////////////////////
 
 

+ 47 - 0
Gameserver/App/model/Const/sm_gate_sbox.php

@@ -0,0 +1,47 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-03-28 14:04:33
+////////////////////
+
+
+/**
+ * Static Model gate_sbox 秘宝表
+ */
+class sm_gate_sbox
+{
+
+    /**
+    * @var Int32 自增编号  
+    */
+    public $id;
+
+    /**
+    * @var Int32 关卡ID  
+    */
+    public $gateId;
+
+    /**
+    * @var Single 秘宝X坐标  
+    */
+    public $posX;
+
+    /**
+    * @var Single 秘宝Y坐标  
+    */
+    public $posY;
+
+    /**
+    * @var String 秘宝ID: (装备ID:权重,id:权重....)  
+    */
+    public $sboxId;
+
+    /**
+    * @var Int32 秘宝类型: 1 装备,   0 未知  
+    */
+    public $stype;
+
+}
+

+ 47 - 0
Gameserver/App/model/Const/sm_gem.php

@@ -0,0 +1,47 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-03-26 15:59:27
+////////////////////
+
+
+/**
+ * Static Model gem 宝石表
+ */
+class sm_gem
+{
+
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $id;
+
+    /**
+    * @var Int32 宝石上装备部位Id default(0) 
+    */
+    public $position;
+
+    /**
+    * @var Int32 宝石的品阶 default(1) 
+    */
+    public $qual;
+
+    /**
+    * @var String 合成条件内容  
+    */
+    public $synthesis;
+
+    /**
+    * @var Int32 磁条是否固定0:不固定;1:固定 default(0) 
+    */
+    public $isfixed_predicateId;
+
+    /**
+    * @var Int32 有固定词条效果后的固定词条ID default(0) 
+    */
+    public $predicateId;
+
+}
+

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

@@ -0,0 +1,117 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-03-28 16:08:03
+////////////////////
+
+
+/**
+ * Static Model globalsettings 全局参数
+ */
+class sm_globalsettings
+{
+
+    /**
+    * @var string demo  
+    */
+    public $key;
+
+    /**
+    * @var string 升级武器需要的图纸  
+    */
+    public $equipLeveUpTuzhi;
+
+    /**
+    * @var string   
+    */
+    public $equipQualUnlockSkillId;
+
+    /**
+    * @var string 装备品阶+1+2的记录  
+    */
+    public $equipQualAdd;
+
+    /**
+    * @var string 有限地图战场中小木箱刷新时间间隔和数量(50,3)(50秒刷新3个小木箱)  
+    */
+    public $ClosedMapSmallBoxFreq;
+
+    /**
+    * @var int 游戏内玩家账号的最高等级限制  
+    */
+    public $Game_MaxPlayerLevel;
+
+    /**
+    * @var string 开放地图战场中小木箱刷新时间间隔和数量(50,3)(50秒刷新3个小木箱)  
+    */
+    public $OpenMapSmallBoxFreq;
+
+    /**
+    * @var int 默认背包最大数量  
+    */
+    public $Item_Packet_MaxNum;
+
+    /**
+    * @var int 体力恢复的最大值(购买或者邮件领取的可以超出,超出后体力恢复失效)  
+    */
+    public $tili_RecoverrMax;
+
+    /**
+    * @var string 充值购买任一商品,即可获得如下奖励,仅此一次哦~  
+    */
+    public $FirstRechargePrice;
+
+    /**
+    * @var string 装备降品不同部位的通用道具  
+    */
+    public $EquipFallQualCommonItem;
+
+    /**
+    * @var string 【废弃】当前客户端版本号  
+    */
+    public $clientVer;
+
+    /**
+    * @var int 支付模块是否开放  
+    */
+    public $Game_Pay_Open;
+
+    /**
+    * @var int 更新开始时间戳  
+    */
+    public $updatingBeginTs;
+
+    /**
+    * @var int 更新结束时间戳  
+    */
+    public $updatingEndTs;
+
+    /**
+    * @var int 恢复一点体力所需时间(秒)  
+    */
+    public $tili_RecoverTS;
+
+    /**
+    * @var int 跑马灯获得超武的概率  
+    */
+    public $GetSuperSkillProbability;
+
+    /**
+    * @var string 装备合成消耗金币(暂时), 白->绿: 200, 绿->蓝:600, 蓝->紫: 1200  
+    */
+    public $EquipComposeCostGold;
+
+    /**
+    * @var string 每日商城刷新消耗的金币数量  
+    */
+    public $DailyShopRefreshCostGold;
+
+    /**
+    * @var int 每日商城上架个数  
+    */
+    public $DailyShopShowNum;
+
+}
+

+ 94 - 13
Gameserver/App/model/Const/sm_hero.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-26 12:04:52
+ // 日期: 2024-03-28 15:48:13
 ////////////////////
 
 
@@ -23,13 +23,33 @@ class sm_hero
     */
     public $name;
 
+    /**
+    * @var String 备注  
+    */
+    public $desc;
+
+    /**
+    * @var Int32 英雄身上带的武器Id default(0) 
+    */
+    public $skillId;
+
+    /**
+    * @var String 英雄形象小图标  
+    */
+    public $img;
+
+    /**
+    * @var String 半身像  
+    */
+    public $imgBig;
+
     /**
     * @var Int32 初始伤害(值)  
     */
     public $attack;
 
     /**
-    * @var Single 初始速度(倍率)  
+    * @var Single 初始移动速度 (倍率)  
     */
     public $speed;
 
@@ -39,17 +59,12 @@ class sm_hero
     public $hp;
 
     /**
-    * @var String 备注  
+    * @var Int32 每5秒增加生命恢复(逻辑) 2023.11.28 default(0) 
     */
-    public $desc;
-
-    /**
-    * @var Single 伤害增加(值)  
-    */
-    public $inc_demage;
+    public $recover_Hp;
 
     /**
-    * @var Single 伤害减免(值)  
+    * @var Single 初始伤害减免 (值) default(0) 
     */
     public $dec_demage;
 
@@ -74,19 +89,85 @@ class sm_hero
     public $instantKillMonsterRate;
 
     /**
-    * @var Single 拾取半径(倍率)  
+    * @var Single 初始拾取半径(倍率) default(1) 
     */
     public $pickup_radius;
 
     /**
-    * @var Single 生命上限  
+    * @var Int32 解锁成就id
+    *    
+    */
+    public $acc_id;
+
+    /**
+    * @var Int32 是否上架: 0 显式, 1 隐藏  
     */
-    public $hp_max;
+    public $is_hide;
 
     /**
     * @var Single 体积  
     */
     public $size;
 
+    /**
+    * @var Int32 解锁需要花费的金币数量 default(0) 
+    */
+    public $unlock_needGold;
+
+    /**
+    * @var Int32 武器上限 (目前固定写死) default(6) 
+    */
+    public $skillNumMax;
+
+    /**
+    * @var Single 角色额外伤害加成 (倍率) default(1) 
+    */
+    public $mul_atk;
+
+    /**
+    * @var Single 角色子弹速度加成 (倍率)  default(0) 
+    */
+    public $mul_bullet_speed;
+
+    /**
+    * @var Single 子弹持续时间加成 (倍率)  default(1) 
+    */
+    public $mul_bullet_sustainTime;
+
+    /**
+    * @var Single 技能攻击范围加成 (倍率)  default(1) 
+    */
+    public $mul_atk_range;
+
+    /**
+    * @var Single 技能冷却时间加成 (倍率) 允许负值  
+    */
+    public $mul_cooldown;
+
+    /**
+    * @var Int32 子弹数量加成 (值) default(0) 
+    */
+    public $add_bulletnum;
+
+    /**
+    * @var Int32 复活次数加成 (值) default(0) 
+    */
+    public $add_reliveTimes;
+
+    /**
+    * @var Single 经验获取加成 (倍率) default(1) 
+    */
+    public $mul_gainExp;
+
+    /**
+    * @var Single 金币获取加成 (倍率) default(1) 
+    */
+    public $mul_gainGold;
+
+    /**
+    * @var Int32 角色特殊词条 default(0) 
+    */
+    public $special_predicate;
+
 }
 

+ 37 - 0
Gameserver/App/model/Const/sm_heroattr.php

@@ -0,0 +1,37 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-03-28 14:25:35
+////////////////////
+
+
+/**
+ * Static Model heroattr 人物属性
+ */
+class sm_heroattr
+{
+
+    /**
+    * @var Int32 人物属性id,跟代码里的枚举值对应,默认从1开始  
+    */
+    public $id;
+
+    /**
+    * @var String 属性名称  
+    */
+    public $name;
+
+    /**
+    * @var String 属性图标  
+    */
+    public $icon;
+
+    /**
+    * @var Int32 是否是百分比 是填1 default(0) 
+    */
+    public $isPer;
+
+}
+

+ 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 
- // 日期: 2023-09-14 10:02:09
+ // 日期: 2024-03-20 15:21:20
 ////////////////////
 
 

+ 164 - 0
Gameserver/App/model/Const/sm_plots.php

@@ -0,0 +1,164 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-03-28 14:37:59
+////////////////////
+
+
+/**
+ * Static Model plots 剧情对话
+ */
+class sm_plots
+{
+
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $id;
+
+    /**
+    * @var Int32 关卡id  
+    */
+    public $gateId;
+
+    /**
+    * @var Int32 阶段步骤: 
+    *  2023.12.21加入约定: 1是开始, 2是结束, 3以后是按照时间出现, 其他的在后面按照顺序排.  
+    */
+    public $stage;
+
+    /**
+    * @var Int32 序号  
+    */
+    public $order;
+
+    /**
+    * @var Boolean 是否关键帧 任务对话完成  default(0) 
+    */
+    public $isKeyOrder;
+
+    /**
+    * @var Int32 位置  
+    */
+    public $position;
+
+    /**
+    * @var Int32 显式时间:(自战斗开始以来的秒数)(stage类型>=3的时候生效)  
+    */
+    public $fireTs;
+
+    /**
+    * @var Int32 位置(Center,         // 0 中间 1人时    Left,           // 1 两人 左边 刷新 高亮     Right,          //2  两人 右边 刷新 高亮    OnlyLeft,       //3  单人 左边 唯一    OnlyRight,      //4  单人 右边 唯一 Narrator,       //5  旁白 不显示 演讲者
+    *      Player,         //6 玩家 当前 显示的演讲者 全部灰质)  
+    */
+    public $leftright;
+
+    /**
+    * @var String 角色编号  
+    */
+    public $icon;
+
+    /**
+    * @var String 角色对话美术资源  
+    */
+    public $speakerRes;
+
+    /**
+    * @var String 角色播放动画  
+    */
+    public $speakerAnim;
+
+    /**
+    * @var String 背景  
+    */
+    public $backgroundRes;
+
+    /**
+    * @var String 背景动画  
+    */
+    public $backgroundAnim;
+
+    /**
+    * @var Int32 字幕震动等级 default(0) 
+    */
+    public $shake;
+
+    /**
+    * @var String 对白文本  
+    */
+    public $dialogue;
+
+    /**
+    * @var String 赠与道具ID,num   
+    */
+    public $presentItem;
+
+    /**
+    * @var String 赠与效果  
+    */
+    public $presentEffect;
+
+    /**
+    * @var String 持有道具ID,num  
+    */
+    public $havingItem;
+
+    /**
+    * @var String 回收道具ID,num  
+    */
+    public $recycleItem;
+
+    /**
+    * @var String 回收效果  
+    */
+    public $recycleEffect;
+
+    /**
+    * @var DateTime 上次修改时间 default(CURRENT_TIMESTAMP) 
+    */
+    public $lastupdate;
+
+    /**
+    * @var Single 打印字幕速度 default(0.1) 
+    */
+    public $printTime;
+
+    /**
+    * @var Int32 动画循环模式 0 循环 其他播放次数 default(1) 
+    */
+    public $AnimLoop;
+
+    /**
+    * @var String 选择orderIndex 列表,[选择描述语句:orderIndex,选择描述语句:orderIndex]  
+    */
+    public $selectOrder;
+
+    /**
+    * @var Int32 下一句对话orderIndex ,默认为0时 order + 1  
+    */
+    public $nextOrder;
+
+    /**
+    * @var Int32 0:选择所有选项,1:选择唯一选项 default(0) 
+    */
+    public $selectType;
+
+    /**
+    * @var String 开始转场效果 动画名称 WhiteToBlack,BlackToWhite,WhiteToLucency,BlackToLucency,LucencyToWhite,LucencyToBlack,Transmitimg_in,Transmitimg_out,Transmitimg_1_out  
+    */
+    public $changeEffectStart;
+
+    /**
+    * @var String 结束转场效果 动画名称 WhiteToBlack,BlackToWhite,WhiteToLucency,BlackToLucency,LucencyToWhite,LucencyToBlack,Transmitimg_in,Transmitimg_out,Transmitimg_1_out  
+    */
+    public $changeEffectEnd;
+
+    /**
+    * @var String 激活孵化器Id 孵化器类型需要是 Event触发  
+    */
+    public $enableSpawnerId;
+
+}
+

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-06-28 17:52:31
+ // 日期: 2024-03-20 15:21:22
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-08-08 15:14:14
+ // 日期: 2024-03-20 15:21:17
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-08-08 14:24:32
+ // 日期: 2024-03-20 15:21:17
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-08-08 11:59:15
+ // 日期: 2024-03-20 15:21:17
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-08-08 15:16:14
+ // 日期: 2024-03-20 15:21:18
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-08-14 17:30:30
+ // 日期: 2024-03-20 15:21:18
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-08-08 16:16:19
+ // 日期: 2024-03-20 15:21:18
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-06-28 17:36:03
+ // 日期: 2024-03-20 15:21:24
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-15 16:47:42
+ // 日期: 2024-03-20 15:21:19
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-22 15:25:58
+ // 日期: 2024-03-20 15:21:19
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-19 16:41:34
+ // 日期: 2024-03-20 15:21:24
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-22 15:25:41
+ // 日期: 2024-03-20 15:21:24
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-07-19 17:33:16
+ // 日期: 2024-03-20 15:21:24
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-07-26 16:04:51
+ // 日期: 2024-03-20 15:21:24
 ////////////////////
 
 

+ 42 - 0
Gameserver/App/model/User/E_EquipPosition.php

@@ -0,0 +1,42 @@
+<?php
+namespace loyalsoft;
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/**
+ * Description of Enum_AchieveType
+ *
+ * @author c'y'zhao
+ */
+class E_EquipPosition extends Enum {
+    const None = 0;
+    /**
+     * 法帽
+     */
+    const Hat = 1;
+    /**
+     * 法杖
+     */
+    const Weapon = 2;
+    /**
+     * 法袍
+     */
+    const Robe = 3;
+    /**
+     * 戒指
+     */
+    const Ring = 4;
+    
+    /**
+     * 靴子
+     */
+    const Boots = 5;
+
+    /**
+     * 项链
+     */
+    const Necklace = 6;
+}

+ 38 - 3
Gameserver/App/model/User/Info_Store.php

@@ -20,30 +20,65 @@ class Info_Store extends Object_ext {
      * @var type
      */
     public $items;
+    
+    /**
+     * 宝石背包
+     * @var type
+     */
+    public $gemStore;
+    
+    /**
+     * 装备界面默认页
+     * @var type
+     */
+    public $equipPag =1;
 
     /**
      * 装备
      * @var type
      */
     public $equip;
+    
+    /**
+     * 宝石装备的信息
+     * @var type
+     */
+    public $gemEquip;
 
     /**
-     * 装备信息 装备不跟hero走
+     * 装备信息 装备不跟hero走--废弃
      * @var type
      */
     public $equipPosition = null;
     
+    
+    
     public function initialize() {
         $this->items = new \stdClass();
+        $this->gemStore = new \stdClass();
         $this->equip = new \stdClass();
-        $this->equipPosition = new \stdClass();
+        $this->gemEquip = new \stdClass();
     }
 
     public function __construct($arg = null) {
         if ($arg == null) {
             $this->items = new \stdClass();
+            $this->gemStore = new \stdClass();
             $this->equip = new \stdClass();
-            $this->equipPosition = new \stdClass();
+            for ($i = 1; $i <=6; $i++) {
+                $this->equip->$i = new Ins_Equip();
+            }
+            
+            $this->gemEquip = new \stdClass();
+            for ($k = 1; $k <=3; $k++) {                             
+                $item = new \stdClass();
+                for ($j = 1; $j <= 6; $j++) {
+                    $item->$j = new \stdClass();
+                }
+                $this->gemEquip->$k =$item;
+            }
+            
+            
         } else {
             parent::__construct($arg);
         }

+ 10 - 3
Gameserver/App/model/User/Ins_Equip.php

@@ -15,13 +15,20 @@ namespace loyalsoft;
  */
 class Ins_Equip {
     
-    public $uid = 0;
+    //public $uid = 0;
     
     public $typeId = 0;
     
     public $level = 1;
 
-    public $qual = 0;
+    /**
+     * 装备可以升级的提示,点开装备提示消失,当又得到金币或是图纸后又有提示绿点
+     * @var type
+     */
+    public $tip = 0;
+
+
+    //public $qual = 0;
     
-    public $posId = 0;
+    //public $posId = 0;
 }

+ 40 - 0
Gameserver/App/model/User/Ins_Gem.php

@@ -0,0 +1,40 @@
+<?php
+
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+namespace loyalsoft;
+
+/**
+ * Description of Ins_Gem
+ *
+ * @author c'y'zhao
+ */
+class Ins_Gem {
+    /**
+     * 索引id
+     * @var type
+     */
+    public $id = 0;
+
+    /**
+     * 词条
+     * @var type
+     */
+    public $predicateId = 0;
+
+    /**
+     * 是否已经被锁 0:没有 1:锁
+     * @var type
+     */
+    public $isUnlock = 0;
+
+    /**
+     * 新得到的宝石有绿点提示,点一下才会消除
+     * @var type
+     */
+    public $isNew = 0;
+}

+ 47 - 112
Gameserver/App/process/StoreProc.php

@@ -24,134 +24,73 @@ class StoreProc {
         switch ($req->cmd) {
             case CmdCode::cmd_store_put:                                        # 6401 放入仓库
                 return StoreProc::AddItemInStore();
-            case CmdCode::cmd_store_equip:                                      # 6402 装备
-                return StoreProc::equip();
-            case CmdCode::cmd_store_RemoveEquip:                                # 6403 卸下装备
-                return StoreProc::RemoveEquip();
+            case CmdCode::cmd_store_gemSet:                                      # 6402 装备宝石
+                return StoreProc::gemSet();
+            case CmdCode::cmd_store_gemRemove:                                  # 6403 卸下装备宝石
+                return StoreProc::gemRemove();
             case CmdCode::cmd_store_equipUpgrade:                               # 6404 装备升级
                 return StoreProc::equipUpgrade();
             case CmdCode::cmd_store_equipUpgrade_MaxLv:                         # 6405 一键升级(装备)
                 return StoreProc::equipUpgrade_MaxLv();
             case CmdCode::cmd_store_equipCompose:                               # 6406 装备合成(升阶/进化)
-                return StoreProc::equipCompose();
-            case CmdCode::store_equip_fallLevel:                                #6408 装备降级
-                return StoreProc::equipFallLevel();
-            case CmdCode::store_equip_fallQual:                                 #6409 装备降品    
-                return StoreProc::equipFallQual();    
+                return StoreProc::equipCompose(); 
+            case CmdCode::store_equip_removeEquipUpgradeTip:                    # 6410 移除装备可以升级绿点提示
+                return StoreProc::removeEquipUpgradeTip();       
+            case CmdCode::store_equip_removeNewGemTip:                          # 6411 移除是新宝石绿点提示
+                return StoreProc::removeNewGemTip();       
+            case CmdCode::store_allEquipUpgrade:                                # 6411 所有装备的一键升级
+                return StoreProc::allEquipUpgrade();        
             default:
                 Err(ErrCode::cmd_err);
         }
-    }
+    }  
+    
     /**
-     * 6409 装备降品  
+     * 
      * @return type
      */
-    public static function equipFallLevel() {
-        list($uid) = req()->paras;//武器uid
-                            
-        $price = self::GetEquipFallLevelInfo($uid);
-        StoreProc::AddMultiItemInStore($price);
-        ctx()->store->equip->$uid->level = 1;
-                
+    public static function allEquipUpgrade() {
+        list($uid) = req()->paras;
+        $user = ctx();
+
+        //my_Assert(StlUtil::dictHasProperty($user->store->equip, $uid), ErrCode::user_store_NoEquip);
         UserProc::updateUserInfo();
         return Resp::ok(array(
-                    'gold' => ctx()->baseInfo->gold,
-                    'store' => ctx()->store,));
+                    'heros' => $user->heros,
+                    'store' => $user->store,));
     }
     
-    public static function GetEquipFallLevelInfo($uid) {
-        my_Assert(StlUtil::dictHasProperty(ctx()->store->equip, $uid), ErrCode::user_store_NoEquip);
-        $curLv = ctx()->store->equip->$uid->level;   
-        my_Assert($curLv > 1, ErrCode::user_store_equipNoFallLevel);
-        
-        $equipMo = GameConfig::equip_getItem(ctx()->store->equip->$uid->typeId);
-        my_Assert($equipMo != null, ErrCode::err_const_no);
-        
-        $id = $equipMo->position;
-        $strList = explode(';', glc()->equipLeveUpTuzhi);
-        $tuzhiId = 0;
-        foreach ($strList as $str) {
-            $s = explode(',', $str);
-            if ($s[0] == $id)
-            {
-                $tuzhiId = $s[1];
-                break;
-            }
-        }
-                      
-        $dic = GameConfig::equip_levelupgrade();
-        $gold = 0;
-        $tuzhiNum = 0;
-        for ($i = 1; $i < $curLv; $i++)
-        {
-            $gold += $dic->$i->needGold;
-            $tuzhiNum += $dic->$i->needItemNum;
-        }
-        
-        $price = "1,".$gold.";".$tuzhiId.",".$tuzhiNum;
-        return $price;
-    }
-
-        /**
-     * 6408 装备降级
+    /**
+     * 
      * @return type
      */
-    public static function equipFallQual() {
+    public static function removeNewGemTip() {
         list($uid) = req()->paras;
-         
-        my_Assert(StlUtil::dictHasProperty(ctx()->store->equip, $uid), ErrCode::user_store_NoEquip);
-        $qual = ctx()->store->equip->$uid->qual;   
-        my_Assert($qual > 4, ErrCode::user_store_equipNoFallQual);
-        
-        $sList = explode(';',glc()->equipQualUnlockSkillId);                    
-        $tag = true;       
-        $fallQual = $qual;
-        foreach ($sList as $s) {
-            $str = explode(',', $s);
-            if ($qual == $str[0])
-            {
-                $tag = false;
-                break;
-            }
-            $num = 0;     
-            $fallQual = $str[0];
-            foreach ($str as $str2)
-            {
-                $num += 1;
-                if ($str2 == $qual)
-                {
-                    break;
-                }                
-            }
-        }
-        
-        my_Assert($tag, ErrCode::user_store_equipNoFallQual);           
-        $posId = 1;    
-        $commonId = 0;
-        $commonList = explode(';', glc()->EquipFallQualCommonItem);
-        foreach ($commonList as $str)
-        {
-            $s = explode(',', $str);
-            if ($s[0] == $posId)
-            {
-                $commonId = $s[1];
-            }
-        }
-        
-        $price = self::GetEquipFallLevelInfo($uid);
-        StoreProc::AddMultiItemInStore($price);    
-        if($num -1 > 0){
-            $num-=1;
-            StoreProc::AddMultiItemInStore($commonId.','.$num);
-        }    
-        ctx()->store->equip->$uid->qual = $fallQual;
-        
+        $user = ctx();
+
+        //my_Assert(StlUtil::dictHasProperty($user->store->equip, $uid), ErrCode::user_store_NoEquip);
         UserProc::updateUserInfo();
         return Resp::ok(array(
-                    'gold' => ctx()->baseInfo->gold,
-                    'store' => ctx()->store,));
+                    'heros' => $user->heros,
+                    'store' => $user->store,));
     }
+    
+    /**
+     * 
+     * @return type
+     */
+    public static function removeEquipUpgradeTip() {
+        list($uid) = req()->paras;
+        $user = ctx();
 
+        //my_Assert(StlUtil::dictHasProperty($user->store->equip, $uid), ErrCode::user_store_NoEquip);
+        UserProc::updateUserInfo();
+        return Resp::ok(array(
+                    'heros' => $user->heros,
+                    'store' => $user->store,));
+    }
+    
+    
     /**
      * 6406 合成
      * @return type
@@ -161,10 +100,6 @@ class StoreProc {
         $user = ctx();
 
         //my_Assert(StlUtil::dictHasProperty($user->store->equip, $uid), ErrCode::user_store_NoEquip);
-
-
-
-
         UserProc::updateUserInfo();
         return Resp::ok(array(
                     'heros' => $user->heros,
@@ -175,7 +110,7 @@ class StoreProc {
      * 装备
      * @return type
      */
-    public static function equip() {
+    public static function gemSet() {
         list($uid) = req()->paras;
         $user = ctx();
 
@@ -206,7 +141,7 @@ class StoreProc {
      * 卸下装备
      * @return type
      */
-    public static function RemoveEquip() {
+    public static function gemRemove() {
         list($posId) = req()->paras;
         $user = ctx();