mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
Revive proc tweaks (#47522)
* Revive proc tweaks * atomize PR * Implements nemvar's suggestion
This commit is contained in:
@@ -516,7 +516,7 @@
|
||||
/mob/living/proc/revive(full_heal = FALSE, admin_revive = FALSE)
|
||||
SEND_SIGNAL(src, COMSIG_LIVING_REVIVE, full_heal, admin_revive)
|
||||
if(full_heal)
|
||||
fully_heal(admin_revive = TRUE)
|
||||
fully_heal(admin_revive = admin_revive)
|
||||
if(stat == DEAD && can_be_revived()) //in some cases you can't revive (e.g. no brain)
|
||||
GLOB.dead_mob_list -= src
|
||||
GLOB.alive_mob_list += src
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
if(isliving(user))
|
||||
var/mob/living/L = user
|
||||
if(L.mob_biotypes & MOB_UNDEAD) //negative energy heals the undead
|
||||
user.revive(full_heal = TRUE, admin_revive = FALSE)
|
||||
user.revive(full_heal = TRUE, admin_revive = TRUE)
|
||||
to_chat(user, "<span class='notice'>You feel great!</span>")
|
||||
return
|
||||
to_chat(user, "<span class='warning'>You irradiate yourself with pure negative energy! \
|
||||
@@ -116,7 +116,7 @@
|
||||
</span>")
|
||||
user.death(0)
|
||||
return
|
||||
user.revive(full_heal = TRUE, admin_revive = FALSE)
|
||||
user.revive(full_heal = TRUE, admin_revive = TRUE)
|
||||
to_chat(user, "<span class='notice'>You feel great!</span>")
|
||||
|
||||
/obj/item/gun/magic/wand/resurrection/debug //for testing
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
if(L.mob_biotypes & MOB_UNDEAD) //negative energy heals the undead
|
||||
if(L.hellbound && L.stat == DEAD)
|
||||
return BULLET_ACT_BLOCK
|
||||
if(L.revive(full_heal = TRUE, admin_revive = FALSE))
|
||||
if(L.revive(full_heal = TRUE, admin_revive = TRUE))
|
||||
L.grab_ghost(force = TRUE) // even suicides
|
||||
to_chat(L, "<span class='notice'>You rise with a start, you're undead!!!</span>")
|
||||
else if(L.stat != DEAD)
|
||||
@@ -51,7 +51,7 @@
|
||||
else
|
||||
if(target.hellbound && target.stat == DEAD)
|
||||
return BULLET_ACT_BLOCK
|
||||
if(target.revive(full_heal = TRUE, admin_revive = FALSE))
|
||||
if(target.revive(full_heal = TRUE, admin_revive = TRUE))
|
||||
target.grab_ghost(force = TRUE) // even suicides
|
||||
to_chat(target, "<span class='notice'>You rise with a start, you're alive!!!</span>")
|
||||
else if(target.stat != DEAD)
|
||||
|
||||
Reference in New Issue
Block a user