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

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
Zephyr
2022-03-28 17:49:50 -04:00
committed by GitHub
parent 7b5619f29f
commit a00df2ed76
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)].")