Commit 25ec4b2980ee4ae07b0e44a6c403c13fafe33586
1 parent
fd253994
fix: 额外宝藏 Hang_takeTreasureRpc协议,字段更新错误 treasureBaseExtra -> treasureMapCount
Showing
3 changed files
with
6 additions
and
6 deletions
Show diff stats
src/actions/GmAction.lua
... | ... | @@ -1210,7 +1210,7 @@ function _M.treasure_extra(role, pms) |
1210 | 1210 | if not tmpTreasure then return 3 end |
1211 | 1211 | |
1212 | 1212 | role.dailyData:updateProperty({field = "treasureExtraCount", delta = 1}) |
1213 | - role.dailyData:updateProperty({field = "treasureBaseExtra", value = mapCount - 1}) | |
1213 | + role.dailyData:updateProperty({field = "treasureMapCount", value = mapCount - 1}) | |
1214 | 1214 | role.dailyData:updateProperty({field = "treasureBaseExtra", value = baseExtra}) |
1215 | 1215 | |
1216 | 1216 | return "成功" | ... | ... |
src/actions/HangAction.lua
... | ... | @@ -1212,7 +1212,7 @@ function _M.takeTreasureRpc(agent, data) |
1212 | 1212 | if not tmpTreasure then return 3 end |
1213 | 1213 | |
1214 | 1214 | role.dailyData:updateProperty({field = "treasureExtraCount", delta = 1}) |
1215 | - role.dailyData:updateProperty({field = "treasureBaseExtra", value = mapCount - 1}) | |
1215 | + role.dailyData:updateProperty({field = "treasureMapCount", value = mapCount - 1}) | |
1216 | 1216 | role.dailyData:updateProperty({field = "treasureBaseExtra", value = baseExtra}) |
1217 | 1217 | |
1218 | 1218 | SendPacket(actionCodes.Hang_takeTreasureRpc, MsgPack.pack({treasureListExtra = treasureListExtra, treasure = tmpTreasure})) |
... | ... | @@ -1226,7 +1226,7 @@ function _M.treasureMapRpc(agent,data) |
1226 | 1226 | local cost ={[ItemId.Jade] = globalCsv.idle_treasure_buy * count} |
1227 | 1227 | if not role:checkItemEnough(cost) then return 1 end |
1228 | 1228 | if not role:costItems(cost, {log = {desc = "treasureMap", int1 = count}}) then return 2 end |
1229 | - role.dailyData:updateProperty({field = "treasureMapCount", delta = 1*count}) | |
1229 | + role.dailyData:updateProperty({field = "treasureMapCount", delta = count}) | |
1230 | 1230 | |
1231 | 1231 | local treasureMapCount = role.dailyData:getProperty("treasureMapCount") |
1232 | 1232 | SendPacket(actionCodes.Hang_treasureMapRpc, MsgPack.pack({mapCount = treasureMapCount})) | ... | ... |
src/models/Daily.lua
... | ... | @@ -38,9 +38,9 @@ Daily.schema = { |
38 | 38 | treasureList = {"table", {}}, --挂机图鉴 |
39 | 39 | |
40 | 40 | treasureListExtra = {"table", {}}, --额外宝藏,挂机图鉴扩展功能 |
41 | - treasureMapCount = {"number", 0}, --宝藏图,消耗一张宝藏图可以发现一次额外宝藏 | |
42 | - treasureExtraCount = {"number", 0}, --每日发现额外宝藏使用次数(累计),隔天清零 | |
43 | - treasureBaseExtra = {"number", 0}, --额外宝藏资源值 | |
41 | + treasureMapCount = {"number", 0}, --宝藏图,消耗一张宝藏图可以发现一次额外宝藏 | |
42 | + treasureExtraCount = {"number", 0}, --每日发现额外宝藏使用次数(累计),隔天清零 | |
43 | + treasureBaseExtra = {"number", 0}, --额外宝藏资源值 | |
44 | 44 | |
45 | 45 | chatTimes = {"number", 0}, --每日发言次数 |
46 | 46 | } | ... | ... |