diff --git a/CorsixTH/Lua/epidemic.lua b/CorsixTH/Lua/epidemic.lua index aa93499..df8c9fd 100644 --- a/CorsixTH/Lua/epidemic.lua +++ b/CorsixTH/Lua/epidemic.lua @@ -310,20 +310,6 @@ function Epidemic:countInfectedPatients() return infected_count end ---[[Counts the number of patients that have been infected that are now cured. -@return cured_count (Integer) the number of cured patients that were once -infected]] -function Epidemic:countCuredPatients() - local cured_count = 0 - for _, infected_patient in ipairs(self.infected_patients) do - if infected_patient.cured then - cured_count = cured_count + 1 - end - end - return cured_count -end - - --[[ Sends the initial fax to the player when the epidemic is revealed.]] function Epidemic:sendInitialFax() local num_infected = self:countInfectedPatients() @@ -420,10 +406,7 @@ function Epidemic:finishCoverUp() self:toggleVaccinationMode() end - local total_infected = #self.infected_patients local still_infected = self:countInfectedPatients() - local total_cured = self:countCuredPatients() - self:determineFaxAndFines(still_infected) self:clearAllInfectedPatients() end @@ -577,7 +560,7 @@ function Epidemic:markedPatientsCallForVaccination() for _, infected_patient in ipairs(self.infected_patients) do if infected_patient.marked_for_vaccination and not infected_patient.reserved_for and is_static(infected_patient) then - local call = self.world.dispatcher:callNurseForVaccination(infected_patient) + self.world.dispatcher:callNurseForVaccination(infected_patient) end end end