moves check and add to reagents holder datum

This commit is contained in:
Birdtalon
2018-10-12 15:59:30 +01:00
parent 0553de3578
commit e9d153daf4
2 changed files with 16 additions and 15 deletions
@@ -594,6 +594,11 @@ var/const/INGEST = 2
return 1
/datum/reagents/proc/check_and_add(reagent, check, add)
if(get_reagent_amount(reagent) < check)
add_reagent(reagent, add)
return TRUE
/datum/reagents/proc/remove_reagent(reagent, amount, safety)//Added a safety check for the trans_id_to
if(!isnum(amount))