Commit 87fdc7fb67cd81b1b0f14d928db45b435e415ccc
Merge branch 'develop' into qa
Showing
2 changed files
with
9 additions
and
4 deletions
Show diff stats
src/actions/StoreAction.lua
... | ... | @@ -63,7 +63,11 @@ function _M.dailyBuyRpc(agent , data) |
63 | 63 | dailySDC[id] = (dailySDC[id] or 0) + count |
64 | 64 | role.dailyData:updateProperty({field = "dailySDC", value = dailySDC}) |
65 | 65 | end |
66 | - local reward = role:award(dataSet.gift, {log = {desc = "dailyShop", int1 = id, int2 = count}}) | |
66 | + local gift = {} | |
67 | + for itemId, count_ in pairs(dataSet.gift:toNumMap()) do | |
68 | + gift[itemId] = count_ * count | |
69 | + end | |
70 | + local reward = role:award(gift, {log = {desc = "dailyShop", int1 = id, int2 = count}}) | |
67 | 71 | |
68 | 72 | role:log("role_action", {desc = "dailyShop", int1 = id, int2 = count}) |
69 | 73 | ... | ... |
src/adv/Adv.lua
... | ... | @@ -459,8 +459,9 @@ function Adv:awardArtifact(id, params) |
459 | 459 | else |
460 | 460 | print("awardArtifact no log ", debug.traceback()) |
461 | 461 | end |
462 | - | |
463 | - self:pushBackEvent(AdvBackEventType.Artifact, {id = id}) | |
462 | + if not params.isChoose then | |
463 | + self:pushBackEvent(AdvBackEventType.Artifact, {id = id}) | |
464 | + end | |
464 | 465 | end |
465 | 466 | |
466 | 467 | |
... | ... | @@ -650,7 +651,7 @@ end |
650 | 651 | |
651 | 652 | function Adv:chooseArtifact(index) |
652 | 653 | if not self.waitArtifact or not self.waitArtifact[index] then return end |
653 | - self:award({[self.waitArtifact[index]] = 1}, {log = {desc = "chooseArtifact"}}) | |
654 | + self:award({[self.waitArtifact[index]] = 1}, {log = {desc = "chooseArtifact"}, isChoose = true}) | |
654 | 655 | |
655 | 656 | self:log({desc = "chooseArtifact", int1 = self.waitArtifact[index]}) |
656 | 657 | ... | ... |