mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
No more 750 mobs reviving (#22980)
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
/client/proc/rejuv_all()
|
||||
set name = "Revive All"
|
||||
set category = "Admin.Round End"
|
||||
set desc = "Rejuvinate every mob/living."
|
||||
set desc = "Rejuvenate every client with mob attached."
|
||||
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
var/confirm = alert(src, "Revive all mobs?", "Message", "Yes", "No")
|
||||
var/confirm = alert(src, "Revive all players?", "Message", "Yes", "No")
|
||||
if(confirm != "Yes")
|
||||
return
|
||||
|
||||
var/revive_count = 0
|
||||
for(var/mob/living/M in world)
|
||||
M.revive(TRUE, TRUE)
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
var/mob/living/P = M.mind?.current
|
||||
if(!istype(P, /mob/living))
|
||||
continue
|
||||
P.revive(TRUE, TRUE)
|
||||
revive_count++
|
||||
|
||||
var/fluff_adjective = pick("benevolent","sacred","holy","godly","magnificent","benign","generous","caring") //lol
|
||||
|
||||
Reference in New Issue
Block a user