Pins system

pins system
This commit is contained in:
quotefox
2021-08-20 00:38:46 +01:00
parent 9d08ae4e38
commit afff99d416
6 changed files with 15 additions and 1 deletions
+7
View File
@@ -83,8 +83,15 @@ GLOBAL_LIST_EMPTY(mobs_with_editable_flavor_text) //et tu, hacky code
var/mob/living/carbon/human/L = target
if(L.gender)
examineTabOutput += "[icon2html('hyperstation/icons/chat/gender.dmi', world, L.gender)]"
examineTabOutput += "[L.name] "
examineTabOutput += "([L.dna.custom_species ? L.dna.custom_species : L.dna.species.name])"
if(L.client.prefs.pins) //character has pins
var/P = ""
for(P in L.client.prefs.pins)
examineTabOutput += "[icon2html('hyperstation/icons/chat/pins.dmi', world, P)]" //show pins!
examineTabOutput += "</center>"
examineTabOutput += "<br>[url_encode(msg)]"
if(ismob(target))
+4
View File
@@ -105,6 +105,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/roleplayroles = FALSE //for the roleplay roles
var/importantroles = FALSE //for things that define as important.
var/datum/species/pref_species = new /datum/species/human() //Mutant race
var/list/features = list("mcolor" = "FFF",
"tail_lizard" = "Smooth",
@@ -233,6 +234,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
var/unlock_content = 0
var/vip = 0
//visable pins!
var/list/pins = list()
var/list/ignoring = list()
var/clientfps = 60
@@ -144,6 +144,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
S["sillyroles"] >> sillyroles
S["roleplayroles"] >> roleplayroles
S["importantroles"] >> importantroles
S["pins"] >> pins
//try to fix any outdated data if necessfary
if(needs_update >= 0)
@@ -265,6 +266,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
//Hyper
WRITE_FILE(S["noncon"], noncon)
WRITE_FILE(S["pins"], pins)
return 1
Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 423 B

After

Width:  |  Height:  |  Size: 481 B

@@ -99,7 +99,8 @@
WRITE_FILE(S["feature_has_anus"], features["has_anus"])
WRITE_FILE(S["feature_butt_size"], features["butt_size"])
WRITE_FILE(S["feature_butt_color"], features["butt_color"])
//pins
WRITE_FILE(S["pins"], pins)
//gear loadout
if(islist(chosen_gear))