mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Subtler filters out clientless mobs (#2901)
## About The Pull Request Per the tin, it will remove clientless mobs from the subtle menu. ## Why It's Good For The Game Clientless mobs can't hear your sex ## Proof Of Testing Works ## Changelog 🆑 fix: Subtler will now filter out clientless mobs /🆑
This commit is contained in:
@@ -100,8 +100,12 @@
|
||||
in_view -= GLOB.dead_mob_list
|
||||
in_view.Remove(user)
|
||||
|
||||
for(var/mob/camera/ai_eye/ai_eye in in_view)
|
||||
in_view.Remove(ai_eye)
|
||||
for(var/mob/mob in in_view) // Filters out the AI eye and clientless mobs.
|
||||
if(istype(mob, /mob/camera/ai_eye))
|
||||
continue
|
||||
if(mob.client)
|
||||
continue
|
||||
in_view.Remove(mob)
|
||||
|
||||
var/list/targets = list(SUBTLE_ONE_TILE_TEXT, SUBTLE_SAME_TILE_TEXT) + in_view
|
||||
target = tgui_input_list(user, "Pick a target", "Target Selection", targets)
|
||||
|
||||
Reference in New Issue
Block a user