mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 05:02:42 +00:00
Tweaks wound infection a bit
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
..()
|
..()
|
||||||
|
|
||||||
// Increase germ_level regularly
|
// Increase germ_level regularly
|
||||||
if(germ_level < GERM_LEVEL_AMBIENT) //if you're just standing there, you shouldn't get more germs beyond an ambient level
|
if(germ_level < GERM_LEVEL_AMBIENT && prob(80)) //if you're just standing there, you shouldn't get more germs beyond an ambient level
|
||||||
germ_level++ //increase by 1 per second
|
germ_level++
|
||||||
|
|
||||||
/mob/living/carbon/Move(NewLoc, direct)
|
/mob/living/carbon/Move(NewLoc, direct)
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
src.bodytemperature += 2
|
src.bodytemperature += 2
|
||||||
|
|
||||||
// Moving around increases germ_level faster
|
// Moving around increases germ_level faster
|
||||||
if(germ_level < GERM_LEVEL_MOVE_CAP && prob(1))
|
if(germ_level < GERM_LEVEL_MOVE_CAP && prob(8))
|
||||||
germ_level++
|
germ_level++
|
||||||
|
|
||||||
/mob/living/carbon/relaymove(var/mob/user, direction)
|
/mob/living/carbon/relaymove(var/mob/user, direction)
|
||||||
|
|||||||
@@ -284,7 +284,7 @@
|
|||||||
var/this_wound_desc = W.desc
|
var/this_wound_desc = W.desc
|
||||||
if(W.bleeding()) this_wound_desc = "bleeding [this_wound_desc]"
|
if(W.bleeding()) this_wound_desc = "bleeding [this_wound_desc]"
|
||||||
else if(W.bandaged) this_wound_desc = "bandaged [this_wound_desc]"
|
else if(W.bandaged) this_wound_desc = "bandaged [this_wound_desc]"
|
||||||
if(W.germ_level > GANGREN_LEVEL_TWO) this_wound_desc = "badly infected [this_wound_desc]"
|
if(W.germ_level > 600) this_wound_desc = "badly infected [this_wound_desc]"
|
||||||
else if(W.germ_level > 330) this_wound_desc = "lightly infected [this_wound_desc]"
|
else if(W.germ_level > 330) this_wound_desc = "lightly infected [this_wound_desc]"
|
||||||
if(this_wound_desc in wound_descriptors)
|
if(this_wound_desc in wound_descriptors)
|
||||||
wound_descriptors[this_wound_desc] += W.amount
|
wound_descriptors[this_wound_desc] += W.amount
|
||||||
|
|||||||
@@ -353,12 +353,13 @@ This function completely restores a damaged organ to perfect condition.
|
|||||||
if (W.germ_level > germ_level) //Badly infected wounds raise internal germ levels
|
if (W.germ_level > germ_level) //Badly infected wounds raise internal germ levels
|
||||||
germ_level++
|
germ_level++
|
||||||
|
|
||||||
if(germ_level > GANGREN_LEVEL_TWO)
|
if(germ_level > GANGREN_LEVEL_ONE && prob(round(germ_level/10))) //aiming for a light infection to become serious after 40 minutes, standing still
|
||||||
germ_level++
|
germ_level += 1
|
||||||
|
if (prob(50))
|
||||||
owner.adjustToxLoss(1)
|
owner.adjustToxLoss(1)
|
||||||
|
|
||||||
else if(germ_level > GANGREN_LEVEL_ONE && prob(round(germ_level/10))) //aiming for a light infection to become serious after 40 minutes, standing still
|
if(germ_level > GANGREN_LEVEL_TWO)
|
||||||
germ_level += 1
|
germ_level++
|
||||||
owner.adjustToxLoss(1)
|
owner.adjustToxLoss(1)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -769,8 +769,8 @@ var/list/RESTRICTED_CAMERA_NETWORKS = list( //Those networks can only be accesse
|
|||||||
|
|
||||||
//Germs and infection
|
//Germs and infection
|
||||||
//These numbers have been calculated so that an untreated cut will become a serious infection after 50 minutes.
|
//These numbers have been calculated so that an untreated cut will become a serious infection after 50 minutes.
|
||||||
#define GERM_LEVEL_AMBIENT 120 //maximum germ level you can reach by standing still
|
#define GERM_LEVEL_AMBIENT 110 //maximum germ level you can reach by standing still
|
||||||
#define GERM_LEVEL_MOVE_CAP 300 //maximum germ level you can reach by running around
|
#define GERM_LEVEL_MOVE_CAP 200 //maximum germ level you can reach by running around
|
||||||
#define GANGREN_LEVEL_ONE 50
|
#define GANGREN_LEVEL_ONE 100
|
||||||
#define GANGREN_LEVEL_TWO 1000
|
#define GANGREN_LEVEL_TWO 1000
|
||||||
#define GANGREN_LEVEL_TERMINAL 2500
|
#define GANGREN_LEVEL_TERMINAL 2500
|
||||||
|
|||||||
Reference in New Issue
Block a user