Commit f30a310d0f1d60f7471465435e20af741e66eab4
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 | 1013 | result = 1 |
1014 | 1014 | return |
1015 | 1015 | end |
1016 | + if role:getProperty("level") < (globalCsv.chat_level or 15) then | |
1017 | + result = 3 | |
1018 | + return | |
1019 | + end | |
1016 | 1020 | |
1017 | 1021 | role._worldChatLimit = role._worldChatLimit or {start = 0, count = 0, canSayt = 0} --第一次开始说话时间 从第一次说话次数 能说话的时间 |
1018 | 1022 | ... | ... |