forked from VoxeLibre/VoxeLibre
Fix work times
This commit is contained in:
parent
e1b685429d
commit
ccf7b54481
|
@ -575,15 +575,11 @@ function get_activity(tod)
|
||||||
end
|
end
|
||||||
tod = ( tod * 24000 ) % 24000
|
tod = ( tod * 24000 ) % 24000
|
||||||
|
|
||||||
local lunch_start = 12000
|
|
||||||
local lunch_end = 13000
|
|
||||||
local work_start = 6500
|
|
||||||
local work_end = 18000
|
|
||||||
|
|
||||||
--local lunch_start = 12000
|
local lunch_start = 12000
|
||||||
--local lunch_end = 13300
|
local lunch_end = 13500
|
||||||
--local work_start = 8300
|
local work_start = 8500
|
||||||
--local work_end = 16300
|
local work_end = 16300
|
||||||
|
|
||||||
|
|
||||||
local activity = nil
|
local activity = nil
|
||||||
|
@ -615,7 +611,6 @@ local function go_home(entity, sleep)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if vector.distance(entity.object:get_pos(),b) < 2 then
|
if vector.distance(entity.object:get_pos(),b) < 2 then
|
||||||
if sleep then
|
if sleep then
|
||||||
entity.order = SLEEP
|
entity.order = SLEEP
|
||||||
|
@ -992,7 +987,6 @@ local function do_work (self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif self._profession == "unemployed" then
|
elseif self._profession == "unemployed" then
|
||||||
--self.order == JOB_HUNTING
|
|
||||||
get_a_job(self)
|
get_a_job(self)
|
||||||
elseif has_traded(self) then
|
elseif has_traded(self) then
|
||||||
mcl_log("My job site is invalid or gone. I cannot work.")
|
mcl_log("My job site is invalid or gone. I cannot work.")
|
||||||
|
|
Loading…
Reference in New Issue