|
@@ -126,9 +126,14 @@ func (room_info *RoomInfoWrapper) notify_settlement() {
|
|
}
|
|
}
|
|
matchConfig := gameRule.getMatchByLevle(room_info.RoomLevel)
|
|
matchConfig := gameRule.getMatchByLevle(room_info.RoomLevel)
|
|
for _, v := range message.FinishColors {
|
|
for _, v := range message.FinishColors {
|
|
- user_id := v.MId
|
|
|
|
- v.MRewardCoin = matchConfig.rewardNum
|
|
|
|
- user.AddUserCoin(v.MRewardCoin, user_id)
|
|
|
|
|
|
+ if room_info.containsRobot(v.MColor) {
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ user_id := v.MId
|
|
|
|
+ v.MRewardCoin = matchConfig.rewardNum
|
|
|
|
+ user.AddUserCoin(v.MRewardCoin, user_id)
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
room_info.notify_to_all_player(message)
|
|
room_info.notify_to_all_player(message)
|
|
room_info.dismiss_room()
|
|
room_info.dismiss_room()
|