|
|
@@ -961,12 +961,16 @@ func (this *RoleBattle) BossRewardPre() (serverproto.ErrorCode, int32, []*server
|
|
|
|
|
|
//获取衰减系数
|
|
|
var decayList []*serverproto.KeyValueType
|
|
|
- if this.mapFightCheck() == serverproto.ErrorCode_ERROR_OK {
|
|
|
+ var code serverproto.ErrorCode
|
|
|
+ code = this.mapFightCheck()
|
|
|
+ if code == serverproto.ErrorCode_ERROR_OK {
|
|
|
var kvList = map[int32]int32{}
|
|
|
this.getDecayList(kvList, nowTime)
|
|
|
for k, v := range kvList {
|
|
|
decayList = append(decayList, &serverproto.KeyValueType{Key: k, Value: v})
|
|
|
}
|
|
|
+ } else {
|
|
|
+ return code, 0, decayList
|
|
|
}
|
|
|
|
|
|
//todo...
|