diff --git a/code/modules/mob/living/carbon/brain/brain.dm b/code/modules/mob/living/carbon/brain/brain.dm index 66bf9133ec..cfa6421c6f 100644 --- a/code/modules/mob/living/carbon/brain/brain.dm +++ b/code/modules/mob/living/carbon/brain/brain.dm @@ -70,3 +70,31 @@ typing = FALSE return state + +// Vorestation edit start + +/mob/living/carbon/brain/verb/backup_ping() + set category = "IC" + set name = "Notify Transcore" + set desc = "Your body is gone. Notify robotics to be resleeved!" + var/datum/transcore_db/db = SStranscore.db_by_mind_name(mind.name) + if(db) + var/datum/transhuman/mind_record/record = db.backed_up[src.mind.name] + if(!(record.dead_state == MR_DEAD)) + if((world.time - timeofhostdeath ) > 5 MINUTES) //Allows notify transcore to be used if you have an entry but for some reason weren't marked as dead + record.dead_state = MR_DEAD //Such as if you got scanned but didn't take an implant. It's a little funky, but I mean, you got scanned + db.notify(record) //So you probably will want to let someone know if you die. + record.last_notification = world.time + to_chat(src, "New notification has been sent.") + else + to_chat(src, "Your backup is not past-due yet.") + else if((world.time - record.last_notification) < 5 MINUTES) + to_chat(src, "Too little time has passed since your last notification.") + else + db.notify(record) + record.last_notification = world.time + to_chat(src, "New notification has been sent.") + else + to_chat(src,"No backup record could be found, sorry.") + +// VS edit ends