Changed to weakness
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#define FLAG_STATUS_NONE (1 << 0)
|
||||
#define FLAG_STATUS_PH_IMMUNE (1 << 1)
|
||||
#define FLAG_STATUS_TEMP_IMMUNE (1 << 2)
|
||||
#define FLAG_STATUS_PH (1 << 1)
|
||||
#define FLAG_STATUS_TEMP (1 << 2)
|
||||
|
||||
/obj/item/reagent_containers
|
||||
name = "Container"
|
||||
@@ -15,7 +15,7 @@
|
||||
var/spawned_disease = null
|
||||
var/disease_amount = 20
|
||||
var/spillable = FALSE
|
||||
var/beaker_resistances |= FLAG_STATUS_PH_IMMUNE | FLAG_STATUS_TEMP_IMMUNE
|
||||
var/beaker_weaknesses = NONE
|
||||
|
||||
/obj/item/reagent_containers/Initialize(mapload, vol)
|
||||
. = ..()
|
||||
@@ -130,7 +130,7 @@
|
||||
//melts plastic beakers
|
||||
/obj/item/reagent_containers/microwave_act(obj/machinery/microwave/M)
|
||||
reagents.expose_temperature(1000)
|
||||
if(!beaker_resistances == FLAG_STATUS_TEMP_IMMUNE)
|
||||
if(beaker_weaknesses == FLAG_STATUS_TEMP)
|
||||
var/list/seen = viewers(5, get_turf(src))
|
||||
var/iconhtml = icon2html(src, seen)
|
||||
for(var/mob/H in seen)
|
||||
@@ -142,7 +142,7 @@
|
||||
//melts plastic beakers
|
||||
/obj/item/reagent_containers/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
|
||||
reagents.expose_temperature(exposed_temperature)
|
||||
if(!beaker_resistances == FLAG_STATUS_TEMP_IMMUNE)
|
||||
if(beaker_weaknesses == FLAG_STATUS_TEMP)
|
||||
if(reagents.chem_temp > 444)//assuming polypropylene
|
||||
var/list/seen = viewers(5, get_turf(src))
|
||||
var/iconhtml = icon2html(src, seen)
|
||||
@@ -153,7 +153,7 @@
|
||||
|
||||
//melts glass beakers
|
||||
/obj/item/reagent_containers/proc/pH_check()
|
||||
if(!beaker_resistances == FLAG_STATUS_PH_IMMUNE)
|
||||
if(beaker_weaknesses == FLAG_STATUS_PH)
|
||||
if((reagents.pH < 0.5) || (reagents.pH > 13.5))
|
||||
var/list/seen = viewers(5, get_turf(src))
|
||||
var/iconhtml = icon2html(src, seen)
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
icon_state = "beaker"
|
||||
item_state = "beaker"
|
||||
materials = list(MAT_GLASS=500)
|
||||
beaker_resistances = FLAG_STATUS_TEMP_IMMUNE
|
||||
beaker_weaknesses |= FLAG_STATUS_PH
|
||||
|
||||
/obj/item/reagent_containers/glass/beaker/Initialize()
|
||||
. = ..()
|
||||
@@ -165,7 +165,6 @@
|
||||
volume = 100
|
||||
amount_per_transfer_from_this = 10
|
||||
possible_transfer_amounts = list(5,10,15,20,25,30,50,100)
|
||||
beaker_resistances &= ~FLAG_STATUS_PH_IMMUNE
|
||||
|
||||
/obj/item/reagent_containers/glass/beaker/plastic
|
||||
name = "x-large beaker"
|
||||
@@ -175,8 +174,8 @@
|
||||
volume = 150
|
||||
amount_per_transfer_from_this = 10
|
||||
possible_transfer_amounts = list(5,10,15,20,25,30,50,100,150)
|
||||
beaker_resistances &= ~FLAG_STATUS_TEMP_IMMUNE
|
||||
beaker_resistances |= FLAG_STATUS_PH_IMMUNE
|
||||
beaker_weaknesses &= ~FLAG_STATUS_PH
|
||||
beaker_weaknesses |= FLAG_STATUS_TEMP
|
||||
|
||||
/obj/item/reagent_containers/glass/beaker/plastic/update_icon()
|
||||
icon_state = "beakerlarge" // hack to lets us reuse the large beaker reagent fill states
|
||||
@@ -191,7 +190,7 @@
|
||||
volume = 200
|
||||
amount_per_transfer_from_this = 10
|
||||
possible_transfer_amounts = list(5,10,15,20,25,30,50,100,200)
|
||||
beaker_resistances |= FLAG_STATUS_PH_IMMUNE | FLAG_STATUS_TEMP_IMMUNE
|
||||
beaker_weaknesses &= ~FLAG_STATUS_PH
|
||||
|
||||
/obj/item/reagent_containers/glass/beaker/noreact
|
||||
name = "cryostasis beaker"
|
||||
@@ -201,7 +200,7 @@
|
||||
materials = list(MAT_METAL=3000)
|
||||
volume = 50
|
||||
amount_per_transfer_from_this = 10
|
||||
beaker_resistances |= FLAG_STATUS_PH_IMMUNE | FLAG_STATUS_TEMP_IMMUNE
|
||||
beaker_weaknesses &= ~FLAG_STATUS_PH
|
||||
|
||||
/obj/item/reagent_containers/glass/beaker/noreact/Initialize()
|
||||
. = ..()
|
||||
@@ -217,7 +216,6 @@
|
||||
volume = 300
|
||||
amount_per_transfer_from_this = 10
|
||||
possible_transfer_amounts = list(5,10,15,20,25,30,50,100,300)
|
||||
beaker_resistances &= ~FLAG_STATUS_PH_IMMUNE
|
||||
|
||||
/obj/item/reagent_containers/glass/beaker/cryoxadone
|
||||
list_reagents = list("cryoxadone" = 30)
|
||||
@@ -274,7 +272,7 @@
|
||||
SLOT_L_STORE, SLOT_R_STORE,\
|
||||
SLOT_GENERC_DEXTROUS_STORAGE
|
||||
)
|
||||
beaker_resistances &= ~FLAG_STATUS_PH_IMMUNE
|
||||
beaker_weaknesses &= ~FLAG_STATUS_PH_IMMUNE
|
||||
|
||||
/obj/item/reagent_containers/glass/bucket/attackby(obj/O, mob/user, params)
|
||||
if(istype(O, /obj/item/mop))
|
||||
@@ -324,8 +322,8 @@
|
||||
materials = list(MAT_GLASS=0)
|
||||
volume = 50
|
||||
amount_per_transfer_from_this = 10
|
||||
beaker_resistances &= ~FLAG_STATUS_PH_IMMUNE
|
||||
beaker_resistances &= ~FLAG_STATUS_TEMP_IMMUNE
|
||||
beaker_weaknesses |= FLAG_STATUS_PH
|
||||
beaker_weaknesses |= FLAG_STATUS_TEMP
|
||||
|
||||
/obj/item/reagent_containers/glass/beaker/waterbottle/empty
|
||||
list_reagents = list()
|
||||
@@ -337,8 +335,8 @@
|
||||
list_reagents = list("water" = 100)
|
||||
volume = 100
|
||||
amount_per_transfer_from_this = 20
|
||||
beaker_resistances &= ~FLAG_STATUS_PH_IMMUNE
|
||||
beaker_resistances &= ~FLAG_STATUS_TEMP_IMMUNE
|
||||
beaker_weaknesses |= FLAG_STATUS_PH
|
||||
beaker_weaknesses |= FLAG_STATUS_TEMP
|
||||
|
||||
/obj/item/reagent_containers/glass/beaker/waterbottle/large/empty
|
||||
list_reagents = list()
|
||||
|
||||
Reference in New Issue
Block a user