2016-10-06 20:40:36 +00:00
|
|
|
|
|
|
|
#define ALL_BODY_PARTS ["head", "body", "leftarm", "rightarm", "leftleg", "rightleg"]
|
|
|
|
|
|
|
|
#define CUR_LEVEL (["Basic", "Advanced"] select (EGVAR(medical,level) >= 2))
|
|
|
|
|
|
|
|
// scale received pain to 0-2 level to select type of scream
|
|
|
|
// below 0.25: 0, from 0.25 to 0.5: 1, more than 0.5: 2
|
|
|
|
#define PAIN_TO_SCREAM(pain) (floor (4 * pain) min 2)
|
|
|
|
|
|
|
|
// scale received pain to 0-2 level to select type of scream
|
|
|
|
// below 0.33: 0, from 0.34 to 0.66: 1, more than 0.67: 2
|
|
|
|
#define PAIN_TO_MOAN(pain) (floor (3 * pain) min 2)
|
|
|
|
|
|
|
|
#define GET_NUMBER(config,default) (if (isNumber (config)) then {getNumber (config)} else {default})
|
|
|
|
#define GET_STRING(config,default) (if (isText (config)) then {getText (config)} else {default})
|
|
|
|
#define GET_ARRAY(config,default) (if (isArray (config)) then {getArray (config)} else {default})
|
2016-10-10 15:30:42 +00:00
|
|
|
|
|
|
|
// --- blood
|
2016-10-10 16:22:46 +00:00
|
|
|
// 0.077 l/kg * 80kg = 6.16l
|
2016-10-10 15:30:42 +00:00
|
|
|
#define DEFAULT_BLOOD_VOLUME 6.0 // in liters
|
|
|
|
|
2016-10-11 17:44:20 +00:00
|
|
|
#define BLOOD_VOLUME_HAS_LOST_SOME 5.900 // lost 100ml
|
|
|
|
#define BLOOD_VOLUME_HAS_LOST_MUCH 5.500 // lost 500ml
|
2016-10-10 15:46:17 +00:00
|
|
|
|
|
|
|
#define BLOOD_VOLUME_UNCONSCIOUS 3.6 // in liters
|
|
|
|
#define BLOOD_VOLUME_DEAD 1.8 // in liters
|
|
|
|
#define BLOOD_VOLUME_CARDIAC_ARREST 1.2 // in liters
|
2016-10-10 16:20:58 +00:00
|
|
|
|
2016-10-11 17:44:20 +00:00
|
|
|
// IV Change per second calculation:
|
|
|
|
// 250ml should take 60 seconds to fill. 250/60 = 4.166.
|
|
|
|
// Basic medical is 10x (will take 6 seconds for 250ml)
|
|
|
|
#define IV_CHANGE_PER_SECOND ([41.66, 4.166] select (GVAR(level) >= 2))
|