Commit feefa6f02669e4dcef16b4da6f2acda081157132
1 parent
9c08bf47
餐厅引导设置客人id
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
src/models/Diner.lua
@@ -69,6 +69,18 @@ function Diner:refreshDailyData(notify) | @@ -69,6 +69,18 @@ function Diner:refreshDailyData(notify) | ||
69 | had[entrust[i]] = 1 | 69 | had[entrust[i]] = 1 |
70 | end | 70 | end |
71 | end | 71 | end |
72 | + | ||
73 | + local guide = self.owner:getProperty("newerGuide") | ||
74 | + local master, slave = string.match(guide,"(%d+)=(%d+)") | ||
75 | + if tonumber(master) <= 26 then | ||
76 | + entrust[1] = 1031 | ||
77 | + entrust[2] = 3 | ||
78 | + elseif tonumber(master) <= 29 then | ||
79 | + local temp = entrust[1] | ||
80 | + entrust[1] = 3 | ||
81 | + entrust[2] = temp | ||
82 | + end | ||
83 | + | ||
72 | self:updateProperty({field = "entrust", value = entrust, notNotify = not notify}) | 84 | self:updateProperty({field = "entrust", value = entrust, notNotify = not notify}) |
73 | 85 | ||
74 | -- 每日加速次数 | 86 | -- 每日加速次数 |