Commit 5bc88864a5f52504967e24cadc70a16065cbccf1
Merge branch 'develop' of 120.26.43.151:wasteland/server into develop
Showing
6 changed files
with
37 additions
and
14 deletions
Show diff stats
src/actions/AdvAction.lua
| ... | ... | @@ -614,6 +614,7 @@ function _M.exitAdvRpc(agent, data) |
| 614 | 614 | local role = agent.role |
| 615 | 615 | -- local msg = MsgPack.unpack(data) |
| 616 | 616 | if not isCanContinue(role) then return end |
| 617 | + -- 冒险中途退出的时候要把引导步骤设定到成就引导 | |
| 617 | 618 | if not role:checkOverGuide(57) then |
| 618 | 619 | role:saveGuide(57,1,true) |
| 619 | 620 | end | ... | ... |
src/actions/HeroAction.lua
| ... | ... | @@ -499,7 +499,7 @@ function _M.referEquipsRpc(agent, data) |
| 499 | 499 | local curAttr = hero:getTotalAttrs() |
| 500 | 500 | local attrChange = getChangeAttrJson(oldAttr, curAttr) |
| 501 | 501 | for typ, data in pairs(wear) do |
| 502 | - role:log("hero_jewel", { | |
| 502 | + role:log("equip_wear", { | |
| 503 | 503 | hero_id = hero:getProperty("type"), --英雄ID |
| 504 | 504 | equip_id = data.id, --装备ID |
| 505 | 505 | equip_wear_action = data.act, --装备操作类型:装备:0,卸载:1 |
| ... | ... | @@ -671,9 +671,26 @@ function _M.getResetRewardRpc(agent, data) |
| 671 | 671 | end |
| 672 | 672 | end |
| 673 | 673 | |
| 674 | - hero:updateProperty({field = "level", value = level}) | |
| 675 | - hero:updateProperty({field = "breakL", value = breakL}) | |
| 676 | - hero:updateProperty({field = "talent", value = ""}) | |
| 674 | + local equip = hero:getProperty("equip") | |
| 675 | + for k, v in pairs(equip:toNumMap()) do | |
| 676 | + role:addEquip(k, v, 1, {log = {desc = "resetHero", int1 = msg.id, int2 = hero:getProperty("type")}}) | |
| 677 | + end | |
| 678 | + | |
| 679 | + local rune = hero:getProperty("rune") | |
| 680 | + for _, id in pairs(rune:toNumMap()) do | |
| 681 | + local curRune = role.runeBag[id] | |
| 682 | + if curRune then | |
| 683 | + curRune:updateProperty({field = "refer", value = 0}) | |
| 684 | + end | |
| 685 | + end | |
| 686 | + | |
| 687 | + hero:updateProperties({ | |
| 688 | + level = level, | |
| 689 | + breakL = breakL, | |
| 690 | + talent = "", | |
| 691 | + equip = "", | |
| 692 | + rune = "", | |
| 693 | + }) | |
| 677 | 694 | |
| 678 | 695 | for itemId, count in pairs(reward) do |
| 679 | 696 | reward[itemId] = math.floor(count * globalCsv.unit_back_discount) |
| ... | ... | @@ -682,7 +699,7 @@ function _M.getResetRewardRpc(agent, data) |
| 682 | 699 | reward, change = role:award(reward, {log = {desc = "resetHero", int1 = msg.id, int2 = hero:getProperty("type")}}) |
| 683 | 700 | |
| 684 | 701 | role:log("hero_recycle", { |
| 685 | - hero_recycle_list = hero:getProperty("type"), -- 回收的英雄id列表,建议使用json格式记录。示例:{ "XX": "1", "XXX": "3"} | |
| 702 | + hero_recycle_list = {[hero:getProperty("type")] = 1}, -- 回收的英雄id列表,建议使用json格式记录。示例:{ "XX": "1", "XXX": "3"} | |
| 686 | 703 | hero_recycle_reward = reward, -- 回收后获得的奖励,建议使用json格式记录。示例:{ "XX": "1", "XXX": "3"} |
| 687 | 704 | hero_recycle_cnt = 1, -- 总回收英雄量 |
| 688 | 705 | }) | ... | ... |
src/adv/Adv.lua
| ... | ... | @@ -789,6 +789,10 @@ function Adv:over(success, rewardRatio, overType) |
| 789 | 789 | red:hset(RANK_ADV_INFO, roleId, MsgPack.pack(curInfo)) |
| 790 | 790 | end) |
| 791 | 791 | end |
| 792 | + -- 通关的时候要把引导步骤设定到成就引导 | |
| 793 | + if not role:checkOverGuide(57) then | |
| 794 | + role:saveGuide(57,1,true) | |
| 795 | + end | |
| 792 | 796 | end |
| 793 | 797 | self:clearAdvUnlockCache() |
| 794 | 798 | ... | ... |
src/models/RoleLog.lua
src/models/RolePlugin.lua
| ... | ... | @@ -1413,7 +1413,7 @@ function RolePlugin.bind(Role) |
| 1413 | 1413 | item_number = 1, -- 购买的道具数量 |
| 1414 | 1414 | item_level = 1, -- 购买的道具等级 |
| 1415 | 1415 | order_cost = rechargeData.rmb * 100, -- 此次消费的现金金额(单位:分),如 51800即未518元,对应客户端SDK传入的'total_fee' |
| 1416 | - order_currency = "CNY", -- 货币类型,默认为"CNY"(人民币),遵循ISO 4217规范 | |
| 1416 | + order_currency = "TWD", -- 货币类型,默认为"CNY"(人民币),遵循ISO 4217规范 | |
| 1417 | 1417 | order_type = order_type, -- 订单类型,首充记录为1,否则为0 |
| 1418 | 1418 | order_id = params.transactionId, -- 本条记录的订单号,对应客户端SDK返回的'bs_trade_no' |
| 1419 | 1419 | }) | ... | ... |
src/models/Rune.lua
| ... | ... | @@ -27,15 +27,15 @@ function Rune:notifyUpdateProperty(field, newValue, oldValue) |
| 27 | 27 | end |
| 28 | 28 | |
| 29 | 29 | function Rune:log(contents) |
| 30 | - contents = contents or {} | |
| 31 | - if contents["cint1"] or contents["cint2"] or contents["cint3"] then | |
| 32 | - print("heroLog error log have cint1 or cint2 or cint3 ", debug.traceback()) | |
| 33 | - end | |
| 34 | - contents["cint1"] = self:getProperty("uid") | |
| 35 | - contents["cint2"] = self:getProperty("type") | |
| 36 | - contents["cint3"] = self:getProperty("id") | |
| 30 | + -- contents = contents or {} | |
| 31 | + -- if contents["cint1"] or contents["cint2"] or contents["cint3"] then | |
| 32 | + -- print("heroLog error log have cint1 or cint2 or cint3 ", debug.traceback()) | |
| 33 | + -- end | |
| 34 | + -- contents["cint1"] = self:getProperty("uid") | |
| 35 | + -- contents["cint2"] = self:getProperty("type") | |
| 36 | + -- contents["cint3"] = self:getProperty("id") | |
| 37 | 37 | |
| 38 | - self.owner:log("rune_action", contents) | |
| 38 | + -- self.owner:log("rune_action", contents) | |
| 39 | 39 | end |
| 40 | 40 | |
| 41 | 41 | function Rune:notifyUpdateProperties(params) | ... | ... |