mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
moves check and add to reagents holder datum
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user