Commit be6cabb6 authored by mercury233's avatar mercury233

test

parent 67a4be90
......@@ -3,12 +3,18 @@
"kicked_by_system": " is kicked by system.",
"random_duel_enter_room_waiting": "Your opponent is waiting for you, start duel now!",
"random_duel_enter_room_new": "entered new random duel room",
"random_duel_enter_room_match": "match mode, please use powerful deck"
"random_duel_enter_room_match": "match mode, please use powerful deck",
"random_banned_part1": "You had been banned to use random duel because ",
"random_banned_part2": ". The ban will last until ",
"random_banned_part3": "."
},
"zh-cn": {
"kicked_by_system": " 被系统请出了房间",
"random_duel_enter_room_waiting": "对手已经在等你了,开始决斗吧!",
"random_duel_enter_room_new": "已建立随机对战房间,正在等待对手!",
"random_duel_enter_room_match": "您进入了比赛模式的房间,我们推荐使用竞技卡组!"
"random_duel_enter_room_match": "您进入了比赛模式的房间,我们推荐使用竞技卡组!",
"random_banned_part1": "因为您近期在游戏中多次",
"random_banned_part2": ",您已被禁止使用随机对战功能,将在",
"random_banned_part3": "后解封"
}
}
\ No newline at end of file
......@@ -206,7 +206,7 @@ ROOM_find_or_create_random = (type, player_ip)->
return player_ip == bannedplayer.ip
if bannedplayer
if bannedplayer.count > 6 and moment() < bannedplayer.time
return {"error": "因为您近期在游戏中多次#{bannedplayer.reasons.join('、')},您已被禁止使用随机对战功能,将在#{moment(bannedplayer.time).fromNow(true)}后解封"}
return {"error": "${random_banned_part1}#{bannedplayer.reasons.join('、')}${random_banned_part2}#{moment(bannedplayer.time).fromNow(true)}${random_banned_part3}"}
if bannedplayer.count > 3 and moment() < bannedplayer.time and bannedplayer.need_tip
bannedplayer.need_tip = false
return {"error": "因为您近期在游戏中#{bannedplayer.reasons.join('、')},在#{moment(bannedplayer.time).fromNow(true)}内您随机对战时只能遇到其他违规玩家"}
......
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