[s] [FIX] Exploit fix (#27387)

* That's illegal

* Requested changes

---------

Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
Chap
2024-11-18 17:11:35 +01:00
committed by GitHub
parent b56c32fdc6
commit 6f5441fe08
@@ -6,6 +6,9 @@
#define TRANSFER_TO_DISPOSAL 0
#define TRANSFER_TO_BEAKER 1
#define SAFE_MIN_TEMPERATURE T0C+7 // Safe minimum temperature for chemicals before they would start to damage slimepeople.
#define SAFE_MAX_TEMPERATURE T0C+36 // Safe maximum temperature for chemicals before they would start to damage drask.
/obj/machinery/chem_master
name = "\improper ChemMaster 3000"
desc = "Used to turn reagents into pills, patches, and store them in bottles."
@@ -610,6 +613,8 @@
for(var/datum/reagent/A in R.reagent_list)
if(!safe_chem_list.Find(A.id))
return FALSE
if(R.chem_temp < SAFE_MIN_TEMPERATURE || R.chem_temp > SAFE_MAX_TEMPERATURE)
return FALSE
return TRUE
/datum/chemical_production_mode/patches/configure_item(data, datum/reagents/R, obj/item/reagent_containers/patch/P)
@@ -665,3 +670,6 @@
#undef TRANSFER_TO_DISPOSAL
#undef TRANSFER_TO_BEAKER
#undef SAFE_MIN_TEMPERATURE
#undef SAFE_MAX_TEMPERATURE