mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
Revert "Assorted changes to job assignment code and logging." (#85929)
Reverts tgstation/tgstation#85308 
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
client.prefs.write_preference(GLOB.preference_entries[/datum/preference/name/real_name], "Prefs Biddle")
|
||||
|
||||
human.apply_prefs_job(client, SSjob.get_job_type(/datum/job/assistant))
|
||||
human.apply_prefs_job(client, SSjob.GetJobType(/datum/job/assistant))
|
||||
|
||||
TEST_ASSERT_NOTEQUAL(human.real_name, "Prefs Biddle", "apply_prefs_job didn't randomize human name with an anonymous theme")
|
||||
TEST_ASSERT_EQUAL(client.prefs.read_preference(/datum/preference/name/real_name), "Prefs Biddle", "Anonymous theme overrode original prefs")
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
/datum/unit_test/dummy_spawn_outfit/Run()
|
||||
var/mob/living/carbon/human/dummy/lad = allocate(/mob/living/carbon/human/dummy)
|
||||
for(var/datum/job/one_two_three as anything in subtypesof(/datum/job))
|
||||
var/datum/job/can_you_hear_this = SSjob.get_job_type(one_two_three)
|
||||
var/datum/job/can_you_hear_this = SSjob.GetJobType(one_two_three)
|
||||
if(!can_you_hear_this)
|
||||
log_test("\tJob type [one_two_three] could not be retrieved from SSjob")
|
||||
continue
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
var/mob/living/carbon/human/new_character = allocate(/mob/living/carbon/human/consistent)
|
||||
new_character.mind_initialize()
|
||||
new_character.mind.set_assigned_role(SSjob.get_job_type(/datum/job/security_officer))
|
||||
new_character.mind.set_assigned_role(SSjob.GetJobType(/datum/job/security_officer))
|
||||
|
||||
new_player.new_character = new_character
|
||||
new_player.mock_client = mock_client
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
possible_jobs += rank
|
||||
|
||||
for(var/job_name in possible_jobs)
|
||||
var/datum/job/job = SSjob.get_job(job_name)
|
||||
var/datum/job/job = SSjob.GetJob(job_name)
|
||||
var/mob/living/player = allocate(job.spawn_type)
|
||||
player.mind_initialize()
|
||||
var/datum/mind/mind = player.mind
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
var/mob/living/carbon/human/person = allocate(/mob/living/carbon/human/consistent)
|
||||
person.mind_initialize()
|
||||
var/obj/item/mail/traitor/test_mail = allocate(/obj/item/mail/traitor)
|
||||
person.mind.set_assigned_role(SSjob.get_job_type(/datum/job/captain))
|
||||
person.mind.set_assigned_role(SSjob.GetJobType(/datum/job/captain))
|
||||
test_mail.initialize_for_recipient(person.mind)
|
||||
TEST_ASSERT_EQUAL(test_mail.contents.len, 0, "/obj/item/mail/traitor should not have items after initialize_for_recipient proc!")
|
||||
|
||||
Reference in New Issue
Block a user