mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-25 21:16:39 +01:00
Make OOC notes persistant
Even when logged out, or body swapped, or new bodies are printed.
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
character.flavor_texts["hands"] = pref.flavor_texts["hands"]
|
||||
character.flavor_texts["legs"] = pref.flavor_texts["legs"]
|
||||
character.flavor_texts["feet"] = pref.flavor_texts["feet"]
|
||||
character.ooc_notes = pref.metadata //VOREStation Add
|
||||
|
||||
/datum/category_item/player_setup_item/general/flavor/content(var/mob/user)
|
||||
. += "<b>Flavor:</b><br>"
|
||||
|
||||
@@ -438,7 +438,7 @@
|
||||
if(print_flavor_text()) msg += "[print_flavor_text()]\n"
|
||||
|
||||
// VOREStation Start
|
||||
if(config.allow_Metadata && client)
|
||||
if(ooc_notes)
|
||||
msg += "<span class = 'deptradio'>OOC Notes:</span> <a href='?src=\ref[src];ooc_notes=1'>\[View\]</a>\n"
|
||||
// VOREStation End
|
||||
msg += "*---------*</span><br>"
|
||||
|
||||
@@ -485,15 +485,17 @@ default behaviour is:
|
||||
set name = "Examine Meta-Info (OOC)"
|
||||
set category = "OOC"
|
||||
set src in view()
|
||||
|
||||
//VOREStation Edit Start - Making it so SSD people have prefs with fallback to original style.
|
||||
if(config.allow_Metadata)
|
||||
if(client)
|
||||
if(ooc_notes)
|
||||
usr << "[src]'s Metainfo:<br>[ooc_notes]"
|
||||
else if(client)
|
||||
usr << "[src]'s Metainfo:<br>[client.prefs.metadata]"
|
||||
else
|
||||
usr << "[src] does not have any stored infomation!"
|
||||
else
|
||||
usr << "OOC Metadata is not supported by this server!"
|
||||
|
||||
//VOREStation Edit End - Making it so SSD people have prefs with fallback to original style.
|
||||
return
|
||||
|
||||
/mob/living/Move(a, b, flag)
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
/mob/living
|
||||
var/ooc_notes = null
|
||||
@@ -82,6 +82,7 @@ var/datum/transhuman/infocore/transcore = new/datum/transhuman/infocore
|
||||
var/cryo_at
|
||||
var/secretly_dead
|
||||
var/languages
|
||||
var/mind_oocnotes
|
||||
|
||||
/datum/transhuman/mind_record/New(var/mob/living/carbon/human/M,var/obj/item/weapon/implant/backup/imp,var/add_to_db = 1)
|
||||
ASSERT(M && imp)
|
||||
@@ -100,6 +101,7 @@ var/datum/transhuman/infocore/transcore = new/datum/transhuman/infocore
|
||||
ckey = M.ckey
|
||||
cryo_at = 0
|
||||
languages = M.languages.Copy()
|
||||
mind_oocnotes = M.ooc_notes
|
||||
|
||||
//If these are gone then it's a problemmmm.
|
||||
client = M.client
|
||||
@@ -108,7 +110,6 @@ var/datum/transhuman/infocore/transcore = new/datum/transhuman/infocore
|
||||
if(add_to_db)
|
||||
transcore.add_backup(src)
|
||||
|
||||
|
||||
/////// Body Record ///////
|
||||
/datum/transhuman/body_record
|
||||
var/datum/dna2/record/mydna
|
||||
@@ -121,6 +122,7 @@ var/datum/transhuman/infocore/transcore = new/datum/transhuman/infocore
|
||||
var/synthetic
|
||||
var/speciesname
|
||||
var/bodygender
|
||||
var/body_oocnotes
|
||||
var/list/limb_data = list(BP_HEAD, BP_L_HAND, BP_R_HAND, BP_L_ARM, BP_R_ARM, BP_L_FOOT, BP_R_FOOT, BP_L_LEG, BP_R_LEG, BP_GROIN, BP_TORSO)
|
||||
var/list/organ_data = list(O_HEART, O_EYES, O_LUNGS, O_BRAIN)
|
||||
|
||||
@@ -134,6 +136,7 @@ var/datum/transhuman/infocore/transcore = new/datum/transhuman/infocore
|
||||
synthetic = M.isSynthetic()
|
||||
speciesname = M.custom_species ? M.custom_species : M.dna.species
|
||||
bodygender = M.gender
|
||||
body_oocnotes = M.ooc_notes
|
||||
|
||||
//Probably should
|
||||
M.dna.check_integrity()
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
|
||||
H.set_cloned_appearance()
|
||||
update_icon()
|
||||
|
||||
H.ooc_notes = current_project.body_oocnotes
|
||||
H.flavor_texts = R.flavor.Copy()
|
||||
H.suiciding = 0
|
||||
attempting = 0
|
||||
@@ -210,6 +210,9 @@
|
||||
if(current_project.locked)
|
||||
H.resleeve_lock = current_project.ckey
|
||||
|
||||
H.ooc_notes = current_project.body_oocnotes
|
||||
H.flavor_texts = current_project.mydna.flavor.Copy()
|
||||
|
||||
//First the external organs
|
||||
for(var/part in current_project.limb_data)
|
||||
|
||||
@@ -397,6 +400,7 @@
|
||||
occupant.client = MR.client
|
||||
occupant.mind = MR.mind
|
||||
occupant.ckey = MR.ckey
|
||||
occupant.ooc_notes = MR.mind_oocnotes
|
||||
|
||||
//Give them a backup implant
|
||||
var/obj/item/weapon/implant/backup/new_imp = new()
|
||||
|
||||
@@ -1594,6 +1594,7 @@
|
||||
#include "code\modules\mob\living\living.dm"
|
||||
#include "code\modules\mob\living\living_defense.dm"
|
||||
#include "code\modules\mob\living\living_defines.dm"
|
||||
#include "code\modules\mob\living\living_defines_vr.dm"
|
||||
#include "code\modules\mob\living\living_powers.dm"
|
||||
#include "code\modules\mob\living\login.dm"
|
||||
#include "code\modules\mob\living\logout.dm"
|
||||
|
||||
Reference in New Issue
Block a user