[MIRROR] Hazardous Area Component | Free Golem Soft-Restriction [MDB IGNORE] (#12345)

* Hazardous Area Component | Free Golem Soft-Restriction (#65720)

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

* Hazardous Area Component | Free Golem Soft-Restriction

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-03-29 01:45:32 +02:00
committed by GitHub
parent 2be9606b8c
commit 0ddd34d1f5
10 changed files with 159 additions and 0 deletions
@@ -52,6 +52,10 @@
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.")
var/static/list/allowed_areas
if(!allowed_areas)
allowed_areas = typecacheof(list(/area/icemoon, /area/lavaland, /area/ruin))
new_spawn.AddComponent(/datum/component/hazard_area, area_whitelist=allowed_areas)
else
new_spawn.mind.enslave_mind_to_creator(owner)
log_game("[key_name(new_spawn)] possessed a golem shell enslaved to [key_name(owner)].")