Configuration parameters for diseases.lua file
name
: REQUIRED, this is the name the module will be registered with in the systemsdisplayName
: REQUIRED The friendly name, must be readable since it will end up in the UI eventuallyhealthLossPerTick
: Amount of health is loss per tick (of the effect)tickRate
: Milliseconds delay between one tick and another of the main module thread, generally used for checking positions, temperature and so on…effectRate
: This is the tick rate of the effect, delay between each loop of the effect thread. Basically how often effects are applied. (See healthLossPerTick)autoHealTime
: The amount of time it takes to heal automatically, if you want this to be healed only by a medicine set it to -1maxColdnessLevel
: This is specific for this disease, basically it sets the maximum allowed value of “coldness”.coldTemperature
: Temperature which is considered to be coldtemperatureRate
: Coefficient for the coldness level incrementwaterRate
: Coefficient for the coldness level incrementsymptoms
: Non visible or roleplayable symptoms that a doctor can still see, shown in the UI. For example by misuring patient’s temperature or heart rate. They’re mandatory for the UI to work. You can customise them as you like, those are just meant to be an hint for the doctor to administer the right medicine to the patient, knowing how each disease affects heart rate or body temperature. For example the common cold will never reach 40C degrees, it is probably malaria or cholera.1 * temperatureRate
or 1 * waterRate
if it’s in a cold temperature or inside water. It gets then decremented by 1 every tick the player is not inside any “cold factor”.
Example A:
2
each tick2
for being in water and 1
for being in a cold temperature.infectionZonesProbability
: This is a list of zones where you could get infected, for each tick you’re inside one of these zones you will get an infection point. Each zone has a coords value which is the center of it, a radius which is how extended it is and the amount of infection points you get standing there without wearing a bandana.