| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- --圣者遗物
- local ItemData = require("bag.Proto").ItemData
- local Attr = require("role.Proto").Attr
- -- 遗物网络传输结构
- SacredRelicNet = {
- {"id", 1, "int"}, -- 遗物ID
- {"name", 1, "string"}, -- 遗物名称
- {"activateItem", 1, "int"}, -- 激活所需道具ID
- {"attr", 4, Attr}, -- 基础属性 生命/攻击/防御/速度
- {"nextattr", 4, Attr},
- {"effectDesc", 1, "string"}, -- 效果描述
- {"effectData", 4, "double"}, --当前加成数据
- {"effectNextData",4, "double"}, --下一级加成
- {"effectMaxData", 4, "double"}, --最大等级加成
- {"type", 1, "int"}, -- 遗物类型 (1:攻击型,2:防御型,3:辅助型)
- {"upGradeCost", 1, ItemData}, -- 激活/升级消耗道具信息
- {"starLevel", 1, "int"}, -- 星级
- {"equipLimit", 1, "int"}, -- 可装备英雄数量
- {"heroIdx" , 5, "int"}, -- 背包index
- }
- -- 客户端请求遗物列表
- CG_SACRED_RELIC_QUERY = {
-
- }
- -- 服务端返回遗物列表
- GC_SACRED_RELIC_QUERY = {
- {"nAllStar", 1, "int"}, -- 总星数
- {"SacredRelicConfigs", 30, SacredRelicNet},-- 星级配置
- }
- -- 客户端请求激活/升星遗物
- CG_SACRED_RELIC_UPGRADE = {
- {"relicId", 1, "int"}, -- 遗物ID
- }
- -- 服务端返回升级结果
- GC_SACRED_RELIC_UPGRADE = {
- {"data", 1, SacredRelicNet}, -- 遗物ID
- }
- -- 客户端请求装备/卸下遗物
- CG_SACRED_RELIC_EQUIP = {
- {"heroID", 1, "int"},
- {"heroIdx", 1, "int"}, -- heroBag = {[0] = HeroDefine.HERO_BAG_CNT},-- 英雄背包[index] ={id,lv等级,quality品阶}
- {"relicId", 1, "int"}, -- 遗物ID
- {"operate", 1, "int"}, -- 操作(0表示卸下,1表示装备)
- }
- -- 服务端返回装备/卸下结果
- GC_SACRED_RELIC_EQUIP = {
- {"heroIdx", 1, "int"}, -- heroBag = {[0] = HeroDefine.HERO_BAG_CNT},-- 英雄背包[index] ={id,lv等级,quality品阶}
- {"olddata", 1, SacredRelicNet}, -- 遗物
- {"newdata", 1, SacredRelicNet}, -- 遗物
- }
|