Going stealth mode now drops your orbiters, and blocks people from orbiting you. (#64968)

* Stealthmin buffs in favor of orbiters

* The project I'm doing is cool as hell but it's not in this PR

* No toggle orbitability
This commit is contained in:
Mothblocks
2022-02-28 00:00:26 -05:00
committed by GitHub
parent b59d6d31b5
commit ffd057aa49
3 changed files with 51 additions and 24 deletions
+4
View File
@@ -164,6 +164,10 @@
/atom/movable/proc/orbit(atom/A, radius = 10, clockwise = FALSE, rotation_speed = 20, rotation_segments = 36, pre_rotation = TRUE)
if(!istype(A) || !get_turf(A) || A == src)
return
if (HAS_TRAIT(A, TRAIT_ORBITING_FORBIDDEN))
// Stealth-mins have an empty name, don't want "You cannot orbit at this time."
to_chat(src, span_notice("You cannot orbit ["[A]" || "them"] at this time."))
return
orbit_target = A
return A.AddComponent(/datum/component/orbiter, src, radius, clockwise, rotation_speed, rotation_segments, pre_rotation)