From f30a310d0f1d60f7471465435e20af741e66eab4 Mon Sep 17 00:00:00 2001 From: liuzujun <307836273@qq.com> Date: Sat, 23 Jan 2021 09:56:40 +0800 Subject: [PATCH] 世界聊天等级15判断 --- src/actions/RoleAction.lua | 4 ++++ src/csvdata | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 5cb76f5..9c18d5a 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -1013,6 +1013,10 @@ function _M.chatRpc(agent, data) result = 1 return end + if role:getProperty("level") < (globalCsv.chat_level or 15) then + result = 3 + return + end role._worldChatLimit = role._worldChatLimit or {start = 0, count = 0, canSayt = 0} --第一次开始说话时间 从第一次说话次数 能说话的时间 diff --git a/src/csvdata b/src/csvdata index 6c280f1..76b7ed2 160000 --- a/src/csvdata +++ b/src/csvdata @@ -1 +1 @@ -Subproject commit 6c280f14faafd9be8f7a578bc270bdd2310aa930 +Subproject commit 76b7ed2b1684a9741a5c531e616acc31c8b5aa9d -- libgit2 0.21.2