Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions code/modules/jobs/job_types/_job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
/datum/job/proc/pre_outfit_equip(mob/living/carbon/human/spawned, client/player_client)
SHOULD_CALL_PARENT(TRUE)

adjust_patron(spawned)
adjust_patron(spawned, player_client)

/// Executes after the mob has been spawned in the map.
/// Client might not be yet in the mob, and is thus a separate variable.
Expand Down Expand Up @@ -564,10 +564,10 @@
if(parent_job)
return parent_job.remove_job(spawned)

/datum/job/proc/adjust_patron(mob/living/carbon/human/spawned)
/datum/job/proc/adjust_patron(mob/living/carbon/human/spawned, client/player_client)
var/datum/patron/old_patron = spawned.patron

if(tennite_triumph_exclusive && !spawned.client?.has_triumph_buy(TRIUMPH_BUY_HERETIC_NOBLE) && !(old_patron.type in UNDIVIDED_TEMPLE_PATRONS))
if(tennite_triumph_exclusive && !player_client?.has_triumph_buy(TRIUMPH_BUY_HERETIC_NOBLE) && !(old_patron.type in UNDIVIDED_TEMPLE_PATRONS))
spawned.set_patron(/datum/patron/divine/astrata, TRUE)
to_chat(spawned, span_warning("I've followed the word of [old_patron.display_name ? old_patron.display_name : old_patron] in my younger years, \
but the path I tread todae proves only The Ten may rule!"))
Expand Down
Loading