[MIRROR] [NO GBP] Resolves Golems not being allowed in the areas they created [MDB IGNORE] (#12650)

* [NO GBP] Resolves Golems not being allowed in the areas they created (#66000)

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* [NO GBP] Resolves Golems not being allowed in the areas they created

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-04-10 03:22:17 +02:00
committed by GitHub
parent 4433849a35
commit 5e8a148556
4 changed files with 46 additions and 4 deletions
@@ -52,7 +52,6 @@
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
new_spawn.mind.enslave_mind_to_creator(owner)
@@ -70,7 +69,7 @@
new_spawn.mind.set_assigned_role(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))
var/static/list/allowed_areas = typecacheof(list(/area/icemoon, /area/lavaland, /area/ruin)) + typecacheof(/area/survivalpod)
ADD_TRAIT(new_spawn, TRAIT_FORBID_MINING_SHUTTLE_CONSOLE_OUTSIDE_STATION, INNATE_TRAIT)
new_spawn.AddComponent(/datum/component/hazard_area, area_whitelist = allowed_areas)