diff --git a/src/csvdata b/src/csvdata index dcdc185..ea68ace 160000 --- a/src/csvdata +++ b/src/csvdata @@ -1 +1 @@ -Subproject commit dcdc185e5426a77fad2c43030897edab06d45468 +Subproject commit ea68ace5f3aa7feca54e640851838f030b471f9f diff --git a/src/models/Diner.lua b/src/models/Diner.lua index 754411e..3d4affa 100644 --- a/src/models/Diner.lua +++ b/src/models/Diner.lua @@ -169,6 +169,9 @@ function Diner:updateSell(slot, calOnly) local deltaCount = 0 local timePass = skynet.timex() - sell.time local sellTime = dishData.sell_time + if slot.hot then + sellTime = sellTime * dishData.popularity + end deltaCount = math.floor(timePass / sellTime) if deltaCount < sell.count then -- libgit2 0.21.2