[MIRROR] Updates policy to better warn players for any existing antagonist policy [MDB IGNORE] (#19341)

* Updates policy to better warn players for any existing antagonist policy

* Update job.dm

* Update job.dm

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-03-01 17:10:54 -08:00
committed by GitHub
co-authored by MrMelbert Zonespace
parent 6b266e0f32
commit 34ad67a4fc
13 changed files with 40 additions and 28 deletions
@@ -48,9 +48,6 @@
var/datum/species/golem/X = mob_species
to_chat(new_spawn, "[initial(X.info_text)]")
if(!owner)
var/policy = get_policy(ROLE_FREE_GOLEM)
if (policy)
to_chat(new_spawn, policy)
to_chat(new_spawn, "Build golem shells in the autolathe, and feed refined mineral sheets to the shells to bring them to life! You are generally a peaceful group unless provoked.")
try_keep_home(new_spawn)
else
@@ -64,9 +61,9 @@
G.owner = owner
H.set_cloned_appearance()
if(has_owner && new_spawn.mind)
new_spawn.mind.set_assigned_role(SSjob.GetJobType(/datum/job/servant_golem))
new_spawn.mind.set_assigned_role_with_greeting(SSjob.GetJobType(/datum/job/servant_golem))
else
new_spawn.mind.set_assigned_role(SSjob.GetJobType(/datum/job/free_golem))
new_spawn.mind.set_assigned_role_with_greeting(SSjob.GetJobType(/datum/job/free_golem))
/obj/effect/mob_spawn/ghost_role/human/golem/proc/try_keep_home(mob/new_spawn)
var/static/list/allowed_areas = typecacheof(list(/area/icemoon, /area/lavaland, /area/ruin)) + typecacheof(/area/misc/survivalpod)