From fdf8effb8e4cc019b3c886b131606371e349ed0a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 13 十二月 2023 10:32:55 +0800
Subject: [PATCH] 10033 【后端】仙树升级系统及砍树产出规则(仙树系统;砍树基础)
---
ClientPack/ClientToMapServer/CB2_NewFunction/CutTree.h | 7 +++++++
ServerPack/MapServerPack/HB1_Role/CutTreeResult | 0
ServerPack/MapServerPack/HB1_Role/TreeInfo.h | 9 +++++++++
ServerPack/MapServerPack/HB1_Role/CutTreeResult.h | 15 +++++++++++++++
ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP | 0
ServerPack/MapServerPack/HB1_Role/CutTreeResult.des | 1 +
ClientPack/ClientToMapServer/CB2_NewFunction/CutTree | 0
ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP.h | 7 +++++++
ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP.h | 9 +++++++++
ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP | 0
ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP.des | 1 +
ServerPack/MapServerPack/HB1_Role/TreeInfo.des | 1 +
ClientPack/ClientToMapServer/CB2_NewFunction/CutTree.des | 1 +
ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP.des | 1 +
ServerPack/MapServerPack/HB1_Role/TreeInfo | 0
15 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/ClientPack/ClientToMapServer/CB2_NewFunction/CutTree b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTree
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTree
diff --git a/ClientPack/ClientToMapServer/CB2_NewFunction/CutTree.des b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTree.des
new file mode 100644
index 0000000..9312b11
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTree.des
@@ -0,0 +1 @@
+B2 21 玩家砍树 #tagCMCutTree
diff --git a/ClientPack/ClientToMapServer/CB2_NewFunction/CutTree.h b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTree.h
new file mode 100644
index 0000000..2934a9e
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTree.h
@@ -0,0 +1,7 @@
+// B2 21 玩家砍树 #tagCMCutTree
+
+struct tagCMCutTree
+{
+ tagHead Head;
+ BYTE CutCount; // 砍几次,默认1
+};
diff --git a/ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP
diff --git a/ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP.des b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP.des
new file mode 100644
index 0000000..5ac602c
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP.des
@@ -0,0 +1 @@
+B2 22 砍树装备操作 #tagCMCutTreeEquipOP
diff --git a/ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP.h b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP.h
new file mode 100644
index 0000000..c1a99e4
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CB2_NewFunction/CutTreeEquipOP.h
@@ -0,0 +1,9 @@
+// B2 22 砍树装备操作 #tagCMCutTreeEquipOP
+
+struct tagCMCutTreeEquipOP
+{
+ tagHead Head;
+ BYTE ItemIndex; // 物品在砍树背包的索引
+ BYTE OPType; // 操作类型:1-替换;2-分解
+ BYTE AutoDecompose; // 替换后是否自动分解原装备:0否1是,仅替换操作下有用
+};
diff --git a/ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP b/ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP
diff --git a/ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP.des b/ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP.des
new file mode 100644
index 0000000..1b5f0b0
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP.des
@@ -0,0 +1 @@
+B2 23 仙树升级 #tagCMTreeLVUP
diff --git a/ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP.h b/ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP.h
new file mode 100644
index 0000000..2ea3e61
--- /dev/null
+++ b/ClientPack/ClientToMapServer/CB2_NewFunction/TreeLVUP.h
@@ -0,0 +1,7 @@
+// B2 23 仙树升级 #tagCMTreeLVUP
+
+struct tagCMTreeLVUP
+{
+ tagHead Head;
+ BYTE Type; // 0-开始升级(请求扣除消耗,开始升级倒计时);1-执行升级(前端自行倒计时,时间到后发送该类型)
+};
diff --git a/ServerPack/MapServerPack/HB1_Role/CutTreeResult b/ServerPack/MapServerPack/HB1_Role/CutTreeResult
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ServerPack/MapServerPack/HB1_Role/CutTreeResult
diff --git a/ServerPack/MapServerPack/HB1_Role/CutTreeResult.des b/ServerPack/MapServerPack/HB1_Role/CutTreeResult.des
new file mode 100644
index 0000000..e1e5113
--- /dev/null
+++ b/ServerPack/MapServerPack/HB1_Role/CutTreeResult.des
@@ -0,0 +1 @@
+B1 22 砍树结果 #tagMCCutTreeResult
diff --git a/ServerPack/MapServerPack/HB1_Role/CutTreeResult.h b/ServerPack/MapServerPack/HB1_Role/CutTreeResult.h
new file mode 100644
index 0000000..374a144
--- /dev/null
+++ b/ServerPack/MapServerPack/HB1_Role/CutTreeResult.h
@@ -0,0 +1,15 @@
+// B1 22 砍树结果 #tagMCCutTreeResult
+
+struct tagMCCutTreeExItem
+{
+ DWORD ItemID; // 额外奖励物品ID
+ WORD ItemCount; // 额外奖励物品ID对应个数
+};
+
+struct tagMCCutTreeResult
+{
+ tagHead Head;
+ BYTE EquipCount; // 获得装备数量,默认展示在砍树背包中的装备即可,收到该封包前会先收到0704物品刷新
+ BYTE ExItemCount; // 额外奖励物品数
+ tagMCCutTreeExItem ExItemList[ExItemCount]; // 额外奖励物品列表
+};
diff --git a/ServerPack/MapServerPack/HB1_Role/TreeInfo b/ServerPack/MapServerPack/HB1_Role/TreeInfo
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ServerPack/MapServerPack/HB1_Role/TreeInfo
diff --git a/ServerPack/MapServerPack/HB1_Role/TreeInfo.des b/ServerPack/MapServerPack/HB1_Role/TreeInfo.des
new file mode 100644
index 0000000..e48d31a
--- /dev/null
+++ b/ServerPack/MapServerPack/HB1_Role/TreeInfo.des
@@ -0,0 +1 @@
+B1 21 仙树信息 #tagMCTreeInfo
diff --git a/ServerPack/MapServerPack/HB1_Role/TreeInfo.h b/ServerPack/MapServerPack/HB1_Role/TreeInfo.h
new file mode 100644
index 0000000..21bbc35
--- /dev/null
+++ b/ServerPack/MapServerPack/HB1_Role/TreeInfo.h
@@ -0,0 +1,9 @@
+// B1 21 仙树信息 #tagMCTreeInfo
+
+struct tagMCTreeInfo
+{
+ tagHead Head;
+ BYTE TreeLV; // 当前仙树等级
+ BYTE LVUPState; // 0-非升级中;1-升级中
+ DWORD LVUPRemainTime; // 升级剩余时间,秒;当升级中且倒计时为0时可发送B223执行升级包进行升级
+};
--
Gitblit v1.8.0