From cb3aaefb8759879eef1e6dcc2dbb337fde1f3d98 Mon Sep 17 00:00:00 2001 From: gaofengduan Date: Tue, 25 Jun 2019 11:16:52 +0800 Subject: [PATCH] fix diner --- src/actions/DinerAction.lua | 4 ++-- src/csvdata | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/actions/DinerAction.lua b/src/actions/DinerAction.lua index 37c1a24..e340282 100644 --- a/src/actions/DinerAction.lua +++ b/src/actions/DinerAction.lua @@ -167,10 +167,10 @@ function _M.expediteSellRpc( agent, data ) local role = agent.role local count = role.dinerData:getProperty("expedite") local max = #globalCsv.diner_sell_quick_cost - if count > max then + if count >= max then return 1 end - local cost = {[ItemId.Diamond] = globalCsv.diner_sell_quick_cost[count]} + local cost = {[ItemId.Diamond] = globalCsv.diner_sell_quick_cost[count+1]} if not role:checkItemEnough(cost) then return 2 end diff --git a/src/csvdata b/src/csvdata index a1b5d35..e63f75d 160000 --- a/src/csvdata +++ b/src/csvdata @@ -1 +1 @@ -Subproject commit a1b5d35f852b178c50c4c570c86c7a2066188f62 +Subproject commit e63f75d1f6fefcda1a84322964d5a5a158a8a4a6 -- libgit2 0.21.2