~kalon33/corsix-th/master

« back to all changes in this revision

Viewing changes to CorsixTH/Lua/rooms/gp.lua

  • Committer: corsixth.bot at gmail
  • Date: 2014-03-31 23:30:23 UTC
  • Revision ID: svn-v4:c39591fa-788f-11de-a72b-d90af8dea425:trunk:2687
Remove trailing whitespaces in .h, .cpp, .c and .lua files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
function GPRoom:dealtWithPatient(patient)
107
107
  patient = patient or self:getPatient()
108
 
  
 
108
 
109
109
  -- If patients are slow to leave the chair, and staff are quick in their
110
110
  -- usage cycle, then dealtWithPatient() might get called twice for the
111
111
  -- same patient, in which case the second call must be ignored (otherwise
116
116
  else
117
117
    self.just_dealt_with = patient
118
118
  end
119
 
  
 
119
 
120
120
  patient:setNextAction(self:createLeaveAction())
121
121
  patient:addToTreatmentHistory(self.room_info)
122
122
 
123
123
  if patient.disease and not patient.diagnosed then
124
124
    self.hospital:receiveMoneyForTreatment(patient)
125
 
    
 
125
 
126
126
    patient:completeDiagnosticStep(self)
127
127
    if patient.diagnosis_progress >= self.hospital.policies["stop_procedure"] then
128
128
      patient:setDiagnosed(true)
142
142
      self.staff_member:setMood("reflexion", "activate") -- Show the uncertainty mood over the doctor
143
143
      local next_room = math.random(1, #patient.available_diagnosis_rooms)
144
144
      patient:queueAction{
145
 
        name = "seek_room", 
 
145
        name = "seek_room",
146
146
        room_type = patient.available_diagnosis_rooms[next_room],
147
147
        diagnosis_room = next_room,
148
148
      }