Commit cb3aaefb8759879eef1e6dcc2dbb337fde1f3d98

Authored by gaofengduan
1 parent 687835fc

fix diner

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
src/actions/DinerAction.lua
@@ -167,10 +167,10 @@ function _M.expediteSellRpc( agent, data ) @@ -167,10 +167,10 @@ function _M.expediteSellRpc( agent, data )
167 local role = agent.role 167 local role = agent.role
168 local count = role.dinerData:getProperty("expedite") 168 local count = role.dinerData:getProperty("expedite")
169 local max = #globalCsv.diner_sell_quick_cost 169 local max = #globalCsv.diner_sell_quick_cost
170 - if count > max then 170 + if count >= max then
171 return 1 171 return 1
172 end 172 end
173 - local cost = {[ItemId.Diamond] = globalCsv.diner_sell_quick_cost[count]} 173 + local cost = {[ItemId.Diamond] = globalCsv.diner_sell_quick_cost[count+1]}
174 if not role:checkItemEnough(cost) then 174 if not role:checkItemEnough(cost) then
175 return 2 175 return 2
176 end 176 end
1 -Subproject commit a1b5d35f852b178c50c4c570c86c7a2066188f62 1 +Subproject commit e63f75d1f6fefcda1a84322964d5a5a158a8a4a6