Configuration Guide Medical


Mars Simulation Project
Configuration Guide

medical.xml


The medical.xml configuration file contains configuration for medical problems that settlers can suffer from. New medical problems can be added and existing ones edited.

A "medical-complaint" element has a unique "name" attribute. It also has the following child elements:

  • seriousness: The seriousness of the malfunction as an integer value between 1 and 100 (100 being most serious). This is used to determine the order that doctors will attempt to treat multiple medical problems. This element is required for all medical complaints.

  • degrade-time: The time (sols) (see "conf/time.txt") before this medical problem degrades to a more serious medical problem or death if left untreated. This element is optional and is only for degrading medical problems.

  • recovery-time: The time (sols) (see "conf/time.txt") for the person to recover from the affects of the medical problem after it has been treated. This element is required for all medical complaints.

  • probability: The probability weight of the malfunction happening as a decimal value from 0.0 (no chance) to 100.0 (very likely). This is its probability that this medical problem can happen to a person randomly without an outside cause (such as a malfunction). This element is required for all medical complaints.

  • performance-percent: The percentage of normal activity performance the person has while suffering from this health problem. This is a decimal value from 0.0 (bedridden) to 100.0 (normal performance). This element is required for all medical complaints.

  • treatment: The medical treatment that will fix this problem and will put the patient in recovery. This treatment has to be on the treatment-list below. This element is optional and its absence means the medical complaint doesn't need treatment and the patient will go into recovery immediately.

  • degrade-complaint: The medical complaint this complaint will degrade to if it is left untreated past the degrade-time. The degrade-complaint must be a valid complaint. This element is optional and its absence means that this medical complaint will degrade to death if left untreated.

The "treatment-list" is a list of treatments for medical complaints. New treatments can be added and existing ones modified.

The "treatment" element has a unique "name" attribute. It can also have the following optional elements:

  • skill: The "medical" skill a person needs to perform this treatment. This element is optional and its absence means that this treatment has no medical skill requirement.

  • medical-tech-level: The technology level of the medical facility required for this treatment (see "conf/tech_level.txt"). This element is optional and its absence means that this treatment can be performed at any medical facility.

  • treatment-time: The time (millisols) (see "conf/time.txt") required to perform this treatment on a medical problem. This element is optional and its absence means that the treatment is instantaneous

  • retainaid: Does the patient need to stay at the medical facility after treatment during the recovery process? Valid values are "true" and "false". This element is optional and its absence means that retainaid is not required.


Back



Please send questions or comments to mars-sim-users@lists.sourceforge.net

Mars Simulation Project copyright © Scott Davis, 2008
Map data courtesy of NASA Jet Propulsion Laboratory