Commit ffa0e25910e80906eb7049ee1a105e3cf992e1be
1 parent
06d56de7
日历活动 穿戴x个y品质铭文
Showing
1 changed file
with
24 additions
and
1 deletions
Show diff stats
src/models/RoleTask.lua
| ... | ... | @@ -257,7 +257,7 @@ local CalendaTaskListener = { |
| 257 | 257 | [TaskType.HeroStarCollect]= {{16, 3}}, |
| 258 | 258 | [TaskType.FoodSell]= {{17, 1, f("count")}}, |
| 259 | 259 | [TaskType.HangGet]= {{18, 3, f("reward")}}, |
| 260 | - [TaskType.RuneQualityCollect]= {{19, 3, f("id")}}, | |
| 260 | + [TaskType.RuneQualityCollect]= {{19, 3}}, | |
| 261 | 261 | [TaskType.OpenBox]= {{20, 3, f("count"), f("quality")}}, |
| 262 | 262 | } |
| 263 | 263 | } |
| ... | ... | @@ -648,7 +648,30 @@ function RoleTask.bind(Role) |
| 648 | 648 | end |
| 649 | 649 | end |
| 650 | 650 | elseif cfg.type == 19 then -- x名英雄装备y品质以上符文套装 |
| 651 | + local count = 0 | |
| 652 | + for _, hero in pairs(self.heros) do | |
| 653 | + local rcount = 0 | |
| 654 | + for _,uid in pairs(hero:getRunes()) do | |
| 655 | + if uid > 0 then | |
| 656 | + local runeData = self.owner.runeBag[uid] | |
| 657 | + if runeData then | |
| 658 | + local csvData = csvdb["runeCsv"][runeData:getProperty("type")][runeData:getProperty("id")] | |
| 659 | + | |
| 660 | + if csvData and cfg.condition2 <= csvData.rarity then | |
| 661 | + rcount = rcount + 1 | |
| 662 | + end | |
| 663 | + end | |
| 664 | + end | |
| 665 | + end | |
| 666 | + if rcount == 6 then | |
| 667 | + count = count + 1 | |
| 668 | + end | |
| 669 | + end | |
| 670 | + calTask[id] = count | |
| 651 | 671 | elseif cfg.type == 20 then -- 开启x品质时钟箱子 |
| 672 | + if cfg.condition2 <= (param2 or 0) then | |
| 673 | + calTask[id] = (calTask[id] or 0) + param2 | |
| 674 | + end | |
| 652 | 675 | end |
| 653 | 676 | end |
| 654 | 677 | end | ... | ... |
-
mentioned in commit 52f8c5f05d0a531232a7dd7887becd2a77986aa1
-
mentioned in commit ba6d85edc65900830c7e168102d70671881b5808