mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fix 'id in pda' pref (#17806)
This commit is contained in:
@@ -31,3 +31,6 @@
|
|||||||
savefile_key = "id_in_pda"
|
savefile_key = "id_in_pda"
|
||||||
savefile_identifier = PREFERENCE_PLAYER
|
savefile_identifier = PREFERENCE_PLAYER
|
||||||
default_value = FALSE
|
default_value = FALSE
|
||||||
|
|
||||||
|
/datum/preference/toggle/id_in_pda/apply_to_human(mob/living/carbon/human/target, value)
|
||||||
|
target.id_in_pda = value
|
||||||
|
|||||||
@@ -316,7 +316,7 @@
|
|||||||
|
|
||||||
var/obj/item/modular_computer/PDA = new pda_type()
|
var/obj/item/modular_computer/PDA = new pda_type()
|
||||||
if(istype(PDA))
|
if(istype(PDA))
|
||||||
if (H.client?.prefs.read_preference(/datum/preference/toggle/id_in_pda))
|
if (H.id_in_pda)
|
||||||
PDA.InsertID(C)
|
PDA.InsertID(C)
|
||||||
H.equip_to_slot_if_possible(PDA, SLOT_WEAR_ID)
|
H.equip_to_slot_if_possible(PDA, SLOT_WEAR_ID)
|
||||||
else // just in case you hate change
|
else // just in case you hate change
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
var/socks = "Nude" //Which socks the player wants
|
var/socks = "Nude" //Which socks the player wants
|
||||||
var/backbag = DBACKPACK //Which backpack type the player has chosen.
|
var/backbag = DBACKPACK //Which backpack type the player has chosen.
|
||||||
var/jumpsuit_style = PREF_SUIT //suit/skirt
|
var/jumpsuit_style = PREF_SUIT //suit/skirt
|
||||||
|
var/id_in_pda = FALSE //Whether the player wants their ID to start in their PDA
|
||||||
|
|
||||||
//Equipment slots
|
//Equipment slots
|
||||||
var/obj/item/clothing/wear_suit = null
|
var/obj/item/clothing/wear_suit = null
|
||||||
|
|||||||
Reference in New Issue
Block a user