mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 10:34:10 +01:00
Merge pull request #4979 from Heroman3003/lets-annoy-doctors-more
Allows ghosts with backups to ping medical again
This commit is contained in:
@@ -56,3 +56,24 @@
|
||||
mind.active = TRUE
|
||||
|
||||
SC.catch_mob(src) //This will result in us being deleted so...
|
||||
|
||||
/mob/observer/dead/verb/backup_ping()
|
||||
set category = "Ghost"
|
||||
set name = "Notify Transcore"
|
||||
set desc = "If your past-due backup notification was missed or ignored, you can use this to send a new one."
|
||||
|
||||
var/record_found = FALSE
|
||||
for(var/datum/transhuman/mind_record/record in SStranscore.backed_up)
|
||||
if(record.ckey == ckey)
|
||||
record_found = TRUE
|
||||
if(!(record.dead_state == MR_DEAD))
|
||||
to_chat(src, "<span class='warning'>Your backup is not past-due yet.</span>")
|
||||
else if((world.time - record.last_notification) < 10 MINUTES)
|
||||
to_chat(src, "<span class='warning'>Too little time has passed since your last notification.</span>")
|
||||
else
|
||||
SStranscore.notify(record.mindname, TRUE)
|
||||
record.last_notification = world.time
|
||||
to_chat(src, "<span class='notice'>New notification has been sent.</span>")
|
||||
|
||||
if(!record_found)
|
||||
to_chat(src, "<span class='warning'>No mind record found!</span>")
|
||||
@@ -14,6 +14,7 @@
|
||||
//0: Normal, 1: Might be dead, 2: Definitely dead, show on console
|
||||
var/dead_state = 0
|
||||
var/last_update = 0
|
||||
var/last_notification
|
||||
|
||||
//Backend
|
||||
var/ckey = ""
|
||||
|
||||
Reference in New Issue
Block a user