mirror of
https://github.com/CorsixTH/CorsixTH.git
synced 2025-07-23 20:30:35 +02:00
Merge pull request #2919 from lewri/let_handymen_work
Restore handyman cleaning abilities
This commit is contained in:
@@ -518,8 +518,10 @@ function PlayerHospital:onEndDay()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Look for work for staff who have nothing to do
|
||||||
for _, staff in ipairs(self.staff) do
|
for _, staff in ipairs(self.staff) do
|
||||||
if staff:isIdle() then
|
-- Handymen currently have their own method to look for work
|
||||||
|
if staff.humanoid_class ~= "Handyman" and staff:isIdle() then
|
||||||
self.world.dispatcher:answerCall(staff)
|
self.world.dispatcher:answerCall(staff)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user