mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 00:55:20 +01:00
[NO GBP] Resolves Golems not being allowed in the areas they created (#66000)
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user