Commit 1c77df08c06dbcee109dc73b4e4c53931a4c5207
1 parent
d63519df
fix: 角色贴纸兑换 增加类型 23
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
src/GlobalVar.lua
@@ -95,6 +95,7 @@ ItemType = { | @@ -95,6 +95,7 @@ ItemType = { | ||
95 | CommonPaster = 18, -- 万能贴纸 | 95 | CommonPaster = 18, -- 万能贴纸 |
96 | BossTicket = 20, -- boss挑战门票 | 96 | BossTicket = 20, -- boss挑战门票 |
97 | Spark = 21, -- 火花 | 97 | Spark = 21, -- 火花 |
98 | + Stick = 23, -- 贴纸 | ||
98 | } | 99 | } |
99 | 100 | ||
100 | --在这个里面的会记录的是功能开放 对应类型open 而不是 ID | 101 | --在这个里面的会记录的是功能开放 对应类型open 而不是 ID |
src/actions/RoleAction.lua
@@ -1603,7 +1603,7 @@ function _M.useSelectItemRpc(agent, data) | @@ -1603,7 +1603,7 @@ function _M.useSelectItemRpc(agent, data) | ||
1603 | local count = msg.count | 1603 | local count = msg.count |
1604 | if math.illegalNum(count, 1, role:getItemCount(itemId)) then return end | 1604 | if math.illegalNum(count, 1, role:getItemCount(itemId)) then return end |
1605 | local itemData = csvdb["itemCsv"][itemId] | 1605 | local itemData = csvdb["itemCsv"][itemId] |
1606 | - if not (itemData.type == ItemType.SelectItemBox or itemData.type == ItemType.CommonPaster) then return end | 1606 | + if not (itemData.type == ItemType.SelectItemBox or itemData.type == ItemType.CommonPaster or itemData.type == ItemType.Stick) then return end |
1607 | local itemMap = itemData.use_effect:toNumMap() | 1607 | local itemMap = itemData.use_effect:toNumMap() |
1608 | local reward, change = {} | 1608 | local reward, change = {} |
1609 | for k, v in pairs(itemMap) do | 1609 | for k, v in pairs(itemMap) do |