--- 经验加成类信息统一处理 --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by zhoutao. --- DateTime: 2024/11/7 10:57 --- ExpBonus = {} BonusType = { EXP_DRUG_BONUS = 1, -- 经验药水加成 VIP_EXP_BONUS = 2, -- vip经验加成 PRIVILEGE_EXP_BONUS = 3, -- 特权经验加成 } --- 加成改变通知客户端 ---@param actor table 角色对象 ---@param bonusType number 加成类型 ---@param value number 加成值 ---@param expireTime number 加成过期时间 ---@param buffId number buffId function ExpBonus.changeBonus(actor, bonusType, value, expireTime, buffId) sendluamsg(actor, LuaMessageIdToClient.RES_EXP_BONUS_INFO, { bonusType = bonusType, value = value, expireTime = expireTime, buffId = buffId }) end