Commit f30a310d0f1d60f7471465435e20af741e66eab4

Authored by liuzujun
1 parent 0285ef6c

世界聊天等级15判断

Showing 2 changed files with 5 additions and 1 deletions   Show diff stats
src/actions/RoleAction.lua
@@ -1013,6 +1013,10 @@ function _M.chatRpc(agent, data) @@ -1013,6 +1013,10 @@ function _M.chatRpc(agent, data)
1013 result = 1 1013 result = 1
1014 return 1014 return
1015 end 1015 end
  1016 + if role:getProperty("level") < (globalCsv.chat_level or 15) then
  1017 + result = 3
  1018 + return
  1019 + end
1016 1020
1017 role._worldChatLimit = role._worldChatLimit or {start = 0, count = 0, canSayt = 0} --第一次开始说话时间 从第一次说话次数 能说话的时间 1021 role._worldChatLimit = role._worldChatLimit or {start = 0, count = 0, canSayt = 0} --第一次开始说话时间 从第一次说话次数 能说话的时间
1018 1022
1 -Subproject commit 6c280f14faafd9be8f7a578bc270bdd2310aa930 1 +Subproject commit 76b7ed2b1684a9741a5c531e616acc31c8b5aa9d