Commit f4aaf768 authored by mercury233's avatar mercury233

update

parent 2da3109b
......@@ -6,7 +6,7 @@
"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": "."
"random_banned_part3": ".",
"random_warn_part1": "The system detects that recently you had",
"random_warn_part2": ", you will be penalized after 3 offences",
"windbot_deck_not_found": "Oops, AI or Deck not found",
......@@ -35,7 +35,7 @@
"enter_correct_user": "Please enter the correct ID",
"client_overload": "Too many clients running at the moment! ",
"banned_ip_login": "You have been banned.",
"banned_user_login": "You have been banned."
"banned_user_login": "You have been banned.",
"bad_name_level3": "Your ID contains illegal characters.",
"bad_name_level2": "Your ID contains illegal characters.",
"bad_name_level1": "Your ID contains inappropriate langauge.",
......@@ -55,7 +55,7 @@
"zombie_player": "Zombin'",
"kicked_by_player": "removed from the game",
"kicked_by_system_count_down": "seconds before being removed if the game has not start.",
"chat_order_main": "YGOSrv233 function list",
"chat_order_main": "Mycard YGOPro Server function list",
"chat_order_help": "/help show this list",
"chat_order_roomname": "/roomname show room name",
"chat_order_windbot": "/ai to add an AI,/ai name to add selected AI ",
......@@ -90,7 +90,7 @@
"random_duel_enter_room_match": "您进入了比赛模式的房间,我们推荐使用竞技卡组!",
"random_banned_part1": "因为您近期在游戏中多次",
"random_banned_part2": ",您已被禁止使用随机对战功能,将在",
"random_banned_part3": "后解封"
"random_banned_part3": "后解封",
"random_warn_part1": "系统检测到您近期在游戏中",
"random_warn_part2": ",若您违规超过3次,将受到惩罚",
"windbot_deck_not_found": "未找到该AI角色或卡组",
......@@ -119,7 +119,7 @@
"enter_correct_user": "请输入正确的用户名",
"client_overload": "同时开启的客户端数量过多 ",
"banned_ip_login": "您的账号已被封禁",
"banned_user_login": "您的账号已被封禁"
"banned_user_login": "您的账号已被封禁",
"bad_name_level3": "您的用户名存在不适当的内容",
"bad_name_level2": "您的用户名存在不适当的内容",
"bad_name_level1": "您的用户名存在不适当的内容,请注意更改",
......@@ -139,7 +139,7 @@
"zombie_player": "挂房间",
"kicked_by_player": "被请出了房间",
"kicked_by_system_count_down": "秒后房主若不开始游戏将被请出房",
"chat_order_main": "YGOSrv233 指令帮助",
"chat_order_main": "Mycard YGOPro Server 指令帮助",
"chat_order_help": "/help 显示这个帮助信息",
"chat_order_roomname": "/roomname 显示当前房间的名字",
"chat_order_windbot": "/ai 添加一个AI,/ai 角色名 可指定添加的角色",
......
......@@ -212,7 +212,7 @@ ROOM_find_or_create_random = (type, player_ip)->
return {"error": "因为您近期在游戏中#{bannedplayer.reasons.join('、')},在#{moment(bannedplayer.time).fromNow(true)}内您随机对战时只能遇到其他违规玩家"}
else if bannedplayer.need_tip
bannedplayer.need_tip = false
return {"error": "系统检测到您近期在游戏中#{bannedplayer.reasons.join('、')},若您违规超过3次,将受到惩罚"}
return {"error": "${random_warn_part1}#{bannedplayer.reasons.join('、')}${random_warn_part2}"}
else if bannedplayer.count > 2
bannedplayer.need_tip = true
max_player = if type == 'T' then 4 else 2
......@@ -254,14 +254,14 @@ ROOM_find_or_create_ai = (name)->
windbot = _.sample _.filter settings.modules.windbots, (w)->
w.name == ainame or w.deck == ainame
if !windbot
return { "error": "未找到该AI角色或卡组" }
return { "error": "${windbot_deck_not_found}" }
name = name + ',' + Math.floor(Math.random() * 100000)
else
windbot = _.sample settings.modules.windbots
name = name + '#' + Math.floor(Math.random() * 100000)
if name.replace(/[^\x00-\xff]/g,"00").length>20
log.info "long ai name", name
return { "error": "AI房间名过长,请在建立房间后输入 /ai 来添加AI" }
return { "error": "${windbot_name_too_long}" }
result = new Room(name)
result.windbot = windbot
result.private = 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