mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 06:40:08 +01:00
[MIRROR] Brainmobs that get reagents no longer runtime (#12826)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
co-authored by
Will
parent
19840ed8d6
commit
111dec19ed
@@ -181,7 +181,7 @@
|
||||
removed = min(removed, volume)
|
||||
max_dose = max(volume, max_dose)
|
||||
dose = min(dose + removed, max_dose)
|
||||
if(M.species.medallergens & medallergen_type) // Medical allergies don't gain ANY benefits...
|
||||
if(M.species && (M.species.medallergens & medallergen_type)) // Medical allergies don't gain ANY benefits...
|
||||
M.add_chemical_effect(CE_ALLERGEN, allergen_factor * removed)
|
||||
remove_self(removed)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user