Commit b3772d2254470b4271c7b79034ec5c3de839b926
1 parent
3089e199
fix: 增加first单独奖励。
奖励数据类型 string to num。
Showing
4 changed files
with
9 additions
and
7 deletions
Show diff stats
equipment.proto
@@ -14,7 +14,7 @@ message EquipmentDelReq { | @@ -14,7 +14,7 @@ message EquipmentDelReq { | ||
14 | } | 14 | } |
15 | 15 | ||
16 | message EquipmentDelRsp { | 16 | message EquipmentDelRsp { |
17 | - map<string,int32> reward = 1; | 17 | + map<int32,int32> reward = 1; |
18 | } | 18 | } |
19 | 19 | ||
20 | message EquipmentAddNty { | 20 | message EquipmentAddNty { |
gem.proto
@@ -11,7 +11,7 @@ import "models.proto"; | @@ -11,7 +11,7 @@ import "models.proto"; | ||
11 | 11 | ||
12 | message GemSliceReq { | 12 | message GemSliceReq { |
13 | string slot_id = 1; | 13 | string slot_id = 1; |
14 | - map<string,int32> costs = 2; | 14 | + map<int32,int32> costs = 2; |
15 | int32 attention_id = 3; | 15 | int32 attention_id = 3; |
16 | } | 16 | } |
17 | 17 |
models.proto
@@ -81,7 +81,7 @@ message GemSlot { | @@ -81,7 +81,7 @@ message GemSlot { | ||
81 | string id = 1; // @inject_tag: index:"unique" pri:"1" | 81 | string id = 1; // @inject_tag: index:"unique" pri:"1" |
82 | string role_id = 2; | 82 | string role_id = 2; |
83 | int32 slot = 3; | 83 | int32 slot = 3; |
84 | - map<string,int32> reward = 4; | 84 | + map<int32,int32> reward = 4; |
85 | int64 end_time = 5; | 85 | int64 end_time = 5; |
86 | bool start = 6; | 86 | bool start = 6; |
87 | repeated int32 gem_attention = 7; | 87 | repeated int32 gem_attention = 7; |
role.proto
@@ -87,13 +87,14 @@ message RoleEndBattleRsp { | @@ -87,13 +87,14 @@ message RoleEndBattleRsp { | ||
87 | int32 role_level = 1; | 87 | int32 role_level = 1; |
88 | int32 role_exp = 2; | 88 | int32 role_exp = 2; |
89 | int32 role_expamount = 3; | 89 | int32 role_expamount = 3; |
90 | - string reward = 4; | 90 | + map<int32,int32> reward = 4; |
91 | bool pass = 5; | 91 | bool pass = 5; |
92 | repeated models.Hero hero = 6; | 92 | repeated models.Hero hero = 6; |
93 | int32 chapter_id = 7; | 93 | int32 chapter_id = 7; |
94 | int32 carbon_id = 8; | 94 | int32 carbon_id = 8; |
95 | - string drop_reward = 9; | 95 | + map<int32,int32> drop_reward = 9; |
96 | int32 sp = 10; | 96 | int32 sp = 10; |
97 | + map<int32,int32> first_reward = 11; | ||
97 | } | 98 | } |
98 | 99 | ||
99 | message RoleGuideRar { | 100 | message RoleGuideRar { |
@@ -112,11 +113,11 @@ message RoleTaskUpdateNty { | @@ -112,11 +113,11 @@ message RoleTaskUpdateNty { | ||
112 | } | 113 | } |
113 | 114 | ||
114 | message RoleOpenBoxReq { | 115 | message RoleOpenBoxReq { |
115 | - map<string,int32> costs = 1; | 116 | + map<int32,int32> costs = 1; |
116 | } | 117 | } |
117 | 118 | ||
118 | message RoleOpenBoxRsp { | 119 | message RoleOpenBoxRsp { |
119 | - map<string,int32> reward = 3; | 120 | + map<int32,int32> reward = 3; |
120 | } | 121 | } |
121 | 122 | ||
122 | message RoleBuffRar { | 123 | message RoleBuffRar { |
@@ -210,6 +211,7 @@ message RoleMoppingUpReq { | @@ -210,6 +211,7 @@ message RoleMoppingUpReq { | ||
210 | message RoleMoppingUpRsp { | 211 | message RoleMoppingUpRsp { |
211 | repeated string reward = 1; | 212 | repeated string reward = 1; |
212 | repeated string drop_reward = 2; | 213 | repeated string drop_reward = 2; |
214 | + map<int32,int32> first_reward = 3; | ||
213 | } | 215 | } |
214 | 216 | ||
215 | 217 |