The Syndicate uplink now only access the locked records, meaning it will be unaware of later in-round changes concerning a given character.

This commit is contained in:
PsiOmega
2014-09-01 15:41:20 +02:00
parent 9e4b7ed265
commit b7d356c4ab
6 changed files with 32 additions and 49 deletions

View File

@@ -264,7 +264,7 @@ Turf and target are seperate in case you want to teleport some distance from a t
if(oldname)
//update the datacore records! This is goig to be a bit costly.
for(var/list/L in list(data_core.general,data_core.medical,data_core.security,data_core.locked,data_core.permanent))
for(var/list/L in list(data_core.general,data_core.medical,data_core.security,data_core.locked))
for(var/datum/data/record/R in L)
if(R.fields["name"] == oldname)
R.fields["name"] = newname

View File

@@ -114,28 +114,28 @@
S.fields["notes"] = "No notes."
security += S
// Records with oermanently available information
var/datum/data/record/P = new()
P.fields["id"] = id
P.fields["name"] = H.real_name
if(H.exploit_record && !jobban_isbanned(H, "Records"))
P.fields["exploit_record"] = H.exploit_record
else
P.fields["exploit_record"] = "No additional information acquired."
permanent += P
//Locked Record
var/datum/data/record/L = new()
L.fields["id"] = md5("[H.real_name][H.mind.assigned_role]")
L.fields["name"] = H.real_name
L.fields["rank"] = H.mind.assigned_role
L.fields["age"] = H.age
L.fields["fingerprint"] = md5(H.dna.uni_identity)
L.fields["sex"] = H.gender
L.fields["b_type"] = H.b_type
L.fields["b_dna"] = H.dna.unique_enzymes
L.fields["enzymes"] = H.dna.SE // Used in respawning
L.fields["identity"] = H.dna.UI // "
L.fields["species"] = H.get_species()
L.fields["home_system"] = H.home_system
L.fields["citizenship"] = H.citizenship
L.fields["faction"] = H.personal_faction
L.fields["religion"] = H.religion
L.fields["image"] = getFlatIcon(H) //This is god-awful
if(H.exploit_record && !jobban_isbanned(H, "Records"))
L.fields["exploit_record"] = H.exploit_record
else
L.fields["exploit_record"] = "No additional information acquired."
locked += L
return

View File

@@ -48,7 +48,6 @@
var/medical[] = list()
var/general[] = list()
var/security[] = list()
var/permanent[] = list()
//This list tracks characters spawned in the world and cannot be modified in-game. Currently referenced by respawn_character().
var/locked[] = list()

View File

@@ -255,9 +255,6 @@ var/global/list/frozen_items = list()
for(var/datum/data/record/G in data_core.general)
if ((G.fields["name"] == occupant.real_name))
del(G)
for(var/datum/data/record/P in data_core.permanent)
if ((P.fields["name"] == occupant.real_name))
del(P)
if(orient_right)
icon_state = "body_scanner_0-r"

View File

@@ -221,25 +221,17 @@ datum/nano_item_lists
/obj/item/device/uplink/hidden/proc/update_nano_data(var/id)
if(nanoui_menu == 1)
var/permanentData[0]
for(var/datum/data/record/P in sortRecord(data_core.permanent))
permanentData[++permanentData.len] = list(Name = P.fields["name"],"id" = P.fields["id"])
for(var/datum/data/record/L in sortRecord(data_core.locked))
permanentData[++permanentData.len] = list(Name = L.fields["name"],"id" = L.fields["id"])
nanoui_data["exploit_records"] = permanentData
if(nanoui_menu == 11)
nanoui_data["general_exists"] = 0
nanoui_data["exploit_exists"] = 0
for(var/datum/data/record/R in data_core.general)
if(R.fields["id"] == id)
nanoui_data["general"] = R.fields
nanoui_data["general_exists"] = 1
break
for(var/datum/data/record/P in data_core.permanent)
if(P.fields["id"] == id)
if(!nanoui_data["exploit"])
nanoui_data["exploit"] = new
nanoui_data["exploit"]["notes"] = replacetext(P.fields["exploit_record"], "\n", "<br>")
for(var/datum/data/record/L in data_core.locked)
if(L.fields["id"] == id)
nanoui_data["exploit"] = L.fields
nanoui_data["exploit"]["nanoui_exploit_record"] = replacetext(nanoui_data["exploit"]["exploit_record"], "\n", "<br>")
nanoui_data["exploit_exists"] = 1
break

View File

@@ -53,7 +53,7 @@ Used In File(s): \code\game\objects\items\devices\uplinks.dm
{{:helper.link('Buy Random (??)' , 'gear', {'buy_item' : 'random'}, null, 'fixedLeftWidest')}}
</div>
{{else data.menu == 1}}
<span class="white">Information Record List</span></H2>
<H2><span class="white">Information Record List</span></H2>
<br>
<div class="item">
Select a Record
@@ -65,30 +65,25 @@ Used In File(s): \code\game\objects\items\devices\uplinks.dm
</div>
{{/for}}
{{else data.menu == 11}}
<span class="white">Information Record</span></H2>
<H2><span class="white">Information Record</span></H2>
<br>
<div class="statusDisplayRecords">
<div class="item">
<div class="itemContent" style="width: 100%;">
{{if data.general_exists == 1}}
<span class="good">Name: </span> <span class="average">{{:data.general.name}} </span><br>
<span class="good">Sex: </span> <span class="average">{{:data.general.sex}} </span><br>
<span class="good">Species: </span> <span class="average">{{:data.general.species}} </span><br>
<span class="good">Age: </span> <span class="average">{{:data.general.age}} </span><br>
<span class="good">Rank: </span> <span class="average">{{:data.general.rank}} </span><br>
<span class="good">Home System: </span> <span class="average">{{:data.general.home_system}} </span><br>
<span class="good">Citizenship: </span> <span class="average">{{:data.general.citizenship}} </span><br>
<span class="good">Faction: </span> <span class="average">{{:data.general.faction}} </span><br>
<span class="good">Religion: </span> <span class="average">{{:data.general.religion}} </span><br>
<span class="good">Fingerprint: </span> <span class="average">{{:data.general.fingerprint}} </span><br>
{{else}}
<span class="bad">
General Record Lost!<br><br>
</span>
{{/if}}
{{if data.exploit_exists == 1}}
Acquired Information:<br>
<span class="good">Notes: </span> <span class="average">{{:data.exploit.notes}} </span><br><br>
<span class="good">Name: </span> <span class="average">{{:data.exploit.name}} </span><br>
<span class="good">Sex: </span> <span class="average">{{:data.exploit.sex}} </span><br>
<span class="good">Species: </span> <span class="average">{{:data.exploit.species}} </span><br>
<span class="good">Age: </span> <span class="average">{{:data.exploit.age}} </span><br>
<span class="good">Rank: </span> <span class="average">{{:data.exploit.rank}} </span><br>
<span class="good">Home System: </span> <span class="average">{{:data.exploit.home_system}} </span><br>
<span class="good">Citizenship: </span> <span class="average">{{:data.exploit.citizenship}} </span><br>
<span class="good">Faction: </span> <span class="average">{{:data.exploit.faction}} </span><br>
<span class="good">Religion: </span> <span class="average">{{:data.exploit.religion}} </span><br>
<span class="good">Fingerprint: </span> <span class="average">{{:data.exploit.fingerprint}} </span><br>
<br>Acquired Information:<br>
<span class="good">Notes:<br> </span> <span class="average">{{:data.exploit.nanoui_exploit_record}}</span><br><br>
{{else}}
<span class="bad">
No exploitative information acquired!