Home
last modified time | relevance | path

Searched refs:patient (Results 1 – 25 of 2984) sorted by relevance

12345678910>>...120

/dports/games/corsix-th/CorsixTH-0.65.1/CorsixTH/Lua/rooms/
H A Dgp.lua79 if patient then
81 if patient.user_of and not class.is(patient.user_of, Door) then
109 return not patient.diagnosed and Room.shouldHavePatientReenter(self, patient)
113 patient = patient or self:getPatient()
123 self.just_dealt_with = patient
134 elseif patient.disease and not patient.diagnosed then
138 patient:setDiagnosed()
139 if patient:agreesToPay(patient.disease.id) then
142 patient:goHome("over_priced", patient.disease.id)
172 patient:goHome("kicked")
[all …]
H A Dscanner_room.lua67 patient:finishAction()
80 patient:walkTo(sx, sy)
81 patient:queueAction(UseScreenAction(screen))
82 patient:queueAction(WalkAction(pat_x, pat_y))
84 patient:walkTo(pat_x, pat_y)
90 patient:queueAction(idle_action)
108 self:dealtWithPatient(patient)
132 function ScannerRoom:dealtWithPatient(patient)
139 Room.dealtWithPatient(self, patient)
146 Room.dealtWithPatient(self, patient)
[all …]
H A Dcardiogram.lua54 function CardiogramRoom:commandEnteringPatient(patient)
55 local screen, sx, sy = self.world:findObjectNear(patient, "screen")
56 patient:walkTo(sx, sy)
64 patient:walkTo(cx, cy)
71 patient.num_animation_ticks = 1
80 patient.num_animation_ticks = 3 - math.abs(phase)
101 if #patient.action_queue == 1 then
102 self:dealtWithPatient(patient)
109 return Room.commandEnteringPatient(self, patient)
123 function CardiogramRoom:shouldHavePatientReenter(patient)
[all …]
H A Dgeneral_diag.lua53 function GeneralDiagRoom:commandEnteringPatient(patient)
54 local screen, sx, sy = self.world:findObjectNear(patient, "screen")
55 patient:walkTo(sx, sy)
59 local trolley, cx, cy = self.world:findObjectNear(patient, "crash_trolley")
63 patient:walkTo(cx, cy, true)
78 if #patient.action_queue == 1 then
79 self:dealtWithPatient(patient)
87 patient:queueAction(UseScreenAction(screen):setAfterUse(after_use_screen1))
88 return Room.commandEnteringPatient(self, patient)
102 function GeneralDiagRoom:shouldHavePatientReenter(patient)
[all …]
/dports/games/corsix-th/CorsixTH-0.65.1/CorsixTH/Lua/humanoid_actions/
H A Dvaccinate.lua34 self.patient = patient -- Patient to vaccinate.
40 function (patient,nurse)
41 local x1, y1 = patient.tile_x, patient.tile_y
58 function(nurse, patient)
60 local px, py = patient.tile_x, patient.tile_y
88 local patient = action.patient
98 patient:setMood("epidemy1", "activate")
99 patient.vaccinated = true
101 patient:updateDynamicInfo()
108 patient.reserved_for = nil
[all …]
/dports/games/corsix-th/CorsixTH-0.65.1/CorsixTH/Lua/dialogs/
H A Dpatient.lua46 self.patient = patient
136 local patient = self.patient
148 local px, py = map:WorldToScreen(patient.tile_x, patient.tile_y)
237 if patient == self.patient then
260 local patient = self.patient
274 local patient = self.patient
293 …if patient.is_debug or patient.diagnosis_progress == 0 or patient.diagnosed or patient.going_home …
331 local patient = self.patient
333 if patient.is_debug or patient.diagnosis_progress == 0 or patient.diagnosed or
334 patient.going_home or patient:getRoom() or
[all …]
H A Dqueue_dialog.lua205 local patient = self.dragged.patient
206 patient:setNextAction(room:createEnterAction(patient))
207 patient.next_room_to_visit = room
208patient:updateDynamicInfo(_S.dynamic_info.patient.actions.on_my_way_to:format(room.room_info.name))
275 if self.hovered and patient == self.hovered.patient then
281 closest = {patient = patient, diff = diff, x = x}
290 return {patient = closest.patient, x = closest.x}
318 if patient == self.hovered.patient then
332 local idle_anim = patient.getIdleAnimation(patient.humanoid_class)
354 self.patient = patient
[all …]
/dports/games/wesnoth/wesnoth-1.14.17/src/actions/
H A Dheal.cpp46 healed(patient), in heal_unit()
91 if ( patient.side() == side ) in poison_progress()
187 if ( patient.side() == side ) in heal_amount()
238 patient.heal(amount); in do_heal()
240 patient.take_hit(-amount); in do_heal()
301 if ( patient.get_state("unhealable") || patient.incapacitated() ) { in calculate_healing()
302 if ( patient.side() == side ) in calculate_healing()
303 patient.set_resting(true); in calculate_healing()
316 if ( patient.resting() || patient.is_healthy() ) in calculate_healing()
318 patient.set_resting(true); in calculate_healing()
[all …]
/dports/games/corsix-th/CorsixTH-0.65.1/CorsixTH/Lua/
H A Depidemic.lua125 patient.infected = true
126 patient:updateDynamicInfo()
145 if patient.cured or patient.vaccinated then return false end
295 if patient.infected and not patient.vaccinated and
311 if patient.infected and not patient.cured then
509 local px, py = patient.tile_x, patient.tile_y
519 if patient.has_passed_reception and not patient.going_home then
572 patient.reserved_for = nurse
578 patient.reserved_for = nil
599 local px, py = patient.tile_x, patient.tile_y
[all …]
/dports/games/corsix-th/CorsixTH-0.65.1/CorsixTH/Lua/objects/
H A Dhelicopter.lua82 local patient = self.world:newEntity("Patient", 2)
83 patient:setDisease(hospital.emergency.disease)
84 patient.diagnosis_progress = 1
85 patient.is_emergency = self.spawned_patients
86 patient:setDiagnosed()
87 patient:setMood("emergency", "activate")
91 patient:setHospital(hospital)
93 patient.cure_rooms_visited = #patient.disease.treatment_rooms - 1
96 if not patient:agreesToPay(patient.disease.id) then
97 patient:goHome("over_priced", patient.disease.id)
[all …]
/dports/games/corsix-th/CorsixTH-0.65.1/CorsixTH/Lua/diseases/
H A Dfractured_bones.lua33 disease.initPatient = function(patient)
36 patient:setType("Standard Female Patient")
37 patient:setLayer(0, math.random(1, 4) * 2)
39 patient:setLayer(2, num1 * 2)
41 patient:setLayer(3, (num1 == 0 and 1 or math.random(0, 1)) * 2)
42 patient:setLayer(4, 0)
44 patient:setType("Alternate Male Patient")
45 patient:setLayer(0, math.random(1, 5) * 2)
48 patient:setLayer(2, num1 * 2)
52 patient:setLayer(3, num2 * 2)
[all …]
H A Dalien_dna.lua35 disease.initPatient = function(patient)
37 patient:setType((which == 0) and "Alien Male Patient" or "Alien Female Patient")
38 patient.change_into = (which == 0) and "Standard Male Patient" or "Standard Female Patient"
40 patient:setLayer(0, math.random(1, 5) * 2) -- 5 variations for males
41 patient:setLayer(2, math.random(0, 1) * 2) -- + alternate shoes
43patient:setLayer(0, math.random(2, 4) * 2) -- NB: for layer0 = 2 head is missing in death animatio…
44 patient:setLayer(2, 0)
46 patient:setLayer(1, math.random(0, 3) * 2) -- 3 clothes variations for both genders
47 patient:setLayer(3, 0)
48 patient:setLayer(4, 0)
[all …]
H A Dcorrugated_ankles.lua34 disease.initPatient = function(patient)
36 patient:setType("Standard Male Patient")
37 patient:setLayer(0, math.random(1, 5) * 2)
38 patient:setLayer(2, math.random(0, 2) * 2)
40 patient:setType("Standard Female Patient")
41 patient:setLayer(0, math.random(1, 4) * 2)
42 patient:setLayer(2, 0)
44 patient:setLayer(1, math.random(0, 3) * 2)
45 patient:setLayer(3, 0)
46 patient:setLayer(4, 0)
H A Ddiscrete_itching.lua34 disease.initPatient = function(patient)
36 patient:setType("Standard Male Patient")
37 patient:setLayer(0, math.random(1, 5) * 2)
38 patient:setLayer(2, math.random(0, 2) * 2)
40 patient:setType("Standard Female Patient")
41 patient:setLayer(0, math.random(1, 4) * 2)
42 patient:setLayer(2, 0)
44 patient:setLayer(1, math.random(0, 3) * 2)
45 patient:setLayer(3, 0)
46 patient:setLayer(4, 0)
H A Dgastric_ejections.lua34 disease.initPatient = function(patient)
36 patient:setType("Standard Male Patient")
37 patient:setLayer(0, math.random(1, 5) * 2)
38 patient:setLayer(2, math.random(0, 2) * 2)
40 patient:setType("Standard Female Patient")
41 patient:setLayer(0, math.random(1, 4) * 2)
42 patient:setLayer(2, 0)
44 patient:setLayer(1, math.random(0, 3) * 2)
45 patient:setLayer(3, 0)
46 patient:setLayer(4, 0)
H A Diron_lungs.lua33 disease.initPatient = function(patient)
35 patient:setType("Standard Male Patient")
36 patient:setLayer(0, math.random(1, 5) * 2)
37 patient:setLayer(2, math.random(0, 2) * 2)
39 patient:setType("Standard Female Patient")
40 patient:setLayer(0, math.random(1, 4) * 2)
41 patient:setLayer(2, 0)
43 patient:setLayer(1, math.random(0, 3) * 2)
44 patient:setLayer(3, 0)
45 patient:setLayer(4, 0)
H A Dthird_degree_sideburns.lua33 disease.initPatient = function(patient)
35 patient:setType("Standard Male Patient")
36 patient:setLayer(0, math.random(1, 5) * 2)
37 patient:setLayer(2, math.random(0, 2) * 2)
39 patient:setType("Standard Female Patient")
40 patient:setLayer(0, math.random(1, 4) * 2)
41 patient:setLayer(2, 0)
43 patient:setLayer(1, math.random(0, 3) * 2)
44 patient:setLayer(3, 0)
45 patient:setLayer(4, 0)
H A Dtv_personalities.lua33 disease.initPatient = function(patient)
35 patient:setType("Standard Male Patient")
36 patient:setLayer(0, math.random(1, 5) * 2)
37 patient:setLayer(2, math.random(0, 2) * 2)
39 patient:setType("Standard Female Patient")
40 patient:setLayer(0, math.random(1, 4) * 2)
41 patient:setLayer(2, 0)
43 patient:setLayer(1, math.random(0, 3) * 2)
44 patient:setLayer(3, 0)
45 patient:setLayer(4, 0)
H A Dbroken_heart.lua33 disease.initPatient = function(patient)
35 patient:setType("Standard Male Patient")
36 patient:setLayer(0, math.random(1, 5) * 2)
37 patient:setLayer(2, math.random(0, 2) * 2)
39 patient:setType("Standard Female Patient")
40 patient:setLayer(0, math.random(1, 4) * 2)
41 patient:setLayer(2, 0)
43 patient:setLayer(1, math.random(0, 3) * 2)
44 patient:setLayer(3, 0)
45 patient:setLayer(4, 0)
H A Dheaped_piles.lua34 disease.initPatient = function(patient)
36 patient:setType("Standard Male Patient")
37 patient:setLayer(0, math.random(1, 5) * 2)
38 patient:setLayer(2, math.random(0, 2) * 2)
40 patient:setType("Standard Female Patient")
41 patient:setLayer(0, math.random(1, 4) * 2)
42 patient:setLayer(2, 0)
44 patient:setLayer(1, math.random(0, 3) * 2)
45 patient:setLayer(3, 0)
46 patient:setLayer(4, 0)
H A Dspare_ribs.lua33 disease.initPatient = function(patient)
35 patient:setType("Standard Male Patient")
36 patient:setLayer(0, math.random(1, 5) * 2)
37 patient:setLayer(2, math.random(0, 2) * 2)
39 patient:setType("Standard Female Patient")
40 patient:setLayer(0, math.random(1, 4) * 2)
41 patient:setLayer(2, 0)
43 patient:setLayer(1, math.random(0, 3) * 2)
44 patient:setLayer(3, 0)
45 patient:setLayer(4, 0)
H A Dgolf_stones.lua33 disease.initPatient = function(patient)
35 patient:setType("Standard Male Patient")
36 patient:setLayer(0, math.random(1, 5) * 2)
37 patient:setLayer(2, math.random(0, 2) * 2)
39 patient:setType("Standard Female Patient")
40 patient:setLayer(0, math.random(1, 4) * 2)
41 patient:setLayer(2, 0)
43 patient:setLayer(1, math.random(0, 3) * 2)
44 patient:setLayer(3, 0)
45 patient:setLayer(4, 0)
H A Dsweaty_palms.lua33 disease.initPatient = function(patient)
35 patient:setType("Standard Male Patient")
36 patient:setLayer(0, math.random(1, 5) * 2)
37 patient:setLayer(2, math.random(0, 2) * 2)
39 patient:setType("Standard Female Patient")
40 patient:setLayer(0, math.random(1, 4) * 2)
41 patient:setLayer(2, 0)
43 patient:setLayer(1, math.random(0, 3) * 2)
44 patient:setLayer(3, 0)
45 patient:setLayer(4, 0)
H A Duncommon_cold.lua34 disease.initPatient = function(patient)
36 patient:setType("Standard Male Patient")
37 patient:setLayer(0, math.random(1, 5) * 2)
38 patient:setLayer(2, math.random(0, 2) * 2)
40 patient:setType("Standard Female Patient")
41 patient:setLayer(0, math.random(1, 4) * 2)
42 patient:setLayer(2, 0)
44 patient:setLayer(1, math.random(0, 3) * 2)
45 patient:setLayer(3, 0)
46 patient:setLayer(4, 0)
H A Dbroken_wind.lua34 disease.initPatient = function(patient)
36 patient:setType("Standard Male Patient")
37 patient:setLayer(0, math.random(1, 5) * 2)
38 patient:setLayer(2, math.random(0, 2) * 2)
40 patient:setType("Standard Female Patient")
41 patient:setLayer(0, math.random(1, 4) * 2)
42 patient:setLayer(2, 0)
44 patient:setLayer(1, math.random(0, 3) * 2)
45 patient:setLayer(3, 0)
46 patient:setLayer(4, 0)

12345678910>>...120