mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Having an infection raises your body temperature
Also the toxin damage taken during INFECTION_LEVEL_ONE is greatly reduced. Fixes robotic internal organs getting infections. Fixes the organ_failure random event. Forgot to set the affected organ as needing processing.
This commit is contained in:
@@ -40,4 +40,6 @@ datum/event/organ_failure/start()
|
|||||||
else
|
else
|
||||||
O.germ_level = max(rand(INFECTION_LEVEL_ONE,INFECTION_LEVEL_ONE*2), O.germ_level)
|
O.germ_level = max(rand(INFECTION_LEVEL_ONE,INFECTION_LEVEL_ONE*2), O.germ_level)
|
||||||
|
|
||||||
|
C.bad_external_organs |= O
|
||||||
|
|
||||||
severity--
|
severity--
|
||||||
|
|||||||
@@ -357,11 +357,13 @@ This function completely restores a damaged organ to perfect condition.
|
|||||||
|
|
||||||
if(germ_level >= INFECTION_LEVEL_ONE)
|
if(germ_level >= INFECTION_LEVEL_ONE)
|
||||||
//having an infection raises your body temperature
|
//having an infection raises your body temperature
|
||||||
var/temperature_increase = (owner.species.heat_level_1 - owner.species.body_temperature - 1)* min(germ_level/INFECTION_LEVEL_THREE, 1)
|
var/fever_temperature = (owner.species.heat_level_1 - owner.species.body_temperature - 1)* min(germ_level/INFECTION_LEVEL_THREE, 1) + owner.species.body_temperature
|
||||||
if (owner.bodytemperature < temperature_increase)
|
if (owner.bodytemperature < fever_temperature)
|
||||||
|
//world << "fever: [owner.bodytemperature] < [fever_temperature], raising temperature."
|
||||||
owner.bodytemperature++
|
owner.bodytemperature++
|
||||||
|
|
||||||
if(prob(round(germ_level/10))) //aiming for a light infection to become serious after 40 minutes, standing still
|
if(prob(round(germ_level/10))) //aiming for a light infection to become serious after 40 minutes, standing still
|
||||||
|
if (prob(5))
|
||||||
germ_level++
|
germ_level++
|
||||||
owner.adjustToxLoss(1)
|
owner.adjustToxLoss(1)
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,10 @@
|
|||||||
if (!germ_level)
|
if (!germ_level)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if (robotic >= 2) //TODO make robotic internal and external organs separate types of organ instead of a flag
|
||||||
|
germ_level = 0
|
||||||
|
return
|
||||||
|
|
||||||
var/antibiotics = owner.reagents.get_reagent_amount("spaceacillin")
|
var/antibiotics = owner.reagents.get_reagent_amount("spaceacillin")
|
||||||
|
|
||||||
if (germ_level > 0 && antibiotics > 5)
|
if (germ_level > 0 && antibiotics > 5)
|
||||||
|
|||||||
Reference in New Issue
Block a user