Commit 5add83206c4dd45aab4bba6358ea519fa9d0080a

Authored by 熊润斐
2 parents d0143bcc c32be356

Merge branch 'tr/bugfix-qa' into tr/publish/qa-dev

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
src/adv/Adv.lua
... ... @@ -1125,10 +1125,12 @@ function Adv:supplyPotion()
1125 1125 local potionCsv = csvdb["adv_potionCsv"]
1126 1126 local potionBag = self.owner:getProperty("potionBag")
1127 1127 local advItems = self.owner:getProperty("advItems")
  1128 + local dishTree = self.owner.dinerData:getProperty("dishTree")
1128 1129 for potionId, set in pairs(potionCsv) do
1129 1130 local count = potionBag[potionId] or 0
1130 1131 if count > 0 then
1131   - local num = math.min(set[1].limit,count)
  1132 + local level = dishTree:getv(potionId,1)
  1133 + local num = math.min(set[level].limit,count)
1132 1134 advItems = advItems:setv(potionId,num)
1133 1135 potionBag[potionId] = num ~= count and (count - num) or nil
1134 1136 end
... ...