exploit gone (#21605)

This commit is contained in:
Contrabang
2023-07-09 05:47:13 -04:00
committed by GitHub
parent bd56476052
commit 7fb0e7157a
2 changed files with 7 additions and 1 deletions
@@ -111,6 +111,12 @@ What are the archived variables for?
return TRUE
/// Only removes the gas if we have more than the amount
/datum/gas_mixture/proc/boolean_remove(amount)
if(amount > total_moles())
return FALSE
return remove(amount)
///Proportionally removes amount of gas from the gas_mixture.
///Returns: gas_mixture with the gases removed
/datum/gas_mixture/proc/remove(amount)