|
@@ -87,11 +87,11 @@ func getRoomLackColor(room_info *msg.RoomInfo) msg.RoleType {
|
|
temp = append(temp, msg.RoleType_RED)
|
|
temp = append(temp, msg.RoleType_RED)
|
|
temp = append(temp, msg.RoleType_YELLOW)
|
|
temp = append(temp, msg.RoleType_YELLOW)
|
|
|
|
|
|
- console.Log("room_info.Colors:", room_info.Colors)
|
|
|
|
for i := 0; i < len(room_info.Colors); i++ {
|
|
for i := 0; i < len(room_info.Colors); i++ {
|
|
color_data := room_info.Colors[i]
|
|
color_data := room_info.Colors[i]
|
|
temp = RemoveColorByColor(temp, color_data.MColor)
|
|
temp = RemoveColorByColor(temp, color_data.MColor)
|
|
}
|
|
}
|
|
|
|
+ console.Log("temp:", temp)
|
|
if len(temp) > 0 {
|
|
if len(temp) > 0 {
|
|
select_color = temp[0]
|
|
select_color = temp[0]
|
|
}
|
|
}
|