Commit a17d8977 authored by mercury233's avatar mercury233

fix color

parent ccda9ea5
...@@ -249,6 +249,7 @@ ...@@ -249,6 +249,7 @@
"ATTRIBUTE_DEVINE": 64 "ATTRIBUTE_DEVINE": 64
}, },
"COLORS": { "COLORS": {
"LIGHTBLUE": 8,
"RED": 11, "RED": 11,
"GREEN": 12, "GREEN": 12,
"BLUE": 13, "BLUE": 13,
...@@ -256,7 +257,8 @@ ...@@ -256,7 +257,8 @@
"PINK": 15, "PINK": 15,
"YELLOW": 16, "YELLOW": 16,
"WHITE": 17, "WHITE": 17,
"GRAY": 18 "GRAY": 18,
"DARKGRAY": 19
} }
} }
......
...@@ -756,7 +756,7 @@ wait_room_start = (room, time)-> ...@@ -756,7 +756,7 @@ wait_room_start = (room, time)->
time -= 1 time -= 1
if time if time
unless time % 5 unless time % 5
ygopro.stoc_send_chat_to_room(room, "#{if time <= 9 then ' ' else ''}#{time}秒后房主若不开始游戏将被请出房间", if time <= 9 then ygopro.constants.COLORS.RED else ygopro.constants.COLORS.BABYBLUE) ygopro.stoc_send_chat_to_room(room, "#{if time <= 9 then ' ' else ''}#{time}秒后房主若不开始游戏将被请出房间", if time <= 9 then ygopro.constants.COLORS.RED else ygopro.constants.COLORS.LIGHTBLUE)
setTimeout (()-> wait_room_start(room, time);return), 1000 setTimeout (()-> wait_room_start(room, time);return), 1000
else else
for player in room.players for player in room.players
......
...@@ -864,7 +864,7 @@ ...@@ -864,7 +864,7 @@
time -= 1; time -= 1;
if (time) { if (time) {
if (!(time % 5)) { if (!(time % 5)) {
ygopro.stoc_send_chat_to_room(room, "" + (time <= 9 ? ' ' : '') + time + "秒后房主若不开始游戏将被请出房间", time <= 9 ? ygopro.constants.COLORS.RED : ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat_to_room(room, "" + (time <= 9 ? ' ' : '') + time + "秒后房主若不开始游戏将被请出房间", time <= 9 ? ygopro.constants.COLORS.RED : ygopro.constants.COLORS.LIGHTBLUE);
} }
setTimeout((function() { setTimeout((function() {
wait_room_start(room, time); wait_room_start(room, time);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment