ID:2544111
 
(See the best response by Kozuma3.)
If a mob has multiple filters applied, is there a way to identify which filters those are and also remove them if needed?

For example, if I wanted to identify if a player has a drop_shadow filter applied. Is there a way to tell this?

And would there be a way to remove all drop_shadow filters on a mob without clearing all filters on the mob all together?
Best response
mob/filters = list(
filter(type="drop_shadow",x=4,y=-4),
filter(type="outline",size=3),
)



mob/Login()
RemoveOutlines(src)


atom/movable/proc
RemoveOutlines()
for(var/i in filters)
if(i:type=="outline")
filters -= i
RemoveDropshadows()
for(var/i in filters)
if(i:type=="drop_shadow")
filters -= i
You can cast those to
/dm_filter
to avoid the colon operator.