Loading

Paste #pxeln6blx

  1. diff --git a/CorsixTH/Lua/epidemic.lua b/CorsixTH/Lua/epidemic.lua
  2. index aa93499..df8c9fd 100644
  3. --- a/CorsixTH/Lua/epidemic.lua
  4. +++ b/CorsixTH/Lua/epidemic.lua
  5. @@ -310,20 +310,6 @@ function Epidemic:countInfectedPatients()
  6.    return infected_count
  7.  end
  8.  
  9. ---[[Counts the number of patients that have been infected that are now cured.
  10. -@return cured_count (Integer) the number of cured patients that were once
  11. -infected]]
  12. -function Epidemic:countCuredPatients()
  13. -  local cured_count = 0
  14. -  for _, infected_patient in ipairs(self.infected_patients) do
  15. -    if infected_patient.cured then
  16. -      cured_count = cured_count + 1
  17. -    end
  18. -  end
  19. -  return cured_count
  20. -end
  21. -
  22. -
  23.  --[[ Sends the initial fax to the player when the epidemic is revealed.]]
  24.  function Epidemic:sendInitialFax()
  25.    local num_infected = self:countInfectedPatients()
  26. @@ -420,10 +406,7 @@ function Epidemic:finishCoverUp()
  27.      self:toggleVaccinationMode()
  28.    end
  29.  
  30. -  local total_infected = #self.infected_patients
  31.    local still_infected = self:countInfectedPatients()
  32. -  local total_cured = self:countCuredPatients()
  33. -
  34.    self:determineFaxAndFines(still_infected)
  35.    self:clearAllInfectedPatients()
  36.  end
  37. @@ -577,7 +560,7 @@ function Epidemic:markedPatientsCallForVaccination()
  38.    for _, infected_patient in ipairs(self.infected_patients) do
  39.      if infected_patient.marked_for_vaccination and
  40.          not infected_patient.reserved_for and is_static(infected_patient) then
  41. -      local call = self.world.dispatcher:callNurseForVaccination(infected_patient)
  42. +      self.world.dispatcher:callNurseForVaccination(infected_patient)
  43.      end
  44.    end
  45.  end

Comments