diff --git a/src/GlobalVar.lua b/src/GlobalVar.lua index b999f14..e035e0f 100644 --- a/src/GlobalVar.lua +++ b/src/GlobalVar.lua @@ -95,6 +95,7 @@ ItemType = { CommonPaster = 18, -- 万能贴纸 BossTicket = 20, -- boss挑战门票 Spark = 21, -- 火花 + Stick = 23, -- 贴纸 } --在这个里面的会记录的是功能开放 对应类型open 而不是 ID diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index f0b09d9..814945e 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -1603,7 +1603,7 @@ function _M.useSelectItemRpc(agent, data) local count = msg.count if math.illegalNum(count, 1, role:getItemCount(itemId)) then return end local itemData = csvdb["itemCsv"][itemId] - if not (itemData.type == ItemType.SelectItemBox or itemData.type == ItemType.CommonPaster) then return end + if not (itemData.type == ItemType.SelectItemBox or itemData.type == ItemType.CommonPaster or itemData.type == ItemType.Stick) then return end local itemMap = itemData.use_effect:toNumMap() local reward, change = {} for k, v in pairs(itemMap) do -- libgit2 0.21.2