Module CorsixTH.CorsixTH.Lua.entities.humanoids.staff

A Doctor, Nurse, Receptionist, Handyman, or Surgeon

Functions

Staff:getServiceQuality () Estimate staff service quality based on skills, restfulness (inverse of fatigue) and happiness.
Staff:setDynamicInfoText (text) Sets dynamic info text before the dynamic info update
Staff:tickDay () Handle daily adjustments to staff.
Staff:updateDynamicInfo () Updates a staff member's dynamic info


Functions

Staff:getServiceQuality ()
Estimate staff service quality based on skills, restfulness (inverse of fatigue) and happiness.

Returns:

    (float) between [0-1] indicating quality of the service.
Staff:setDynamicInfoText (text)
Sets dynamic info text before the dynamic info update

Parameters:

  • text (string) the string to append
Staff:tickDay ()
Handle daily adjustments to staff.

Returns:

    (boolean) Whether the caller should continue processing
Staff:updateDynamicInfo ()
Updates a staff member's dynamic info
generated by LDoc TESTING Last updated 2015-01-01 12:00:00