diff --git a/src/actions/DinerAction.lua b/src/actions/DinerAction.lua index c3f21b3..2077f32 100644 --- a/src/actions/DinerAction.lua +++ b/src/actions/DinerAction.lua @@ -121,7 +121,7 @@ function _M.getSellRewardRpc( agent, data ) local sells = json.decode(role.dinerData:getProperty("sells")) for slot,sell in pairs(sells) do role.dinerData:updateSell(slot) - for k,v in pairs(sell.reward:toMap()) do + for k,v in pairs(sell.reward:toNumMap()) do if reward[k] then reward[k] = reward[k] + v else diff --git a/src/models/Diner.lua b/src/models/Diner.lua index 2f9ca05..965ae46 100644 --- a/src/models/Diner.lua +++ b/src/models/Diner.lua @@ -181,7 +181,7 @@ function Diner:getMaxDishs() end function Diner:data() - local properties = {"buildL", "order", "sells", "hot", "dishTree", "skillTree"} + local properties = {"buildL", "order", "sells", "hot", "dishTree", "skillTree","popular"} local data = self:getProperties(properties) return data end -- libgit2 0.21.2