| 1 |
--[[ Copyright (c) 2011 Mark "MarkL" Lawlor |
| 2 |
|
| 3 |
Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 4 |
this software and associated documentation files (the "Software"), to deal in |
| 5 |
the Software without restriction, including without limitation the rights to |
| 6 |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 7 |
of the Software, and to permit persons to whom the Software is furnished to do |
| 8 |
so, subject to the following conditions: |
| 9 |
The above copyright notice and this permission notice shall be included in all |
| 10 |
copies or substantial portions of the Software. |
| 11 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 12 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 13 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 14 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 15 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 16 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 17 |
SOFTWARE. --]] |
| 18 |
|
| 19 |
local disease = {} |
| 20 |
disease.id = "pregnant" |
| 21 |
disease.expertise_id = 14 |
| 22 |
disease.visuals_id = 12 |
| 23 |
disease.name = _S.diseases.pregnancy.name |
| 24 |
disease.cause = _S.diseases.pregnancy.cause |
| 25 |
disease.symptoms = _S.diseases.pregnancy.symptoms |
| 26 |
disease.cure = _S.diseases.pregnancy.cure |
| 27 |
disease.cure_price = 200 |
| 28 |
disease.emergency_sound = "emerg021.wav" |
| 29 |
disease.emergency_number = 8 |
| 30 |
disease.contagious = false |
| 31 |
disease.initPatient = function(patient) |
| 32 |
patient:setType("Standard Female Patient") |
| 33 |
patient:setLayer(0, math.random(1, 4) * 2) |
| 34 |
patient:setLayer(2, 0) |
| 35 |
patient:setLayer(1, math.random(0, 3) * 2) |
| 36 |
patient:setLayer(3, 0) |
| 37 |
patient:setLayer(4, 0) |
| 38 |
end |
| 39 |
|
| 40 |
-- Diagnosis rooms are the rooms other than the GPs office which can be visited |
| 41 |
-- to aid in diagnosis. They need not be visited, and if they are visited, the |
| 42 |
-- order in which they are visited is not fixed. |
| 43 |
disease.diagnosis_rooms = { |
| 44 |
"general_diag", |
| 45 |
"cardiogram", |
| 46 |
"scanner", |
| 47 |
"ultrascan", |
| 48 |
"blood_machine", |
| 49 |
"x_ray", |
| 50 |
"psych", |
| 51 |
"ward", |
| 52 |
} |
| 53 |
|
| 54 |
-- Treatment rooms are the rooms which must be visited, in the given order, to |
| 55 |
-- cure the disease. |
| 56 |
disease.treatment_rooms = { |
| 57 |
"ward", |
| 58 |
"operating_theatre", |
| 59 |
} |
| 60 |
|
| 61 |
return disease |