mirror of
https://github.com/CorsixTH/CorsixTH.git
synced 2025-07-23 12:23:05 +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
|
||||
|
||||
-- Look for work for staff who have nothing to 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)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user