Commit 3165650fa6204632ea2054106c956a30939c04dd
1 parent
71f9af77
feat: 英雄品质升级;新增 1. 品质升级协议; 2. 记忆碎片升级协议
Showing
3 changed files
with
21 additions
and
1 deletions
Show diff stats
hero.proto
| @@ -72,4 +72,22 @@ message HeroAddNty { | @@ -72,4 +72,22 @@ message HeroAddNty { | ||
| 72 | message HeroUpdatePropertyNty { | 72 | message HeroUpdatePropertyNty { |
| 73 | repeated string keys = 1; | 73 | repeated string keys = 1; |
| 74 | models.Activity activity = 2; | 74 | models.Activity activity = 2; |
| 75 | +} | ||
| 76 | + | ||
| 77 | +message HeroQualityUpLevelReq{ | ||
| 78 | + string hero_id = 1; | ||
| 79 | +} | ||
| 80 | + | ||
| 81 | +message HeroQualityUpLevelRsp{ | ||
| 82 | + models.Hero hero = 1; | ||
| 83 | +} | ||
| 84 | + | ||
| 85 | +message HeroMemorySlotUpLevelReq{ | ||
| 86 | + string hero_id = 1; | ||
| 87 | + int32 slot = 2; | ||
| 88 | + string cost = 3; | ||
| 89 | +} | ||
| 90 | + | ||
| 91 | +message HeroMemorySlotUpLevelRsp{ | ||
| 92 | + models.Hero hero = 1; | ||
| 75 | } | 93 | } |
| 76 | \ No newline at end of file | 94 | \ No newline at end of file |
models.proto
| @@ -25,7 +25,7 @@ message Hero { | @@ -25,7 +25,7 @@ message Hero { | ||
| 25 | map<string,int32> equipments = 7; | 25 | map<string,int32> equipments = 7; |
| 26 | int32 star = 8; | 26 | int32 star = 8; |
| 27 | int32 rein_count = 9; | 27 | int32 rein_count = 9; |
| 28 | - map<int32,int32> slot = 10; | 28 | + map<int32,string> slot_memory = 10; // [slot_id:itemId=star=exp] |
| 29 | int32 quality = 11; | 29 | int32 quality = 11; |
| 30 | } | 30 | } |
| 31 | 31 |
protocode.proto
| @@ -34,6 +34,8 @@ enum ProtoCode | @@ -34,6 +34,8 @@ enum ProtoCode | ||
| 34 | HeroUpLevelRpc = 204; | 34 | HeroUpLevelRpc = 204; |
| 35 | HeroReinRpc = 205; | 35 | HeroReinRpc = 205; |
| 36 | HeroSkillUpLevelRpc = 206; | 36 | HeroSkillUpLevelRpc = 206; |
| 37 | + HeroQualityUpLevelRpc = 207; | ||
| 38 | + HeroMemorySlotUpLevelRpc = 208; | ||
| 37 | 39 | ||
| 38 | EmailListRpc = 301; | 40 | EmailListRpc = 301; |
| 39 | EmailDrawRpc = 302; | 41 | EmailDrawRpc = 302; |