mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Fixes lazarus injectors. (#9419)
This commit is contained in:
@@ -768,6 +768,7 @@
|
||||
throw_speed = 3
|
||||
throw_range = 5
|
||||
var/loaded = TRUE
|
||||
var/emagged = FALSE
|
||||
var/malfunctioning = FALSE
|
||||
var/revive_type = TYPE_ORGANIC //So you can't revive boss monsters or robots with it
|
||||
origin_tech = list(TECH_BIO = 7, TECH_MATERIAL = 4)
|
||||
@@ -782,12 +783,14 @@
|
||||
to_chat(user, SPAN_INFO("\The [src] does not work on this sort of creature."))
|
||||
return
|
||||
if(M.stat == DEAD)
|
||||
if(!malfunctioning)
|
||||
M.faction = "neutral"
|
||||
if(emagged) //if emagged, will set anything revived to the user's faction. convert station pets to the traitor side!
|
||||
M.faction = user.faction
|
||||
if(malfunctioning) //when EMP'd, will set the mob faction to its initial faction, so any taming will be reverted.
|
||||
M.faction = initial(M.faction)
|
||||
M.revive()
|
||||
M.icon_state = M.icon_living
|
||||
loaded = FALSE
|
||||
user.visible_message(SPAN_NOTICE("\The [user] injects \the [M] with \the [src], reviving it."))
|
||||
user.visible_message(SPAN_NOTICE("\The [user] revives \the [M] by injecting it with \the [src]."))
|
||||
feedback_add_details("lazarus_injector", "[M.type]")
|
||||
playsound(src, 'sound/effects/refill.ogg', 50, TRUE)
|
||||
return
|
||||
@@ -802,11 +805,16 @@
|
||||
if(!malfunctioning)
|
||||
malfunctioning = TRUE
|
||||
|
||||
/obj/item/lazarus_injector/emag_act(mob/user)
|
||||
if(!emagged)
|
||||
to_chat(user, SPAN_WARNING("You overload \the [src]'s injection matrix."))
|
||||
emagged = TRUE
|
||||
|
||||
/obj/item/lazarus_injector/examine(mob/user)
|
||||
..()
|
||||
if(!loaded)
|
||||
to_chat(user, SPAN_INFO("\The [src] is empty."))
|
||||
if(malfunctioning)
|
||||
if(malfunctioning || emagged)
|
||||
to_chat(user, SPAN_INFO("The display on \the [src] seems to be flickering."))
|
||||
|
||||
/**********************Point Transfer Card**********************/
|
||||
|
||||
Reference in New Issue
Block a user