Skip to content

Commit

Permalink
Species Tracking Adjustment (shiptest-ss13#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg authored Mar 29, 2022
1 parent 6314083 commit 4358dc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
14 changes: 6 additions & 8 deletions code/modules/mob/dead/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,14 @@

SSticker.minds += character.mind
character.client.init_verbs() // init verbs for the late join
var/mob/living/carbon/human/humanc
if(ishuman(character))
humanc = character //Let's retypecast the var to be human,

if(humanc) //These procs all expect humans
if(ishuman(character)) //These procs all expect humans
var/mob/living/carbon/human/humanc = character
ship.manifest_inject(humanc, client, job)
GLOB.data_core.manifest_inject(humanc, client)
AnnounceArrival(humanc, job.title, ship)
AddEmploymentContract(humanc)
SSblackbox.record_feedback("tally", "species_spawned", 1, humanc.dna.species.name)

if(GLOB.highlander)
to_chat(humanc, "<span class='userdanger'><i>THERE CAN BE ONLY ONE!!!</i></span>")
Expand All @@ -317,12 +316,11 @@
give_magic(humanc)
if(GLOB.curse_of_madness_triggered)
give_madness(humanc, GLOB.curse_of_madness_triggered)
if(CONFIG_GET(flag/roundstart_traits))
SSquirks.AssignQuirks(humanc, humanc.client, TRUE)

GLOB.joined_player_list += character.ckey

if(humanc && CONFIG_GET(flag/roundstart_traits))
SSquirks.AssignQuirks(humanc, humanc.client, TRUE)

log_manifest(character.mind.key, character.mind, character, TRUE)

if(length(ship.job_slots) > 1 && ship.job_slots[1] == job) // if it's the "captain" equivalent job of the ship. checks to make sure it's not a one-job ship
Expand Down Expand Up @@ -358,7 +356,7 @@
count++
if(template.limit <= count)
alert(src, "The ship limit of [template.limit] has been reached this round.")
return
return LateChoices() //Send them back to shuttle selection
close_spawn_windows()
to_chat(usr, "<span class='danger'>Your [template.name] is being prepared. Please be patient!</span>")
var/datum/overmap/ship/controlled/target = new(SSovermap.get_unused_overmap_square(), template)
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/carbon/human/species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,6 @@ GLOBAL_LIST_EMPTY(roundstart_races)

/datum/species/proc/after_equip_job(datum/job/J, mob/living/carbon/human/H)
H.update_mutant_bodyparts()
SSblackbox.record_feedback("tally", "species_spawned", 1, name)

/datum/species/proc/handle_chemicals(datum/reagent/chem, mob/living/carbon/human/H)
if(chem.type == exotic_blood)
Expand Down

0 comments on commit 4358dc7

Please sign in to comment.