mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
Trace Chems Runtime Fix (#12282)
* Trace Chems Runtime Fix * more robust solution
This commit is contained in:
@@ -46,10 +46,11 @@
|
||||
holder.remove_reagent(type, amount) // Don't typecheck this, fix anywhere this is called with a null holder.
|
||||
if(ishuman(holder.my_atom))
|
||||
var/mob/living/carbon/human/H = holder.my_atom
|
||||
if(H.vessel.reagent_data[/decl/reagent/blood]["trace_chem"][type])
|
||||
H.vessel.reagent_data[/decl/reagent/blood]["trace_chem"][type] += amount
|
||||
else
|
||||
H.vessel.reagent_data[/decl/reagent/blood]["trace_chem"][type] = amount
|
||||
if(H.vessel && (/decl/reagent/blood in H.vessel.reagent_data))
|
||||
if(H.vessel.reagent_data[/decl/reagent/blood]["trace_chem"][type])
|
||||
H.vessel.reagent_data[/decl/reagent/blood]["trace_chem"][type] += amount
|
||||
else
|
||||
H.vessel.reagent_data[/decl/reagent/blood]["trace_chem"][type] = amount
|
||||
|
||||
// This doesn't apply to skin contact - this is for, e.g. extinguishers and sprays. The difference is that reagent is not directly on the mob's skin - it might just be on their clothing.
|
||||
/decl/reagent/proc/touch_mob(var/mob/living/M, var/amount, var/datum/reagents/holder)
|
||||
|
||||
Reference in New Issue
Block a user