Commit bbb5f29ab36e80e4a3f4464bed817520d1889ba5
1 parent
2ab0d91b
冒险奖励神器
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
src/adv/Adv.lua
@@ -459,8 +459,9 @@ function Adv:awardArtifact(id, params) | @@ -459,8 +459,9 @@ function Adv:awardArtifact(id, params) | ||
459 | else | 459 | else |
460 | print("awardArtifact no log ", debug.traceback()) | 460 | print("awardArtifact no log ", debug.traceback()) |
461 | end | 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 | end | 465 | end |
465 | 466 | ||
466 | 467 | ||
@@ -650,7 +651,7 @@ end | @@ -650,7 +651,7 @@ end | ||
650 | 651 | ||
651 | function Adv:chooseArtifact(index) | 652 | function Adv:chooseArtifact(index) |
652 | if not self.waitArtifact or not self.waitArtifact[index] then return end | 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 | self:log({desc = "chooseArtifact", int1 = self.waitArtifact[index]}) | 656 | self:log({desc = "chooseArtifact", int1 = self.waitArtifact[index]}) |
656 | 657 |