Skip to content

Commit

Permalink
[MIRROR] Fix crew records not accounting for quirks for latejoiners […
Browse files Browse the repository at this point in the history
…MDB IGNORE] (#2907)

* Fix crew records not accounting for quirks for latejoiners

* Update new_player.dm

---------

Co-authored-by: _0Steven <[email protected]>
Co-authored-by: Mal <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Jun 8, 2024
1 parent d499a9f commit df02211
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions code/modules/mob/dead/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,11 @@
humanc = character //Let's retypecast the var to be human,

if(humanc) //These procs all expect humans
// BEGIN NOVA EDIT CHANGE - ALTERNATIVE_JOB_TITLES
var/chosen_rank = humanc.client?.prefs.alt_job_titles?[rank] || rank
GLOB.manifest.inject(humanc, humanc.client)
var/chosen_rank = humanc.client?.prefs.alt_job_titles?[rank] || rank // NOVA EDIT ADDITION - ALTERNATIVE_JOB_TITLES
if(SSshuttle.arrivals)
SSshuttle.arrivals.QueueAnnounce(humanc, chosen_rank)
SSshuttle.arrivals.QueueAnnounce(humanc, chosen_rank) // NOVA EDIT CHANGE - ALTERNATIVE_JOB_TITLES - ORIGINAL: SSshuttle.arrivals.QueueAnnounce(humanc, rank)
else
announce_arrival(humanc, chosen_rank)
announce_arrival(humanc, chosen_rank) // NOVA EDIT CHANGE - ALTERNATIVE_JOB_TITLES - ORIGINAL: announce_arrival(humanc, rank)
// END NOVA EDIT CHANGE - customization
AddEmploymentContract(humanc)

Expand All @@ -275,6 +273,9 @@
if((job.job_flags & JOB_ASSIGN_QUIRKS) && humanc && CONFIG_GET(flag/roundstart_traits))
SSquirks.AssignQuirks(humanc, humanc.client)

if(humanc) // Quirks may change manifest datapoints, so inject only after assigning quirks
GLOB.manifest.inject(humanc)

var/area/station/arrivals = GLOB.areas_by_type[/area/station/hallway/secondary/entry]
if(humanc && arrivals && !arrivals.power_environ) //arrivals depowered
humanc.put_in_hands(new /obj/item/crowbar/large/emergency(get_turf(humanc))) //if hands full then just drops on the floor
Expand Down

0 comments on commit df02211

Please sign in to comment.