Skip to content

Commit

Permalink
No more 750 mobs reviving (#22980)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oblisk234 authored Feb 14, 2025
1 parent a5f9688 commit e26318e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions yogstation/code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e26318e

Please sign in to comment.