mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Moved antibodies to the rest of reagents.
Updates them to use new chem processing. Also axes unused commented out code.
This commit is contained in:
@@ -110,6 +110,19 @@
|
|||||||
M.resistances += data
|
M.resistances += data
|
||||||
return
|
return
|
||||||
|
|
||||||
|
// pure concentrated antibodies
|
||||||
|
/datum/reagent/antibodies
|
||||||
|
data = list("antibodies"=list())
|
||||||
|
name = "Antibodies"
|
||||||
|
id = "antibodies"
|
||||||
|
reagent_state = LIQUID
|
||||||
|
color = "#0050F0"
|
||||||
|
|
||||||
|
/datum/reagent/antibodies/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
|
||||||
|
if(src.data)
|
||||||
|
M.antibodies |= src.data["antibodies"]
|
||||||
|
..()
|
||||||
|
|
||||||
#define WATER_LATENT_HEAT 19000 // How much heat is removed when applied to a hot turf, in J/unit (19000 makes 120 u of water roughly equivalent to 4L)
|
#define WATER_LATENT_HEAT 19000 // How much heat is removed when applied to a hot turf, in J/unit (19000 makes 120 u of water roughly equivalent to 4L)
|
||||||
/datum/reagent/water
|
/datum/reagent/water
|
||||||
name = "Water"
|
name = "Water"
|
||||||
@@ -143,7 +156,7 @@
|
|||||||
environment.add_thermal_energy(-removed_heat)
|
environment.add_thermal_energy(-removed_heat)
|
||||||
if (prob(5))
|
if (prob(5))
|
||||||
T.visible_message("<span class='warning'>The water sizzles as it lands on \the [T]!</span>")
|
T.visible_message("<span class='warning'>The water sizzles as it lands on \the [T]!</span>")
|
||||||
|
|
||||||
else if(volume >= 10)
|
else if(volume >= 10)
|
||||||
if(T.wet >= 1)
|
if(T.wet >= 1)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1,44 +1,5 @@
|
|||||||
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:33
|
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:33
|
||||||
|
|
||||||
/*
|
|
||||||
// reserving some numbers for later special antigens
|
|
||||||
var/global/const/ANTIGEN_A = 1
|
|
||||||
var/global/const/ANTIGEN_B = 2
|
|
||||||
var/global/const/ANTIGEN_C = 4
|
|
||||||
var/global/const/ANTIGEN_D = 8
|
|
||||||
var/global/const/ANTIGEN_E = 16
|
|
||||||
var/global/const/ANTIGEN_M = 32
|
|
||||||
var/global/const/ANTIGEN_N = 64
|
|
||||||
var/global/const/ANTIGEN_O = 128
|
|
||||||
var/global/const/ANTIGEN_P = 256
|
|
||||||
var/global/const/ANTIGEN_Q = 512
|
|
||||||
var/global/const/ANTIGEN_U = 1024
|
|
||||||
var/global/const/ANTIGEN_V = 2048
|
|
||||||
var/global/const/ANTIGEN_W = 4096
|
|
||||||
var/global/const/ANTIGEN_X = 8192
|
|
||||||
var/global/const/ANTIGEN_Y = 16384
|
|
||||||
var/global/const/ANTIGEN_Z = 32768
|
|
||||||
|
|
||||||
var/global/list/ANTIGENS = list(
|
|
||||||
"[ANTIGEN_A]" = "A",
|
|
||||||
"[ANTIGEN_B]" = "B",
|
|
||||||
"[ANTIGEN_C]" = "C",
|
|
||||||
"[ANTIGEN_E]" = "E",
|
|
||||||
"[ANTIGEN_D]" = "D",
|
|
||||||
"[ANTIGEN_M]" = "M",
|
|
||||||
"[ANTIGEN_N]" = "N",
|
|
||||||
"[ANTIGEN_O]" = "O",
|
|
||||||
"[ANTIGEN_P]" = "P",
|
|
||||||
"[ANTIGEN_Q]" = "Q",
|
|
||||||
"[ANTIGEN_U]" = "U",
|
|
||||||
"[ANTIGEN_V]" = "V",
|
|
||||||
"[ANTIGEN_W]" = "W",
|
|
||||||
"[ANTIGEN_X]" = "X",
|
|
||||||
"[ANTIGEN_Y]" = "Y",
|
|
||||||
"[ANTIGEN_Z]" = "Z"
|
|
||||||
)
|
|
||||||
*/
|
|
||||||
|
|
||||||
var/global/list/ALL_ANTIGENS = list(
|
var/global/list/ALL_ANTIGENS = list(
|
||||||
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
|
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
|
||||||
)
|
)
|
||||||
@@ -47,23 +8,6 @@ var/global/list/ALL_ANTIGENS = list(
|
|||||||
ALL_ANTIGENS = shuffle(ALL_ANTIGENS)
|
ALL_ANTIGENS = shuffle(ALL_ANTIGENS)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
// pure concentrated antibodies
|
|
||||||
datum/reagent/antibodies
|
|
||||||
data = list("antibodies"=list())
|
|
||||||
name = "Antibodies"
|
|
||||||
id = "antibodies"
|
|
||||||
reagent_state = LIQUID
|
|
||||||
color = "#0050F0"
|
|
||||||
|
|
||||||
reaction_mob(var/mob/M, var/method=CHEM_TOUCH, var/volume)
|
|
||||||
if(istype(M,/mob/living/carbon))
|
|
||||||
var/mob/living/carbon/C = M
|
|
||||||
if(src.data && method == CHEM_INGEST)
|
|
||||||
//if(C.virus2) if(src.data["antibodies"] & C.virus2.antigen)
|
|
||||||
// C.virus2.dead = 1
|
|
||||||
C.antibodies |= src.data["antibodies"]
|
|
||||||
return
|
|
||||||
|
|
||||||
// iterate over the list of antigens and see what matches
|
// iterate over the list of antigens and see what matches
|
||||||
/proc/antigens2string(list/antigens, none="None")
|
/proc/antigens2string(list/antigens, none="None")
|
||||||
if(!istype(antigens))
|
if(!istype(antigens))
|
||||||
|
|||||||
Reference in New Issue
Block a user