mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-07-11 07:02:32 +01:00
Merge pull request #2332 from Verkister/backuppery
Adds a mind backup nifsoft and fixes sleevemate nif and quit issues.
This commit is contained in:
@@ -210,3 +210,25 @@
|
||||
breath.adjust_gas("oxygen", 300)
|
||||
breath.temperature = T20C
|
||||
return breath
|
||||
|
||||
/datum/nifsoft/mindbackup
|
||||
name = "Mind Backup"
|
||||
desc = "Backup your mind on the go. Stores a one-time sync of your current mindstate upon activation"
|
||||
list_pos = NIF_BACKUP
|
||||
cost = 250
|
||||
|
||||
activate()
|
||||
if((. = ..()))
|
||||
var/mob/living/carbon/human/H = nif.human
|
||||
SStranscore.m_backup(H.mind,H.nif,one_time = TRUE)
|
||||
nif.notify("Mind backed up!")
|
||||
nif.use_charge(0.1)
|
||||
deactivate()
|
||||
return TRUE
|
||||
|
||||
deactivate()
|
||||
if((. = ..()))
|
||||
return TRUE
|
||||
|
||||
stat_text()
|
||||
return "Store Backup"
|
||||
Reference in New Issue
Block a user