mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
[s] [FIX] Exploit fix (#27387)
* That's illegal * Requested changes --------- Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user