Fix new players runtiming in pai (#17771)

This commit is contained in:
ShadowLarkens
2025-06-01 21:18:26 +02:00
committed by GitHub
parent f09ee6ad03
commit 1456706760
5 changed files with 16 additions and 9 deletions
@@ -4,6 +4,10 @@
var/datum/paiCandidate/candidate
/datum/category_item/player_setup_item/general/basic_antagonism/New()
. = ..()
candidate = new()
/datum/category_item/player_setup_item/general/basic_antagonism/load_character(list/save_data)
pref.exploit_record = save_data["exploit_record"]
pref.antag_faction = save_data["antag_faction"]
@@ -17,6 +21,7 @@
/datum/category_item/player_setup_item/general/basic_antagonism/load_preferences(datum/json_savefile/savefile)
if(!candidate)
candidate = new()
var/preference_mob = preference_mob()
if(!preference_mob)// No preference mob - this happens when we're called from client/New() before it calls ..() (via datum/preferences/New())
spawn()