mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Fixes IPC drinking jestosterone (#23517)
* fix * cleanup * revert changes * another cleanup * reagents_holder runtime fix * ci
This commit is contained in:
@@ -465,12 +465,13 @@
|
||||
else if(C.mind.assigned_role == "Mime")
|
||||
to_chat(C, "<span class='warning'>You feel nauseous.</span>")
|
||||
C.AdjustDizzy(volume STATUS_EFFECT_CONSTANT)
|
||||
ADD_TRAIT(C, TRAIT_COMIC_SANS, id)
|
||||
C.AddElement(/datum/element/waddling)
|
||||
else
|
||||
to_chat(C, "<span class='warning'>Something doesn't feel right...</span>")
|
||||
C.AdjustDizzy(volume STATUS_EFFECT_CONSTANT)
|
||||
if(C.mind.assigned_role != "Clown")
|
||||
ADD_TRAIT(C, TRAIT_COMIC_SANS, id)
|
||||
C.AddElement(/datum/element/waddling)
|
||||
ADD_TRAIT(C, TRAIT_COMIC_SANS, id)
|
||||
C.AddElement(/datum/element/waddling)
|
||||
C.AddComponent(/datum/component/squeak, null, null, null, null, null, TRUE, falloff_exponent = 20)
|
||||
|
||||
/datum/reagent/jestosterone/on_mob_life(mob/living/carbon/M)
|
||||
@@ -505,7 +506,7 @@
|
||||
|
||||
/datum/reagent/jestosterone/on_mob_delete(mob/living/M)
|
||||
..()
|
||||
if(M.mind.assigned_role != "Clown")
|
||||
if(M.mind?.assigned_role != "Clown")
|
||||
REMOVE_TRAIT(M, TRAIT_COMIC_SANS, id)
|
||||
M.RemoveElement(/datum/element/waddling)
|
||||
qdel(M.GetComponent(/datum/component/squeak))
|
||||
|
||||
@@ -716,7 +716,12 @@
|
||||
cached_reagents += R
|
||||
R.holder = src
|
||||
R.volume = amount
|
||||
R.on_new(data)
|
||||
if(ishuman(my_atom))
|
||||
if(can_metabolize(my_atom, R))
|
||||
R.on_new(data)
|
||||
else
|
||||
R.on_new(data)
|
||||
|
||||
if(data)
|
||||
R.data = data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user