mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-09 07:08:03 +01:00
Hazardous Area Component | Free Golem Soft-Restriction (#65720)
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -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)].")
|
||||
|
||||
Reference in New Issue
Block a user