mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Both enabled and disabled preferences are now stored.
The purpose is to ensure that new preferences that are in neither list get the appropriate enabled/disabled setting without having to utilize the savefile update path. Also attempts to optimize the acquirement of the preference mob.
This commit is contained in:
@@ -227,4 +227,11 @@
|
||||
return TOPIC_NOACTION
|
||||
|
||||
/datum/category_item/player_setup_item/proc/preference_mob()
|
||||
return get_mob_by_key(pref.client_ckey)
|
||||
if(!pref.client)
|
||||
for(var/client/C)
|
||||
if(C.ckey == pref.client_ckey)
|
||||
pref.client = C
|
||||
break
|
||||
|
||||
if(pref.client)
|
||||
return pref.client.mob
|
||||
|
||||
Reference in New Issue
Block a user