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 | 43 | if tonum(email.createtime) > role:getProperty("ctime") |
44 | 44 | and ( not email.mid or tonum(email.mid) == mid ) |
45 | 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 | 47 | redisproxy:insertEmail({ |
48 | 48 | roleId = roleId, |
49 | 49 | emailId = 0, | ... | ... |
src/actions/StoreAction.lua
... | ... | @@ -229,7 +229,7 @@ function _M.dinerBuyRpc(agent , data) |
229 | 229 | local dinerS = role:getProperty("dinerS") |
230 | 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 | 233 | if not role:checkItemEnough(cost) then return end |
234 | 234 | |
235 | 235 | if dataSet.limit ~= 0 then | ... | ... |
src/adv/AdvPassive.lua
... | ... | @@ -300,7 +300,8 @@ function Passive:canEffect(effType, effValue) |
300 | 300 | return |
301 | 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 | 305 | return |
305 | 306 | end |
306 | 307 | return true | ... | ... |
src/adv/AdvPlayer.lua
... | ... | @@ -114,13 +114,14 @@ function BaseObject:getPassiveIdx(passive) |
114 | 114 | end |
115 | 115 | |
116 | 116 | function BaseObject:getDisablePassiveCount() |
117 | - local count = 0 | |
117 | + local count, bc = 0, 0 | |
118 | 118 | for _, buff in ipairs(self.buffs) do |
119 | 119 | if not buff.isDel and buff:getType() == Buff.DISABLE_BUFF then |
120 | 120 | count = count + buff:effect() |
121 | + bc = bc + 1 | |
121 | 122 | end |
122 | 123 | end |
123 | - return count | |
124 | + return count, bc | |
124 | 125 | end |
125 | 126 | |
126 | 127 | function BaseObject:addBuff(buffId, releaser) | ... | ... |
src/models/Diner.lua
... | ... | @@ -72,7 +72,7 @@ function Diner:refreshDailyData(notify) |
72 | 72 | |
73 | 73 | local guide = self.owner:getProperty("newerGuide") |
74 | 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 | 76 | entrust[1] = 1001 |
77 | 77 | entrust[2] = 1 |
78 | 78 | elseif tonumber(master) <= 29 then | ... | ... |
src/models/Role.lua
... | ... | @@ -358,6 +358,7 @@ function Role:data() |
358 | 358 | rmbC = self:getProperty("rmbC"), |
359 | 359 | -- repayHero = self:getProperty("repayHero"), |
360 | 360 | newerDraw = self:getProperty("newerDraw"), |
361 | + floorHero = self:getProperty("floorHero"), | |
361 | 362 | |
362 | 363 | sudoku = self:getProperty("sudoku"), |
363 | 364 | sign = self:getProperty("sign"), | ... | ... |
src/models/RoleTask.lua
... | ... | @@ -147,7 +147,7 @@ local AchievListener = { |
147 | 147 | [TaskType.HangPass] = {{1, f("id")}}, |
148 | 148 | [TaskType.UnionBattle] = {{2}}, |
149 | 149 | [TaskType.PvpWin] = {{3}, {4, f("score")}}, |
150 | - [TaskType.AdvAllPass] = {{5, f("id")}}, | |
150 | + [TaskType.AdvAllPass] = {{5, 1, f("id")}}, | |
151 | 151 | [TaskType.AdvLevel] = {{6, f("level")}}, |
152 | 152 | [TaskType.AdvScore] = {{7, f("score")}}, |
153 | 153 | [TaskType.AdvBattleWin] = {{8}}, | ... | ... |