Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Admin] Limits revive all verb to mobs with minds #22980

Merged
merged 1 commit into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading