Commit 377a0dae33a2565e18bd0b2b763989e74b5dd02b
Merge branch 'develop' into player
Showing
7 changed files
with
10 additions
and
7 deletions
Show diff stats
src/actions/EmailAction.lua
| @@ -43,7 +43,7 @@ function _M.listRpc(agent, data) | @@ -43,7 +43,7 @@ function _M.listRpc(agent, data) | ||
| 43 | if tonum(email.createtime) > role:getProperty("ctime") | 43 | if tonum(email.createtime) > role:getProperty("ctime") |
| 44 | and ( not email.mid or tonum(email.mid) == mid ) | 44 | and ( not email.mid or tonum(email.mid) == mid ) |
| 45 | and ( not email.endtime or tonum(email.endtime) > now )then | 45 | and ( not email.endtime or tonum(email.endtime) > now )then |
| 46 | - local time = email.timestamp and tonum(email.timestamp) or email.createtime | 46 | + local time = math.max(tonum(email.timestamp, 0) or email.createtime) |
| 47 | redisproxy:insertEmail({ | 47 | redisproxy:insertEmail({ |
| 48 | roleId = roleId, | 48 | roleId = roleId, |
| 49 | emailId = 0, | 49 | emailId = 0, |
src/actions/StoreAction.lua
| @@ -229,7 +229,7 @@ function _M.dinerBuyRpc(agent , data) | @@ -229,7 +229,7 @@ function _M.dinerBuyRpc(agent , data) | ||
| 229 | local dinerS = role:getProperty("dinerS") | 229 | local dinerS = role:getProperty("dinerS") |
| 230 | if math.illegalNum(count, 1, (dataSet.limit == 0 and math.huge or dataSet.limit - (dinerS[id] or 0))) then return 1 end | 230 | if math.illegalNum(count, 1, (dataSet.limit == 0 and math.huge or dataSet.limit - (dinerS[id] or 0))) then return 1 end |
| 231 | 231 | ||
| 232 | - local cost = {[ItemId.DinerCoin] = dataSet.cost} | 232 | + local cost = {[ItemId.DinerCoin] = dataSet.cost * count} |
| 233 | if not role:checkItemEnough(cost) then return end | 233 | if not role:checkItemEnough(cost) then return end |
| 234 | 234 | ||
| 235 | if dataSet.limit ~= 0 then | 235 | if dataSet.limit ~= 0 then |
src/adv/AdvPassive.lua
| @@ -300,7 +300,8 @@ function Passive:canEffect(effType, effValue) | @@ -300,7 +300,8 @@ function Passive:canEffect(effType, effValue) | ||
| 300 | return | 300 | return |
| 301 | end | 301 | end |
| 302 | --禁用被动技 | 302 | --禁用被动技 |
| 303 | - if self.owner:getDisablePassiveCount() == 0 or self.owner:getPassiveIdx(self) <= self.owner:getDisablePassiveCount() then | 303 | + local count, bc = self.owner:getDisablePassiveCount() |
| 304 | + if bc > 0 and (count == 0 or self.owner:getPassiveIdx(self) <= count) then | ||
| 304 | return | 305 | return |
| 305 | end | 306 | end |
| 306 | return true | 307 | return true |
src/adv/AdvPlayer.lua
| @@ -114,13 +114,14 @@ function BaseObject:getPassiveIdx(passive) | @@ -114,13 +114,14 @@ function BaseObject:getPassiveIdx(passive) | ||
| 114 | end | 114 | end |
| 115 | 115 | ||
| 116 | function BaseObject:getDisablePassiveCount() | 116 | function BaseObject:getDisablePassiveCount() |
| 117 | - local count = 0 | 117 | + local count, bc = 0, 0 |
| 118 | for _, buff in ipairs(self.buffs) do | 118 | for _, buff in ipairs(self.buffs) do |
| 119 | if not buff.isDel and buff:getType() == Buff.DISABLE_BUFF then | 119 | if not buff.isDel and buff:getType() == Buff.DISABLE_BUFF then |
| 120 | count = count + buff:effect() | 120 | count = count + buff:effect() |
| 121 | + bc = bc + 1 | ||
| 121 | end | 122 | end |
| 122 | end | 123 | end |
| 123 | - return count | 124 | + return count, bc |
| 124 | end | 125 | end |
| 125 | 126 | ||
| 126 | function BaseObject:addBuff(buffId, releaser) | 127 | function BaseObject:addBuff(buffId, releaser) |
src/models/Diner.lua
| @@ -72,7 +72,7 @@ function Diner:refreshDailyData(notify) | @@ -72,7 +72,7 @@ function Diner:refreshDailyData(notify) | ||
| 72 | 72 | ||
| 73 | local guide = self.owner:getProperty("newerGuide") | 73 | local guide = self.owner:getProperty("newerGuide") |
| 74 | local master, slave = string.match(guide,"(%d+)=(%d+)") | 74 | local master, slave = string.match(guide,"(%d+)=(%d+)") |
| 75 | - if tonumber(master) <= 26 then | 75 | + if self.owner:getProperty("funcGuide"):getv(51,0) == 0 or tonumber(master) <= 26 then |
| 76 | entrust[1] = 1001 | 76 | entrust[1] = 1001 |
| 77 | entrust[2] = 1 | 77 | entrust[2] = 1 |
| 78 | elseif tonumber(master) <= 29 then | 78 | elseif tonumber(master) <= 29 then |
src/models/Role.lua
| @@ -358,6 +358,7 @@ function Role:data() | @@ -358,6 +358,7 @@ function Role:data() | ||
| 358 | rmbC = self:getProperty("rmbC"), | 358 | rmbC = self:getProperty("rmbC"), |
| 359 | -- repayHero = self:getProperty("repayHero"), | 359 | -- repayHero = self:getProperty("repayHero"), |
| 360 | newerDraw = self:getProperty("newerDraw"), | 360 | newerDraw = self:getProperty("newerDraw"), |
| 361 | + floorHero = self:getProperty("floorHero"), | ||
| 361 | 362 | ||
| 362 | sudoku = self:getProperty("sudoku"), | 363 | sudoku = self:getProperty("sudoku"), |
| 363 | sign = self:getProperty("sign"), | 364 | sign = self:getProperty("sign"), |
src/models/RoleTask.lua
| @@ -147,7 +147,7 @@ local AchievListener = { | @@ -147,7 +147,7 @@ local AchievListener = { | ||
| 147 | [TaskType.HangPass] = {{1, f("id")}}, | 147 | [TaskType.HangPass] = {{1, f("id")}}, |
| 148 | [TaskType.UnionBattle] = {{2}}, | 148 | [TaskType.UnionBattle] = {{2}}, |
| 149 | [TaskType.PvpWin] = {{3}, {4, f("score")}}, | 149 | [TaskType.PvpWin] = {{3}, {4, f("score")}}, |
| 150 | - [TaskType.AdvAllPass] = {{5, f("id")}}, | 150 | + [TaskType.AdvAllPass] = {{5, 1, f("id")}}, |
| 151 | [TaskType.AdvLevel] = {{6, f("level")}}, | 151 | [TaskType.AdvLevel] = {{6, f("level")}}, |
| 152 | [TaskType.AdvScore] = {{7, f("score")}}, | 152 | [TaskType.AdvScore] = {{7, f("score")}}, |
| 153 | [TaskType.AdvBattleWin] = {{8}}, | 153 | [TaskType.AdvBattleWin] = {{8}}, |