mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 06:57:42 +01:00
[TM prolly] Some init optimisationss (#23800)
* [TM prolly] Some init optimisationss * Do this as well * Sod it some runtime optimisations as well
This commit is contained in:
+11
-3
@@ -166,9 +166,17 @@ GLOBAL_VAR_INIT(record_id_num, 1001)
|
||||
G.fields["m_stat"] = "Stable"
|
||||
G.fields["sex"] = capitalize(H.gender)
|
||||
G.fields["species"] = H.dna.species.name
|
||||
G.fields["photo"] = get_id_photo(H)
|
||||
G.fields["photo-south"] = "data:image/png;base64,[icon2base64(icon(G.fields["photo"], dir = SOUTH))]"
|
||||
G.fields["photo-west"] = "data:image/png;base64,[icon2base64(icon(G.fields["photo"], dir = WEST))]"
|
||||
// Do some ID card checking stuff here to save on resources
|
||||
var/card_photo
|
||||
if(istype(H.wear_id, /obj/item/card/id))
|
||||
var/obj/item/card/id/IDC = H.wear_id
|
||||
card_photo = IDC.photo
|
||||
else
|
||||
card_photo = get_id_photo(H)
|
||||
|
||||
G.fields["photo"] = card_photo
|
||||
G.fields["photo-south"] = "data:image/png;base64,[icon2base64(icon(card_photo, dir = SOUTH))]"
|
||||
G.fields["photo-west"] = "data:image/png;base64,[icon2base64(icon(card_photo, dir = WEST))]"
|
||||
if(H.gen_record && !jobban_isbanned(H, ROLEBAN_RECORDS))
|
||||
G.fields["notes"] = H.gen_record
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user