Skip to content

Commit

Permalink
[s] [FIX] Exploit fix (ParadiseSS13#27387)
Browse files Browse the repository at this point in the history
* That's illegal

* Requested changes

---------

Co-authored-by: Adrer <adrermail@gmail.com>
  • Loading branch information
Adrer and Adrer authored Nov 18, 2024
1 parent b56c32f commit 6f5441f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/modules/reagents/chemistry/machinery/chem_master.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -665,3 +670,6 @@

#undef TRANSFER_TO_DISPOSAL
#undef TRANSFER_TO_BEAKER

#undef SAFE_MIN_TEMPERATURE
#undef SAFE_MAX_TEMPERATURE

0 comments on commit 6f5441f

Please sign in to comment.