mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Makes basic mobs work with lazarus injectors (#30134)
* Makes basic mobs work with lazarus injectors * Update code/modules/mining/equipment/lazarus_injector.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> --------- Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
co-authored by
Burzah
parent
dd6eeec8b2
commit
68171a0442
@@ -1342,6 +1342,15 @@
|
||||
/mob/living/proc/sec_hud_set_ID()
|
||||
return
|
||||
|
||||
/// Proc called when TARGETED by a lazarus injector
|
||||
/mob/living/proc/lazarus_revive(mob/living/reviver, malfunctioning)
|
||||
revive()
|
||||
befriend(reviver)
|
||||
AddElement(/datum/element/wears_collar)
|
||||
faction = (malfunctioning) ? list("lazarus", "\ref[reviver]") : list("neutral")
|
||||
if(malfunctioning)
|
||||
log_game("[reviver] has revived hostile mob [src] with a malfunctioning lazarus injector")
|
||||
|
||||
/// Proc for giving a mob a new 'friend', generally used for AI control and
|
||||
/// targeting. Returns false if already friends or null if qdeleted.
|
||||
/mob/living/proc/befriend(mob/living/new_friend)
|
||||
|
||||
Reference in New Issue
Block a user