Commit cb3aaefb8759879eef1e6dcc2dbb337fde1f3d98
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 | 167 | local role = agent.role |
| 168 | 168 | local count = role.dinerData:getProperty("expedite") |
| 169 | 169 | local max = #globalCsv.diner_sell_quick_cost |
| 170 | - if count > max then | |
| 170 | + if count >= max then | |
| 171 | 171 | return 1 |
| 172 | 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 | 174 | if not role:checkItemEnough(cost) then |
| 175 | 175 | return 2 |
| 176 | 176 | end | ... | ... |