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()
|
/client/proc/rejuv_all()
|
||||||
set name = "Revive All"
|
set name = "Revive All"
|
||||||
set category = "Admin.Round End"
|
set category = "Admin.Round End"
|
||||||
set desc = "Rejuvinate every mob/living."
|
set desc = "Rejuvenate every client with mob attached."
|
||||||
|
|
||||||
if(!check_rights(R_ADMIN))
|
if(!check_rights(R_ADMIN))
|
||||||
return
|
return
|
||||||
|
|
||||||
var/confirm = alert(src, "Revive all mobs?", "Message", "Yes", "No")
|
var/confirm = alert(src, "Revive all players?", "Message", "Yes", "No")
|
||||||
if(confirm != "Yes")
|
if(confirm != "Yes")
|
||||||
return
|
return
|
||||||
|
|
||||||
var/revive_count = 0
|
var/revive_count = 0
|
||||||
for(var/mob/living/M in world)
|
for(var/mob/M in GLOB.player_list)
|
||||||
M.revive(TRUE, TRUE)
|
var/mob/living/P = M.mind?.current
|
||||||
|
if(!istype(P, /mob/living))
|
||||||
|
continue
|
||||||
|
P.revive(TRUE, TRUE)
|
||||||
revive_count++
|
revive_count++
|
||||||
|
|
||||||
var/fluff_adjective = pick("benevolent","sacred","holy","godly","magnificent","benign","generous","caring") //lol
|
var/fluff_adjective = pick("benevolent","sacred","holy","godly","magnificent","benign","generous","caring") //lol
|
||||||
|
|||||||
Reference in New Issue
Block a user