Commit aa4a843a1ee5c7ad75e37b30fa1acf8f05a1972c
Merge branch 'tr/bugfix' into tr/publish/preview
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
src/models/Activity.lua
@@ -455,7 +455,7 @@ activityFunc[Activity.ActivityType.PayBack] = { | @@ -455,7 +455,7 @@ activityFunc[Activity.ActivityType.PayBack] = { | ||
455 | -- 英雄帖 | 455 | -- 英雄帖 |
456 | activityFunc[Activity.ActivityType.CalendaTask] = { | 456 | activityFunc[Activity.ActivityType.CalendaTask] = { |
457 | ["init"] = function(self, actType, isCrossDay, notify) | 457 | ["init"] = function(self, actType, isCrossDay, notify) |
458 | - local calTask = self.owner:getProperty("CalTask") | 458 | + local calTask = self.owner:getProperty("calTask") |
459 | calTask = {} | 459 | calTask = {} |
460 | local role = self.owner | 460 | local role = self.owner |
461 | local buildL = role.dinerData:getProperty("buildL") | 461 | local buildL = role.dinerData:getProperty("buildL") |
@@ -481,7 +481,7 @@ activityFunc[Activity.ActivityType.CalendaTask] = { | @@ -481,7 +481,7 @@ activityFunc[Activity.ActivityType.CalendaTask] = { | ||
481 | 481 | ||
482 | end, | 482 | end, |
483 | ["close"] = function(self, actType, notify) | 483 | ["close"] = function(self, actType, notify) |
484 | - self.owner:updateProperty({field="CalTask", value={}}) | 484 | + self.owner:updateProperty({field="calTask", value={}}) |
485 | end, | 485 | end, |
486 | } | 486 | } |
487 | 487 | ||
@@ -874,7 +874,7 @@ activityFunc[Activity.ActivityType.CommonSignIn] = { | @@ -874,7 +874,7 @@ activityFunc[Activity.ActivityType.CommonSignIn] = { | ||
874 | ["crossDay"] = function(self, actType, notify, actId) | 874 | ["crossDay"] = function(self, actType, notify, actId) |
875 | local actCfg = csvdb["activity_ctrlCsv"][actId] | 875 | local actCfg = csvdb["activity_ctrlCsv"][actId] |
876 | if not actCfg then return end | 876 | if not actCfg then return end |
877 | - local conArr = actCfg.condition2:toArray("true", "=") | 877 | + local conArr = actCfg.condition2:toArray(true, "=") |
878 | -- 0 登录即可, 1 达到指定活跃度 | 878 | -- 0 登录即可, 1 达到指定活跃度 |
879 | if conArr[1] ~= 0 then | 879 | if conArr[1] ~= 0 then |
880 | return | 880 | return |
src/models/Diner.lua
@@ -201,7 +201,7 @@ function Diner:calSellReward(sell, delta, dishData) | @@ -201,7 +201,7 @@ function Diner:calSellReward(sell, delta, dishData) | ||
201 | upValue[ItemId.Gold] = (upValue[ItemId.Gold] or 0) + buildData.gold_up | 201 | upValue[ItemId.Gold] = (upValue[ItemId.Gold] or 0) + buildData.gold_up |
202 | end | 202 | end |
203 | if buildData.item_up > 0 then | 203 | if buildData.item_up > 0 then |
204 | - upValue[ItemId.DinerCoin] = (upValue[ItemId.DinerCoin] or 0) + buildData.gold_up | 204 | + upValue[ItemId.DinerCoin] = (upValue[ItemId.DinerCoin] or 0) + buildData.item_up |
205 | end | 205 | end |
206 | if buildData and buildData.famous_up > 0 then | 206 | if buildData and buildData.famous_up > 0 then |
207 | upValue[-1] = (upValue[-1] or 0) + buildData.famous_up | 207 | upValue[-1] = (upValue[-1] or 0) + buildData.famous_up |
src/models/RoleTask.lua
@@ -706,7 +706,7 @@ function RoleTask.bind(Role) | @@ -706,7 +706,7 @@ function RoleTask.bind(Role) | ||
706 | calTask[id] = count | 706 | calTask[id] = count |
707 | elseif cfg.type == 20 then -- 开启x品质时钟箱子 | 707 | elseif cfg.type == 20 then -- 开启x品质时钟箱子 |
708 | if cfg.condition2 <= (param2 or 0) then | 708 | if cfg.condition2 <= (param2 or 0) then |
709 | - calTask[id] = (calTask[id] or 0) + param2 | 709 | + calTask[id] = (calTask[id] or 0) + param1 |
710 | end | 710 | end |
711 | elseif cfg.type == 15 then -- 通关关卡 | 711 | elseif cfg.type == 15 then -- 通关关卡 |
712 | if (calTask[id] or 0) == 0 then | 712 | if (calTask[id] or 0) == 0 then |